This commit is contained in:
lalBi94
2023-03-05 13:23:23 +01:00
commit 7bc56c09b5
14034 changed files with 1834369 additions and 0 deletions

21
node_modules/node-preload/hook-spawn.js generated vendored Normal file
View File

@@ -0,0 +1,21 @@
'use strict';
const path = require('path');
const processOnSpawn = require('process-on-spawn');
const {needsPathEnv, processNodePath} = require('./generate-require.js');
const processNodeOptions = require('./process-node-options.js');
const preloadList = require('./preload-list.js');
const preloadListEnv = require('./preload-list-env.js');
processOnSpawn.addListener(({env}) => {
env.NODE_OPTIONS = processNodeOptions(
env.NODE_OPTIONS || /* istanbul ignore next: impossible under nyc 15 */ ''
);
/* istanbul ignore next */
if (needsPathEnv(__dirname)) {
env.NODE_PATH = processNodePath(env.NODE_PATH || '');
}
env[preloadListEnv] = preloadList.join(path.delimiter);
});