Website : rimsha.abasa.com
backdoor
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
cal.com
/
cal.com
/
node_modules
/
process-wrapper
/
dist
/
Filename :
test_functions.js
back
Copy
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getMapFunction = exports.mapFunctions = void 0; exports.mapFunctions = [ ['undefined', undefined, 'Something to stdout\nAnother thing to stdout\n', 'Something to stderr\n'], ['noop', (line) => line, 'Something to stdout\nAnother thing to stdout\n', 'Something to stderr\n'], ['prefix', (line) => `prefix: ${line}`, 'prefix: Something to stdout\nprefix: Another thing to stdout\n', 'prefix: Something to stderr\n'], ['suffix', (line) => `${line.slice(undefined, -1)} (suffix)\n`, 'Something to stdout (suffix)\nAnother thing to stdout (suffix)\n', 'Something to stderr (suffix)\n'], ['replace', (line) => `${line.replaceAll('e', 'k')}`, 'Somkthing to stdout\nAnothkr thing to stdout\n', 'Somkthing to stdkrr\n'], ]; const getMapFunction = (name) => { if (name === undefined) { throw new Error('Map function not set'); } const entry = exports.mapFunctions.find((f) => f[0] === name); if (!entry) { throw new Error(`Unknown map function: ${name}`); } return entry[1]; }; exports.getMapFunction = getMapFunction;