@socketsecurity/cli-with-sentry 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +104 -88
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +3 -3
- package/dist/constants.js.map +1 -1
- package/dist/types/commands/analytics/cmd-analytics.d.mts.map +1 -1
- package/dist/types/commands/audit-log/cmd-audit-log.d.mts.map +1 -1
- package/dist/types/commands/config/cmd-config-auto.d.mts.map +1 -1
- package/dist/types/commands/config/cmd-config-get.d.mts.map +1 -1
- package/dist/types/commands/config/cmd-config-list.d.mts.map +1 -1
- package/dist/types/commands/config/cmd-config-set.d.mts.map +1 -1
- package/dist/types/commands/config/cmd-config-unset.d.mts.map +1 -1
- package/dist/types/commands/fix/agent-fix.d.mts +4 -4
- package/dist/types/commands/fix/agent-fix.d.mts.map +1 -1
- package/dist/types/commands/fix/cmd-fix.d.mts.map +1 -1
- package/dist/types/commands/fix/handle-fix.d.mts +3 -3
- package/dist/types/commands/fix/handle-fix.d.mts.map +1 -1
- package/dist/types/commands/fix/npm-fix.d.mts +2 -2
- package/dist/types/commands/fix/npm-fix.d.mts.map +1 -1
- package/dist/types/commands/fix/pnpm-fix.d.mts +2 -2
- package/dist/types/commands/fix/pnpm-fix.d.mts.map +1 -1
- package/dist/types/commands/organization/cmd-organization-dependencies.d.mts.map +1 -1
- package/dist/types/commands/organization/cmd-organization-list.d.mts.map +1 -1
- package/dist/types/commands/organization/cmd-organization-policy-license.d.mts.map +1 -1
- package/dist/types/commands/organization/cmd-organization-policy-security.d.mts.map +1 -1
- package/dist/types/commands/organization/cmd-organization-quota.d.mts.map +1 -1
- package/dist/types/commands/package/cmd-package-score.d.mts.map +1 -1
- package/dist/types/commands/repository/cmd-repository-create.d.mts.map +1 -1
- package/dist/types/commands/repository/cmd-repository-list.d.mts.map +1 -1
- package/dist/types/commands/repository/cmd-repository-update.d.mts.map +1 -1
- package/dist/types/commands/repository/cmd-repository-view.d.mts.map +1 -1
- package/dist/types/commands/scan/cmd-scan-del.d.mts.map +1 -1
- package/dist/types/commands/scan/cmd-scan-diff.d.mts.map +1 -1
- package/dist/types/commands/scan/cmd-scan-reach.d.mts.map +1 -1
- package/dist/types/commands/scan/handle-scan-reach.d.mts +8 -0
- package/dist/types/commands/scan/handle-scan-reach.d.mts.map +1 -0
- package/dist/types/commands/threat-feed/cmd-threat-feed.d.mts.map +1 -1
- package/dist/types/utils/meow-with-subcommands.d.mts +1 -2
- package/dist/types/utils/meow-with-subcommands.d.mts.map +1 -1
- package/dist/utils.js +2 -3
- package/dist/utils.js.map +1 -1
- package/dist/vendor.js +2984 -562
- package/package.json +8 -6
- package/dist/types/commands/scan/handle-reach-scan.d.mts +0 -3
- package/dist/types/commands/scan/handle-reach-scan.d.mts.map +0 -1
package/dist/vendor.js
CHANGED
|
@@ -6,17 +6,22 @@ var path$2 = require('node:path');
|
|
|
6
6
|
var fs$1 = require('node:fs');
|
|
7
7
|
var require$$0$6 = require('node:url');
|
|
8
8
|
var os$3 = require('node:os');
|
|
9
|
+
var require$$0$c = require('node:path');
|
|
10
|
+
var require$$0$9 = require('node:fs');
|
|
11
|
+
var require$$0$7 = require('node:constants');
|
|
12
|
+
var require$$1$7 = require('node:stream');
|
|
13
|
+
var require$$0$8 = require('node:util');
|
|
14
|
+
var require$$0$a = require('node:assert');
|
|
15
|
+
var require$$0$b = require('node:events');
|
|
16
|
+
var require$$0$d = require('node:url');
|
|
17
|
+
var require$$1$8 = require('node:http');
|
|
18
|
+
var require$$0$e = require('node:os');
|
|
9
19
|
var fs$2 = require('node:fs/promises');
|
|
10
|
-
var require$$0$
|
|
11
|
-
var require$$0$
|
|
12
|
-
var require$$0$
|
|
13
|
-
var require$$0$a = require('node:path');
|
|
14
|
-
var require$$0$b = require('node:fs');
|
|
15
|
-
var require$$0$c = require('node:tty');
|
|
20
|
+
var require$$0$f = require('node:process');
|
|
21
|
+
var require$$0$g = require('node:buffer');
|
|
22
|
+
var require$$0$h = require('node:tty');
|
|
16
23
|
var require$$2$3 = require('node:https');
|
|
17
|
-
var require$$
|
|
18
|
-
var require$$0$d = require('node:url');
|
|
19
|
-
var require$$0$e = require('node:events');
|
|
24
|
+
var require$$0$i = require('node:events');
|
|
20
25
|
var require$$2$4 = require('node:http');
|
|
21
26
|
var require$$3$3 = require('node:https');
|
|
22
27
|
var require$$5$2 = require('node:readline');
|
|
@@ -24,28 +29,24 @@ var require$$6$3 = require('../external/@socketsecurity/registry/lib/constants/a
|
|
|
24
29
|
var require$$7$5 = require('../external/@socketsecurity/registry/lib/promises');
|
|
25
30
|
var node_buffer = require('node:buffer');
|
|
26
31
|
var childProcess = require('node:child_process');
|
|
27
|
-
var require$$0$
|
|
28
|
-
var require$$
|
|
29
|
-
var require$$1$8 = require('node:tty');
|
|
30
|
-
var require$$1$9 = require('node:stream');
|
|
32
|
+
var require$$0$j = require('node:fs/promises');
|
|
33
|
+
var require$$1$9 = require('node:tty');
|
|
31
34
|
var require$$1$a = require('node:stream');
|
|
32
35
|
var require$$2$5 = require('node:string_decoder');
|
|
33
|
-
var require$$0$
|
|
36
|
+
var require$$0$k = require('node:child_process');
|
|
34
37
|
var require$$1$b = require('node:path/win32');
|
|
35
|
-
var require$$0$
|
|
38
|
+
var require$$0$l = require('node:module');
|
|
36
39
|
var require$$2$6 = require('node:querystring');
|
|
37
|
-
var require$$0$j = require('node:events');
|
|
38
40
|
var require$$2$7 = require('node:string_decoder');
|
|
39
|
-
var require$$0$
|
|
40
|
-
var require$$0$
|
|
41
|
-
var require$$0$
|
|
42
|
-
var require$$0$
|
|
43
|
-
var require$$0$o = require('node:net');
|
|
41
|
+
var require$$0$m = require('node:crypto');
|
|
42
|
+
var require$$0$n = require('node:zlib');
|
|
43
|
+
var require$$0$o = require('node:dns');
|
|
44
|
+
var require$$0$p = require('node:net');
|
|
44
45
|
var require$$1$c = require('node:tls');
|
|
45
46
|
var require$$3$4 = require('node:timers/promises');
|
|
46
47
|
var require$$6$4 = require('node:querystring');
|
|
47
|
-
var require$$0$
|
|
48
|
-
var require$$0$
|
|
48
|
+
var require$$0$r = require('node:crypto');
|
|
49
|
+
var require$$0$q = require('node:http2');
|
|
49
50
|
var require$$1$d = require('node:v8');
|
|
50
51
|
var Module = require('node:module');
|
|
51
52
|
|
|
@@ -3413,7 +3414,7 @@ commonjs$i.LRUCache = LRUCache$1;
|
|
|
3413
3414
|
const maybeJoin = (...args) => args.every(arg => arg) ? args.join('') : '';
|
|
3414
3415
|
const maybeEncode = arg => arg ? encodeURIComponent(arg) : '';
|
|
3415
3416
|
const formatHashFragment = f => f.toLowerCase().replace(/^\W+|\/|\W+$/g, '').replace(/\W+/g, '-');
|
|
3416
|
-
const defaults$
|
|
3417
|
+
const defaults$2 = {
|
|
3417
3418
|
sshtemplate: ({
|
|
3418
3419
|
domain,
|
|
3419
3420
|
user,
|
|
@@ -3777,7 +3778,7 @@ hosts$1.sourcehut = {
|
|
|
3777
3778
|
}
|
|
3778
3779
|
};
|
|
3779
3780
|
for (const [name, host] of Object.entries(hosts$1)) {
|
|
3780
|
-
hosts$1[name] = Object.assign({}, defaults$
|
|
3781
|
+
hosts$1[name] = Object.assign({}, defaults$2, host);
|
|
3781
3782
|
}
|
|
3782
3783
|
var hosts_1$1 = hosts$1;
|
|
3783
3784
|
const url$2 = require$$0$6;
|
|
@@ -4986,7 +4987,7 @@ const require$$1$5 = {
|
|
|
4986
4987
|
invalidLicense: invalidLicense,
|
|
4987
4988
|
typo: typo
|
|
4988
4989
|
};
|
|
4989
|
-
var util$
|
|
4990
|
+
var util$5 = require$$1$6;
|
|
4990
4991
|
var messages = require$$1$5;
|
|
4991
4992
|
var make_warning = function () {
|
|
4992
4993
|
var args = Array.prototype.slice.call(arguments, 0);
|
|
@@ -4996,7 +4997,7 @@ var make_warning = function () {
|
|
|
4996
4997
|
} else {
|
|
4997
4998
|
var msgTemplate = messages[warningName] ? messages[warningName] : warningName + ": '%s'";
|
|
4998
4999
|
args.unshift(msgTemplate);
|
|
4999
|
-
return util$
|
|
5000
|
+
return util$5.format.apply(null, args);
|
|
5000
5001
|
}
|
|
5001
5002
|
};
|
|
5002
5003
|
function makeTypoWarning(providedName, probableName, field) {
|
|
@@ -5004,11 +5005,11 @@ function makeTypoWarning(providedName, probableName, field) {
|
|
|
5004
5005
|
providedName = field + "['" + providedName + "']";
|
|
5005
5006
|
probableName = field + "['" + probableName + "']";
|
|
5006
5007
|
}
|
|
5007
|
-
return util$
|
|
5008
|
+
return util$5.format(messages.typo, providedName, probableName);
|
|
5008
5009
|
}
|
|
5009
|
-
var normalize_1$1 = normalize$
|
|
5010
|
+
var normalize_1$1 = normalize$3;
|
|
5010
5011
|
var fixer = fixer$1;
|
|
5011
|
-
normalize$
|
|
5012
|
+
normalize$3.fixer = fixer;
|
|
5012
5013
|
var makeWarning = make_warning;
|
|
5013
5014
|
var fieldsToFix = ['name', 'version', 'description', 'repository', 'modules', 'scripts', 'files', 'bin', 'man', 'bugs', 'keywords', 'readme', 'homepage', 'license'];
|
|
5014
5015
|
var otherThingsToFix = ['dependencies', 'people', 'typos'];
|
|
@@ -5016,7 +5017,7 @@ var thingsToFix = fieldsToFix.map(function (fieldName) {
|
|
|
5016
5017
|
return ucFirst(fieldName) + 'Field';
|
|
5017
5018
|
});
|
|
5018
5019
|
thingsToFix = thingsToFix.concat(otherThingsToFix);
|
|
5019
|
-
function normalize$
|
|
5020
|
+
function normalize$3(data, warn, strict) {
|
|
5020
5021
|
if (warn === true) {
|
|
5021
5022
|
warn = null;
|
|
5022
5023
|
strict = true;
|
|
@@ -5043,7 +5044,7 @@ function ucFirst(string) {
|
|
|
5043
5044
|
}
|
|
5044
5045
|
const normalizePackageData = getDefaultExportFromCjs(normalize_1$1);
|
|
5045
5046
|
const toPath$1 = urlOrPath => urlOrPath instanceof URL ? require$$0$6.fileURLToPath(urlOrPath) : urlOrPath;
|
|
5046
|
-
function findUpSync(name, {
|
|
5047
|
+
function findUpSync$1(name, {
|
|
5047
5048
|
cwd = process$2.cwd(),
|
|
5048
5049
|
type = 'file',
|
|
5049
5050
|
stopAt
|
|
@@ -7665,10 +7666,10 @@ function parseJson(string, reviver, fileName) {
|
|
|
7665
7666
|
}
|
|
7666
7667
|
throw jsonError;
|
|
7667
7668
|
}
|
|
7668
|
-
function toPath(urlOrPath) {
|
|
7669
|
+
function toPath$2(urlOrPath) {
|
|
7669
7670
|
return urlOrPath instanceof URL ? require$$0$6.fileURLToPath(urlOrPath) : urlOrPath;
|
|
7670
7671
|
}
|
|
7671
|
-
const getPackagePath = cwd => path$2.resolve(toPath(cwd) ?? '.', 'package.json');
|
|
7672
|
+
const getPackagePath = cwd => path$2.resolve(toPath$2(cwd) ?? '.', 'package.json');
|
|
7672
7673
|
const _readPackage = (file, normalize) => {
|
|
7673
7674
|
const json = typeof file === 'string' ? parseJson(file) : file;
|
|
7674
7675
|
if (normalize) {
|
|
@@ -7684,7 +7685,7 @@ function readPackageSync({
|
|
|
7684
7685
|
return _readPackage(packageFile, normalize);
|
|
7685
7686
|
}
|
|
7686
7687
|
function readPackageUpSync(options) {
|
|
7687
|
-
const filePath = findUpSync('package.json', options);
|
|
7688
|
+
const filePath = findUpSync$1('package.json', options);
|
|
7688
7689
|
if (!filePath) {
|
|
7689
7690
|
return;
|
|
7690
7691
|
}
|
|
@@ -8556,6 +8557,2667 @@ var helpers$5 = /*#__PURE__*/Object.freeze({
|
|
|
8556
8557
|
stackWithCauses: stackWithCauses
|
|
8557
8558
|
});
|
|
8558
8559
|
|
|
8560
|
+
function getAugmentedNamespace(n) {
|
|
8561
|
+
if (Object.prototype.hasOwnProperty.call(n, '__esModule')) return n;
|
|
8562
|
+
var f = n.default;
|
|
8563
|
+
var a;
|
|
8564
|
+
if (typeof f == "function") {
|
|
8565
|
+
a = function a () {
|
|
8566
|
+
var isInstance = false;
|
|
8567
|
+
try {
|
|
8568
|
+
isInstance = this instanceof a;
|
|
8569
|
+
} catch {}
|
|
8570
|
+
if (isInstance) {
|
|
8571
|
+
return Reflect.construct(f, arguments, this.constructor);
|
|
8572
|
+
}
|
|
8573
|
+
return f.apply(this, arguments);
|
|
8574
|
+
};
|
|
8575
|
+
a.prototype = f.prototype;
|
|
8576
|
+
} else a = {};
|
|
8577
|
+
Object.defineProperty(a, '__esModule', {value: true});
|
|
8578
|
+
Object.keys(n).forEach(function (k) {
|
|
8579
|
+
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
8580
|
+
Object.defineProperty(a, k, d.get ? d : {
|
|
8581
|
+
enumerable: true,
|
|
8582
|
+
get: function () {
|
|
8583
|
+
return n[k];
|
|
8584
|
+
}
|
|
8585
|
+
});
|
|
8586
|
+
});
|
|
8587
|
+
return a;
|
|
8588
|
+
}
|
|
8589
|
+
|
|
8590
|
+
var npmConf = {exports: {}};
|
|
8591
|
+
|
|
8592
|
+
var dist$j = {};
|
|
8593
|
+
|
|
8594
|
+
var caFile = {};
|
|
8595
|
+
|
|
8596
|
+
var polyfills;
|
|
8597
|
+
var hasRequiredPolyfills;
|
|
8598
|
+
function requirePolyfills() {
|
|
8599
|
+
if (hasRequiredPolyfills) return polyfills;
|
|
8600
|
+
hasRequiredPolyfills = 1;
|
|
8601
|
+
var constants = require$$0$7;
|
|
8602
|
+
var origCwd = process.cwd;
|
|
8603
|
+
var cwd = null;
|
|
8604
|
+
var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
|
|
8605
|
+
process.cwd = function () {
|
|
8606
|
+
if (!cwd) cwd = origCwd.call(process);
|
|
8607
|
+
return cwd;
|
|
8608
|
+
};
|
|
8609
|
+
try {
|
|
8610
|
+
process.cwd();
|
|
8611
|
+
} catch (er) {}
|
|
8612
|
+
|
|
8613
|
+
// This check is needed until node.js 12 is required
|
|
8614
|
+
if (typeof process.chdir === 'function') {
|
|
8615
|
+
var chdir = process.chdir;
|
|
8616
|
+
process.chdir = function (d) {
|
|
8617
|
+
cwd = null;
|
|
8618
|
+
chdir.call(process, d);
|
|
8619
|
+
};
|
|
8620
|
+
if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir);
|
|
8621
|
+
}
|
|
8622
|
+
polyfills = patch;
|
|
8623
|
+
function patch(fs) {
|
|
8624
|
+
// (re-)implement some things that are known busted or missing.
|
|
8625
|
+
|
|
8626
|
+
// lchmod, broken prior to 0.6.2
|
|
8627
|
+
// back-port the fix here.
|
|
8628
|
+
if (constants.hasOwnProperty('O_SYMLINK') && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
|
|
8629
|
+
patchLchmod(fs);
|
|
8630
|
+
}
|
|
8631
|
+
|
|
8632
|
+
// lutimes implementation, or no-op
|
|
8633
|
+
if (!fs.lutimes) {
|
|
8634
|
+
patchLutimes(fs);
|
|
8635
|
+
}
|
|
8636
|
+
|
|
8637
|
+
// https://github.com/isaacs/node-graceful-fs/issues/4
|
|
8638
|
+
// Chown should not fail on einval or eperm if non-root.
|
|
8639
|
+
// It should not fail on enosys ever, as this just indicates
|
|
8640
|
+
// that a fs doesn't support the intended operation.
|
|
8641
|
+
|
|
8642
|
+
fs.chown = chownFix(fs.chown);
|
|
8643
|
+
fs.fchown = chownFix(fs.fchown);
|
|
8644
|
+
fs.lchown = chownFix(fs.lchown);
|
|
8645
|
+
fs.chmod = chmodFix(fs.chmod);
|
|
8646
|
+
fs.fchmod = chmodFix(fs.fchmod);
|
|
8647
|
+
fs.lchmod = chmodFix(fs.lchmod);
|
|
8648
|
+
fs.chownSync = chownFixSync(fs.chownSync);
|
|
8649
|
+
fs.fchownSync = chownFixSync(fs.fchownSync);
|
|
8650
|
+
fs.lchownSync = chownFixSync(fs.lchownSync);
|
|
8651
|
+
fs.chmodSync = chmodFixSync(fs.chmodSync);
|
|
8652
|
+
fs.fchmodSync = chmodFixSync(fs.fchmodSync);
|
|
8653
|
+
fs.lchmodSync = chmodFixSync(fs.lchmodSync);
|
|
8654
|
+
fs.stat = statFix(fs.stat);
|
|
8655
|
+
fs.fstat = statFix(fs.fstat);
|
|
8656
|
+
fs.lstat = statFix(fs.lstat);
|
|
8657
|
+
fs.statSync = statFixSync(fs.statSync);
|
|
8658
|
+
fs.fstatSync = statFixSync(fs.fstatSync);
|
|
8659
|
+
fs.lstatSync = statFixSync(fs.lstatSync);
|
|
8660
|
+
|
|
8661
|
+
// if lchmod/lchown do not exist, then make them no-ops
|
|
8662
|
+
if (fs.chmod && !fs.lchmod) {
|
|
8663
|
+
fs.lchmod = function (path, mode, cb) {
|
|
8664
|
+
if (cb) process.nextTick(cb);
|
|
8665
|
+
};
|
|
8666
|
+
fs.lchmodSync = function () {};
|
|
8667
|
+
}
|
|
8668
|
+
if (fs.chown && !fs.lchown) {
|
|
8669
|
+
fs.lchown = function (path, uid, gid, cb) {
|
|
8670
|
+
if (cb) process.nextTick(cb);
|
|
8671
|
+
};
|
|
8672
|
+
fs.lchownSync = function () {};
|
|
8673
|
+
}
|
|
8674
|
+
|
|
8675
|
+
// on Windows, A/V software can lock the directory, causing this
|
|
8676
|
+
// to fail with an EACCES or EPERM if the directory contains newly
|
|
8677
|
+
// created files. Try again on failure, for up to 60 seconds.
|
|
8678
|
+
|
|
8679
|
+
// Set the timeout this long because some Windows Anti-Virus, such as Parity
|
|
8680
|
+
// bit9, may lock files for up to a minute, causing npm package install
|
|
8681
|
+
// failures. Also, take care to yield the scheduler. Windows scheduling gives
|
|
8682
|
+
// CPU to a busy looping process, which can cause the program causing the lock
|
|
8683
|
+
// contention to be starved of CPU by node, so the contention doesn't resolve.
|
|
8684
|
+
if (platform === "win32") {
|
|
8685
|
+
fs.rename = typeof fs.rename !== 'function' ? fs.rename : function (fs$rename) {
|
|
8686
|
+
function rename(from, to, cb) {
|
|
8687
|
+
var start = Date.now();
|
|
8688
|
+
var backoff = 0;
|
|
8689
|
+
fs$rename(from, to, function CB(er) {
|
|
8690
|
+
if (er && (er.code === "EACCES" || er.code === "EPERM") && Date.now() - start < 60000) {
|
|
8691
|
+
setTimeout(function () {
|
|
8692
|
+
fs.stat(to, function (stater, st) {
|
|
8693
|
+
if (stater && stater.code === "ENOENT") fs$rename(from, to, CB);else cb(er);
|
|
8694
|
+
});
|
|
8695
|
+
}, backoff);
|
|
8696
|
+
if (backoff < 100) backoff += 10;
|
|
8697
|
+
return;
|
|
8698
|
+
}
|
|
8699
|
+
if (cb) cb(er);
|
|
8700
|
+
});
|
|
8701
|
+
}
|
|
8702
|
+
if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
|
|
8703
|
+
return rename;
|
|
8704
|
+
}(fs.rename);
|
|
8705
|
+
}
|
|
8706
|
+
|
|
8707
|
+
// if read() returns EAGAIN, then just try it again.
|
|
8708
|
+
fs.read = typeof fs.read !== 'function' ? fs.read : function (fs$read) {
|
|
8709
|
+
function read(fd, buffer, offset, length, position, callback_) {
|
|
8710
|
+
var callback;
|
|
8711
|
+
if (callback_ && typeof callback_ === 'function') {
|
|
8712
|
+
var eagCounter = 0;
|
|
8713
|
+
callback = function (er, _, __) {
|
|
8714
|
+
if (er && er.code === 'EAGAIN' && eagCounter < 10) {
|
|
8715
|
+
eagCounter++;
|
|
8716
|
+
return fs$read.call(fs, fd, buffer, offset, length, position, callback);
|
|
8717
|
+
}
|
|
8718
|
+
callback_.apply(this, arguments);
|
|
8719
|
+
};
|
|
8720
|
+
}
|
|
8721
|
+
return fs$read.call(fs, fd, buffer, offset, length, position, callback);
|
|
8722
|
+
}
|
|
8723
|
+
|
|
8724
|
+
// This ensures `util.promisify` works as it does for native `fs.read`.
|
|
8725
|
+
if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
|
|
8726
|
+
return read;
|
|
8727
|
+
}(fs.read);
|
|
8728
|
+
fs.readSync = typeof fs.readSync !== 'function' ? fs.readSync : function (fs$readSync) {
|
|
8729
|
+
return function (fd, buffer, offset, length, position) {
|
|
8730
|
+
var eagCounter = 0;
|
|
8731
|
+
while (true) {
|
|
8732
|
+
try {
|
|
8733
|
+
return fs$readSync.call(fs, fd, buffer, offset, length, position);
|
|
8734
|
+
} catch (er) {
|
|
8735
|
+
if (er.code === 'EAGAIN' && eagCounter < 10) {
|
|
8736
|
+
eagCounter++;
|
|
8737
|
+
continue;
|
|
8738
|
+
}
|
|
8739
|
+
throw er;
|
|
8740
|
+
}
|
|
8741
|
+
}
|
|
8742
|
+
};
|
|
8743
|
+
}(fs.readSync);
|
|
8744
|
+
function patchLchmod(fs) {
|
|
8745
|
+
fs.lchmod = function (path, mode, callback) {
|
|
8746
|
+
fs.open(path, constants.O_WRONLY | constants.O_SYMLINK, mode, function (err, fd) {
|
|
8747
|
+
if (err) {
|
|
8748
|
+
if (callback) callback(err);
|
|
8749
|
+
return;
|
|
8750
|
+
}
|
|
8751
|
+
// prefer to return the chmod error, if one occurs,
|
|
8752
|
+
// but still try to close, and report closing errors if they occur.
|
|
8753
|
+
fs.fchmod(fd, mode, function (err) {
|
|
8754
|
+
fs.close(fd, function (err2) {
|
|
8755
|
+
if (callback) callback(err || err2);
|
|
8756
|
+
});
|
|
8757
|
+
});
|
|
8758
|
+
});
|
|
8759
|
+
};
|
|
8760
|
+
fs.lchmodSync = function (path, mode) {
|
|
8761
|
+
var fd = fs.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
8762
|
+
|
|
8763
|
+
// prefer to return the chmod error, if one occurs,
|
|
8764
|
+
// but still try to close, and report closing errors if they occur.
|
|
8765
|
+
var threw = true;
|
|
8766
|
+
var ret;
|
|
8767
|
+
try {
|
|
8768
|
+
ret = fs.fchmodSync(fd, mode);
|
|
8769
|
+
threw = false;
|
|
8770
|
+
} finally {
|
|
8771
|
+
if (threw) {
|
|
8772
|
+
try {
|
|
8773
|
+
fs.closeSync(fd);
|
|
8774
|
+
} catch (er) {}
|
|
8775
|
+
} else {
|
|
8776
|
+
fs.closeSync(fd);
|
|
8777
|
+
}
|
|
8778
|
+
}
|
|
8779
|
+
return ret;
|
|
8780
|
+
};
|
|
8781
|
+
}
|
|
8782
|
+
function patchLutimes(fs) {
|
|
8783
|
+
if (constants.hasOwnProperty("O_SYMLINK") && fs.futimes) {
|
|
8784
|
+
fs.lutimes = function (path, at, mt, cb) {
|
|
8785
|
+
fs.open(path, constants.O_SYMLINK, function (er, fd) {
|
|
8786
|
+
if (er) {
|
|
8787
|
+
if (cb) cb(er);
|
|
8788
|
+
return;
|
|
8789
|
+
}
|
|
8790
|
+
fs.futimes(fd, at, mt, function (er) {
|
|
8791
|
+
fs.close(fd, function (er2) {
|
|
8792
|
+
if (cb) cb(er || er2);
|
|
8793
|
+
});
|
|
8794
|
+
});
|
|
8795
|
+
});
|
|
8796
|
+
};
|
|
8797
|
+
fs.lutimesSync = function (path, at, mt) {
|
|
8798
|
+
var fd = fs.openSync(path, constants.O_SYMLINK);
|
|
8799
|
+
var ret;
|
|
8800
|
+
var threw = true;
|
|
8801
|
+
try {
|
|
8802
|
+
ret = fs.futimesSync(fd, at, mt);
|
|
8803
|
+
threw = false;
|
|
8804
|
+
} finally {
|
|
8805
|
+
if (threw) {
|
|
8806
|
+
try {
|
|
8807
|
+
fs.closeSync(fd);
|
|
8808
|
+
} catch (er) {}
|
|
8809
|
+
} else {
|
|
8810
|
+
fs.closeSync(fd);
|
|
8811
|
+
}
|
|
8812
|
+
}
|
|
8813
|
+
return ret;
|
|
8814
|
+
};
|
|
8815
|
+
} else if (fs.futimes) {
|
|
8816
|
+
fs.lutimes = function (_a, _b, _c, cb) {
|
|
8817
|
+
if (cb) process.nextTick(cb);
|
|
8818
|
+
};
|
|
8819
|
+
fs.lutimesSync = function () {};
|
|
8820
|
+
}
|
|
8821
|
+
}
|
|
8822
|
+
function chmodFix(orig) {
|
|
8823
|
+
if (!orig) return orig;
|
|
8824
|
+
return function (target, mode, cb) {
|
|
8825
|
+
return orig.call(fs, target, mode, function (er) {
|
|
8826
|
+
if (chownErOk(er)) er = null;
|
|
8827
|
+
if (cb) cb.apply(this, arguments);
|
|
8828
|
+
});
|
|
8829
|
+
};
|
|
8830
|
+
}
|
|
8831
|
+
function chmodFixSync(orig) {
|
|
8832
|
+
if (!orig) return orig;
|
|
8833
|
+
return function (target, mode) {
|
|
8834
|
+
try {
|
|
8835
|
+
return orig.call(fs, target, mode);
|
|
8836
|
+
} catch (er) {
|
|
8837
|
+
if (!chownErOk(er)) throw er;
|
|
8838
|
+
}
|
|
8839
|
+
};
|
|
8840
|
+
}
|
|
8841
|
+
function chownFix(orig) {
|
|
8842
|
+
if (!orig) return orig;
|
|
8843
|
+
return function (target, uid, gid, cb) {
|
|
8844
|
+
return orig.call(fs, target, uid, gid, function (er) {
|
|
8845
|
+
if (chownErOk(er)) er = null;
|
|
8846
|
+
if (cb) cb.apply(this, arguments);
|
|
8847
|
+
});
|
|
8848
|
+
};
|
|
8849
|
+
}
|
|
8850
|
+
function chownFixSync(orig) {
|
|
8851
|
+
if (!orig) return orig;
|
|
8852
|
+
return function (target, uid, gid) {
|
|
8853
|
+
try {
|
|
8854
|
+
return orig.call(fs, target, uid, gid);
|
|
8855
|
+
} catch (er) {
|
|
8856
|
+
if (!chownErOk(er)) throw er;
|
|
8857
|
+
}
|
|
8858
|
+
};
|
|
8859
|
+
}
|
|
8860
|
+
function statFix(orig) {
|
|
8861
|
+
if (!orig) return orig;
|
|
8862
|
+
// Older versions of Node erroneously returned signed integers for
|
|
8863
|
+
// uid + gid.
|
|
8864
|
+
return function (target, options, cb) {
|
|
8865
|
+
if (typeof options === 'function') {
|
|
8866
|
+
cb = options;
|
|
8867
|
+
options = null;
|
|
8868
|
+
}
|
|
8869
|
+
function callback(er, stats) {
|
|
8870
|
+
if (stats) {
|
|
8871
|
+
if (stats.uid < 0) stats.uid += 0x100000000;
|
|
8872
|
+
if (stats.gid < 0) stats.gid += 0x100000000;
|
|
8873
|
+
}
|
|
8874
|
+
if (cb) cb.apply(this, arguments);
|
|
8875
|
+
}
|
|
8876
|
+
return options ? orig.call(fs, target, options, callback) : orig.call(fs, target, callback);
|
|
8877
|
+
};
|
|
8878
|
+
}
|
|
8879
|
+
function statFixSync(orig) {
|
|
8880
|
+
if (!orig) return orig;
|
|
8881
|
+
// Older versions of Node erroneously returned signed integers for
|
|
8882
|
+
// uid + gid.
|
|
8883
|
+
return function (target, options) {
|
|
8884
|
+
var stats = options ? orig.call(fs, target, options) : orig.call(fs, target);
|
|
8885
|
+
if (stats) {
|
|
8886
|
+
if (stats.uid < 0) stats.uid += 0x100000000;
|
|
8887
|
+
if (stats.gid < 0) stats.gid += 0x100000000;
|
|
8888
|
+
}
|
|
8889
|
+
return stats;
|
|
8890
|
+
};
|
|
8891
|
+
}
|
|
8892
|
+
|
|
8893
|
+
// ENOSYS means that the fs doesn't support the op. Just ignore
|
|
8894
|
+
// that, because it doesn't matter.
|
|
8895
|
+
//
|
|
8896
|
+
// if there's no getuid, or if getuid() is something other
|
|
8897
|
+
// than 0, and the error is EINVAL or EPERM, then just ignore
|
|
8898
|
+
// it.
|
|
8899
|
+
//
|
|
8900
|
+
// This specific case is a silent failure in cp, install, tar,
|
|
8901
|
+
// and most other unix tools that manage permissions.
|
|
8902
|
+
//
|
|
8903
|
+
// When running as root, or if other types of errors are
|
|
8904
|
+
// encountered, then it's strict.
|
|
8905
|
+
function chownErOk(er) {
|
|
8906
|
+
if (!er) return true;
|
|
8907
|
+
if (er.code === "ENOSYS") return true;
|
|
8908
|
+
var nonroot = !process.getuid || process.getuid() !== 0;
|
|
8909
|
+
if (nonroot) {
|
|
8910
|
+
if (er.code === "EINVAL" || er.code === "EPERM") return true;
|
|
8911
|
+
}
|
|
8912
|
+
return false;
|
|
8913
|
+
}
|
|
8914
|
+
}
|
|
8915
|
+
return polyfills;
|
|
8916
|
+
}
|
|
8917
|
+
|
|
8918
|
+
var legacyStreams;
|
|
8919
|
+
var hasRequiredLegacyStreams;
|
|
8920
|
+
function requireLegacyStreams() {
|
|
8921
|
+
if (hasRequiredLegacyStreams) return legacyStreams;
|
|
8922
|
+
hasRequiredLegacyStreams = 1;
|
|
8923
|
+
var Stream = require$$1$7.Stream;
|
|
8924
|
+
legacyStreams = legacy;
|
|
8925
|
+
function legacy(fs) {
|
|
8926
|
+
return {
|
|
8927
|
+
ReadStream: ReadStream,
|
|
8928
|
+
WriteStream: WriteStream
|
|
8929
|
+
};
|
|
8930
|
+
function ReadStream(path, options) {
|
|
8931
|
+
if (!(this instanceof ReadStream)) return new ReadStream(path, options);
|
|
8932
|
+
Stream.call(this);
|
|
8933
|
+
var self = this;
|
|
8934
|
+
this.path = path;
|
|
8935
|
+
this.fd = null;
|
|
8936
|
+
this.readable = true;
|
|
8937
|
+
this.paused = false;
|
|
8938
|
+
this.flags = 'r';
|
|
8939
|
+
this.mode = 438; /*=0666*/
|
|
8940
|
+
this.bufferSize = 64 * 1024;
|
|
8941
|
+
options = options || {};
|
|
8942
|
+
|
|
8943
|
+
// Mixin options into this
|
|
8944
|
+
var keys = Object.keys(options);
|
|
8945
|
+
for (var index = 0, length = keys.length; index < length; index++) {
|
|
8946
|
+
var key = keys[index];
|
|
8947
|
+
this[key] = options[key];
|
|
8948
|
+
}
|
|
8949
|
+
if (this.encoding) this.setEncoding(this.encoding);
|
|
8950
|
+
if (this.start !== undefined) {
|
|
8951
|
+
if ('number' !== typeof this.start) {
|
|
8952
|
+
throw TypeError('start must be a Number');
|
|
8953
|
+
}
|
|
8954
|
+
if (this.end === undefined) {
|
|
8955
|
+
this.end = Infinity;
|
|
8956
|
+
} else if ('number' !== typeof this.end) {
|
|
8957
|
+
throw TypeError('end must be a Number');
|
|
8958
|
+
}
|
|
8959
|
+
if (this.start > this.end) {
|
|
8960
|
+
throw new Error('start must be <= end');
|
|
8961
|
+
}
|
|
8962
|
+
this.pos = this.start;
|
|
8963
|
+
}
|
|
8964
|
+
if (this.fd !== null) {
|
|
8965
|
+
process.nextTick(function () {
|
|
8966
|
+
self._read();
|
|
8967
|
+
});
|
|
8968
|
+
return;
|
|
8969
|
+
}
|
|
8970
|
+
fs.open(this.path, this.flags, this.mode, function (err, fd) {
|
|
8971
|
+
if (err) {
|
|
8972
|
+
self.emit('error', err);
|
|
8973
|
+
self.readable = false;
|
|
8974
|
+
return;
|
|
8975
|
+
}
|
|
8976
|
+
self.fd = fd;
|
|
8977
|
+
self.emit('open', fd);
|
|
8978
|
+
self._read();
|
|
8979
|
+
});
|
|
8980
|
+
}
|
|
8981
|
+
function WriteStream(path, options) {
|
|
8982
|
+
if (!(this instanceof WriteStream)) return new WriteStream(path, options);
|
|
8983
|
+
Stream.call(this);
|
|
8984
|
+
this.path = path;
|
|
8985
|
+
this.fd = null;
|
|
8986
|
+
this.writable = true;
|
|
8987
|
+
this.flags = 'w';
|
|
8988
|
+
this.encoding = 'binary';
|
|
8989
|
+
this.mode = 438; /*=0666*/
|
|
8990
|
+
this.bytesWritten = 0;
|
|
8991
|
+
options = options || {};
|
|
8992
|
+
|
|
8993
|
+
// Mixin options into this
|
|
8994
|
+
var keys = Object.keys(options);
|
|
8995
|
+
for (var index = 0, length = keys.length; index < length; index++) {
|
|
8996
|
+
var key = keys[index];
|
|
8997
|
+
this[key] = options[key];
|
|
8998
|
+
}
|
|
8999
|
+
if (this.start !== undefined) {
|
|
9000
|
+
if ('number' !== typeof this.start) {
|
|
9001
|
+
throw TypeError('start must be a Number');
|
|
9002
|
+
}
|
|
9003
|
+
if (this.start < 0) {
|
|
9004
|
+
throw new Error('start must be >= zero');
|
|
9005
|
+
}
|
|
9006
|
+
this.pos = this.start;
|
|
9007
|
+
}
|
|
9008
|
+
this.busy = false;
|
|
9009
|
+
this._queue = [];
|
|
9010
|
+
if (this.fd === null) {
|
|
9011
|
+
this._open = fs.open;
|
|
9012
|
+
this._queue.push([this._open, this.path, this.flags, this.mode, undefined]);
|
|
9013
|
+
this.flush();
|
|
9014
|
+
}
|
|
9015
|
+
}
|
|
9016
|
+
}
|
|
9017
|
+
return legacyStreams;
|
|
9018
|
+
}
|
|
9019
|
+
|
|
9020
|
+
var clone_1$1;
|
|
9021
|
+
var hasRequiredClone$1;
|
|
9022
|
+
function requireClone$1() {
|
|
9023
|
+
if (hasRequiredClone$1) return clone_1$1;
|
|
9024
|
+
hasRequiredClone$1 = 1;
|
|
9025
|
+
clone_1$1 = clone;
|
|
9026
|
+
var getPrototypeOf = Object.getPrototypeOf || function (obj) {
|
|
9027
|
+
return obj.__proto__;
|
|
9028
|
+
};
|
|
9029
|
+
function clone(obj) {
|
|
9030
|
+
if (obj === null || typeof obj !== 'object') return obj;
|
|
9031
|
+
if (obj instanceof Object) var copy = {
|
|
9032
|
+
__proto__: getPrototypeOf(obj)
|
|
9033
|
+
};else var copy = Object.create(null);
|
|
9034
|
+
Object.getOwnPropertyNames(obj).forEach(function (key) {
|
|
9035
|
+
Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key));
|
|
9036
|
+
});
|
|
9037
|
+
return copy;
|
|
9038
|
+
}
|
|
9039
|
+
return clone_1$1;
|
|
9040
|
+
}
|
|
9041
|
+
|
|
9042
|
+
var gracefulFs;
|
|
9043
|
+
var hasRequiredGracefulFs;
|
|
9044
|
+
function requireGracefulFs() {
|
|
9045
|
+
if (hasRequiredGracefulFs) return gracefulFs;
|
|
9046
|
+
hasRequiredGracefulFs = 1;
|
|
9047
|
+
var fs = require$$0$9;
|
|
9048
|
+
var polyfills = requirePolyfills();
|
|
9049
|
+
var legacy = requireLegacyStreams();
|
|
9050
|
+
var clone = requireClone$1();
|
|
9051
|
+
var util = require$$0$8;
|
|
9052
|
+
|
|
9053
|
+
/* istanbul ignore next - node 0.x polyfill */
|
|
9054
|
+
var gracefulQueue;
|
|
9055
|
+
var previousSymbol;
|
|
9056
|
+
|
|
9057
|
+
/* istanbul ignore else - node 0.x polyfill */
|
|
9058
|
+
if (typeof Symbol === 'function' && typeof Symbol.for === 'function') {
|
|
9059
|
+
gracefulQueue = Symbol.for('graceful-fs.queue');
|
|
9060
|
+
// This is used in testing by future versions
|
|
9061
|
+
previousSymbol = Symbol.for('graceful-fs.previous');
|
|
9062
|
+
} else {
|
|
9063
|
+
gracefulQueue = '___graceful-fs.queue';
|
|
9064
|
+
previousSymbol = '___graceful-fs.previous';
|
|
9065
|
+
}
|
|
9066
|
+
function noop() {}
|
|
9067
|
+
function publishQueue(context, queue) {
|
|
9068
|
+
Object.defineProperty(context, gracefulQueue, {
|
|
9069
|
+
get: function () {
|
|
9070
|
+
return queue;
|
|
9071
|
+
}
|
|
9072
|
+
});
|
|
9073
|
+
}
|
|
9074
|
+
var debug = noop;
|
|
9075
|
+
if (util.debuglog) debug = util.debuglog('gfs4');else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) debug = function () {
|
|
9076
|
+
var m = util.format.apply(util, arguments);
|
|
9077
|
+
m = 'GFS4: ' + m.split(/\n/).join('\nGFS4: ');
|
|
9078
|
+
console.error(m);
|
|
9079
|
+
};
|
|
9080
|
+
|
|
9081
|
+
// Once time initialization
|
|
9082
|
+
if (!fs[gracefulQueue]) {
|
|
9083
|
+
// This queue can be shared by multiple loaded instances
|
|
9084
|
+
var queue = global[gracefulQueue] || [];
|
|
9085
|
+
publishQueue(fs, queue);
|
|
9086
|
+
|
|
9087
|
+
// Patch fs.close/closeSync to shared queue version, because we need
|
|
9088
|
+
// to retry() whenever a close happens *anywhere* in the program.
|
|
9089
|
+
// This is essential when multiple graceful-fs instances are
|
|
9090
|
+
// in play at the same time.
|
|
9091
|
+
fs.close = function (fs$close) {
|
|
9092
|
+
function close(fd, cb) {
|
|
9093
|
+
return fs$close.call(fs, fd, function (err) {
|
|
9094
|
+
// This function uses the graceful-fs shared queue
|
|
9095
|
+
if (!err) {
|
|
9096
|
+
resetQueue();
|
|
9097
|
+
}
|
|
9098
|
+
if (typeof cb === 'function') cb.apply(this, arguments);
|
|
9099
|
+
});
|
|
9100
|
+
}
|
|
9101
|
+
Object.defineProperty(close, previousSymbol, {
|
|
9102
|
+
value: fs$close
|
|
9103
|
+
});
|
|
9104
|
+
return close;
|
|
9105
|
+
}(fs.close);
|
|
9106
|
+
fs.closeSync = function (fs$closeSync) {
|
|
9107
|
+
function closeSync(fd) {
|
|
9108
|
+
// This function uses the graceful-fs shared queue
|
|
9109
|
+
fs$closeSync.apply(fs, arguments);
|
|
9110
|
+
resetQueue();
|
|
9111
|
+
}
|
|
9112
|
+
Object.defineProperty(closeSync, previousSymbol, {
|
|
9113
|
+
value: fs$closeSync
|
|
9114
|
+
});
|
|
9115
|
+
return closeSync;
|
|
9116
|
+
}(fs.closeSync);
|
|
9117
|
+
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) {
|
|
9118
|
+
process.on('exit', function () {
|
|
9119
|
+
debug(fs[gracefulQueue]);
|
|
9120
|
+
require$$0$a.equal(fs[gracefulQueue].length, 0);
|
|
9121
|
+
});
|
|
9122
|
+
}
|
|
9123
|
+
}
|
|
9124
|
+
if (!global[gracefulQueue]) {
|
|
9125
|
+
publishQueue(global, fs[gracefulQueue]);
|
|
9126
|
+
}
|
|
9127
|
+
gracefulFs = patch(clone(fs));
|
|
9128
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs.__patched) {
|
|
9129
|
+
gracefulFs = patch(fs);
|
|
9130
|
+
fs.__patched = true;
|
|
9131
|
+
}
|
|
9132
|
+
function patch(fs) {
|
|
9133
|
+
// Everything that references the open() function needs to be in here
|
|
9134
|
+
polyfills(fs);
|
|
9135
|
+
fs.gracefulify = patch;
|
|
9136
|
+
fs.createReadStream = createReadStream;
|
|
9137
|
+
fs.createWriteStream = createWriteStream;
|
|
9138
|
+
var fs$readFile = fs.readFile;
|
|
9139
|
+
fs.readFile = readFile;
|
|
9140
|
+
function readFile(path, options, cb) {
|
|
9141
|
+
if (typeof options === 'function') cb = options, options = null;
|
|
9142
|
+
return go$readFile(path, options, cb);
|
|
9143
|
+
function go$readFile(path, options, cb, startTime) {
|
|
9144
|
+
return fs$readFile(path, options, function (err) {
|
|
9145
|
+
if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) enqueue([go$readFile, [path, options, cb], err, startTime || Date.now(), Date.now()]);else {
|
|
9146
|
+
if (typeof cb === 'function') cb.apply(this, arguments);
|
|
9147
|
+
}
|
|
9148
|
+
});
|
|
9149
|
+
}
|
|
9150
|
+
}
|
|
9151
|
+
var fs$writeFile = fs.writeFile;
|
|
9152
|
+
fs.writeFile = writeFile;
|
|
9153
|
+
function writeFile(path, data, options, cb) {
|
|
9154
|
+
if (typeof options === 'function') cb = options, options = null;
|
|
9155
|
+
return go$writeFile(path, data, options, cb);
|
|
9156
|
+
function go$writeFile(path, data, options, cb, startTime) {
|
|
9157
|
+
return fs$writeFile(path, data, options, function (err) {
|
|
9158
|
+
if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) enqueue([go$writeFile, [path, data, options, cb], err, startTime || Date.now(), Date.now()]);else {
|
|
9159
|
+
if (typeof cb === 'function') cb.apply(this, arguments);
|
|
9160
|
+
}
|
|
9161
|
+
});
|
|
9162
|
+
}
|
|
9163
|
+
}
|
|
9164
|
+
var fs$appendFile = fs.appendFile;
|
|
9165
|
+
if (fs$appendFile) fs.appendFile = appendFile;
|
|
9166
|
+
function appendFile(path, data, options, cb) {
|
|
9167
|
+
if (typeof options === 'function') cb = options, options = null;
|
|
9168
|
+
return go$appendFile(path, data, options, cb);
|
|
9169
|
+
function go$appendFile(path, data, options, cb, startTime) {
|
|
9170
|
+
return fs$appendFile(path, data, options, function (err) {
|
|
9171
|
+
if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) enqueue([go$appendFile, [path, data, options, cb], err, startTime || Date.now(), Date.now()]);else {
|
|
9172
|
+
if (typeof cb === 'function') cb.apply(this, arguments);
|
|
9173
|
+
}
|
|
9174
|
+
});
|
|
9175
|
+
}
|
|
9176
|
+
}
|
|
9177
|
+
var fs$copyFile = fs.copyFile;
|
|
9178
|
+
if (fs$copyFile) fs.copyFile = copyFile;
|
|
9179
|
+
function copyFile(src, dest, flags, cb) {
|
|
9180
|
+
if (typeof flags === 'function') {
|
|
9181
|
+
cb = flags;
|
|
9182
|
+
flags = 0;
|
|
9183
|
+
}
|
|
9184
|
+
return go$copyFile(src, dest, flags, cb);
|
|
9185
|
+
function go$copyFile(src, dest, flags, cb, startTime) {
|
|
9186
|
+
return fs$copyFile(src, dest, flags, function (err) {
|
|
9187
|
+
if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) enqueue([go$copyFile, [src, dest, flags, cb], err, startTime || Date.now(), Date.now()]);else {
|
|
9188
|
+
if (typeof cb === 'function') cb.apply(this, arguments);
|
|
9189
|
+
}
|
|
9190
|
+
});
|
|
9191
|
+
}
|
|
9192
|
+
}
|
|
9193
|
+
var fs$readdir = fs.readdir;
|
|
9194
|
+
fs.readdir = readdir;
|
|
9195
|
+
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
9196
|
+
function readdir(path, options, cb) {
|
|
9197
|
+
if (typeof options === 'function') cb = options, options = null;
|
|
9198
|
+
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir(path, options, cb, startTime) {
|
|
9199
|
+
return fs$readdir(path, fs$readdirCallback(path, options, cb, startTime));
|
|
9200
|
+
} : function go$readdir(path, options, cb, startTime) {
|
|
9201
|
+
return fs$readdir(path, options, fs$readdirCallback(path, options, cb, startTime));
|
|
9202
|
+
};
|
|
9203
|
+
return go$readdir(path, options, cb);
|
|
9204
|
+
function fs$readdirCallback(path, options, cb, startTime) {
|
|
9205
|
+
return function (err, files) {
|
|
9206
|
+
if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) enqueue([go$readdir, [path, options, cb], err, startTime || Date.now(), Date.now()]);else {
|
|
9207
|
+
if (files && files.sort) files.sort();
|
|
9208
|
+
if (typeof cb === 'function') cb.call(this, err, files);
|
|
9209
|
+
}
|
|
9210
|
+
};
|
|
9211
|
+
}
|
|
9212
|
+
}
|
|
9213
|
+
if (process.version.substr(0, 4) === 'v0.8') {
|
|
9214
|
+
var legStreams = legacy(fs);
|
|
9215
|
+
ReadStream = legStreams.ReadStream;
|
|
9216
|
+
WriteStream = legStreams.WriteStream;
|
|
9217
|
+
}
|
|
9218
|
+
var fs$ReadStream = fs.ReadStream;
|
|
9219
|
+
if (fs$ReadStream) {
|
|
9220
|
+
ReadStream.prototype = Object.create(fs$ReadStream.prototype);
|
|
9221
|
+
ReadStream.prototype.open = ReadStream$open;
|
|
9222
|
+
}
|
|
9223
|
+
var fs$WriteStream = fs.WriteStream;
|
|
9224
|
+
if (fs$WriteStream) {
|
|
9225
|
+
WriteStream.prototype = Object.create(fs$WriteStream.prototype);
|
|
9226
|
+
WriteStream.prototype.open = WriteStream$open;
|
|
9227
|
+
}
|
|
9228
|
+
Object.defineProperty(fs, 'ReadStream', {
|
|
9229
|
+
get: function () {
|
|
9230
|
+
return ReadStream;
|
|
9231
|
+
},
|
|
9232
|
+
set: function (val) {
|
|
9233
|
+
ReadStream = val;
|
|
9234
|
+
},
|
|
9235
|
+
enumerable: true,
|
|
9236
|
+
configurable: true
|
|
9237
|
+
});
|
|
9238
|
+
Object.defineProperty(fs, 'WriteStream', {
|
|
9239
|
+
get: function () {
|
|
9240
|
+
return WriteStream;
|
|
9241
|
+
},
|
|
9242
|
+
set: function (val) {
|
|
9243
|
+
WriteStream = val;
|
|
9244
|
+
},
|
|
9245
|
+
enumerable: true,
|
|
9246
|
+
configurable: true
|
|
9247
|
+
});
|
|
9248
|
+
|
|
9249
|
+
// legacy names
|
|
9250
|
+
var FileReadStream = ReadStream;
|
|
9251
|
+
Object.defineProperty(fs, 'FileReadStream', {
|
|
9252
|
+
get: function () {
|
|
9253
|
+
return FileReadStream;
|
|
9254
|
+
},
|
|
9255
|
+
set: function (val) {
|
|
9256
|
+
FileReadStream = val;
|
|
9257
|
+
},
|
|
9258
|
+
enumerable: true,
|
|
9259
|
+
configurable: true
|
|
9260
|
+
});
|
|
9261
|
+
var FileWriteStream = WriteStream;
|
|
9262
|
+
Object.defineProperty(fs, 'FileWriteStream', {
|
|
9263
|
+
get: function () {
|
|
9264
|
+
return FileWriteStream;
|
|
9265
|
+
},
|
|
9266
|
+
set: function (val) {
|
|
9267
|
+
FileWriteStream = val;
|
|
9268
|
+
},
|
|
9269
|
+
enumerable: true,
|
|
9270
|
+
configurable: true
|
|
9271
|
+
});
|
|
9272
|
+
function ReadStream(path, options) {
|
|
9273
|
+
if (this instanceof ReadStream) return fs$ReadStream.apply(this, arguments), this;else return ReadStream.apply(Object.create(ReadStream.prototype), arguments);
|
|
9274
|
+
}
|
|
9275
|
+
function ReadStream$open() {
|
|
9276
|
+
var that = this;
|
|
9277
|
+
open(that.path, that.flags, that.mode, function (err, fd) {
|
|
9278
|
+
if (err) {
|
|
9279
|
+
if (that.autoClose) that.destroy();
|
|
9280
|
+
that.emit('error', err);
|
|
9281
|
+
} else {
|
|
9282
|
+
that.fd = fd;
|
|
9283
|
+
that.emit('open', fd);
|
|
9284
|
+
that.read();
|
|
9285
|
+
}
|
|
9286
|
+
});
|
|
9287
|
+
}
|
|
9288
|
+
function WriteStream(path, options) {
|
|
9289
|
+
if (this instanceof WriteStream) return fs$WriteStream.apply(this, arguments), this;else return WriteStream.apply(Object.create(WriteStream.prototype), arguments);
|
|
9290
|
+
}
|
|
9291
|
+
function WriteStream$open() {
|
|
9292
|
+
var that = this;
|
|
9293
|
+
open(that.path, that.flags, that.mode, function (err, fd) {
|
|
9294
|
+
if (err) {
|
|
9295
|
+
that.destroy();
|
|
9296
|
+
that.emit('error', err);
|
|
9297
|
+
} else {
|
|
9298
|
+
that.fd = fd;
|
|
9299
|
+
that.emit('open', fd);
|
|
9300
|
+
}
|
|
9301
|
+
});
|
|
9302
|
+
}
|
|
9303
|
+
function createReadStream(path, options) {
|
|
9304
|
+
return new fs.ReadStream(path, options);
|
|
9305
|
+
}
|
|
9306
|
+
function createWriteStream(path, options) {
|
|
9307
|
+
return new fs.WriteStream(path, options);
|
|
9308
|
+
}
|
|
9309
|
+
var fs$open = fs.open;
|
|
9310
|
+
fs.open = open;
|
|
9311
|
+
function open(path, flags, mode, cb) {
|
|
9312
|
+
if (typeof mode === 'function') cb = mode, mode = null;
|
|
9313
|
+
return go$open(path, flags, mode, cb);
|
|
9314
|
+
function go$open(path, flags, mode, cb, startTime) {
|
|
9315
|
+
return fs$open(path, flags, mode, function (err, fd) {
|
|
9316
|
+
if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) enqueue([go$open, [path, flags, mode, cb], err, startTime || Date.now(), Date.now()]);else {
|
|
9317
|
+
if (typeof cb === 'function') cb.apply(this, arguments);
|
|
9318
|
+
}
|
|
9319
|
+
});
|
|
9320
|
+
}
|
|
9321
|
+
}
|
|
9322
|
+
return fs;
|
|
9323
|
+
}
|
|
9324
|
+
function enqueue(elem) {
|
|
9325
|
+
debug('ENQUEUE', elem[0].name, elem[1]);
|
|
9326
|
+
fs[gracefulQueue].push(elem);
|
|
9327
|
+
retry();
|
|
9328
|
+
}
|
|
9329
|
+
|
|
9330
|
+
// keep track of the timeout between retry() calls
|
|
9331
|
+
var retryTimer;
|
|
9332
|
+
|
|
9333
|
+
// reset the startTime and lastTime to now
|
|
9334
|
+
// this resets the start of the 60 second overall timeout as well as the
|
|
9335
|
+
// delay between attempts so that we'll retry these jobs sooner
|
|
9336
|
+
function resetQueue() {
|
|
9337
|
+
var now = Date.now();
|
|
9338
|
+
for (var i = 0; i < fs[gracefulQueue].length; ++i) {
|
|
9339
|
+
// entries that are only a length of 2 are from an older version, don't
|
|
9340
|
+
// bother modifying those since they'll be retried anyway.
|
|
9341
|
+
if (fs[gracefulQueue][i].length > 2) {
|
|
9342
|
+
fs[gracefulQueue][i][3] = now; // startTime
|
|
9343
|
+
fs[gracefulQueue][i][4] = now; // lastTime
|
|
9344
|
+
}
|
|
9345
|
+
}
|
|
9346
|
+
// call retry to make sure we're actively processing the queue
|
|
9347
|
+
retry();
|
|
9348
|
+
}
|
|
9349
|
+
function retry() {
|
|
9350
|
+
// clear the timer and remove it to help prevent unintended concurrency
|
|
9351
|
+
clearTimeout(retryTimer);
|
|
9352
|
+
retryTimer = undefined;
|
|
9353
|
+
if (fs[gracefulQueue].length === 0) return;
|
|
9354
|
+
var elem = fs[gracefulQueue].shift();
|
|
9355
|
+
var fn = elem[0];
|
|
9356
|
+
var args = elem[1];
|
|
9357
|
+
// these items may be unset if they were added by an older graceful-fs
|
|
9358
|
+
var err = elem[2];
|
|
9359
|
+
var startTime = elem[3];
|
|
9360
|
+
var lastTime = elem[4];
|
|
9361
|
+
|
|
9362
|
+
// if we don't have a startTime we have no way of knowing if we've waited
|
|
9363
|
+
// long enough, so go ahead and retry this item now
|
|
9364
|
+
if (startTime === undefined) {
|
|
9365
|
+
debug('RETRY', fn.name, args);
|
|
9366
|
+
fn.apply(null, args);
|
|
9367
|
+
} else if (Date.now() - startTime >= 60000) {
|
|
9368
|
+
// it's been more than 60 seconds total, bail now
|
|
9369
|
+
debug('TIMEOUT', fn.name, args);
|
|
9370
|
+
var cb = args.pop();
|
|
9371
|
+
if (typeof cb === 'function') cb.call(null, err);
|
|
9372
|
+
} else {
|
|
9373
|
+
// the amount of time between the last attempt and right now
|
|
9374
|
+
var sinceAttempt = Date.now() - lastTime;
|
|
9375
|
+
// the amount of time between when we first tried, and when we last tried
|
|
9376
|
+
// rounded up to at least 1
|
|
9377
|
+
var sinceStart = Math.max(lastTime - startTime, 1);
|
|
9378
|
+
// backoff. wait longer than the total time we've been retrying, but only
|
|
9379
|
+
// up to a maximum of 100ms
|
|
9380
|
+
var desiredDelay = Math.min(sinceStart * 1.2, 100);
|
|
9381
|
+
// it's been long enough since the last retry, do it again
|
|
9382
|
+
if (sinceAttempt >= desiredDelay) {
|
|
9383
|
+
debug('RETRY', fn.name, args);
|
|
9384
|
+
fn.apply(null, args.concat([startTime]));
|
|
9385
|
+
} else {
|
|
9386
|
+
// if we can't do this job yet, push it to the end of the queue
|
|
9387
|
+
// and let the next iteration check again
|
|
9388
|
+
fs[gracefulQueue].push(elem);
|
|
9389
|
+
}
|
|
9390
|
+
}
|
|
9391
|
+
|
|
9392
|
+
// schedule our next run if one isn't already scheduled
|
|
9393
|
+
if (retryTimer === undefined) {
|
|
9394
|
+
retryTimer = setTimeout(retry, 0);
|
|
9395
|
+
}
|
|
9396
|
+
}
|
|
9397
|
+
return gracefulFs;
|
|
9398
|
+
}
|
|
9399
|
+
|
|
9400
|
+
var hasRequiredCaFile;
|
|
9401
|
+
function requireCaFile() {
|
|
9402
|
+
if (hasRequiredCaFile) return caFile;
|
|
9403
|
+
hasRequiredCaFile = 1;
|
|
9404
|
+
var __importDefault = this && this.__importDefault || function (mod) {
|
|
9405
|
+
return mod && mod.__esModule ? mod : {
|
|
9406
|
+
"default": mod
|
|
9407
|
+
};
|
|
9408
|
+
};
|
|
9409
|
+
Object.defineProperty(caFile, "__esModule", {
|
|
9410
|
+
value: true
|
|
9411
|
+
});
|
|
9412
|
+
caFile.readCAFileSync = void 0;
|
|
9413
|
+
const graceful_fs_1 = __importDefault(requireGracefulFs());
|
|
9414
|
+
function readCAFileSync(filePath) {
|
|
9415
|
+
try {
|
|
9416
|
+
const contents = graceful_fs_1.default.readFileSync(filePath, 'utf8');
|
|
9417
|
+
const delim = '-----END CERTIFICATE-----';
|
|
9418
|
+
const output = contents.split(delim).filter(ca => Boolean(ca.trim())).map(ca => `${ca.trimLeft()}${delim}`);
|
|
9419
|
+
return output;
|
|
9420
|
+
} catch (err) {
|
|
9421
|
+
if (err.code === 'ENOENT') return undefined;
|
|
9422
|
+
throw err;
|
|
9423
|
+
}
|
|
9424
|
+
}
|
|
9425
|
+
caFile.readCAFileSync = readCAFileSync;
|
|
9426
|
+
return caFile;
|
|
9427
|
+
}
|
|
9428
|
+
|
|
9429
|
+
var hasRequiredDist$j;
|
|
9430
|
+
function requireDist$j() {
|
|
9431
|
+
if (hasRequiredDist$j) return dist$j;
|
|
9432
|
+
hasRequiredDist$j = 1;
|
|
9433
|
+
(function (exports) {
|
|
9434
|
+
|
|
9435
|
+
var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
9436
|
+
if (k2 === undefined) k2 = k;
|
|
9437
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9438
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9439
|
+
desc = {
|
|
9440
|
+
enumerable: true,
|
|
9441
|
+
get: function () {
|
|
9442
|
+
return m[k];
|
|
9443
|
+
}
|
|
9444
|
+
};
|
|
9445
|
+
}
|
|
9446
|
+
Object.defineProperty(o, k2, desc);
|
|
9447
|
+
} : function (o, m, k, k2) {
|
|
9448
|
+
if (k2 === undefined) k2 = k;
|
|
9449
|
+
o[k2] = m[k];
|
|
9450
|
+
});
|
|
9451
|
+
var __exportStar = this && this.__exportStar || function (m, exports) {
|
|
9452
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
9453
|
+
};
|
|
9454
|
+
Object.defineProperty(exports, "__esModule", {
|
|
9455
|
+
value: true
|
|
9456
|
+
});
|
|
9457
|
+
__exportStar(requireCaFile(), exports);
|
|
9458
|
+
})(dist$j);
|
|
9459
|
+
return dist$j;
|
|
9460
|
+
}
|
|
9461
|
+
|
|
9462
|
+
var configChain = {exports: {}};
|
|
9463
|
+
|
|
9464
|
+
var protoList;
|
|
9465
|
+
var hasRequiredProtoList;
|
|
9466
|
+
function requireProtoList() {
|
|
9467
|
+
if (hasRequiredProtoList) return protoList;
|
|
9468
|
+
hasRequiredProtoList = 1;
|
|
9469
|
+
protoList = ProtoList;
|
|
9470
|
+
function setProto(obj, proto) {
|
|
9471
|
+
if (typeof Object.setPrototypeOf === "function") return Object.setPrototypeOf(obj, proto);else Object.setPrototypeOf(obj, proto);
|
|
9472
|
+
}
|
|
9473
|
+
function ProtoList() {
|
|
9474
|
+
this.list = [];
|
|
9475
|
+
var root = null;
|
|
9476
|
+
Object.defineProperty(this, 'root', {
|
|
9477
|
+
get: function () {
|
|
9478
|
+
return root;
|
|
9479
|
+
},
|
|
9480
|
+
set: function (r) {
|
|
9481
|
+
root = r;
|
|
9482
|
+
if (this.list.length) {
|
|
9483
|
+
setProto(this.list[this.list.length - 1], r);
|
|
9484
|
+
}
|
|
9485
|
+
},
|
|
9486
|
+
enumerable: true,
|
|
9487
|
+
configurable: true
|
|
9488
|
+
});
|
|
9489
|
+
}
|
|
9490
|
+
ProtoList.prototype = {
|
|
9491
|
+
get length() {
|
|
9492
|
+
return this.list.length;
|
|
9493
|
+
},
|
|
9494
|
+
get keys() {
|
|
9495
|
+
var k = [];
|
|
9496
|
+
for (var i in this.list[0]) k.push(i);
|
|
9497
|
+
return k;
|
|
9498
|
+
},
|
|
9499
|
+
get snapshot() {
|
|
9500
|
+
var o = {};
|
|
9501
|
+
this.keys.forEach(function (k) {
|
|
9502
|
+
o[k] = this.get(k);
|
|
9503
|
+
}, this);
|
|
9504
|
+
return o;
|
|
9505
|
+
},
|
|
9506
|
+
get store() {
|
|
9507
|
+
return this.list[0];
|
|
9508
|
+
},
|
|
9509
|
+
push: function (obj) {
|
|
9510
|
+
if (typeof obj !== "object") obj = {
|
|
9511
|
+
valueOf: obj
|
|
9512
|
+
};
|
|
9513
|
+
if (this.list.length >= 1) {
|
|
9514
|
+
setProto(this.list[this.list.length - 1], obj);
|
|
9515
|
+
}
|
|
9516
|
+
setProto(obj, this.root);
|
|
9517
|
+
return this.list.push(obj);
|
|
9518
|
+
},
|
|
9519
|
+
pop: function () {
|
|
9520
|
+
if (this.list.length >= 2) {
|
|
9521
|
+
setProto(this.list[this.list.length - 2], this.root);
|
|
9522
|
+
}
|
|
9523
|
+
return this.list.pop();
|
|
9524
|
+
},
|
|
9525
|
+
unshift: function (obj) {
|
|
9526
|
+
setProto(obj, this.list[0] || this.root);
|
|
9527
|
+
return this.list.unshift(obj);
|
|
9528
|
+
},
|
|
9529
|
+
shift: function () {
|
|
9530
|
+
if (this.list.length === 1) {
|
|
9531
|
+
setProto(this.list[0], this.root);
|
|
9532
|
+
}
|
|
9533
|
+
return this.list.shift();
|
|
9534
|
+
},
|
|
9535
|
+
get: function (key) {
|
|
9536
|
+
return this.list[0][key];
|
|
9537
|
+
},
|
|
9538
|
+
set: function (key, val, save) {
|
|
9539
|
+
if (!this.length) this.push({});
|
|
9540
|
+
if (save && this.list[0].hasOwnProperty(key)) this.push({});
|
|
9541
|
+
return this.list[0][key] = val;
|
|
9542
|
+
},
|
|
9543
|
+
forEach: function (fn, thisp) {
|
|
9544
|
+
for (var key in this.list[0]) fn.call(thisp, key, this.list[0][key]);
|
|
9545
|
+
},
|
|
9546
|
+
slice: function () {
|
|
9547
|
+
return this.list.slice.apply(this.list, arguments);
|
|
9548
|
+
},
|
|
9549
|
+
splice: function () {
|
|
9550
|
+
// handle injections
|
|
9551
|
+
var ret = this.list.splice.apply(this.list, arguments);
|
|
9552
|
+
for (var i = 0, l = this.list.length; i < l; i++) {
|
|
9553
|
+
setProto(this.list[i], this.list[i + 1] || this.root);
|
|
9554
|
+
}
|
|
9555
|
+
return ret;
|
|
9556
|
+
}
|
|
9557
|
+
};
|
|
9558
|
+
return protoList;
|
|
9559
|
+
}
|
|
9560
|
+
|
|
9561
|
+
var ini$1 = {};
|
|
9562
|
+
|
|
9563
|
+
var hasRequiredIni$1;
|
|
9564
|
+
function requireIni$1() {
|
|
9565
|
+
if (hasRequiredIni$1) return ini$1;
|
|
9566
|
+
hasRequiredIni$1 = 1;
|
|
9567
|
+
ini$1.parse = ini$1.decode = decode;
|
|
9568
|
+
ini$1.stringify = ini$1.encode = encode;
|
|
9569
|
+
ini$1.safe = safe;
|
|
9570
|
+
ini$1.unsafe = unsafe;
|
|
9571
|
+
var eol = typeof process !== 'undefined' && process.platform === 'win32' ? '\r\n' : '\n';
|
|
9572
|
+
function encode(obj, opt) {
|
|
9573
|
+
var children = [];
|
|
9574
|
+
var out = '';
|
|
9575
|
+
if (typeof opt === 'string') {
|
|
9576
|
+
opt = {
|
|
9577
|
+
section: opt,
|
|
9578
|
+
whitespace: false
|
|
9579
|
+
};
|
|
9580
|
+
} else {
|
|
9581
|
+
opt = opt || {};
|
|
9582
|
+
opt.whitespace = opt.whitespace === true;
|
|
9583
|
+
}
|
|
9584
|
+
var separator = opt.whitespace ? ' = ' : '=';
|
|
9585
|
+
Object.keys(obj).forEach(function (k, _, __) {
|
|
9586
|
+
var val = obj[k];
|
|
9587
|
+
if (val && Array.isArray(val)) {
|
|
9588
|
+
val.forEach(function (item) {
|
|
9589
|
+
out += safe(k + '[]') + separator + safe(item) + '\n';
|
|
9590
|
+
});
|
|
9591
|
+
} else if (val && typeof val === 'object') children.push(k);else out += safe(k) + separator + safe(val) + eol;
|
|
9592
|
+
});
|
|
9593
|
+
if (opt.section && out.length) out = '[' + safe(opt.section) + ']' + eol + out;
|
|
9594
|
+
children.forEach(function (k, _, __) {
|
|
9595
|
+
var nk = dotSplit(k).join('\\.');
|
|
9596
|
+
var section = (opt.section ? opt.section + '.' : '') + nk;
|
|
9597
|
+
var child = encode(obj[k], {
|
|
9598
|
+
section: section,
|
|
9599
|
+
whitespace: opt.whitespace
|
|
9600
|
+
});
|
|
9601
|
+
if (out.length && child.length) out += eol;
|
|
9602
|
+
out += child;
|
|
9603
|
+
});
|
|
9604
|
+
return out;
|
|
9605
|
+
}
|
|
9606
|
+
function dotSplit(str) {
|
|
9607
|
+
return str.replace(/\1/g, '\u0002LITERAL\\1LITERAL\u0002').replace(/\\\./g, '\u0001').split(/\./).map(function (part) {
|
|
9608
|
+
return part.replace(/\1/g, '\\.').replace(/\2LITERAL\\1LITERAL\2/g, '\u0001');
|
|
9609
|
+
});
|
|
9610
|
+
}
|
|
9611
|
+
function decode(str) {
|
|
9612
|
+
var out = {};
|
|
9613
|
+
var p = out;
|
|
9614
|
+
var section = null;
|
|
9615
|
+
// section |key = value
|
|
9616
|
+
var re = /^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i;
|
|
9617
|
+
var lines = str.split(/[\r\n]+/g);
|
|
9618
|
+
lines.forEach(function (line, _, __) {
|
|
9619
|
+
if (!line || line.match(/^\s*[;#]/)) return;
|
|
9620
|
+
var match = line.match(re);
|
|
9621
|
+
if (!match) return;
|
|
9622
|
+
if (match[1] !== undefined) {
|
|
9623
|
+
section = unsafe(match[1]);
|
|
9624
|
+
if (section === '__proto__') {
|
|
9625
|
+
// not allowed
|
|
9626
|
+
// keep parsing the section, but don't attach it.
|
|
9627
|
+
p = {};
|
|
9628
|
+
return;
|
|
9629
|
+
}
|
|
9630
|
+
p = out[section] = out[section] || {};
|
|
9631
|
+
return;
|
|
9632
|
+
}
|
|
9633
|
+
var key = unsafe(match[2]);
|
|
9634
|
+
if (key === '__proto__') return;
|
|
9635
|
+
var value = match[3] ? unsafe(match[4]) : true;
|
|
9636
|
+
switch (value) {
|
|
9637
|
+
case 'true':
|
|
9638
|
+
case 'false':
|
|
9639
|
+
case 'null':
|
|
9640
|
+
value = JSON.parse(value);
|
|
9641
|
+
}
|
|
9642
|
+
|
|
9643
|
+
// Convert keys with '[]' suffix to an array
|
|
9644
|
+
if (key.length > 2 && key.slice(-2) === '[]') {
|
|
9645
|
+
key = key.substring(0, key.length - 2);
|
|
9646
|
+
if (key === '__proto__') return;
|
|
9647
|
+
if (!p[key]) p[key] = [];else if (!Array.isArray(p[key])) p[key] = [p[key]];
|
|
9648
|
+
}
|
|
9649
|
+
|
|
9650
|
+
// safeguard against resetting a previously defined
|
|
9651
|
+
// array by accidentally forgetting the brackets
|
|
9652
|
+
if (Array.isArray(p[key])) p[key].push(value);else p[key] = value;
|
|
9653
|
+
});
|
|
9654
|
+
|
|
9655
|
+
// {a:{y:1},"a.b":{x:2}} --> {a:{y:1,b:{x:2}}}
|
|
9656
|
+
// use a filter to return the keys that have to be deleted.
|
|
9657
|
+
Object.keys(out).filter(function (k, _, __) {
|
|
9658
|
+
if (!out[k] || typeof out[k] !== 'object' || Array.isArray(out[k])) return false;
|
|
9659
|
+
|
|
9660
|
+
// see if the parent section is also an object.
|
|
9661
|
+
// if so, add it to that, and mark this one for deletion
|
|
9662
|
+
var parts = dotSplit(k);
|
|
9663
|
+
var p = out;
|
|
9664
|
+
var l = parts.pop();
|
|
9665
|
+
var nl = l.replace(/\\\./g, '.');
|
|
9666
|
+
parts.forEach(function (part, _, __) {
|
|
9667
|
+
if (part === '__proto__') return;
|
|
9668
|
+
if (!p[part] || typeof p[part] !== 'object') p[part] = {};
|
|
9669
|
+
p = p[part];
|
|
9670
|
+
});
|
|
9671
|
+
if (p === out && nl === l) return false;
|
|
9672
|
+
p[nl] = out[k];
|
|
9673
|
+
return true;
|
|
9674
|
+
}).forEach(function (del, _, __) {
|
|
9675
|
+
delete out[del];
|
|
9676
|
+
});
|
|
9677
|
+
return out;
|
|
9678
|
+
}
|
|
9679
|
+
function isQuoted(val) {
|
|
9680
|
+
return val.charAt(0) === '"' && val.slice(-1) === '"' || val.charAt(0) === "'" && val.slice(-1) === "'";
|
|
9681
|
+
}
|
|
9682
|
+
function safe(val) {
|
|
9683
|
+
return typeof val !== 'string' || val.match(/[=\r\n]/) || val.match(/^\[/) || val.length > 1 && isQuoted(val) || val !== val.trim() ? JSON.stringify(val) : val.replace(/;/g, '\\;').replace(/#/g, '\\#');
|
|
9684
|
+
}
|
|
9685
|
+
function unsafe(val, doUnesc) {
|
|
9686
|
+
val = (val || '').trim();
|
|
9687
|
+
if (isQuoted(val)) {
|
|
9688
|
+
// remove the single quotes before calling JSON.parse
|
|
9689
|
+
if (val.charAt(0) === "'") val = val.substr(1, val.length - 2);
|
|
9690
|
+
try {
|
|
9691
|
+
val = JSON.parse(val);
|
|
9692
|
+
} catch (_) {}
|
|
9693
|
+
} else {
|
|
9694
|
+
// walk the val to find the first not-escaped ; character
|
|
9695
|
+
var esc = false;
|
|
9696
|
+
var unesc = '';
|
|
9697
|
+
for (var i = 0, l = val.length; i < l; i++) {
|
|
9698
|
+
var c = val.charAt(i);
|
|
9699
|
+
if (esc) {
|
|
9700
|
+
if ('\\;#'.indexOf(c) !== -1) unesc += c;else unesc += '\\' + c;
|
|
9701
|
+
esc = false;
|
|
9702
|
+
} else if (';#'.indexOf(c) !== -1) break;else if (c === '\\') esc = true;else unesc += c;
|
|
9703
|
+
}
|
|
9704
|
+
if (esc) unesc += '\\';
|
|
9705
|
+
return unesc.trim();
|
|
9706
|
+
}
|
|
9707
|
+
return val;
|
|
9708
|
+
}
|
|
9709
|
+
return ini$1;
|
|
9710
|
+
}
|
|
9711
|
+
|
|
9712
|
+
var hasRequiredConfigChain;
|
|
9713
|
+
function requireConfigChain() {
|
|
9714
|
+
if (hasRequiredConfigChain) return configChain.exports;
|
|
9715
|
+
hasRequiredConfigChain = 1;
|
|
9716
|
+
var ProtoList = requireProtoList(),
|
|
9717
|
+
path = require$$0$c,
|
|
9718
|
+
fs = require$$0$9,
|
|
9719
|
+
ini = requireIni$1(),
|
|
9720
|
+
EE = require$$0$b.EventEmitter,
|
|
9721
|
+
url = require$$0$d,
|
|
9722
|
+
http = require$$1$8;
|
|
9723
|
+
var exports = configChain.exports = function () {
|
|
9724
|
+
var args = [].slice.call(arguments),
|
|
9725
|
+
conf = new ConfigChain();
|
|
9726
|
+
while (args.length) {
|
|
9727
|
+
var a = args.shift();
|
|
9728
|
+
if (a) conf.push('string' === typeof a ? json(a) : a);
|
|
9729
|
+
}
|
|
9730
|
+
return conf;
|
|
9731
|
+
};
|
|
9732
|
+
|
|
9733
|
+
//recursively find a file...
|
|
9734
|
+
|
|
9735
|
+
exports.find = function () {
|
|
9736
|
+
var rel = path.join.apply(null, [].slice.call(arguments));
|
|
9737
|
+
function find(start, rel) {
|
|
9738
|
+
var file = path.join(start, rel);
|
|
9739
|
+
try {
|
|
9740
|
+
fs.statSync(file);
|
|
9741
|
+
return file;
|
|
9742
|
+
} catch (err) {
|
|
9743
|
+
if (path.dirname(start) !== start)
|
|
9744
|
+
// root
|
|
9745
|
+
return find(path.dirname(start), rel);
|
|
9746
|
+
}
|
|
9747
|
+
}
|
|
9748
|
+
return find(__dirname, rel);
|
|
9749
|
+
};
|
|
9750
|
+
var parse = exports.parse = function (content, file, type) {
|
|
9751
|
+
content = '' + content;
|
|
9752
|
+
// if we don't know what it is, try json and fall back to ini
|
|
9753
|
+
// if we know what it is, then it must be that.
|
|
9754
|
+
if (!type) {
|
|
9755
|
+
try {
|
|
9756
|
+
return JSON.parse(content);
|
|
9757
|
+
} catch (er) {
|
|
9758
|
+
return ini.parse(content);
|
|
9759
|
+
}
|
|
9760
|
+
} else if (type === 'json') {
|
|
9761
|
+
if (this.emit) {
|
|
9762
|
+
try {
|
|
9763
|
+
return JSON.parse(content);
|
|
9764
|
+
} catch (er) {
|
|
9765
|
+
this.emit('error', er);
|
|
9766
|
+
}
|
|
9767
|
+
} else {
|
|
9768
|
+
return JSON.parse(content);
|
|
9769
|
+
}
|
|
9770
|
+
} else {
|
|
9771
|
+
return ini.parse(content);
|
|
9772
|
+
}
|
|
9773
|
+
};
|
|
9774
|
+
var json = exports.json = function () {
|
|
9775
|
+
var args = [].slice.call(arguments).filter(function (arg) {
|
|
9776
|
+
return arg != null;
|
|
9777
|
+
});
|
|
9778
|
+
var file = path.join.apply(null, args);
|
|
9779
|
+
var content;
|
|
9780
|
+
try {
|
|
9781
|
+
content = fs.readFileSync(file, 'utf-8');
|
|
9782
|
+
} catch (err) {
|
|
9783
|
+
return;
|
|
9784
|
+
}
|
|
9785
|
+
return parse(content, file, 'json');
|
|
9786
|
+
};
|
|
9787
|
+
exports.env = function (prefix, env) {
|
|
9788
|
+
env = env || process.env;
|
|
9789
|
+
var obj = {};
|
|
9790
|
+
var l = prefix.length;
|
|
9791
|
+
for (var k in env) {
|
|
9792
|
+
if (k.indexOf(prefix) === 0) obj[k.substring(l)] = env[k];
|
|
9793
|
+
}
|
|
9794
|
+
return obj;
|
|
9795
|
+
};
|
|
9796
|
+
exports.ConfigChain = ConfigChain;
|
|
9797
|
+
function ConfigChain() {
|
|
9798
|
+
EE.apply(this);
|
|
9799
|
+
ProtoList.apply(this, arguments);
|
|
9800
|
+
this._awaiting = 0;
|
|
9801
|
+
this._saving = 0;
|
|
9802
|
+
this.sources = {};
|
|
9803
|
+
}
|
|
9804
|
+
|
|
9805
|
+
// multi-inheritance-ish
|
|
9806
|
+
var extras = {
|
|
9807
|
+
constructor: {
|
|
9808
|
+
value: ConfigChain
|
|
9809
|
+
}
|
|
9810
|
+
};
|
|
9811
|
+
Object.keys(EE.prototype).forEach(function (k) {
|
|
9812
|
+
extras[k] = Object.getOwnPropertyDescriptor(EE.prototype, k);
|
|
9813
|
+
});
|
|
9814
|
+
ConfigChain.prototype = Object.create(ProtoList.prototype, extras);
|
|
9815
|
+
ConfigChain.prototype.del = function (key, where) {
|
|
9816
|
+
// if not specified where, then delete from the whole chain, scorched
|
|
9817
|
+
// earth style
|
|
9818
|
+
if (where) {
|
|
9819
|
+
var target = this.sources[where];
|
|
9820
|
+
target = target && target.data;
|
|
9821
|
+
if (!target) {
|
|
9822
|
+
return this.emit('error', new Error('not found ' + where));
|
|
9823
|
+
}
|
|
9824
|
+
delete target[key];
|
|
9825
|
+
} else {
|
|
9826
|
+
for (var i = 0, l = this.list.length; i < l; i++) {
|
|
9827
|
+
delete this.list[i][key];
|
|
9828
|
+
}
|
|
9829
|
+
}
|
|
9830
|
+
return this;
|
|
9831
|
+
};
|
|
9832
|
+
ConfigChain.prototype.set = function (key, value, where) {
|
|
9833
|
+
var target;
|
|
9834
|
+
if (where) {
|
|
9835
|
+
target = this.sources[where];
|
|
9836
|
+
target = target && target.data;
|
|
9837
|
+
if (!target) {
|
|
9838
|
+
return this.emit('error', new Error('not found ' + where));
|
|
9839
|
+
}
|
|
9840
|
+
} else {
|
|
9841
|
+
target = this.list[0];
|
|
9842
|
+
if (!target) {
|
|
9843
|
+
return this.emit('error', new Error('cannot set, no confs!'));
|
|
9844
|
+
}
|
|
9845
|
+
}
|
|
9846
|
+
target[key] = value;
|
|
9847
|
+
return this;
|
|
9848
|
+
};
|
|
9849
|
+
ConfigChain.prototype.get = function (key, where) {
|
|
9850
|
+
if (where) {
|
|
9851
|
+
where = this.sources[where];
|
|
9852
|
+
if (where) where = where.data;
|
|
9853
|
+
if (where && Object.hasOwnProperty.call(where, key)) return where[key];
|
|
9854
|
+
return undefined;
|
|
9855
|
+
}
|
|
9856
|
+
return this.list[0][key];
|
|
9857
|
+
};
|
|
9858
|
+
ConfigChain.prototype.save = function (where, type, cb) {
|
|
9859
|
+
if (typeof type === 'function') cb = type, type = null;
|
|
9860
|
+
var target = this.sources[where];
|
|
9861
|
+
if (!target || !(target.path || target.source) || !target.data) {
|
|
9862
|
+
// TODO: maybe save() to a url target could be a PUT or something?
|
|
9863
|
+
// would be easy to swap out with a reddis type thing, too
|
|
9864
|
+
return this.emit('error', new Error('bad save target: ' + where));
|
|
9865
|
+
}
|
|
9866
|
+
if (target.source) {
|
|
9867
|
+
var pref = target.prefix || '';
|
|
9868
|
+
Object.keys(target.data).forEach(function (k) {
|
|
9869
|
+
target.source[pref + k] = target.data[k];
|
|
9870
|
+
});
|
|
9871
|
+
return this;
|
|
9872
|
+
}
|
|
9873
|
+
var type = type || target.type;
|
|
9874
|
+
var data = target.data;
|
|
9875
|
+
if (target.type === 'json') {
|
|
9876
|
+
data = JSON.stringify(data);
|
|
9877
|
+
} else {
|
|
9878
|
+
data = ini.stringify(data);
|
|
9879
|
+
}
|
|
9880
|
+
this._saving++;
|
|
9881
|
+
fs.writeFile(target.path, data, 'utf8', function (er) {
|
|
9882
|
+
this._saving--;
|
|
9883
|
+
if (er) {
|
|
9884
|
+
if (cb) return cb(er);else return this.emit('error', er);
|
|
9885
|
+
}
|
|
9886
|
+
if (this._saving === 0) {
|
|
9887
|
+
if (cb) cb();
|
|
9888
|
+
this.emit('save');
|
|
9889
|
+
}
|
|
9890
|
+
}.bind(this));
|
|
9891
|
+
return this;
|
|
9892
|
+
};
|
|
9893
|
+
ConfigChain.prototype.addFile = function (file, type, name) {
|
|
9894
|
+
name = name || file;
|
|
9895
|
+
var marker = {
|
|
9896
|
+
__source__: name
|
|
9897
|
+
};
|
|
9898
|
+
this.sources[name] = {
|
|
9899
|
+
path: file,
|
|
9900
|
+
type: type
|
|
9901
|
+
};
|
|
9902
|
+
this.push(marker);
|
|
9903
|
+
this._await();
|
|
9904
|
+
fs.readFile(file, 'utf8', function (er, data) {
|
|
9905
|
+
if (er) this.emit('error', er);
|
|
9906
|
+
this.addString(data, file, type, marker);
|
|
9907
|
+
}.bind(this));
|
|
9908
|
+
return this;
|
|
9909
|
+
};
|
|
9910
|
+
ConfigChain.prototype.addEnv = function (prefix, env, name) {
|
|
9911
|
+
name = name || 'env';
|
|
9912
|
+
var data = exports.env(prefix, env);
|
|
9913
|
+
this.sources[name] = {
|
|
9914
|
+
data: data,
|
|
9915
|
+
source: env,
|
|
9916
|
+
prefix: prefix
|
|
9917
|
+
};
|
|
9918
|
+
return this.add(data, name);
|
|
9919
|
+
};
|
|
9920
|
+
ConfigChain.prototype.addUrl = function (req, type, name) {
|
|
9921
|
+
this._await();
|
|
9922
|
+
var href = url.format(req);
|
|
9923
|
+
name = name || href;
|
|
9924
|
+
var marker = {
|
|
9925
|
+
__source__: name
|
|
9926
|
+
};
|
|
9927
|
+
this.sources[name] = {
|
|
9928
|
+
href: href,
|
|
9929
|
+
type: type
|
|
9930
|
+
};
|
|
9931
|
+
this.push(marker);
|
|
9932
|
+
http.request(req, function (res) {
|
|
9933
|
+
var c = [];
|
|
9934
|
+
var ct = res.headers['content-type'];
|
|
9935
|
+
if (!type) {
|
|
9936
|
+
type = ct.indexOf('json') !== -1 ? 'json' : ct.indexOf('ini') !== -1 ? 'ini' : href.match(/\.json$/) ? 'json' : href.match(/\.ini$/) ? 'ini' : null;
|
|
9937
|
+
marker.type = type;
|
|
9938
|
+
}
|
|
9939
|
+
res.on('data', c.push.bind(c)).on('end', function () {
|
|
9940
|
+
this.addString(Buffer.concat(c), href, type, marker);
|
|
9941
|
+
}.bind(this)).on('error', this.emit.bind(this, 'error'));
|
|
9942
|
+
}.bind(this)).on('error', this.emit.bind(this, 'error')).end();
|
|
9943
|
+
return this;
|
|
9944
|
+
};
|
|
9945
|
+
ConfigChain.prototype.addString = function (data, file, type, marker) {
|
|
9946
|
+
data = this.parse(data, file, type);
|
|
9947
|
+
this.add(data, marker);
|
|
9948
|
+
return this;
|
|
9949
|
+
};
|
|
9950
|
+
ConfigChain.prototype.add = function (data, marker) {
|
|
9951
|
+
if (marker && typeof marker === 'object') {
|
|
9952
|
+
var i = this.list.indexOf(marker);
|
|
9953
|
+
if (i === -1) {
|
|
9954
|
+
return this.emit('error', new Error('bad marker'));
|
|
9955
|
+
}
|
|
9956
|
+
this.splice(i, 1, data);
|
|
9957
|
+
marker = marker.__source__;
|
|
9958
|
+
this.sources[marker] = this.sources[marker] || {};
|
|
9959
|
+
this.sources[marker].data = data;
|
|
9960
|
+
// we were waiting for this. maybe emit 'load'
|
|
9961
|
+
this._resolve();
|
|
9962
|
+
} else {
|
|
9963
|
+
if (typeof marker === 'string') {
|
|
9964
|
+
this.sources[marker] = this.sources[marker] || {};
|
|
9965
|
+
this.sources[marker].data = data;
|
|
9966
|
+
}
|
|
9967
|
+
// trigger the load event if nothing was already going to do so.
|
|
9968
|
+
this._await();
|
|
9969
|
+
this.push(data);
|
|
9970
|
+
process.nextTick(this._resolve.bind(this));
|
|
9971
|
+
}
|
|
9972
|
+
return this;
|
|
9973
|
+
};
|
|
9974
|
+
ConfigChain.prototype.parse = exports.parse;
|
|
9975
|
+
ConfigChain.prototype._await = function () {
|
|
9976
|
+
this._awaiting++;
|
|
9977
|
+
};
|
|
9978
|
+
ConfigChain.prototype._resolve = function () {
|
|
9979
|
+
this._awaiting--;
|
|
9980
|
+
if (this._awaiting === 0) this.emit('load', this);
|
|
9981
|
+
};
|
|
9982
|
+
return configChain.exports;
|
|
9983
|
+
}
|
|
9984
|
+
|
|
9985
|
+
var envKeyToSetting;
|
|
9986
|
+
var hasRequiredEnvKeyToSetting;
|
|
9987
|
+
function requireEnvKeyToSetting() {
|
|
9988
|
+
if (hasRequiredEnvKeyToSetting) return envKeyToSetting;
|
|
9989
|
+
hasRequiredEnvKeyToSetting = 1;
|
|
9990
|
+
envKeyToSetting = function (x) {
|
|
9991
|
+
const colonIndex = x.indexOf(':');
|
|
9992
|
+
if (colonIndex === -1) {
|
|
9993
|
+
return normalize(x);
|
|
9994
|
+
}
|
|
9995
|
+
const firstPart = x.substr(0, colonIndex);
|
|
9996
|
+
const secondPart = x.substr(colonIndex + 1);
|
|
9997
|
+
return `${normalize(firstPart)}:${normalize(secondPart)}`;
|
|
9998
|
+
};
|
|
9999
|
+
function normalize(s) {
|
|
10000
|
+
s = s.toLowerCase();
|
|
10001
|
+
if (s === '_authtoken') return '_authToken';
|
|
10002
|
+
let r = s[0];
|
|
10003
|
+
for (let i = 1; i < s.length; i++) {
|
|
10004
|
+
r += s[i] === '_' ? '-' : s[i];
|
|
10005
|
+
}
|
|
10006
|
+
return r;
|
|
10007
|
+
}
|
|
10008
|
+
return envKeyToSetting;
|
|
10009
|
+
}
|
|
10010
|
+
|
|
10011
|
+
var util$4 = {};
|
|
10012
|
+
|
|
10013
|
+
var dist$i = {};
|
|
10014
|
+
|
|
10015
|
+
var envReplace$1 = {};
|
|
10016
|
+
|
|
10017
|
+
var hasRequiredEnvReplace$1;
|
|
10018
|
+
function requireEnvReplace$1() {
|
|
10019
|
+
if (hasRequiredEnvReplace$1) return envReplace$1;
|
|
10020
|
+
hasRequiredEnvReplace$1 = 1;
|
|
10021
|
+
Object.defineProperty(envReplace$1, "__esModule", {
|
|
10022
|
+
value: true
|
|
10023
|
+
});
|
|
10024
|
+
envReplace$1.envReplace = void 0;
|
|
10025
|
+
const ENV_EXPR = /(?<!\\)(\\*)\$\{([^${}]+)\}/g;
|
|
10026
|
+
function envReplace(settingValue, env) {
|
|
10027
|
+
return settingValue.replace(ENV_EXPR, replaceEnvMatch.bind(null, env));
|
|
10028
|
+
}
|
|
10029
|
+
envReplace$1.envReplace = envReplace;
|
|
10030
|
+
function replaceEnvMatch(env, orig, escape, name) {
|
|
10031
|
+
if (escape.length % 2) {
|
|
10032
|
+
return orig.slice((escape.length + 1) / 2);
|
|
10033
|
+
}
|
|
10034
|
+
const envValue = getEnvValue(env, name);
|
|
10035
|
+
if (envValue === undefined) {
|
|
10036
|
+
throw new Error(`Failed to replace env in config: ${orig}`);
|
|
10037
|
+
}
|
|
10038
|
+
return `${escape.slice(escape.length / 2)}${envValue}`;
|
|
10039
|
+
}
|
|
10040
|
+
const ENV_VALUE = /([^:-]+)(:?)-(.+)/;
|
|
10041
|
+
function getEnvValue(env, name) {
|
|
10042
|
+
const matched = name.match(ENV_VALUE);
|
|
10043
|
+
if (!matched) return env[name];
|
|
10044
|
+
const [, variableName, colon, fallback] = matched;
|
|
10045
|
+
if (Object.prototype.hasOwnProperty.call(env, variableName)) {
|
|
10046
|
+
return !env[variableName] && colon ? fallback : env[variableName];
|
|
10047
|
+
}
|
|
10048
|
+
return fallback;
|
|
10049
|
+
}
|
|
10050
|
+
return envReplace$1;
|
|
10051
|
+
}
|
|
10052
|
+
|
|
10053
|
+
var hasRequiredDist$i;
|
|
10054
|
+
function requireDist$i() {
|
|
10055
|
+
if (hasRequiredDist$i) return dist$i;
|
|
10056
|
+
hasRequiredDist$i = 1;
|
|
10057
|
+
(function (exports) {
|
|
10058
|
+
|
|
10059
|
+
Object.defineProperty(exports, "__esModule", {
|
|
10060
|
+
value: true
|
|
10061
|
+
});
|
|
10062
|
+
exports.envReplace = void 0;
|
|
10063
|
+
var env_replace_1 = requireEnvReplace$1();
|
|
10064
|
+
Object.defineProperty(exports, "envReplace", {
|
|
10065
|
+
enumerable: true,
|
|
10066
|
+
get: function () {
|
|
10067
|
+
return env_replace_1.envReplace;
|
|
10068
|
+
}
|
|
10069
|
+
});
|
|
10070
|
+
})(dist$i);
|
|
10071
|
+
return dist$i;
|
|
10072
|
+
}
|
|
10073
|
+
|
|
10074
|
+
var hasRequiredUtil$4;
|
|
10075
|
+
function requireUtil$4() {
|
|
10076
|
+
if (hasRequiredUtil$4) return util$4;
|
|
10077
|
+
hasRequiredUtil$4 = 1;
|
|
10078
|
+
const fs = require$$0$9;
|
|
10079
|
+
const path = require$$0$c;
|
|
10080
|
+
const {
|
|
10081
|
+
envReplace
|
|
10082
|
+
} = requireDist$i();
|
|
10083
|
+
const parseKey = key => {
|
|
10084
|
+
if (typeof key !== 'string') {
|
|
10085
|
+
return key;
|
|
10086
|
+
}
|
|
10087
|
+
return envReplace(key, process.env);
|
|
10088
|
+
};
|
|
10089
|
+
|
|
10090
|
+
// https://github.com/npm/cli/blob/latest/lib/config/core.js#L359-L404
|
|
10091
|
+
const parseField = (types, field, key) => {
|
|
10092
|
+
if (typeof field !== 'string') {
|
|
10093
|
+
return field;
|
|
10094
|
+
}
|
|
10095
|
+
const typeList = [].concat(types[key]);
|
|
10096
|
+
const isPath = typeList.indexOf(path) !== -1;
|
|
10097
|
+
const isBool = typeList.indexOf(Boolean) !== -1;
|
|
10098
|
+
const isString = typeList.indexOf(String) !== -1;
|
|
10099
|
+
const isNumber = typeList.indexOf(Number) !== -1;
|
|
10100
|
+
field = `${field}`.trim();
|
|
10101
|
+
if (/^".*"$/.test(field)) {
|
|
10102
|
+
try {
|
|
10103
|
+
field = JSON.parse(field);
|
|
10104
|
+
} catch (error) {
|
|
10105
|
+
throw new Error(`Failed parsing JSON config key ${key}: ${field}`);
|
|
10106
|
+
}
|
|
10107
|
+
}
|
|
10108
|
+
if (isBool && !isString && field === '') {
|
|
10109
|
+
return true;
|
|
10110
|
+
}
|
|
10111
|
+
switch (field) {
|
|
10112
|
+
// eslint-disable-line default-case
|
|
10113
|
+
case 'true':
|
|
10114
|
+
{
|
|
10115
|
+
return true;
|
|
10116
|
+
}
|
|
10117
|
+
case 'false':
|
|
10118
|
+
{
|
|
10119
|
+
return false;
|
|
10120
|
+
}
|
|
10121
|
+
case 'null':
|
|
10122
|
+
{
|
|
10123
|
+
return null;
|
|
10124
|
+
}
|
|
10125
|
+
case 'undefined':
|
|
10126
|
+
{
|
|
10127
|
+
return undefined;
|
|
10128
|
+
}
|
|
10129
|
+
}
|
|
10130
|
+
field = envReplace(field, process.env);
|
|
10131
|
+
if (isPath) {
|
|
10132
|
+
const regex = process.platform === 'win32' ? /^~(\/|\\)/ : /^~\//;
|
|
10133
|
+
if (regex.test(field) && process.env.HOME) {
|
|
10134
|
+
field = path.resolve(process.env.HOME, field.substr(2));
|
|
10135
|
+
}
|
|
10136
|
+
field = path.resolve(field);
|
|
10137
|
+
}
|
|
10138
|
+
if (isNumber && !isNaN(field)) {
|
|
10139
|
+
field = Number(field);
|
|
10140
|
+
}
|
|
10141
|
+
return field;
|
|
10142
|
+
};
|
|
10143
|
+
|
|
10144
|
+
// https://github.com/npm/cli/blob/latest/lib/config/find-prefix.js
|
|
10145
|
+
const findPrefix = name => {
|
|
10146
|
+
name = path.resolve(name);
|
|
10147
|
+
let walkedUp = false;
|
|
10148
|
+
while (path.basename(name) === 'node_modules') {
|
|
10149
|
+
name = path.dirname(name);
|
|
10150
|
+
walkedUp = true;
|
|
10151
|
+
}
|
|
10152
|
+
if (walkedUp) {
|
|
10153
|
+
return name;
|
|
10154
|
+
}
|
|
10155
|
+
const find = (name, original) => {
|
|
10156
|
+
const regex = /^[a-zA-Z]:(\\|\/)?$/;
|
|
10157
|
+
if (name === '/' || process.platform === 'win32' && regex.test(name)) {
|
|
10158
|
+
return original;
|
|
10159
|
+
}
|
|
10160
|
+
try {
|
|
10161
|
+
const files = fs.readdirSync(name);
|
|
10162
|
+
if (files.includes('node_modules') || files.includes('package.json') || files.includes('package.json5') || files.includes('package.yaml') || files.includes('pnpm-workspace.yaml')) {
|
|
10163
|
+
return name;
|
|
10164
|
+
}
|
|
10165
|
+
const dirname = path.dirname(name);
|
|
10166
|
+
if (dirname === name) {
|
|
10167
|
+
return original;
|
|
10168
|
+
}
|
|
10169
|
+
return find(dirname, original);
|
|
10170
|
+
} catch (error) {
|
|
10171
|
+
if (name === original) {
|
|
10172
|
+
if (error.code === 'ENOENT') {
|
|
10173
|
+
return original;
|
|
10174
|
+
}
|
|
10175
|
+
throw error;
|
|
10176
|
+
}
|
|
10177
|
+
return original;
|
|
10178
|
+
}
|
|
10179
|
+
};
|
|
10180
|
+
return find(name, name);
|
|
10181
|
+
};
|
|
10182
|
+
util$4.envReplace = envReplace;
|
|
10183
|
+
util$4.findPrefix = findPrefix;
|
|
10184
|
+
util$4.parseField = parseField;
|
|
10185
|
+
util$4.parseKey = parseKey;
|
|
10186
|
+
return util$4;
|
|
10187
|
+
}
|
|
10188
|
+
|
|
10189
|
+
var types$4 = {};
|
|
10190
|
+
|
|
10191
|
+
var hasRequiredTypes$4;
|
|
10192
|
+
function requireTypes$4() {
|
|
10193
|
+
if (hasRequiredTypes$4) return types$4;
|
|
10194
|
+
hasRequiredTypes$4 = 1;
|
|
10195
|
+
const path = require$$0$c;
|
|
10196
|
+
const Stream = require$$1$7.Stream;
|
|
10197
|
+
const url = require$$0$d;
|
|
10198
|
+
const Umask = () => {};
|
|
10199
|
+
const getLocalAddresses = () => [];
|
|
10200
|
+
const semver = () => {};
|
|
10201
|
+
types$4.types = {
|
|
10202
|
+
access: [null, 'restricted', 'public'],
|
|
10203
|
+
'allow-same-version': Boolean,
|
|
10204
|
+
'always-auth': Boolean,
|
|
10205
|
+
also: [null, 'dev', 'development'],
|
|
10206
|
+
audit: Boolean,
|
|
10207
|
+
'auth-type': ['legacy', 'sso', 'saml', 'oauth'],
|
|
10208
|
+
'bin-links': Boolean,
|
|
10209
|
+
browser: [null, String],
|
|
10210
|
+
ca: [null, String, Array],
|
|
10211
|
+
cafile: path,
|
|
10212
|
+
cache: path,
|
|
10213
|
+
'cache-lock-stale': Number,
|
|
10214
|
+
'cache-lock-retries': Number,
|
|
10215
|
+
'cache-lock-wait': Number,
|
|
10216
|
+
'cache-max': Number,
|
|
10217
|
+
'cache-min': Number,
|
|
10218
|
+
cert: [null, String],
|
|
10219
|
+
cidr: [null, String, Array],
|
|
10220
|
+
color: ['always', Boolean],
|
|
10221
|
+
depth: Number,
|
|
10222
|
+
description: Boolean,
|
|
10223
|
+
dev: Boolean,
|
|
10224
|
+
'dry-run': Boolean,
|
|
10225
|
+
editor: String,
|
|
10226
|
+
'engine-strict': Boolean,
|
|
10227
|
+
force: Boolean,
|
|
10228
|
+
'fetch-retries': Number,
|
|
10229
|
+
'fetch-retry-factor': Number,
|
|
10230
|
+
'fetch-retry-mintimeout': Number,
|
|
10231
|
+
'fetch-retry-maxtimeout': Number,
|
|
10232
|
+
git: String,
|
|
10233
|
+
'git-tag-version': Boolean,
|
|
10234
|
+
'commit-hooks': Boolean,
|
|
10235
|
+
global: Boolean,
|
|
10236
|
+
globalconfig: path,
|
|
10237
|
+
'global-style': Boolean,
|
|
10238
|
+
group: [Number, String],
|
|
10239
|
+
'https-proxy': [null, url],
|
|
10240
|
+
'user-agent': String,
|
|
10241
|
+
'ham-it-up': Boolean,
|
|
10242
|
+
'heading': String,
|
|
10243
|
+
'if-present': Boolean,
|
|
10244
|
+
'ignore-prepublish': Boolean,
|
|
10245
|
+
'ignore-scripts': Boolean,
|
|
10246
|
+
'init-module': path,
|
|
10247
|
+
'init-author-name': String,
|
|
10248
|
+
'init-author-email': String,
|
|
10249
|
+
'init-author-url': ['', url],
|
|
10250
|
+
'init-license': String,
|
|
10251
|
+
'init-version': semver,
|
|
10252
|
+
json: Boolean,
|
|
10253
|
+
key: [null, String],
|
|
10254
|
+
'legacy-bundling': Boolean,
|
|
10255
|
+
link: Boolean,
|
|
10256
|
+
// local-address must be listed as an IP for a local network interface
|
|
10257
|
+
// must be IPv4 due to node bug
|
|
10258
|
+
'local-address': getLocalAddresses(),
|
|
10259
|
+
loglevel: ['silent', 'error', 'warn', 'notice', 'http', 'timing', 'info', 'verbose', 'silly'],
|
|
10260
|
+
logstream: Stream,
|
|
10261
|
+
'logs-max': Number,
|
|
10262
|
+
long: Boolean,
|
|
10263
|
+
maxsockets: Number,
|
|
10264
|
+
message: String,
|
|
10265
|
+
'metrics-registry': [null, String],
|
|
10266
|
+
'node-options': [null, String],
|
|
10267
|
+
'node-version': [null, semver],
|
|
10268
|
+
'no-proxy': [null, String, Array],
|
|
10269
|
+
offline: Boolean,
|
|
10270
|
+
'onload-script': [null, String],
|
|
10271
|
+
only: [null, 'dev', 'development', 'prod', 'production'],
|
|
10272
|
+
optional: Boolean,
|
|
10273
|
+
'package-lock': Boolean,
|
|
10274
|
+
otp: [null, String],
|
|
10275
|
+
'package-lock-only': Boolean,
|
|
10276
|
+
parseable: Boolean,
|
|
10277
|
+
'prefer-offline': Boolean,
|
|
10278
|
+
'prefer-online': Boolean,
|
|
10279
|
+
prefix: path,
|
|
10280
|
+
production: Boolean,
|
|
10281
|
+
progress: Boolean,
|
|
10282
|
+
proxy: [null, false, url],
|
|
10283
|
+
provenance: Boolean,
|
|
10284
|
+
// allow proxy to be disabled explicitly
|
|
10285
|
+
'read-only': Boolean,
|
|
10286
|
+
'rebuild-bundle': Boolean,
|
|
10287
|
+
registry: [null, url],
|
|
10288
|
+
rollback: Boolean,
|
|
10289
|
+
save: Boolean,
|
|
10290
|
+
'save-bundle': Boolean,
|
|
10291
|
+
'save-dev': Boolean,
|
|
10292
|
+
'save-exact': Boolean,
|
|
10293
|
+
'save-optional': Boolean,
|
|
10294
|
+
'save-prefix': String,
|
|
10295
|
+
'save-prod': Boolean,
|
|
10296
|
+
scope: String,
|
|
10297
|
+
'script-shell': [null, String],
|
|
10298
|
+
'scripts-prepend-node-path': [false, true, 'auto', 'warn-only'],
|
|
10299
|
+
searchopts: String,
|
|
10300
|
+
searchexclude: [null, String],
|
|
10301
|
+
searchlimit: Number,
|
|
10302
|
+
searchstaleness: Number,
|
|
10303
|
+
'send-metrics': Boolean,
|
|
10304
|
+
shell: String,
|
|
10305
|
+
shrinkwrap: Boolean,
|
|
10306
|
+
'sign-git-tag': Boolean,
|
|
10307
|
+
'sso-poll-frequency': Number,
|
|
10308
|
+
'sso-type': [null, 'oauth', 'saml'],
|
|
10309
|
+
'strict-ssl': Boolean,
|
|
10310
|
+
tag: String,
|
|
10311
|
+
timing: Boolean,
|
|
10312
|
+
tmp: path,
|
|
10313
|
+
unicode: Boolean,
|
|
10314
|
+
'unsafe-perm': Boolean,
|
|
10315
|
+
usage: Boolean,
|
|
10316
|
+
user: [Number, String],
|
|
10317
|
+
userconfig: path,
|
|
10318
|
+
umask: Umask,
|
|
10319
|
+
version: Boolean,
|
|
10320
|
+
'tag-version-prefix': String,
|
|
10321
|
+
versions: Boolean,
|
|
10322
|
+
viewer: String,
|
|
10323
|
+
_exit: Boolean
|
|
10324
|
+
};
|
|
10325
|
+
return types$4;
|
|
10326
|
+
}
|
|
10327
|
+
|
|
10328
|
+
var conf;
|
|
10329
|
+
var hasRequiredConf;
|
|
10330
|
+
function requireConf() {
|
|
10331
|
+
if (hasRequiredConf) return conf;
|
|
10332
|
+
hasRequiredConf = 1;
|
|
10333
|
+
const {
|
|
10334
|
+
readCAFileSync
|
|
10335
|
+
} = requireDist$j();
|
|
10336
|
+
const fs = require$$0$9;
|
|
10337
|
+
const path = require$$0$c;
|
|
10338
|
+
const {
|
|
10339
|
+
ConfigChain
|
|
10340
|
+
} = requireConfigChain();
|
|
10341
|
+
const envKeyToSetting = requireEnvKeyToSetting();
|
|
10342
|
+
const util = requireUtil$4();
|
|
10343
|
+
class Conf extends ConfigChain {
|
|
10344
|
+
// https://github.com/npm/cli/blob/latest/lib/config/core.js#L203-L217
|
|
10345
|
+
constructor(base, types) {
|
|
10346
|
+
super(base);
|
|
10347
|
+
this.root = base;
|
|
10348
|
+
this._parseField = util.parseField.bind(null, types || requireTypes$4());
|
|
10349
|
+
}
|
|
10350
|
+
|
|
10351
|
+
// https://github.com/npm/cli/blob/latest/lib/config/core.js#L326-L338
|
|
10352
|
+
add(data, marker) {
|
|
10353
|
+
try {
|
|
10354
|
+
for (const [key, value] of Object.entries(data)) {
|
|
10355
|
+
const substKey = util.parseKey(key);
|
|
10356
|
+
if (substKey !== key) {
|
|
10357
|
+
delete data[key];
|
|
10358
|
+
}
|
|
10359
|
+
data[substKey] = this._parseField(value, substKey);
|
|
10360
|
+
}
|
|
10361
|
+
} catch (error) {
|
|
10362
|
+
throw error;
|
|
10363
|
+
}
|
|
10364
|
+
return super.add(data, marker);
|
|
10365
|
+
}
|
|
10366
|
+
|
|
10367
|
+
// https://github.com/npm/cli/blob/latest/lib/config/core.js#L306-L319
|
|
10368
|
+
addFile(file, name) {
|
|
10369
|
+
name = name || file;
|
|
10370
|
+
const marker = {
|
|
10371
|
+
__source__: name
|
|
10372
|
+
};
|
|
10373
|
+
this.sources[name] = {
|
|
10374
|
+
path: file,
|
|
10375
|
+
type: 'ini'
|
|
10376
|
+
};
|
|
10377
|
+
this.push(marker);
|
|
10378
|
+
this._await();
|
|
10379
|
+
try {
|
|
10380
|
+
const contents = fs.readFileSync(file, 'utf8');
|
|
10381
|
+
this.addString(contents, file, 'ini', marker);
|
|
10382
|
+
} catch (error) {
|
|
10383
|
+
if (error.code === 'ENOENT') {
|
|
10384
|
+
this.add({}, marker);
|
|
10385
|
+
} else if (error.code !== 'EISDIR') {
|
|
10386
|
+
return `Issue while reading "${file}". ${error.message}`;
|
|
10387
|
+
}
|
|
10388
|
+
}
|
|
10389
|
+
}
|
|
10390
|
+
|
|
10391
|
+
// https://github.com/npm/cli/blob/latest/lib/config/core.js#L341-L357
|
|
10392
|
+
addEnv(env) {
|
|
10393
|
+
env = env || process.env;
|
|
10394
|
+
const conf = {};
|
|
10395
|
+
Object.keys(env).filter(x => /^npm_config_/i.test(x)).forEach(x => {
|
|
10396
|
+
if (!env[x]) {
|
|
10397
|
+
return;
|
|
10398
|
+
}
|
|
10399
|
+
|
|
10400
|
+
// PNPM patch.
|
|
10401
|
+
// BEGIN
|
|
10402
|
+
const key = envKeyToSetting(x.substr(11));
|
|
10403
|
+
const rawVal = env[x];
|
|
10404
|
+
conf[key] = deserializeEnvVal(key, rawVal);
|
|
10405
|
+
// END
|
|
10406
|
+
});
|
|
10407
|
+
return super.addEnv('', conf, 'env');
|
|
10408
|
+
}
|
|
10409
|
+
|
|
10410
|
+
// https://github.com/npm/cli/blob/latest/lib/config/load-prefix.js
|
|
10411
|
+
loadPrefix() {
|
|
10412
|
+
const cli = this.list[0];
|
|
10413
|
+
Object.defineProperty(this, 'prefix', {
|
|
10414
|
+
enumerable: true,
|
|
10415
|
+
set: prefix => {
|
|
10416
|
+
const g = this.get('global');
|
|
10417
|
+
this[g ? 'globalPrefix' : 'localPrefix'] = prefix;
|
|
10418
|
+
},
|
|
10419
|
+
get: () => {
|
|
10420
|
+
const g = this.get('global');
|
|
10421
|
+
return g ? this.globalPrefix : this.localPrefix;
|
|
10422
|
+
}
|
|
10423
|
+
});
|
|
10424
|
+
Object.defineProperty(this, 'globalPrefix', {
|
|
10425
|
+
enumerable: true,
|
|
10426
|
+
set: prefix => {
|
|
10427
|
+
this.set('prefix', prefix);
|
|
10428
|
+
},
|
|
10429
|
+
get: () => {
|
|
10430
|
+
return path.resolve(this.get('prefix'));
|
|
10431
|
+
}
|
|
10432
|
+
});
|
|
10433
|
+
let p;
|
|
10434
|
+
Object.defineProperty(this, 'localPrefix', {
|
|
10435
|
+
enumerable: true,
|
|
10436
|
+
set: prefix => {
|
|
10437
|
+
p = prefix;
|
|
10438
|
+
},
|
|
10439
|
+
get: () => {
|
|
10440
|
+
return p;
|
|
10441
|
+
}
|
|
10442
|
+
});
|
|
10443
|
+
if (Object.prototype.hasOwnProperty.call(cli, 'prefix')) {
|
|
10444
|
+
p = path.resolve(cli.prefix);
|
|
10445
|
+
} else {
|
|
10446
|
+
try {
|
|
10447
|
+
const prefix = util.findPrefix(process.cwd());
|
|
10448
|
+
p = prefix;
|
|
10449
|
+
} catch (error) {
|
|
10450
|
+
throw error;
|
|
10451
|
+
}
|
|
10452
|
+
}
|
|
10453
|
+
return p;
|
|
10454
|
+
}
|
|
10455
|
+
|
|
10456
|
+
// https://github.com/npm/cli/blob/latest/lib/config/load-cafile.js
|
|
10457
|
+
loadCAFile(file) {
|
|
10458
|
+
if (!file) {
|
|
10459
|
+
return;
|
|
10460
|
+
}
|
|
10461
|
+
const ca = readCAFileSync(file);
|
|
10462
|
+
if (ca) {
|
|
10463
|
+
this.set('ca', ca);
|
|
10464
|
+
}
|
|
10465
|
+
}
|
|
10466
|
+
|
|
10467
|
+
// https://github.com/npm/cli/blob/latest/lib/config/set-user.js
|
|
10468
|
+
loadUser() {
|
|
10469
|
+
const defConf = this.root;
|
|
10470
|
+
if (this.get('global')) {
|
|
10471
|
+
return;
|
|
10472
|
+
}
|
|
10473
|
+
if (process.env.SUDO_UID) {
|
|
10474
|
+
defConf.user = Number(process.env.SUDO_UID);
|
|
10475
|
+
return;
|
|
10476
|
+
}
|
|
10477
|
+
const prefix = path.resolve(this.get('prefix'));
|
|
10478
|
+
try {
|
|
10479
|
+
const stats = fs.statSync(prefix);
|
|
10480
|
+
defConf.user = stats.uid;
|
|
10481
|
+
} catch (error) {
|
|
10482
|
+
if (error.code === 'ENOENT') {
|
|
10483
|
+
return;
|
|
10484
|
+
}
|
|
10485
|
+
throw error;
|
|
10486
|
+
}
|
|
10487
|
+
}
|
|
10488
|
+
}
|
|
10489
|
+
|
|
10490
|
+
// PNPM patch.
|
|
10491
|
+
// BEGIN
|
|
10492
|
+
function deserializeEnvVal(envKey, envValue) {
|
|
10493
|
+
function deserializeList(envValue) {
|
|
10494
|
+
const npmConfigSep = '\n\n';
|
|
10495
|
+
if (envValue.indexOf(npmConfigSep)) {
|
|
10496
|
+
// Supports NPM config serialization format. See:
|
|
10497
|
+
// https://docs.npmjs.com/cli/v10/using-npm/config#ca
|
|
10498
|
+
// https://github.com/npm/cli/blob/v10.0.0/workspaces/config/lib/set-envs.js#L15
|
|
10499
|
+
return envValue.split(npmConfigSep);
|
|
10500
|
+
}
|
|
10501
|
+
return envValue.split(',');
|
|
10502
|
+
}
|
|
10503
|
+
switch (envKey) {
|
|
10504
|
+
case 'hoist-pattern':
|
|
10505
|
+
case 'public-hoist-pattern':
|
|
10506
|
+
return deserializeList(envValue);
|
|
10507
|
+
}
|
|
10508
|
+
return envValue;
|
|
10509
|
+
}
|
|
10510
|
+
// END
|
|
10511
|
+
|
|
10512
|
+
conf = Conf;
|
|
10513
|
+
return conf;
|
|
10514
|
+
}
|
|
10515
|
+
|
|
10516
|
+
var defaults$1 = {};
|
|
10517
|
+
|
|
10518
|
+
var hasRequiredDefaults$1;
|
|
10519
|
+
function requireDefaults$1() {
|
|
10520
|
+
if (hasRequiredDefaults$1) return defaults$1;
|
|
10521
|
+
hasRequiredDefaults$1 = 1;
|
|
10522
|
+
(function (exports) {
|
|
10523
|
+
|
|
10524
|
+
const os = require$$0$e;
|
|
10525
|
+
const path = require$$0$c;
|
|
10526
|
+
const temp = os.tmpdir();
|
|
10527
|
+
const uidOrPid = process.getuid ? process.getuid() : process.pid;
|
|
10528
|
+
const hasUnicode = () => true;
|
|
10529
|
+
const isWindows = process.platform === 'win32';
|
|
10530
|
+
const osenv = {
|
|
10531
|
+
editor: () => process.env.EDITOR || process.env.VISUAL || (isWindows ? 'notepad.exe' : 'vi'),
|
|
10532
|
+
shell: () => isWindows ? process.env.COMSPEC || 'cmd.exe' : process.env.SHELL || '/bin/bash'
|
|
10533
|
+
};
|
|
10534
|
+
const umask = {
|
|
10535
|
+
fromString: () => process.umask()
|
|
10536
|
+
};
|
|
10537
|
+
let home = os.homedir();
|
|
10538
|
+
if (home) {
|
|
10539
|
+
process.env.HOME = home;
|
|
10540
|
+
} else {
|
|
10541
|
+
home = path.resolve(temp, 'npm-' + uidOrPid);
|
|
10542
|
+
}
|
|
10543
|
+
const cacheExtra = process.platform === 'win32' ? 'npm-cache' : '.npm';
|
|
10544
|
+
const cacheRoot = process.platform === 'win32' && process.env.APPDATA || home;
|
|
10545
|
+
const cache = path.resolve(cacheRoot, cacheExtra);
|
|
10546
|
+
let defaults;
|
|
10547
|
+
let globalPrefix;
|
|
10548
|
+
Object.defineProperty(exports, 'defaults', {
|
|
10549
|
+
get: function () {
|
|
10550
|
+
if (defaults) return defaults;
|
|
10551
|
+
if (process.env.PREFIX) {
|
|
10552
|
+
globalPrefix = process.env.PREFIX;
|
|
10553
|
+
} else if (process.platform === 'win32') {
|
|
10554
|
+
// c:\node\node.exe --> prefix=c:\node\
|
|
10555
|
+
globalPrefix = path.dirname(process.execPath);
|
|
10556
|
+
} else {
|
|
10557
|
+
// /usr/local/bin/node --> prefix=/usr/local
|
|
10558
|
+
globalPrefix = path.dirname(path.dirname(process.execPath)); // destdir only is respected on Unix
|
|
10559
|
+
|
|
10560
|
+
if (process.env.DESTDIR) {
|
|
10561
|
+
globalPrefix = path.join(process.env.DESTDIR, globalPrefix);
|
|
10562
|
+
}
|
|
10563
|
+
}
|
|
10564
|
+
defaults = {
|
|
10565
|
+
access: null,
|
|
10566
|
+
'allow-same-version': false,
|
|
10567
|
+
'always-auth': false,
|
|
10568
|
+
also: null,
|
|
10569
|
+
audit: true,
|
|
10570
|
+
'auth-type': 'legacy',
|
|
10571
|
+
'bin-links': true,
|
|
10572
|
+
browser: null,
|
|
10573
|
+
ca: null,
|
|
10574
|
+
cafile: null,
|
|
10575
|
+
cache: cache,
|
|
10576
|
+
'cache-lock-stale': 60000,
|
|
10577
|
+
'cache-lock-retries': 10,
|
|
10578
|
+
'cache-lock-wait': 10000,
|
|
10579
|
+
'cache-max': Infinity,
|
|
10580
|
+
'cache-min': 10,
|
|
10581
|
+
cert: null,
|
|
10582
|
+
cidr: null,
|
|
10583
|
+
color: process.env.NO_COLOR == null,
|
|
10584
|
+
depth: Infinity,
|
|
10585
|
+
description: true,
|
|
10586
|
+
dev: false,
|
|
10587
|
+
'dry-run': false,
|
|
10588
|
+
editor: osenv.editor(),
|
|
10589
|
+
'engine-strict': false,
|
|
10590
|
+
force: false,
|
|
10591
|
+
'fetch-retries': 2,
|
|
10592
|
+
'fetch-retry-factor': 10,
|
|
10593
|
+
'fetch-retry-mintimeout': 10000,
|
|
10594
|
+
'fetch-retry-maxtimeout': 60000,
|
|
10595
|
+
git: 'git',
|
|
10596
|
+
'git-tag-version': true,
|
|
10597
|
+
'commit-hooks': true,
|
|
10598
|
+
global: false,
|
|
10599
|
+
globalconfig: path.resolve(globalPrefix, 'etc', 'npmrc'),
|
|
10600
|
+
'global-style': false,
|
|
10601
|
+
group: process.platform === 'win32' ? 0 : process.env.SUDO_GID || process.getgid && process.getgid(),
|
|
10602
|
+
'ham-it-up': false,
|
|
10603
|
+
heading: 'npm',
|
|
10604
|
+
'if-present': false,
|
|
10605
|
+
'ignore-prepublish': false,
|
|
10606
|
+
'ignore-scripts': false,
|
|
10607
|
+
'init-module': path.resolve(home, '.npm-init.js'),
|
|
10608
|
+
'init-author-name': '',
|
|
10609
|
+
'init-author-email': '',
|
|
10610
|
+
'init-author-url': '',
|
|
10611
|
+
'init-version': '1.0.0',
|
|
10612
|
+
'init-license': 'ISC',
|
|
10613
|
+
json: false,
|
|
10614
|
+
key: null,
|
|
10615
|
+
'legacy-bundling': false,
|
|
10616
|
+
link: false,
|
|
10617
|
+
'local-address': undefined,
|
|
10618
|
+
loglevel: 'notice',
|
|
10619
|
+
logstream: process.stderr,
|
|
10620
|
+
'logs-max': 10,
|
|
10621
|
+
long: false,
|
|
10622
|
+
maxsockets: 50,
|
|
10623
|
+
message: '%s',
|
|
10624
|
+
'metrics-registry': null,
|
|
10625
|
+
'node-options': null,
|
|
10626
|
+
// We remove node-version to fix the issue described here: https://github.com/pnpm/pnpm/issues/4203#issuecomment-1133872769
|
|
10627
|
+
'offline': false,
|
|
10628
|
+
'onload-script': false,
|
|
10629
|
+
only: null,
|
|
10630
|
+
optional: true,
|
|
10631
|
+
otp: null,
|
|
10632
|
+
'package-lock': true,
|
|
10633
|
+
'package-lock-only': false,
|
|
10634
|
+
parseable: false,
|
|
10635
|
+
'prefer-offline': false,
|
|
10636
|
+
'prefer-online': false,
|
|
10637
|
+
prefix: globalPrefix,
|
|
10638
|
+
production: process.env.NODE_ENV === 'production',
|
|
10639
|
+
'progress': !process.env.TRAVIS && !process.env.CI,
|
|
10640
|
+
provenance: false,
|
|
10641
|
+
proxy: null,
|
|
10642
|
+
'https-proxy': null,
|
|
10643
|
+
'no-proxy': null,
|
|
10644
|
+
'user-agent': 'npm/{npm-version} ' + 'node/{node-version} ' + '{platform} ' + '{arch}',
|
|
10645
|
+
'read-only': false,
|
|
10646
|
+
'rebuild-bundle': true,
|
|
10647
|
+
registry: 'https://registry.npmjs.org/',
|
|
10648
|
+
rollback: true,
|
|
10649
|
+
save: true,
|
|
10650
|
+
'save-bundle': false,
|
|
10651
|
+
'save-dev': false,
|
|
10652
|
+
'save-exact': false,
|
|
10653
|
+
'save-optional': false,
|
|
10654
|
+
'save-prefix': '^',
|
|
10655
|
+
'save-prod': false,
|
|
10656
|
+
scope: '',
|
|
10657
|
+
'script-shell': null,
|
|
10658
|
+
'scripts-prepend-node-path': 'warn-only',
|
|
10659
|
+
searchopts: '',
|
|
10660
|
+
searchexclude: null,
|
|
10661
|
+
searchlimit: 20,
|
|
10662
|
+
searchstaleness: 15 * 60,
|
|
10663
|
+
'send-metrics': false,
|
|
10664
|
+
shell: osenv.shell(),
|
|
10665
|
+
shrinkwrap: true,
|
|
10666
|
+
'sign-git-tag': false,
|
|
10667
|
+
'sso-poll-frequency': 500,
|
|
10668
|
+
'sso-type': 'oauth',
|
|
10669
|
+
'strict-ssl': true,
|
|
10670
|
+
tag: 'latest',
|
|
10671
|
+
'tag-version-prefix': 'v',
|
|
10672
|
+
timing: false,
|
|
10673
|
+
tmp: temp,
|
|
10674
|
+
unicode: hasUnicode(),
|
|
10675
|
+
'unsafe-perm': process.platform === 'win32' || process.platform === 'cygwin' || !(process.getuid && process.setuid && process.getgid && process.setgid) || process.getuid() !== 0,
|
|
10676
|
+
usage: false,
|
|
10677
|
+
user: process.platform === 'win32' ? 0 : 'nobody',
|
|
10678
|
+
userconfig: path.resolve(home, '.npmrc'),
|
|
10679
|
+
umask: process.umask ? process.umask() : umask.fromString('022'),
|
|
10680
|
+
version: false,
|
|
10681
|
+
versions: false,
|
|
10682
|
+
viewer: process.platform === 'win32' ? 'browser' : 'man',
|
|
10683
|
+
_exit: true
|
|
10684
|
+
};
|
|
10685
|
+
return defaults;
|
|
10686
|
+
}
|
|
10687
|
+
});
|
|
10688
|
+
})(defaults$1);
|
|
10689
|
+
return defaults$1;
|
|
10690
|
+
}
|
|
10691
|
+
|
|
10692
|
+
var hasRequiredNpmConf;
|
|
10693
|
+
function requireNpmConf() {
|
|
10694
|
+
if (hasRequiredNpmConf) return npmConf.exports;
|
|
10695
|
+
hasRequiredNpmConf = 1;
|
|
10696
|
+
(function (module) {
|
|
10697
|
+
|
|
10698
|
+
const path = require$$0$c;
|
|
10699
|
+
const Conf = requireConf();
|
|
10700
|
+
const _defaults = requireDefaults$1();
|
|
10701
|
+
|
|
10702
|
+
// https://github.com/npm/cli/blob/latest/lib/config/core.js#L101-L200
|
|
10703
|
+
module.exports = (opts, types, defaults) => {
|
|
10704
|
+
const conf = new Conf(Object.assign({}, _defaults.defaults, defaults), types);
|
|
10705
|
+
conf.add(Object.assign({}, opts), 'cli');
|
|
10706
|
+
const warnings = [];
|
|
10707
|
+
let failedToLoadBuiltInConfig = false;
|
|
10708
|
+
if (require.resolve.paths) {
|
|
10709
|
+
const paths = require.resolve.paths('npm');
|
|
10710
|
+
// Assume that last path in resolve paths is builtin modules directory
|
|
10711
|
+
let npmPath;
|
|
10712
|
+
try {
|
|
10713
|
+
npmPath = require.resolve('npm', {
|
|
10714
|
+
paths: paths.slice(-1)
|
|
10715
|
+
});
|
|
10716
|
+
} catch (error) {
|
|
10717
|
+
// Error will be thrown if module cannot be found.
|
|
10718
|
+
// Update the flag while loading builtin config failed.
|
|
10719
|
+
failedToLoadBuiltInConfig = true;
|
|
10720
|
+
}
|
|
10721
|
+
if (npmPath) {
|
|
10722
|
+
/**
|
|
10723
|
+
* According to https://github.com/npm/cli/blob/86f5bdb91f7a5971953a5171d32d6eeda6a2e972/lib/npm.js#L258
|
|
10724
|
+
* and https://github.com/npm/cli/blob/86f5bdb91f7a5971953a5171d32d6eeda6a2e972/lib/config/core.js#L92
|
|
10725
|
+
*/
|
|
10726
|
+
warnings.push(conf.addFile(path.resolve(path.dirname(npmPath), '..', 'npmrc'), 'builtin'));
|
|
10727
|
+
}
|
|
10728
|
+
}
|
|
10729
|
+
conf.addEnv();
|
|
10730
|
+
conf.loadPrefix();
|
|
10731
|
+
const projectConf = path.resolve(conf.localPrefix, '.npmrc');
|
|
10732
|
+
const userConf = conf.get('userconfig');
|
|
10733
|
+
if (!conf.get('global') && projectConf !== userConf) {
|
|
10734
|
+
warnings.push(conf.addFile(projectConf, 'project'));
|
|
10735
|
+
} else {
|
|
10736
|
+
conf.add({}, 'project');
|
|
10737
|
+
}
|
|
10738
|
+
|
|
10739
|
+
// TODO: cover with tests that configs from workspace .npmrc have bigger priority
|
|
10740
|
+
// than the ones in userconfig
|
|
10741
|
+
if (conf.get('workspace-prefix') && conf.get('workspace-prefix') !== projectConf) {
|
|
10742
|
+
const workspaceConf = path.resolve(conf.get('workspace-prefix'), '.npmrc');
|
|
10743
|
+
warnings.push(conf.addFile(workspaceConf, 'workspace'));
|
|
10744
|
+
}
|
|
10745
|
+
warnings.push(conf.addFile(conf.get('userconfig'), 'user'));
|
|
10746
|
+
if (conf.get('prefix')) {
|
|
10747
|
+
const etc = path.resolve(conf.get('prefix'), 'etc');
|
|
10748
|
+
conf.root.globalconfig = path.resolve(etc, 'npmrc');
|
|
10749
|
+
conf.root.globalignorefile = path.resolve(etc, 'npmignore');
|
|
10750
|
+
}
|
|
10751
|
+
warnings.push(conf.addFile(conf.get('globalconfig'), 'global'));
|
|
10752
|
+
conf.loadUser();
|
|
10753
|
+
const caFile = conf.get('cafile');
|
|
10754
|
+
if (caFile) {
|
|
10755
|
+
conf.loadCAFile(caFile);
|
|
10756
|
+
}
|
|
10757
|
+
return {
|
|
10758
|
+
config: conf,
|
|
10759
|
+
warnings: warnings.filter(Boolean),
|
|
10760
|
+
failedToLoadBuiltInConfig
|
|
10761
|
+
};
|
|
10762
|
+
};
|
|
10763
|
+
Object.defineProperty(module.exports, 'defaults', {
|
|
10764
|
+
get() {
|
|
10765
|
+
return _defaults.defaults;
|
|
10766
|
+
},
|
|
10767
|
+
enumerable: true
|
|
10768
|
+
});
|
|
10769
|
+
})(npmConf);
|
|
10770
|
+
return npmConf.exports;
|
|
10771
|
+
}
|
|
10772
|
+
|
|
10773
|
+
var registryAuthToken;
|
|
10774
|
+
var hasRequiredRegistryAuthToken;
|
|
10775
|
+
function requireRegistryAuthToken() {
|
|
10776
|
+
if (hasRequiredRegistryAuthToken) return registryAuthToken;
|
|
10777
|
+
hasRequiredRegistryAuthToken = 1;
|
|
10778
|
+
const npmConf = requireNpmConf();
|
|
10779
|
+
const tokenKey = ':_authToken';
|
|
10780
|
+
const legacyTokenKey = ':_auth';
|
|
10781
|
+
const userKey = ':username';
|
|
10782
|
+
const passwordKey = ':_password';
|
|
10783
|
+
registryAuthToken = function getRegistryAuthToken() {
|
|
10784
|
+
let checkUrl;
|
|
10785
|
+
let options;
|
|
10786
|
+
if (arguments.length >= 2) {
|
|
10787
|
+
checkUrl = arguments[0];
|
|
10788
|
+
options = Object.assign({}, arguments[1]);
|
|
10789
|
+
} else if (typeof arguments[0] === 'string') {
|
|
10790
|
+
checkUrl = arguments[0];
|
|
10791
|
+
} else {
|
|
10792
|
+
options = Object.assign({}, arguments[0]);
|
|
10793
|
+
}
|
|
10794
|
+
options = options || {};
|
|
10795
|
+
const providedNpmrc = options.npmrc;
|
|
10796
|
+
options.npmrc = (options.npmrc ? {
|
|
10797
|
+
config: {
|
|
10798
|
+
get: key => providedNpmrc[key]
|
|
10799
|
+
}
|
|
10800
|
+
} : npmConf()).config;
|
|
10801
|
+
checkUrl = checkUrl || options.npmrc.get('registry') || npmConf.defaults.registry;
|
|
10802
|
+
return getRegistryAuthInfo(checkUrl, options) || getLegacyAuthInfo(options.npmrc);
|
|
10803
|
+
};
|
|
10804
|
+
|
|
10805
|
+
// https://nodejs.org/api/url.html#urlresolvefrom-to
|
|
10806
|
+
function urlResolve(from, to) {
|
|
10807
|
+
const resolvedUrl = new URL(to, new URL(from.startsWith('//') ? `./${from}` : from, 'resolve://'));
|
|
10808
|
+
if (resolvedUrl.protocol === 'resolve:') {
|
|
10809
|
+
// `from` is a relative URL.
|
|
10810
|
+
const {
|
|
10811
|
+
pathname,
|
|
10812
|
+
search,
|
|
10813
|
+
hash
|
|
10814
|
+
} = resolvedUrl;
|
|
10815
|
+
return pathname + search + hash;
|
|
10816
|
+
}
|
|
10817
|
+
return resolvedUrl.toString();
|
|
10818
|
+
}
|
|
10819
|
+
function getRegistryAuthInfo(checkUrl, options) {
|
|
10820
|
+
let parsed = checkUrl instanceof URL ? checkUrl : new URL(checkUrl.startsWith('//') ? `http:${checkUrl}` : checkUrl);
|
|
10821
|
+
let pathname;
|
|
10822
|
+
while (pathname !== '/' && parsed.pathname !== pathname) {
|
|
10823
|
+
pathname = parsed.pathname || '/';
|
|
10824
|
+
const regUrl = '//' + parsed.host + pathname.replace(/\/$/, '');
|
|
10825
|
+
const authInfo = getAuthInfoForUrl(regUrl, options.npmrc);
|
|
10826
|
+
if (authInfo) {
|
|
10827
|
+
return authInfo;
|
|
10828
|
+
}
|
|
10829
|
+
|
|
10830
|
+
// break if not recursive
|
|
10831
|
+
if (!options.recursive) {
|
|
10832
|
+
return /\/$/.test(checkUrl) ? undefined : getRegistryAuthInfo(new URL('./', parsed), options);
|
|
10833
|
+
}
|
|
10834
|
+
parsed.pathname = urlResolve(normalizePath(pathname), '..') || '/';
|
|
10835
|
+
}
|
|
10836
|
+
return undefined;
|
|
10837
|
+
}
|
|
10838
|
+
function getLegacyAuthInfo(npmrc) {
|
|
10839
|
+
if (!npmrc.get('_auth')) {
|
|
10840
|
+
return undefined;
|
|
10841
|
+
}
|
|
10842
|
+
const token = replaceEnvironmentVariable(npmrc.get('_auth'));
|
|
10843
|
+
return {
|
|
10844
|
+
token: token,
|
|
10845
|
+
type: 'Basic'
|
|
10846
|
+
};
|
|
10847
|
+
}
|
|
10848
|
+
function normalizePath(path) {
|
|
10849
|
+
return path[path.length - 1] === '/' ? path : path + '/';
|
|
10850
|
+
}
|
|
10851
|
+
function getAuthInfoForUrl(regUrl, npmrc) {
|
|
10852
|
+
// try to get bearer token
|
|
10853
|
+
const bearerAuth = getBearerToken(npmrc.get(regUrl + tokenKey) || npmrc.get(regUrl + '/' + tokenKey));
|
|
10854
|
+
if (bearerAuth) {
|
|
10855
|
+
return bearerAuth;
|
|
10856
|
+
}
|
|
10857
|
+
|
|
10858
|
+
// try to get basic token
|
|
10859
|
+
const username = npmrc.get(regUrl + userKey) || npmrc.get(regUrl + '/' + userKey);
|
|
10860
|
+
const password = npmrc.get(regUrl + passwordKey) || npmrc.get(regUrl + '/' + passwordKey);
|
|
10861
|
+
const basicAuth = getTokenForUsernameAndPassword(username, password);
|
|
10862
|
+
if (basicAuth) {
|
|
10863
|
+
return basicAuth;
|
|
10864
|
+
}
|
|
10865
|
+
const basicAuthWithToken = getLegacyAuthToken(npmrc.get(regUrl + legacyTokenKey) || npmrc.get(regUrl + '/' + legacyTokenKey));
|
|
10866
|
+
if (basicAuthWithToken) {
|
|
10867
|
+
return basicAuthWithToken;
|
|
10868
|
+
}
|
|
10869
|
+
return undefined;
|
|
10870
|
+
}
|
|
10871
|
+
function replaceEnvironmentVariable(token) {
|
|
10872
|
+
return token.replace(/^\$\{?([^}]*)\}?$/, function (fullMatch, envVar) {
|
|
10873
|
+
return process.env[envVar];
|
|
10874
|
+
});
|
|
10875
|
+
}
|
|
10876
|
+
function getBearerToken(tok) {
|
|
10877
|
+
if (!tok) {
|
|
10878
|
+
return undefined;
|
|
10879
|
+
}
|
|
10880
|
+
|
|
10881
|
+
// check if bearer token is set as environment variable
|
|
10882
|
+
const token = replaceEnvironmentVariable(tok);
|
|
10883
|
+
return {
|
|
10884
|
+
token: token,
|
|
10885
|
+
type: 'Bearer'
|
|
10886
|
+
};
|
|
10887
|
+
}
|
|
10888
|
+
function getTokenForUsernameAndPassword(username, password) {
|
|
10889
|
+
if (!username || !password) {
|
|
10890
|
+
return undefined;
|
|
10891
|
+
}
|
|
10892
|
+
|
|
10893
|
+
// passwords are base64 encoded, so we need to decode it
|
|
10894
|
+
// See https://github.com/npm/npm/blob/v3.10.6/lib/config/set-credentials-by-uri.js#L26
|
|
10895
|
+
const pass = Buffer.from(replaceEnvironmentVariable(password), 'base64').toString('utf8');
|
|
10896
|
+
|
|
10897
|
+
// a basic auth token is base64 encoded 'username:password'
|
|
10898
|
+
// See https://github.com/npm/npm/blob/v3.10.6/lib/config/get-credentials-by-uri.js#L70
|
|
10899
|
+
const token = Buffer.from(username + ':' + pass, 'utf8').toString('base64');
|
|
10900
|
+
|
|
10901
|
+
// we found a basicToken token so let's exit the loop
|
|
10902
|
+
return {
|
|
10903
|
+
token: token,
|
|
10904
|
+
type: 'Basic',
|
|
10905
|
+
password: pass,
|
|
10906
|
+
username: username
|
|
10907
|
+
};
|
|
10908
|
+
}
|
|
10909
|
+
function getLegacyAuthToken(tok) {
|
|
10910
|
+
if (!tok) {
|
|
10911
|
+
return undefined;
|
|
10912
|
+
}
|
|
10913
|
+
|
|
10914
|
+
// check if legacy auth token is set as environment variable
|
|
10915
|
+
const token = replaceEnvironmentVariable(tok);
|
|
10916
|
+
return {
|
|
10917
|
+
token: token,
|
|
10918
|
+
type: 'Basic'
|
|
10919
|
+
};
|
|
10920
|
+
}
|
|
10921
|
+
return registryAuthToken;
|
|
10922
|
+
}
|
|
10923
|
+
|
|
10924
|
+
var registryAuthTokenExports = requireRegistryAuthToken();
|
|
10925
|
+
|
|
10926
|
+
const toPath = urlOrPath => urlOrPath instanceof URL ? require$$0$6.fileURLToPath(urlOrPath) : urlOrPath;
|
|
10927
|
+
function findUpSync(name, {
|
|
10928
|
+
cwd = process$2.cwd(),
|
|
10929
|
+
type = 'file',
|
|
10930
|
+
stopAt
|
|
10931
|
+
} = {}) {
|
|
10932
|
+
let directory = path$2.resolve(toPath(cwd) ?? '');
|
|
10933
|
+
const {
|
|
10934
|
+
root
|
|
10935
|
+
} = path$2.parse(directory);
|
|
10936
|
+
stopAt = path$2.resolve(directory, toPath(stopAt) ?? root);
|
|
10937
|
+
const isAbsoluteName = path$2.isAbsolute(name);
|
|
10938
|
+
while (directory) {
|
|
10939
|
+
const filePath = isAbsoluteName ? name : path$2.join(directory, name);
|
|
10940
|
+
try {
|
|
10941
|
+
const stats = fs$1.statSync(filePath, {
|
|
10942
|
+
throwIfNoEntry: false
|
|
10943
|
+
});
|
|
10944
|
+
if (type === 'file' && stats?.isFile() || type === 'directory' && stats?.isDirectory()) {
|
|
10945
|
+
return filePath;
|
|
10946
|
+
}
|
|
10947
|
+
} catch {}
|
|
10948
|
+
if (directory === stopAt || directory === root) {
|
|
10949
|
+
break;
|
|
10950
|
+
}
|
|
10951
|
+
directory = path$2.dirname(directory);
|
|
10952
|
+
}
|
|
10953
|
+
}
|
|
10954
|
+
|
|
10955
|
+
var ini;
|
|
10956
|
+
var hasRequiredIni;
|
|
10957
|
+
function requireIni() {
|
|
10958
|
+
if (hasRequiredIni) return ini;
|
|
10959
|
+
hasRequiredIni = 1;
|
|
10960
|
+
const {
|
|
10961
|
+
hasOwnProperty
|
|
10962
|
+
} = Object.prototype;
|
|
10963
|
+
const encode = (obj, opt = {}) => {
|
|
10964
|
+
if (typeof opt === 'string') {
|
|
10965
|
+
opt = {
|
|
10966
|
+
section: opt
|
|
10967
|
+
};
|
|
10968
|
+
}
|
|
10969
|
+
opt.align = opt.align === true;
|
|
10970
|
+
opt.newline = opt.newline === true;
|
|
10971
|
+
opt.sort = opt.sort === true;
|
|
10972
|
+
opt.whitespace = opt.whitespace === true || opt.align === true;
|
|
10973
|
+
// The `typeof` check is required because accessing the `process` directly fails on browsers.
|
|
10974
|
+
/* istanbul ignore next */
|
|
10975
|
+
opt.platform = opt.platform || typeof process !== 'undefined' && process.platform;
|
|
10976
|
+
opt.bracketedArray = opt.bracketedArray !== false;
|
|
10977
|
+
|
|
10978
|
+
/* istanbul ignore next */
|
|
10979
|
+
const eol = opt.platform === 'win32' ? '\r\n' : '\n';
|
|
10980
|
+
const separator = opt.whitespace ? ' = ' : '=';
|
|
10981
|
+
const children = [];
|
|
10982
|
+
const keys = opt.sort ? Object.keys(obj).sort() : Object.keys(obj);
|
|
10983
|
+
let padToChars = 0;
|
|
10984
|
+
// If aligning on the separator, then padToChars is determined as follows:
|
|
10985
|
+
// 1. Get the keys
|
|
10986
|
+
// 2. Exclude keys pointing to objects unless the value is null or an array
|
|
10987
|
+
// 3. Add `[]` to array keys
|
|
10988
|
+
// 4. Ensure non empty set of keys
|
|
10989
|
+
// 5. Reduce the set to the longest `safe` key
|
|
10990
|
+
// 6. Get the `safe` length
|
|
10991
|
+
if (opt.align) {
|
|
10992
|
+
padToChars = safe(keys.filter(k => obj[k] === null || Array.isArray(obj[k]) || typeof obj[k] !== 'object').map(k => Array.isArray(obj[k]) ? `${k}[]` : k).concat(['']).reduce((a, b) => safe(a).length >= safe(b).length ? a : b)).length;
|
|
10993
|
+
}
|
|
10994
|
+
let out = '';
|
|
10995
|
+
const arraySuffix = opt.bracketedArray ? '[]' : '';
|
|
10996
|
+
for (const k of keys) {
|
|
10997
|
+
const val = obj[k];
|
|
10998
|
+
if (val && Array.isArray(val)) {
|
|
10999
|
+
for (const item of val) {
|
|
11000
|
+
out += safe(`${k}${arraySuffix}`).padEnd(padToChars, ' ') + separator + safe(item) + eol;
|
|
11001
|
+
}
|
|
11002
|
+
} else if (val && typeof val === 'object') {
|
|
11003
|
+
children.push(k);
|
|
11004
|
+
} else {
|
|
11005
|
+
out += safe(k).padEnd(padToChars, ' ') + separator + safe(val) + eol;
|
|
11006
|
+
}
|
|
11007
|
+
}
|
|
11008
|
+
if (opt.section && out.length) {
|
|
11009
|
+
out = '[' + safe(opt.section) + ']' + (opt.newline ? eol + eol : eol) + out;
|
|
11010
|
+
}
|
|
11011
|
+
for (const k of children) {
|
|
11012
|
+
const nk = splitSections(k, '.').join('\\.');
|
|
11013
|
+
const section = (opt.section ? opt.section + '.' : '') + nk;
|
|
11014
|
+
const child = encode(obj[k], {
|
|
11015
|
+
...opt,
|
|
11016
|
+
section
|
|
11017
|
+
});
|
|
11018
|
+
if (out.length && child.length) {
|
|
11019
|
+
out += eol;
|
|
11020
|
+
}
|
|
11021
|
+
out += child;
|
|
11022
|
+
}
|
|
11023
|
+
return out;
|
|
11024
|
+
};
|
|
11025
|
+
function splitSections(str, separator) {
|
|
11026
|
+
var lastMatchIndex = 0;
|
|
11027
|
+
var lastSeparatorIndex = 0;
|
|
11028
|
+
var nextIndex = 0;
|
|
11029
|
+
var sections = [];
|
|
11030
|
+
do {
|
|
11031
|
+
nextIndex = str.indexOf(separator, lastMatchIndex);
|
|
11032
|
+
if (nextIndex !== -1) {
|
|
11033
|
+
lastMatchIndex = nextIndex + separator.length;
|
|
11034
|
+
if (nextIndex > 0 && str[nextIndex - 1] === '\\') {
|
|
11035
|
+
continue;
|
|
11036
|
+
}
|
|
11037
|
+
sections.push(str.slice(lastSeparatorIndex, nextIndex));
|
|
11038
|
+
lastSeparatorIndex = nextIndex + separator.length;
|
|
11039
|
+
}
|
|
11040
|
+
} while (nextIndex !== -1);
|
|
11041
|
+
sections.push(str.slice(lastSeparatorIndex));
|
|
11042
|
+
return sections;
|
|
11043
|
+
}
|
|
11044
|
+
const decode = (str, opt = {}) => {
|
|
11045
|
+
opt.bracketedArray = opt.bracketedArray !== false;
|
|
11046
|
+
const out = Object.create(null);
|
|
11047
|
+
let p = out;
|
|
11048
|
+
let section = null;
|
|
11049
|
+
// section |key = value
|
|
11050
|
+
const re = /^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i;
|
|
11051
|
+
const lines = str.split(/[\r\n]+/g);
|
|
11052
|
+
const duplicates = {};
|
|
11053
|
+
for (const line of lines) {
|
|
11054
|
+
if (!line || line.match(/^\s*[;#]/) || line.match(/^\s*$/)) {
|
|
11055
|
+
continue;
|
|
11056
|
+
}
|
|
11057
|
+
const match = line.match(re);
|
|
11058
|
+
if (!match) {
|
|
11059
|
+
continue;
|
|
11060
|
+
}
|
|
11061
|
+
if (match[1] !== undefined) {
|
|
11062
|
+
section = unsafe(match[1]);
|
|
11063
|
+
if (section === '__proto__') {
|
|
11064
|
+
// not allowed
|
|
11065
|
+
// keep parsing the section, but don't attach it.
|
|
11066
|
+
p = Object.create(null);
|
|
11067
|
+
continue;
|
|
11068
|
+
}
|
|
11069
|
+
p = out[section] = out[section] || Object.create(null);
|
|
11070
|
+
continue;
|
|
11071
|
+
}
|
|
11072
|
+
const keyRaw = unsafe(match[2]);
|
|
11073
|
+
let isArray;
|
|
11074
|
+
if (opt.bracketedArray) {
|
|
11075
|
+
isArray = keyRaw.length > 2 && keyRaw.slice(-2) === '[]';
|
|
11076
|
+
} else {
|
|
11077
|
+
duplicates[keyRaw] = (duplicates?.[keyRaw] || 0) + 1;
|
|
11078
|
+
isArray = duplicates[keyRaw] > 1;
|
|
11079
|
+
}
|
|
11080
|
+
const key = isArray && keyRaw.endsWith('[]') ? keyRaw.slice(0, -2) : keyRaw;
|
|
11081
|
+
if (key === '__proto__') {
|
|
11082
|
+
continue;
|
|
11083
|
+
}
|
|
11084
|
+
const valueRaw = match[3] ? unsafe(match[4]) : true;
|
|
11085
|
+
const value = valueRaw === 'true' || valueRaw === 'false' || valueRaw === 'null' ? JSON.parse(valueRaw) : valueRaw;
|
|
11086
|
+
|
|
11087
|
+
// Convert keys with '[]' suffix to an array
|
|
11088
|
+
if (isArray) {
|
|
11089
|
+
if (!hasOwnProperty.call(p, key)) {
|
|
11090
|
+
p[key] = [];
|
|
11091
|
+
} else if (!Array.isArray(p[key])) {
|
|
11092
|
+
p[key] = [p[key]];
|
|
11093
|
+
}
|
|
11094
|
+
}
|
|
11095
|
+
|
|
11096
|
+
// safeguard against resetting a previously defined
|
|
11097
|
+
// array by accidentally forgetting the brackets
|
|
11098
|
+
if (Array.isArray(p[key])) {
|
|
11099
|
+
p[key].push(value);
|
|
11100
|
+
} else {
|
|
11101
|
+
p[key] = value;
|
|
11102
|
+
}
|
|
11103
|
+
}
|
|
11104
|
+
|
|
11105
|
+
// {a:{y:1},"a.b":{x:2}} --> {a:{y:1,b:{x:2}}}
|
|
11106
|
+
// use a filter to return the keys that have to be deleted.
|
|
11107
|
+
const remove = [];
|
|
11108
|
+
for (const k of Object.keys(out)) {
|
|
11109
|
+
if (!hasOwnProperty.call(out, k) || typeof out[k] !== 'object' || Array.isArray(out[k])) {
|
|
11110
|
+
continue;
|
|
11111
|
+
}
|
|
11112
|
+
|
|
11113
|
+
// see if the parent section is also an object.
|
|
11114
|
+
// if so, add it to that, and mark this one for deletion
|
|
11115
|
+
const parts = splitSections(k, '.');
|
|
11116
|
+
p = out;
|
|
11117
|
+
const l = parts.pop();
|
|
11118
|
+
const nl = l.replace(/\\\./g, '.');
|
|
11119
|
+
for (const part of parts) {
|
|
11120
|
+
if (part === '__proto__') {
|
|
11121
|
+
continue;
|
|
11122
|
+
}
|
|
11123
|
+
if (!hasOwnProperty.call(p, part) || typeof p[part] !== 'object') {
|
|
11124
|
+
p[part] = Object.create(null);
|
|
11125
|
+
}
|
|
11126
|
+
p = p[part];
|
|
11127
|
+
}
|
|
11128
|
+
if (p === out && nl === l) {
|
|
11129
|
+
continue;
|
|
11130
|
+
}
|
|
11131
|
+
p[nl] = out[k];
|
|
11132
|
+
remove.push(k);
|
|
11133
|
+
}
|
|
11134
|
+
for (const del of remove) {
|
|
11135
|
+
delete out[del];
|
|
11136
|
+
}
|
|
11137
|
+
return out;
|
|
11138
|
+
};
|
|
11139
|
+
const isQuoted = val => {
|
|
11140
|
+
return val.startsWith('"') && val.endsWith('"') || val.startsWith("'") && val.endsWith("'");
|
|
11141
|
+
};
|
|
11142
|
+
const safe = val => {
|
|
11143
|
+
if (typeof val !== 'string' || val.match(/[=\r\n]/) || val.match(/^\[/) || val.length > 1 && isQuoted(val) || val !== val.trim()) {
|
|
11144
|
+
return JSON.stringify(val);
|
|
11145
|
+
}
|
|
11146
|
+
return val.split(';').join('\\;').split('#').join('\\#');
|
|
11147
|
+
};
|
|
11148
|
+
const unsafe = val => {
|
|
11149
|
+
val = (val || '').trim();
|
|
11150
|
+
if (isQuoted(val)) {
|
|
11151
|
+
// remove the single quotes before calling JSON.parse
|
|
11152
|
+
if (val.charAt(0) === "'") {
|
|
11153
|
+
val = val.slice(1, -1);
|
|
11154
|
+
}
|
|
11155
|
+
try {
|
|
11156
|
+
val = JSON.parse(val);
|
|
11157
|
+
} catch {
|
|
11158
|
+
// ignore errors
|
|
11159
|
+
}
|
|
11160
|
+
} else {
|
|
11161
|
+
// walk the val to find the first not-escaped ; character
|
|
11162
|
+
let esc = false;
|
|
11163
|
+
let unesc = '';
|
|
11164
|
+
for (let i = 0, l = val.length; i < l; i++) {
|
|
11165
|
+
const c = val.charAt(i);
|
|
11166
|
+
if (esc) {
|
|
11167
|
+
if ('\\;#'.indexOf(c) !== -1) {
|
|
11168
|
+
unesc += c;
|
|
11169
|
+
} else {
|
|
11170
|
+
unesc += '\\' + c;
|
|
11171
|
+
}
|
|
11172
|
+
esc = false;
|
|
11173
|
+
} else if (';#'.indexOf(c) !== -1) {
|
|
11174
|
+
break;
|
|
11175
|
+
} else if (c === '\\') {
|
|
11176
|
+
esc = true;
|
|
11177
|
+
} else {
|
|
11178
|
+
unesc += c;
|
|
11179
|
+
}
|
|
11180
|
+
}
|
|
11181
|
+
if (esc) {
|
|
11182
|
+
unesc += '\\';
|
|
11183
|
+
}
|
|
11184
|
+
return unesc.trim();
|
|
11185
|
+
}
|
|
11186
|
+
return val;
|
|
11187
|
+
};
|
|
11188
|
+
ini = {
|
|
11189
|
+
parse: decode,
|
|
11190
|
+
decode,
|
|
11191
|
+
stringify: encode,
|
|
11192
|
+
encode,
|
|
11193
|
+
safe,
|
|
11194
|
+
unsafe
|
|
11195
|
+
};
|
|
11196
|
+
return ini;
|
|
11197
|
+
}
|
|
11198
|
+
|
|
11199
|
+
var iniExports = requireIni();
|
|
11200
|
+
|
|
11201
|
+
const defaultUrl = 'https://registry.npmjs.org/';
|
|
11202
|
+
const normalize$2 = url => url.endsWith('/') ? url : `${url}/`;
|
|
11203
|
+
function registryUrl(scope) {
|
|
11204
|
+
// Lowercased one is priority.
|
|
11205
|
+
// Run `NPM_CONFIG_REGISTRY=foo npm_config_registry=bar npm config get registry` to check.
|
|
11206
|
+
const npmConfigRegistry = process$2.env.npm_config_registry || process$2.env.NPM_CONFIG_REGISTRY;
|
|
11207
|
+
|
|
11208
|
+
// Don't find up for performance.
|
|
11209
|
+
if (npmConfigRegistry && !scope) {
|
|
11210
|
+
return normalize$2(npmConfigRegistry);
|
|
11211
|
+
}
|
|
11212
|
+
const npmRcPath = findUpSync('.npmrc');
|
|
11213
|
+
if (!npmRcPath) {
|
|
11214
|
+
return normalize$2(npmConfigRegistry || defaultUrl);
|
|
11215
|
+
}
|
|
11216
|
+
const content = fs$1.readFileSync(npmRcPath, 'utf8');
|
|
11217
|
+
const result = iniExports.parse(content);
|
|
11218
|
+
return normalize$2(result[`${scope}:registry`] || npmConfigRegistry || result.registry || defaultUrl);
|
|
11219
|
+
}
|
|
11220
|
+
|
|
8559
11221
|
/* MAIN */
|
|
8560
11222
|
const attempt = (fn, fallback) => {
|
|
8561
11223
|
try {
|
|
@@ -8807,9 +11469,22 @@ const compare = (a, b) => {
|
|
|
8807
11469
|
/* MAIN */
|
|
8808
11470
|
const Utils = {
|
|
8809
11471
|
/* API */
|
|
8810
|
-
fetch: async url => {
|
|
11472
|
+
fetch: async (url, options = {}) => {
|
|
11473
|
+
const {
|
|
11474
|
+
authInfo
|
|
11475
|
+
} = {
|
|
11476
|
+
__proto__: null,
|
|
11477
|
+
...options
|
|
11478
|
+
};
|
|
11479
|
+
const headers = new Headers({
|
|
11480
|
+
'Accept': 'application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*'
|
|
11481
|
+
});
|
|
11482
|
+
if (authInfo) {
|
|
11483
|
+
headers.set('Authorization', `${authInfo.type} ${authInfo.token}`);
|
|
11484
|
+
}
|
|
8811
11485
|
const signal = Utils.getExitSignal();
|
|
8812
11486
|
const request = await fetch(url, {
|
|
11487
|
+
headers,
|
|
8813
11488
|
signal
|
|
8814
11489
|
});
|
|
8815
11490
|
const json = await request.json();
|
|
@@ -8820,10 +11495,20 @@ const Utils = {
|
|
|
8820
11495
|
whenExit(() => aborter.abort());
|
|
8821
11496
|
return aborter.signal;
|
|
8822
11497
|
},
|
|
8823
|
-
getLatestVersion: async name => {
|
|
8824
|
-
const
|
|
8825
|
-
|
|
8826
|
-
|
|
11498
|
+
getLatestVersion: async (name, options = {}) => {
|
|
11499
|
+
const {
|
|
11500
|
+
authInfo,
|
|
11501
|
+
registryUrl = 'https://registry.npmjs.org/'
|
|
11502
|
+
} = {
|
|
11503
|
+
__proto__: null,
|
|
11504
|
+
...options
|
|
11505
|
+
};
|
|
11506
|
+
const maybeSlash = registryUrl.endsWith('/') ? '' : '/';
|
|
11507
|
+
const latestUrl = `${registryUrl}${maybeSlash}${name}/latest`;
|
|
11508
|
+
const json = await Utils.fetch(latestUrl, {
|
|
11509
|
+
authInfo
|
|
11510
|
+
});
|
|
11511
|
+
return json.version;
|
|
8827
11512
|
},
|
|
8828
11513
|
isNumber: value => {
|
|
8829
11514
|
return typeof value === 'number';
|
|
@@ -8875,15 +11560,24 @@ var Store$1 = new Store();
|
|
|
8875
11560
|
/* IMPORT */
|
|
8876
11561
|
/* MAIN */
|
|
8877
11562
|
//TODO: Account for non-latest releases
|
|
8878
|
-
const updater$1 = async
|
|
8879
|
-
|
|
8880
|
-
|
|
8881
|
-
|
|
8882
|
-
|
|
11563
|
+
const updater$1 = async options => {
|
|
11564
|
+
const {
|
|
11565
|
+
authInfo,
|
|
11566
|
+
name,
|
|
11567
|
+
registryUrl,
|
|
11568
|
+
version,
|
|
11569
|
+
ttl = 0
|
|
11570
|
+
} = {
|
|
11571
|
+
__proto__: null,
|
|
11572
|
+
...options
|
|
11573
|
+
};
|
|
8883
11574
|
const record = Store$1.get(name);
|
|
8884
11575
|
const timestamp = Date.now();
|
|
8885
11576
|
const isFresh = !record || timestamp - record.timestampFetch >= ttl;
|
|
8886
|
-
const latest = isFresh ? await Utils.getLatestVersion(name
|
|
11577
|
+
const latest = isFresh ? await Utils.getLatestVersion(name, {
|
|
11578
|
+
authInfo,
|
|
11579
|
+
registryUrl
|
|
11580
|
+
}).catch(Utils.noop) : record?.version;
|
|
8887
11581
|
if (!latest) return false;
|
|
8888
11582
|
if (isFresh) {
|
|
8889
11583
|
const record = {
|
|
@@ -8902,36 +11596,6 @@ const updater$1 = async ({
|
|
|
8902
11596
|
return true;
|
|
8903
11597
|
};
|
|
8904
11598
|
|
|
8905
|
-
function getAugmentedNamespace(n) {
|
|
8906
|
-
if (Object.prototype.hasOwnProperty.call(n, '__esModule')) return n;
|
|
8907
|
-
var f = n.default;
|
|
8908
|
-
var a;
|
|
8909
|
-
if (typeof f == "function") {
|
|
8910
|
-
a = function a () {
|
|
8911
|
-
var isInstance = false;
|
|
8912
|
-
try {
|
|
8913
|
-
isInstance = this instanceof a;
|
|
8914
|
-
} catch {}
|
|
8915
|
-
if (isInstance) {
|
|
8916
|
-
return Reflect.construct(f, arguments, this.constructor);
|
|
8917
|
-
}
|
|
8918
|
-
return f.apply(this, arguments);
|
|
8919
|
-
};
|
|
8920
|
-
a.prototype = f.prototype;
|
|
8921
|
-
} else a = {};
|
|
8922
|
-
Object.defineProperty(a, '__esModule', {value: true});
|
|
8923
|
-
Object.keys(n).forEach(function (k) {
|
|
8924
|
-
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
8925
|
-
Object.defineProperty(a, k, d.get ? d : {
|
|
8926
|
-
enumerable: true,
|
|
8927
|
-
get: function () {
|
|
8928
|
-
return n[k];
|
|
8929
|
-
}
|
|
8930
|
-
});
|
|
8931
|
-
});
|
|
8932
|
-
return a;
|
|
8933
|
-
}
|
|
8934
|
-
|
|
8935
11599
|
var ajv = {exports: {}};
|
|
8936
11600
|
|
|
8937
11601
|
var core$2 = {};
|
|
@@ -18234,7 +20898,7 @@ var hasRequiredLog;
|
|
|
18234
20898
|
function requireLog() {
|
|
18235
20899
|
if (hasRequiredLog) return log;
|
|
18236
20900
|
hasRequiredLog = 1;
|
|
18237
|
-
var node_process = require$$0$
|
|
20901
|
+
var node_process = require$$0$f;
|
|
18238
20902
|
function debug(logLevel, ...messages) {
|
|
18239
20903
|
if (logLevel === 'debug') console.log(...messages);
|
|
18240
20904
|
}
|
|
@@ -19158,7 +21822,7 @@ var hasRequiredBinary;
|
|
|
19158
21822
|
function requireBinary() {
|
|
19159
21823
|
if (hasRequiredBinary) return binary$1;
|
|
19160
21824
|
hasRequiredBinary = 1;
|
|
19161
|
-
var node_buffer = require$$0$
|
|
21825
|
+
var node_buffer = require$$0$g;
|
|
19162
21826
|
var Scalar = requireScalar();
|
|
19163
21827
|
var stringifyString = requireStringifyString();
|
|
19164
21828
|
const binary = {
|
|
@@ -21738,7 +24402,7 @@ var hasRequiredComposer;
|
|
|
21738
24402
|
function requireComposer() {
|
|
21739
24403
|
if (hasRequiredComposer) return composer;
|
|
21740
24404
|
hasRequiredComposer = 1;
|
|
21741
|
-
var node_process = require$$0$
|
|
24405
|
+
var node_process = require$$0$f;
|
|
21742
24406
|
var directives = requireDirectives();
|
|
21743
24407
|
var Document = requireDocument();
|
|
21744
24408
|
var errors = requireErrors$6();
|
|
@@ -23220,7 +25884,7 @@ var hasRequiredParser$1;
|
|
|
23220
25884
|
function requireParser$1() {
|
|
23221
25885
|
if (hasRequiredParser$1) return parser$2;
|
|
23222
25886
|
hasRequiredParser$1 = 1;
|
|
23223
|
-
var node_process = require$$0$
|
|
25887
|
+
var node_process = require$$0$f;
|
|
23224
25888
|
var cst = requireCst();
|
|
23225
25889
|
var lexer = requireLexer();
|
|
23226
25890
|
function includesToken(list, type) {
|
|
@@ -25706,7 +28370,7 @@ var hasRequiredFillRange;
|
|
|
25706
28370
|
function requireFillRange() {
|
|
25707
28371
|
if (hasRequiredFillRange) return fillRange;
|
|
25708
28372
|
hasRequiredFillRange = 1;
|
|
25709
|
-
const util = require$$0$
|
|
28373
|
+
const util = require$$0$8;
|
|
25710
28374
|
const toRegexRange = requireToRegexRange();
|
|
25711
28375
|
const isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val);
|
|
25712
28376
|
const transform = toNumber => {
|
|
@@ -26718,7 +29382,7 @@ var hasRequiredConstants$9;
|
|
|
26718
29382
|
function requireConstants$9() {
|
|
26719
29383
|
if (hasRequiredConstants$9) return constants$9;
|
|
26720
29384
|
hasRequiredConstants$9 = 1;
|
|
26721
|
-
const path = require$$0$
|
|
29385
|
+
const path = require$$0$c;
|
|
26722
29386
|
const WIN_SLASH = '\\\\/';
|
|
26723
29387
|
const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
26724
29388
|
|
|
@@ -26959,7 +29623,7 @@ function requireUtils$6() {
|
|
|
26959
29623
|
hasRequiredUtils$6 = 1;
|
|
26960
29624
|
(function (exports) {
|
|
26961
29625
|
|
|
26962
|
-
const path = require$$0$
|
|
29626
|
+
const path = require$$0$c;
|
|
26963
29627
|
const win32 = process.platform === 'win32';
|
|
26964
29628
|
const {
|
|
26965
29629
|
REGEX_BACKSLASH,
|
|
@@ -28479,7 +31143,7 @@ var hasRequiredPicomatch$3;
|
|
|
28479
31143
|
function requirePicomatch$3() {
|
|
28480
31144
|
if (hasRequiredPicomatch$3) return picomatch_1$2;
|
|
28481
31145
|
hasRequiredPicomatch$3 = 1;
|
|
28482
|
-
const path = require$$0$
|
|
31146
|
+
const path = require$$0$c;
|
|
28483
31147
|
const scan = requireScan$2();
|
|
28484
31148
|
const parse = requireParse$6();
|
|
28485
31149
|
const utils = requireUtils$6();
|
|
@@ -28846,7 +31510,7 @@ var hasRequiredMicromatch;
|
|
|
28846
31510
|
function requireMicromatch() {
|
|
28847
31511
|
if (hasRequiredMicromatch) return micromatch_1;
|
|
28848
31512
|
hasRequiredMicromatch = 1;
|
|
28849
|
-
const util = require$$0$
|
|
31513
|
+
const util = require$$0$8;
|
|
28850
31514
|
const braces = requireBraces();
|
|
28851
31515
|
const picomatch = requirePicomatch$2();
|
|
28852
31516
|
const utils = requireUtils$6();
|
|
@@ -29338,7 +32002,7 @@ function requireUtils$5() {
|
|
|
29338
32002
|
value: true
|
|
29339
32003
|
});
|
|
29340
32004
|
utils$5.normalizePath = utils$5.isRootDirectory = utils$5.convertSlashes = utils$5.cleanPath = void 0;
|
|
29341
|
-
const path_1 = require$$0$
|
|
32005
|
+
const path_1 = require$$0$c;
|
|
29342
32006
|
function cleanPath(path) {
|
|
29343
32007
|
let normalized = (0, path_1.normalize)(path);
|
|
29344
32008
|
// we have to remove the last path separator
|
|
@@ -29383,7 +32047,7 @@ function requireJoinPath() {
|
|
|
29383
32047
|
value: true
|
|
29384
32048
|
});
|
|
29385
32049
|
joinPath.build = joinPath.joinDirectoryPath = joinPath.joinPathWithBasePath = void 0;
|
|
29386
|
-
const path_1 = require$$0$
|
|
32050
|
+
const path_1 = require$$0$c;
|
|
29387
32051
|
const utils_1 = requireUtils$5();
|
|
29388
32052
|
function joinPathWithBasePath(filename, directoryPath) {
|
|
29389
32053
|
return directoryPath + filename;
|
|
@@ -29565,8 +32229,8 @@ function requireResolveSymlink() {
|
|
|
29565
32229
|
value: true
|
|
29566
32230
|
});
|
|
29567
32231
|
resolveSymlink.build = void 0;
|
|
29568
|
-
const fs_1 = __importDefault(require$$0$
|
|
29569
|
-
const path_1 = require$$0$
|
|
32232
|
+
const fs_1 = __importDefault(require$$0$9);
|
|
32233
|
+
const path_1 = require$$0$c;
|
|
29570
32234
|
const resolveSymlinksAsync = function (path, state, callback) {
|
|
29571
32235
|
const {
|
|
29572
32236
|
queue,
|
|
@@ -29693,7 +32357,7 @@ function requireWalkDirectory() {
|
|
|
29693
32357
|
value: true
|
|
29694
32358
|
});
|
|
29695
32359
|
walkDirectory.build = void 0;
|
|
29696
|
-
const fs_1 = __importDefault(require$$0$
|
|
32360
|
+
const fs_1 = __importDefault(require$$0$9);
|
|
29697
32361
|
const readdirOpts = {
|
|
29698
32362
|
withFileTypes: true
|
|
29699
32363
|
};
|
|
@@ -29836,7 +32500,7 @@ function requireWalker$3() {
|
|
|
29836
32500
|
value: true
|
|
29837
32501
|
});
|
|
29838
32502
|
walker$3.Walker = void 0;
|
|
29839
|
-
const path_1 = require$$0$
|
|
32503
|
+
const path_1 = require$$0$c;
|
|
29840
32504
|
const utils_1 = requireUtils$5();
|
|
29841
32505
|
const joinPath = __importStar(requireJoinPath());
|
|
29842
32506
|
const pushDirectory = __importStar(requirePushDirectory());
|
|
@@ -32171,7 +34835,7 @@ function requireBuilder() {
|
|
|
32171
34835
|
value: true
|
|
32172
34836
|
});
|
|
32173
34837
|
builder.Builder = void 0;
|
|
32174
|
-
const path_1 = require$$0$
|
|
34838
|
+
const path_1 = require$$0$c;
|
|
32175
34839
|
const api_builder_1 = requireApiBuilder();
|
|
32176
34840
|
var pm = null;
|
|
32177
34841
|
/* c8 ignore next 6 */
|
|
@@ -32396,7 +35060,7 @@ function requireDist$f() {
|
|
|
32396
35060
|
}) : target, mod));
|
|
32397
35061
|
|
|
32398
35062
|
//#endregion
|
|
32399
|
-
const path = __toESM(require$$0$
|
|
35063
|
+
const path = __toESM(require$$0$c);
|
|
32400
35064
|
const fdir = __toESM(requireDist$g());
|
|
32401
35065
|
const picomatch = __toESM(/*@__PURE__*/requirePicomatch());
|
|
32402
35066
|
|
|
@@ -32654,7 +35318,7 @@ var hasRequiredYoctocolorsCjs;
|
|
|
32654
35318
|
function requireYoctocolorsCjs() {
|
|
32655
35319
|
if (hasRequiredYoctocolorsCjs) return yoctocolorsCjs;
|
|
32656
35320
|
hasRequiredYoctocolorsCjs = 1;
|
|
32657
|
-
const tty = require$$0$
|
|
35321
|
+
const tty = require$$0$h;
|
|
32658
35322
|
|
|
32659
35323
|
// eslint-disable-next-line no-warning-comments
|
|
32660
35324
|
// TODO: Use a better method when it's added to Node.js (https://github.com/nodejs/node/pull/40240)
|
|
@@ -32744,7 +35408,7 @@ function requireHpagent() {
|
|
|
32744
35408
|
if (hasRequiredHpagent) return hpagent;
|
|
32745
35409
|
hasRequiredHpagent = 1;
|
|
32746
35410
|
const https = require$$2$3;
|
|
32747
|
-
const http = require$$1$
|
|
35411
|
+
const http = require$$1$8;
|
|
32748
35412
|
const {
|
|
32749
35413
|
URL
|
|
32750
35414
|
} = require$$0$d;
|
|
@@ -32888,7 +35552,7 @@ function requireIsInteractive () {
|
|
|
32888
35552
|
if (_process === undefined) {
|
|
32889
35553
|
// Use non-'node:' prefixed require to avoid Webpack errors.
|
|
32890
35554
|
// eslint-disable-next-line n/prefer-node-protocol
|
|
32891
|
-
_process = require$$0$
|
|
35555
|
+
_process = require$$0$f;
|
|
32892
35556
|
}
|
|
32893
35557
|
return _process
|
|
32894
35558
|
}
|
|
@@ -33067,7 +35731,7 @@ function requireDist$e () {
|
|
|
33067
35731
|
Object.defineProperty(dist$e, "__esModule", { value: true });
|
|
33068
35732
|
dist$e.SocketSdk = void 0;
|
|
33069
35733
|
dist$e.createUserAgentFromPkgJson = createUserAgentFromPkgJson;
|
|
33070
|
-
const node_events_1 = __importDefault(require$$0$
|
|
35734
|
+
const node_events_1 = __importDefault(require$$0$i);
|
|
33071
35735
|
const node_fs_1 = fs$1;
|
|
33072
35736
|
const node_http_1 = __importDefault(require$$2$4);
|
|
33073
35737
|
const node_https_1 = __importDefault(require$$3$3);
|
|
@@ -38737,8 +41401,8 @@ function requirePosix() {
|
|
|
38737
41401
|
value: true
|
|
38738
41402
|
});
|
|
38739
41403
|
posix.sync = posix.isexe = void 0;
|
|
38740
|
-
const fs_1 = require$$0$
|
|
38741
|
-
const promises_1 = require$$0$
|
|
41404
|
+
const fs_1 = require$$0$9;
|
|
41405
|
+
const promises_1 = require$$0$j;
|
|
38742
41406
|
/**
|
|
38743
41407
|
* Determine whether a path is executable according to the mode and
|
|
38744
41408
|
* current (or specified) user and group IDs.
|
|
@@ -38810,8 +41474,8 @@ function requireWin32() {
|
|
|
38810
41474
|
value: true
|
|
38811
41475
|
});
|
|
38812
41476
|
win32.sync = win32.isexe = void 0;
|
|
38813
|
-
const fs_1 = require$$0$
|
|
38814
|
-
const promises_1 = require$$0$
|
|
41477
|
+
const fs_1 = require$$0$9;
|
|
41478
|
+
const promises_1 = require$$0$j;
|
|
38815
41479
|
/**
|
|
38816
41480
|
* Determine whether a path is executable based on the file extension
|
|
38817
41481
|
* and PATHEXT environment variable (or specified pathExt option)
|
|
@@ -38957,7 +41621,7 @@ function requireLib$H() {
|
|
|
38957
41621
|
delimiter,
|
|
38958
41622
|
sep,
|
|
38959
41623
|
posix
|
|
38960
|
-
} = require$$0$
|
|
41624
|
+
} = require$$0$c;
|
|
38961
41625
|
const isWindows = process.platform === 'win32';
|
|
38962
41626
|
|
|
38963
41627
|
// used to check for slashed in commands passed in. always checks for the posix
|
|
@@ -39212,8 +41876,8 @@ var hasRequiredSupportsColor$2;
|
|
|
39212
41876
|
function requireSupportsColor$2() {
|
|
39213
41877
|
if (hasRequiredSupportsColor$2) return supportsColor_1$1;
|
|
39214
41878
|
hasRequiredSupportsColor$2 = 1;
|
|
39215
|
-
const os = require$$0$
|
|
39216
|
-
const tty = require$$1$
|
|
41879
|
+
const os = require$$0$e;
|
|
41880
|
+
const tty = require$$1$9;
|
|
39217
41881
|
const hasFlag = requireHasFlag$1();
|
|
39218
41882
|
const {
|
|
39219
41883
|
env
|
|
@@ -39451,7 +42115,7 @@ function requireCommonjs$h() {
|
|
|
39451
42115
|
value: true
|
|
39452
42116
|
});
|
|
39453
42117
|
commonjs$h.walkUp = void 0;
|
|
39454
|
-
const path_1 = require$$0$
|
|
42118
|
+
const path_1 = require$$0$c;
|
|
39455
42119
|
const walkUp = function* (path) {
|
|
39456
42120
|
for (path = (0, path_1.resolve)(path); path;) {
|
|
39457
42121
|
yield path;
|
|
@@ -39467,250 +42131,6 @@ function requireCommonjs$h() {
|
|
|
39467
42131
|
return commonjs$h;
|
|
39468
42132
|
}
|
|
39469
42133
|
|
|
39470
|
-
var ini;
|
|
39471
|
-
var hasRequiredIni;
|
|
39472
|
-
function requireIni() {
|
|
39473
|
-
if (hasRequiredIni) return ini;
|
|
39474
|
-
hasRequiredIni = 1;
|
|
39475
|
-
const {
|
|
39476
|
-
hasOwnProperty
|
|
39477
|
-
} = Object.prototype;
|
|
39478
|
-
const encode = (obj, opt = {}) => {
|
|
39479
|
-
if (typeof opt === 'string') {
|
|
39480
|
-
opt = {
|
|
39481
|
-
section: opt
|
|
39482
|
-
};
|
|
39483
|
-
}
|
|
39484
|
-
opt.align = opt.align === true;
|
|
39485
|
-
opt.newline = opt.newline === true;
|
|
39486
|
-
opt.sort = opt.sort === true;
|
|
39487
|
-
opt.whitespace = opt.whitespace === true || opt.align === true;
|
|
39488
|
-
// The `typeof` check is required because accessing the `process` directly fails on browsers.
|
|
39489
|
-
/* istanbul ignore next */
|
|
39490
|
-
opt.platform = opt.platform || typeof process !== 'undefined' && process.platform;
|
|
39491
|
-
opt.bracketedArray = opt.bracketedArray !== false;
|
|
39492
|
-
|
|
39493
|
-
/* istanbul ignore next */
|
|
39494
|
-
const eol = opt.platform === 'win32' ? '\r\n' : '\n';
|
|
39495
|
-
const separator = opt.whitespace ? ' = ' : '=';
|
|
39496
|
-
const children = [];
|
|
39497
|
-
const keys = opt.sort ? Object.keys(obj).sort() : Object.keys(obj);
|
|
39498
|
-
let padToChars = 0;
|
|
39499
|
-
// If aligning on the separator, then padToChars is determined as follows:
|
|
39500
|
-
// 1. Get the keys
|
|
39501
|
-
// 2. Exclude keys pointing to objects unless the value is null or an array
|
|
39502
|
-
// 3. Add `[]` to array keys
|
|
39503
|
-
// 4. Ensure non empty set of keys
|
|
39504
|
-
// 5. Reduce the set to the longest `safe` key
|
|
39505
|
-
// 6. Get the `safe` length
|
|
39506
|
-
if (opt.align) {
|
|
39507
|
-
padToChars = safe(keys.filter(k => obj[k] === null || Array.isArray(obj[k]) || typeof obj[k] !== 'object').map(k => Array.isArray(obj[k]) ? `${k}[]` : k).concat(['']).reduce((a, b) => safe(a).length >= safe(b).length ? a : b)).length;
|
|
39508
|
-
}
|
|
39509
|
-
let out = '';
|
|
39510
|
-
const arraySuffix = opt.bracketedArray ? '[]' : '';
|
|
39511
|
-
for (const k of keys) {
|
|
39512
|
-
const val = obj[k];
|
|
39513
|
-
if (val && Array.isArray(val)) {
|
|
39514
|
-
for (const item of val) {
|
|
39515
|
-
out += safe(`${k}${arraySuffix}`).padEnd(padToChars, ' ') + separator + safe(item) + eol;
|
|
39516
|
-
}
|
|
39517
|
-
} else if (val && typeof val === 'object') {
|
|
39518
|
-
children.push(k);
|
|
39519
|
-
} else {
|
|
39520
|
-
out += safe(k).padEnd(padToChars, ' ') + separator + safe(val) + eol;
|
|
39521
|
-
}
|
|
39522
|
-
}
|
|
39523
|
-
if (opt.section && out.length) {
|
|
39524
|
-
out = '[' + safe(opt.section) + ']' + (opt.newline ? eol + eol : eol) + out;
|
|
39525
|
-
}
|
|
39526
|
-
for (const k of children) {
|
|
39527
|
-
const nk = splitSections(k, '.').join('\\.');
|
|
39528
|
-
const section = (opt.section ? opt.section + '.' : '') + nk;
|
|
39529
|
-
const child = encode(obj[k], {
|
|
39530
|
-
...opt,
|
|
39531
|
-
section
|
|
39532
|
-
});
|
|
39533
|
-
if (out.length && child.length) {
|
|
39534
|
-
out += eol;
|
|
39535
|
-
}
|
|
39536
|
-
out += child;
|
|
39537
|
-
}
|
|
39538
|
-
return out;
|
|
39539
|
-
};
|
|
39540
|
-
function splitSections(str, separator) {
|
|
39541
|
-
var lastMatchIndex = 0;
|
|
39542
|
-
var lastSeparatorIndex = 0;
|
|
39543
|
-
var nextIndex = 0;
|
|
39544
|
-
var sections = [];
|
|
39545
|
-
do {
|
|
39546
|
-
nextIndex = str.indexOf(separator, lastMatchIndex);
|
|
39547
|
-
if (nextIndex !== -1) {
|
|
39548
|
-
lastMatchIndex = nextIndex + separator.length;
|
|
39549
|
-
if (nextIndex > 0 && str[nextIndex - 1] === '\\') {
|
|
39550
|
-
continue;
|
|
39551
|
-
}
|
|
39552
|
-
sections.push(str.slice(lastSeparatorIndex, nextIndex));
|
|
39553
|
-
lastSeparatorIndex = nextIndex + separator.length;
|
|
39554
|
-
}
|
|
39555
|
-
} while (nextIndex !== -1);
|
|
39556
|
-
sections.push(str.slice(lastSeparatorIndex));
|
|
39557
|
-
return sections;
|
|
39558
|
-
}
|
|
39559
|
-
const decode = (str, opt = {}) => {
|
|
39560
|
-
opt.bracketedArray = opt.bracketedArray !== false;
|
|
39561
|
-
const out = Object.create(null);
|
|
39562
|
-
let p = out;
|
|
39563
|
-
let section = null;
|
|
39564
|
-
// section |key = value
|
|
39565
|
-
const re = /^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i;
|
|
39566
|
-
const lines = str.split(/[\r\n]+/g);
|
|
39567
|
-
const duplicates = {};
|
|
39568
|
-
for (const line of lines) {
|
|
39569
|
-
if (!line || line.match(/^\s*[;#]/) || line.match(/^\s*$/)) {
|
|
39570
|
-
continue;
|
|
39571
|
-
}
|
|
39572
|
-
const match = line.match(re);
|
|
39573
|
-
if (!match) {
|
|
39574
|
-
continue;
|
|
39575
|
-
}
|
|
39576
|
-
if (match[1] !== undefined) {
|
|
39577
|
-
section = unsafe(match[1]);
|
|
39578
|
-
if (section === '__proto__') {
|
|
39579
|
-
// not allowed
|
|
39580
|
-
// keep parsing the section, but don't attach it.
|
|
39581
|
-
p = Object.create(null);
|
|
39582
|
-
continue;
|
|
39583
|
-
}
|
|
39584
|
-
p = out[section] = out[section] || Object.create(null);
|
|
39585
|
-
continue;
|
|
39586
|
-
}
|
|
39587
|
-
const keyRaw = unsafe(match[2]);
|
|
39588
|
-
let isArray;
|
|
39589
|
-
if (opt.bracketedArray) {
|
|
39590
|
-
isArray = keyRaw.length > 2 && keyRaw.slice(-2) === '[]';
|
|
39591
|
-
} else {
|
|
39592
|
-
duplicates[keyRaw] = (duplicates?.[keyRaw] || 0) + 1;
|
|
39593
|
-
isArray = duplicates[keyRaw] > 1;
|
|
39594
|
-
}
|
|
39595
|
-
const key = isArray && keyRaw.endsWith('[]') ? keyRaw.slice(0, -2) : keyRaw;
|
|
39596
|
-
if (key === '__proto__') {
|
|
39597
|
-
continue;
|
|
39598
|
-
}
|
|
39599
|
-
const valueRaw = match[3] ? unsafe(match[4]) : true;
|
|
39600
|
-
const value = valueRaw === 'true' || valueRaw === 'false' || valueRaw === 'null' ? JSON.parse(valueRaw) : valueRaw;
|
|
39601
|
-
|
|
39602
|
-
// Convert keys with '[]' suffix to an array
|
|
39603
|
-
if (isArray) {
|
|
39604
|
-
if (!hasOwnProperty.call(p, key)) {
|
|
39605
|
-
p[key] = [];
|
|
39606
|
-
} else if (!Array.isArray(p[key])) {
|
|
39607
|
-
p[key] = [p[key]];
|
|
39608
|
-
}
|
|
39609
|
-
}
|
|
39610
|
-
|
|
39611
|
-
// safeguard against resetting a previously defined
|
|
39612
|
-
// array by accidentally forgetting the brackets
|
|
39613
|
-
if (Array.isArray(p[key])) {
|
|
39614
|
-
p[key].push(value);
|
|
39615
|
-
} else {
|
|
39616
|
-
p[key] = value;
|
|
39617
|
-
}
|
|
39618
|
-
}
|
|
39619
|
-
|
|
39620
|
-
// {a:{y:1},"a.b":{x:2}} --> {a:{y:1,b:{x:2}}}
|
|
39621
|
-
// use a filter to return the keys that have to be deleted.
|
|
39622
|
-
const remove = [];
|
|
39623
|
-
for (const k of Object.keys(out)) {
|
|
39624
|
-
if (!hasOwnProperty.call(out, k) || typeof out[k] !== 'object' || Array.isArray(out[k])) {
|
|
39625
|
-
continue;
|
|
39626
|
-
}
|
|
39627
|
-
|
|
39628
|
-
// see if the parent section is also an object.
|
|
39629
|
-
// if so, add it to that, and mark this one for deletion
|
|
39630
|
-
const parts = splitSections(k, '.');
|
|
39631
|
-
p = out;
|
|
39632
|
-
const l = parts.pop();
|
|
39633
|
-
const nl = l.replace(/\\\./g, '.');
|
|
39634
|
-
for (const part of parts) {
|
|
39635
|
-
if (part === '__proto__') {
|
|
39636
|
-
continue;
|
|
39637
|
-
}
|
|
39638
|
-
if (!hasOwnProperty.call(p, part) || typeof p[part] !== 'object') {
|
|
39639
|
-
p[part] = Object.create(null);
|
|
39640
|
-
}
|
|
39641
|
-
p = p[part];
|
|
39642
|
-
}
|
|
39643
|
-
if (p === out && nl === l) {
|
|
39644
|
-
continue;
|
|
39645
|
-
}
|
|
39646
|
-
p[nl] = out[k];
|
|
39647
|
-
remove.push(k);
|
|
39648
|
-
}
|
|
39649
|
-
for (const del of remove) {
|
|
39650
|
-
delete out[del];
|
|
39651
|
-
}
|
|
39652
|
-
return out;
|
|
39653
|
-
};
|
|
39654
|
-
const isQuoted = val => {
|
|
39655
|
-
return val.startsWith('"') && val.endsWith('"') || val.startsWith("'") && val.endsWith("'");
|
|
39656
|
-
};
|
|
39657
|
-
const safe = val => {
|
|
39658
|
-
if (typeof val !== 'string' || val.match(/[=\r\n]/) || val.match(/^\[/) || val.length > 1 && isQuoted(val) || val !== val.trim()) {
|
|
39659
|
-
return JSON.stringify(val);
|
|
39660
|
-
}
|
|
39661
|
-
return val.split(';').join('\\;').split('#').join('\\#');
|
|
39662
|
-
};
|
|
39663
|
-
const unsafe = val => {
|
|
39664
|
-
val = (val || '').trim();
|
|
39665
|
-
if (isQuoted(val)) {
|
|
39666
|
-
// remove the single quotes before calling JSON.parse
|
|
39667
|
-
if (val.charAt(0) === "'") {
|
|
39668
|
-
val = val.slice(1, -1);
|
|
39669
|
-
}
|
|
39670
|
-
try {
|
|
39671
|
-
val = JSON.parse(val);
|
|
39672
|
-
} catch {
|
|
39673
|
-
// ignore errors
|
|
39674
|
-
}
|
|
39675
|
-
} else {
|
|
39676
|
-
// walk the val to find the first not-escaped ; character
|
|
39677
|
-
let esc = false;
|
|
39678
|
-
let unesc = '';
|
|
39679
|
-
for (let i = 0, l = val.length; i < l; i++) {
|
|
39680
|
-
const c = val.charAt(i);
|
|
39681
|
-
if (esc) {
|
|
39682
|
-
if ('\\;#'.indexOf(c) !== -1) {
|
|
39683
|
-
unesc += c;
|
|
39684
|
-
} else {
|
|
39685
|
-
unesc += '\\' + c;
|
|
39686
|
-
}
|
|
39687
|
-
esc = false;
|
|
39688
|
-
} else if (';#'.indexOf(c) !== -1) {
|
|
39689
|
-
break;
|
|
39690
|
-
} else if (c === '\\') {
|
|
39691
|
-
esc = true;
|
|
39692
|
-
} else {
|
|
39693
|
-
unesc += c;
|
|
39694
|
-
}
|
|
39695
|
-
}
|
|
39696
|
-
if (esc) {
|
|
39697
|
-
unesc += '\\';
|
|
39698
|
-
}
|
|
39699
|
-
return unesc.trim();
|
|
39700
|
-
}
|
|
39701
|
-
return val;
|
|
39702
|
-
};
|
|
39703
|
-
ini = {
|
|
39704
|
-
parse: decode,
|
|
39705
|
-
decode,
|
|
39706
|
-
stringify: encode,
|
|
39707
|
-
encode,
|
|
39708
|
-
safe,
|
|
39709
|
-
unsafe
|
|
39710
|
-
};
|
|
39711
|
-
return ini;
|
|
39712
|
-
}
|
|
39713
|
-
|
|
39714
42134
|
var nopt = {exports: {}};
|
|
39715
42135
|
|
|
39716
42136
|
var lib$G;
|
|
@@ -39789,9 +42209,9 @@ function requireTypeDefs$1() {
|
|
|
39789
42209
|
if (hasRequiredTypeDefs$1) return typeDefs$1;
|
|
39790
42210
|
hasRequiredTypeDefs$1 = 1;
|
|
39791
42211
|
const url = require$$0$d;
|
|
39792
|
-
const path = require$$0$
|
|
39793
|
-
const Stream = require$$1$
|
|
39794
|
-
const os = require$$0$
|
|
42212
|
+
const path = require$$0$c;
|
|
42213
|
+
const Stream = require$$1$7.Stream;
|
|
42214
|
+
const os = require$$0$e;
|
|
39795
42215
|
const debug = requireDebug$2();
|
|
39796
42216
|
function validateString(data, k, val) {
|
|
39797
42217
|
data[k] = String(val);
|
|
@@ -47663,7 +50083,7 @@ function requireCommonjs$d() {
|
|
|
47663
50083
|
stdout: null,
|
|
47664
50084
|
stderr: null
|
|
47665
50085
|
};
|
|
47666
|
-
const node_events_1 = require$$0$
|
|
50086
|
+
const node_events_1 = require$$0$i;
|
|
47667
50087
|
const node_stream_1 = __importDefault(require$$1$a);
|
|
47668
50088
|
const node_string_decoder_1 = require$$2$5;
|
|
47669
50089
|
/**
|
|
@@ -48615,7 +51035,7 @@ function requireCommonjs$c() {
|
|
|
48615
51035
|
const lru_cache_1 = /*@__PURE__*/requireCommonjs$e();
|
|
48616
51036
|
const node_path_1 = path$2;
|
|
48617
51037
|
const node_url_1 = require$$0$6;
|
|
48618
|
-
const fs_1 = require$$0$
|
|
51038
|
+
const fs_1 = require$$0$9;
|
|
48619
51039
|
const actualFS = __importStar(fs$1);
|
|
48620
51040
|
const realpathSync = fs_1.realpathSync.native;
|
|
48621
51041
|
// TODO: test perf of fs/promises realpath vs realpathCB,
|
|
@@ -51952,8 +54372,8 @@ function requireLib$C() {
|
|
|
51952
54372
|
hasRequiredLib$C = 1;
|
|
51953
54373
|
const {
|
|
51954
54374
|
spawn
|
|
51955
|
-
} = require$$0$
|
|
51956
|
-
const os = require$$0$
|
|
54375
|
+
} = require$$0$k;
|
|
54376
|
+
const os = require$$0$e;
|
|
51957
54377
|
const which = requireLib$H();
|
|
51958
54378
|
const escape = require_escape();
|
|
51959
54379
|
|
|
@@ -56117,7 +58537,7 @@ function requireLib$B() {
|
|
|
56117
58537
|
hasRequiredLib$B = 1;
|
|
56118
58538
|
const {
|
|
56119
58539
|
builtinModules: builtins
|
|
56120
|
-
} = require$$0$
|
|
58540
|
+
} = require$$0$l;
|
|
56121
58541
|
var scopedPackagePattern = new RegExp('^(?:@([^/]+?)[/])?([^/]+?)$');
|
|
56122
58542
|
var blacklist = ['node_modules', 'favicon.ico'];
|
|
56123
58543
|
function validate(name) {
|
|
@@ -56963,7 +59383,7 @@ function requireLib$z() {
|
|
|
56963
59383
|
const {
|
|
56964
59384
|
join,
|
|
56965
59385
|
basename
|
|
56966
|
-
} = require$$0$
|
|
59386
|
+
} = require$$0$c;
|
|
56967
59387
|
const normalize = pkg => !pkg.bin ? removeBin(pkg) : typeof pkg.bin === 'string' ? normalizeString(pkg) : Array.isArray(pkg.bin) ? normalizeArray(pkg) : typeof pkg.bin === 'object' ? normalizeObject(pkg) : removeBin(pkg);
|
|
56968
59388
|
const normalizeString = pkg => {
|
|
56969
59389
|
if (!pkg.name) {
|
|
@@ -57239,14 +59659,14 @@ function requireClone() {
|
|
|
57239
59659
|
const {
|
|
57240
59660
|
parse
|
|
57241
59661
|
} = require$$0$d; // eslint-disable-line node/no-deprecated-api
|
|
57242
|
-
const path = require$$0$
|
|
59662
|
+
const path = require$$0$c;
|
|
57243
59663
|
const getRevs = requireRevs();
|
|
57244
59664
|
const spawn = requireSpawn();
|
|
57245
59665
|
const {
|
|
57246
59666
|
isWindows
|
|
57247
59667
|
} = requireUtils$3();
|
|
57248
59668
|
const pickManifest = requireLib$y();
|
|
57249
|
-
const fs = require$$0$
|
|
59669
|
+
const fs = require$$0$j;
|
|
57250
59670
|
clone_1 = (repo, ref = 'HEAD', target = null, opts = {}) => getRevs(repo, opts).then(revs => clone(repo, revs, ref, resolveRef(revs, ref, opts), target || defaultTarget(repo, opts.cwd), opts));
|
|
57251
59671
|
const maybeShallow = (repo, opts) => {
|
|
57252
59672
|
if (opts.gitShallow === false || opts.gitShallow) {
|
|
@@ -57363,7 +59783,7 @@ function requireIs() {
|
|
|
57363
59783
|
// not an airtight indicator, but a good gut-check to even bother trying
|
|
57364
59784
|
const {
|
|
57365
59785
|
stat
|
|
57366
|
-
} = require$$0$
|
|
59786
|
+
} = require$$0$j;
|
|
57367
59787
|
is = ({
|
|
57368
59788
|
cwd = process.cwd()
|
|
57369
59789
|
} = {}) => stat(cwd + '/.git').then(() => true, () => false);
|
|
@@ -57378,7 +59798,7 @@ function requireFind() {
|
|
|
57378
59798
|
const is = requireIs();
|
|
57379
59799
|
const {
|
|
57380
59800
|
dirname
|
|
57381
|
-
} = require$$0$
|
|
59801
|
+
} = require$$0$c;
|
|
57382
59802
|
find = async ({
|
|
57383
59803
|
cwd = process.cwd(),
|
|
57384
59804
|
root
|
|
@@ -59651,7 +62071,7 @@ function requireReadPackage() {
|
|
|
59651
62071
|
|
|
59652
62072
|
const {
|
|
59653
62073
|
readFile
|
|
59654
|
-
} = require$$0$
|
|
62074
|
+
} = require$$0$j;
|
|
59655
62075
|
const parseJSON = requireLib$E();
|
|
59656
62076
|
async function read(filename) {
|
|
59657
62077
|
try {
|
|
@@ -60117,7 +62537,7 @@ function requireLib$v() {
|
|
|
60117
62537
|
const {
|
|
60118
62538
|
basename,
|
|
60119
62539
|
dirname
|
|
60120
|
-
} = require$$0$
|
|
62540
|
+
} = require$$0$c;
|
|
60121
62541
|
const getName = (parent, base) => parent.charAt(0) === '@' ? `${parent}/${base}` : base;
|
|
60122
62542
|
lib$v = dir => dir ? getName(basename(dirname(dir)), basename(dir)) : false;
|
|
60123
62543
|
return lib$v;
|
|
@@ -61685,7 +64105,7 @@ function requireCommonjs$8() {
|
|
|
61685
64105
|
const lru_cache_1 = /*@__PURE__*/requireCommonjs$9();
|
|
61686
64106
|
const node_path_1 = path$2;
|
|
61687
64107
|
const node_url_1 = require$$0$6;
|
|
61688
|
-
const fs_1 = require$$0$
|
|
64108
|
+
const fs_1 = require$$0$9;
|
|
61689
64109
|
const actualFS = __importStar(fs$1);
|
|
61690
64110
|
const realpathSync = fs_1.realpathSync.native;
|
|
61691
64111
|
// TODO: test perf of fs/promises realpath vs realpathCB,
|
|
@@ -64954,7 +67374,7 @@ var hasRequiredLib$u;
|
|
|
64954
67374
|
function requireLib$u() {
|
|
64955
67375
|
if (hasRequiredLib$u) return lib$u;
|
|
64956
67376
|
hasRequiredLib$u = 1;
|
|
64957
|
-
const path = require$$0$
|
|
67377
|
+
const path = require$$0$c;
|
|
64958
67378
|
const getName = requireLib$v();
|
|
64959
67379
|
const {
|
|
64960
67380
|
minimatch
|
|
@@ -70038,7 +72458,7 @@ function requireLib$s() {
|
|
|
70038
72458
|
readFile,
|
|
70039
72459
|
lstat,
|
|
70040
72460
|
readdir
|
|
70041
|
-
} = require$$0$
|
|
72461
|
+
} = require$$0$j;
|
|
70042
72462
|
const parse = requireLib$E();
|
|
70043
72463
|
const normalizePackageBin = requireLib$z();
|
|
70044
72464
|
const {
|
|
@@ -70046,7 +72466,7 @@ function requireLib$s() {
|
|
|
70046
72466
|
dirname,
|
|
70047
72467
|
join,
|
|
70048
72468
|
relative
|
|
70049
|
-
} = require$$0$
|
|
72469
|
+
} = require$$0$c;
|
|
70050
72470
|
const rpj = path => readFile(path, 'utf8').then(data => readBinDir(path, normalize(stripUnderscores(parse(data))))).catch(er => {
|
|
70051
72471
|
er.path = path;
|
|
70052
72472
|
throw er;
|
|
@@ -70195,7 +72615,7 @@ function requireGetNodeModules() {
|
|
|
70195
72615
|
const {
|
|
70196
72616
|
dirname,
|
|
70197
72617
|
basename
|
|
70198
|
-
} = require$$0$
|
|
72618
|
+
} = require$$0$c;
|
|
70199
72619
|
// this gets called a lot and can't change, so memoize it
|
|
70200
72620
|
const memo = new Map();
|
|
70201
72621
|
getNodeModules = path => {
|
|
@@ -70217,7 +72637,7 @@ function requireGetPrefix() {
|
|
|
70217
72637
|
hasRequiredGetPrefix = 1;
|
|
70218
72638
|
const {
|
|
70219
72639
|
dirname
|
|
70220
|
-
} = require$$0$
|
|
72640
|
+
} = require$$0$c;
|
|
70221
72641
|
const getNodeModules = requireGetNodeModules();
|
|
70222
72642
|
getPrefix = path => dirname(getNodeModules(path));
|
|
70223
72643
|
return getPrefix;
|
|
@@ -70233,7 +72653,7 @@ function requireBinTarget() {
|
|
|
70233
72653
|
const getNodeModules = requireGetNodeModules();
|
|
70234
72654
|
const {
|
|
70235
72655
|
dirname
|
|
70236
|
-
} = require$$0$
|
|
72656
|
+
} = require$$0$c;
|
|
70237
72657
|
binTarget = ({
|
|
70238
72658
|
top,
|
|
70239
72659
|
path
|
|
@@ -70317,11 +72737,11 @@ function requireLib$r() {
|
|
|
70317
72737
|
stat,
|
|
70318
72738
|
unlink,
|
|
70319
72739
|
writeFile
|
|
70320
|
-
} = require$$0$
|
|
72740
|
+
} = require$$0$j;
|
|
70321
72741
|
const {
|
|
70322
72742
|
dirname,
|
|
70323
72743
|
relative
|
|
70324
|
-
} = require$$0$
|
|
72744
|
+
} = require$$0$c;
|
|
70325
72745
|
const toBatchSyntax = requireToBatchSyntax();
|
|
70326
72746
|
// linting disabled because this regex is really long
|
|
70327
72747
|
// eslint-disable-next-line max-len
|
|
@@ -70465,10 +72885,10 @@ var hasRequiredLib$q;
|
|
|
70465
72885
|
function requireLib$q() {
|
|
70466
72886
|
if (hasRequiredLib$q) return lib$q;
|
|
70467
72887
|
hasRequiredLib$q = 1;
|
|
70468
|
-
const fs = require$$0$
|
|
72888
|
+
const fs = require$$0$9;
|
|
70469
72889
|
const {
|
|
70470
72890
|
promisify
|
|
70471
|
-
} = require$$0$
|
|
72891
|
+
} = require$$0$8;
|
|
70472
72892
|
const {
|
|
70473
72893
|
readFileSync
|
|
70474
72894
|
} = fs;
|
|
@@ -71016,15 +73436,15 @@ function requireLib$p() {
|
|
|
71016
73436
|
lib$p.exports.sync = writeFileSync;
|
|
71017
73437
|
lib$p.exports._getTmpname = getTmpname; // for testing
|
|
71018
73438
|
lib$p.exports._cleanupOnExit = cleanupOnExit;
|
|
71019
|
-
const fs = require$$0$
|
|
73439
|
+
const fs = require$$0$9;
|
|
71020
73440
|
const MurmurHash3 = requireImurmurhash();
|
|
71021
73441
|
const {
|
|
71022
73442
|
onExit
|
|
71023
73443
|
} = requireCjs();
|
|
71024
|
-
const path = require$$0$
|
|
73444
|
+
const path = require$$0$c;
|
|
71025
73445
|
const {
|
|
71026
73446
|
promisify
|
|
71027
|
-
} = require$$0$
|
|
73447
|
+
} = require$$0$8;
|
|
71028
73448
|
const activeFiles = {};
|
|
71029
73449
|
|
|
71030
73450
|
// if we run inside of a worker_thread, `process.pid` is not unique
|
|
@@ -71270,7 +73690,7 @@ function requireFixBin() {
|
|
|
71270
73690
|
chmod,
|
|
71271
73691
|
open,
|
|
71272
73692
|
readFile
|
|
71273
|
-
} = require$$0$
|
|
73693
|
+
} = require$$0$j;
|
|
71274
73694
|
const execMode = 0o777 & ~process.umask();
|
|
71275
73695
|
const writeFileAtomic = requireLib$p();
|
|
71276
73696
|
const isWindowsHashBang = buf => buf[0] === '#'.charCodeAt(0) && buf[1] === '!'.charCodeAt(0) && /^#![^\n]+\r\n/.test(buf.toString());
|
|
@@ -71300,10 +73720,10 @@ function requireShimBin() {
|
|
|
71300
73720
|
const {
|
|
71301
73721
|
resolve,
|
|
71302
73722
|
dirname
|
|
71303
|
-
} = require$$0$
|
|
73723
|
+
} = require$$0$c;
|
|
71304
73724
|
const {
|
|
71305
73725
|
lstat
|
|
71306
|
-
} = require$$0$
|
|
73726
|
+
} = require$$0$j;
|
|
71307
73727
|
const throwNonEnoent = er => {
|
|
71308
73728
|
if (er.code !== 'ENOENT') {
|
|
71309
73729
|
throw er;
|
|
@@ -71403,14 +73823,14 @@ function requireLinkGently() {
|
|
|
71403
73823
|
const {
|
|
71404
73824
|
resolve,
|
|
71405
73825
|
dirname
|
|
71406
|
-
} = require$$0$
|
|
73826
|
+
} = require$$0$c;
|
|
71407
73827
|
const {
|
|
71408
73828
|
lstat,
|
|
71409
73829
|
mkdir,
|
|
71410
73830
|
readlink,
|
|
71411
73831
|
rm,
|
|
71412
73832
|
symlink
|
|
71413
|
-
} = require$$0$
|
|
73833
|
+
} = require$$0$j;
|
|
71414
73834
|
const {
|
|
71415
73835
|
log
|
|
71416
73836
|
} = requireLib$F();
|
|
@@ -71541,7 +73961,7 @@ function requireLinkBins() {
|
|
|
71541
73961
|
dirname,
|
|
71542
73962
|
resolve,
|
|
71543
73963
|
relative
|
|
71544
|
-
} = require$$0$
|
|
73964
|
+
} = require$$0$c;
|
|
71545
73965
|
const linkBin = isWindows ? requireShimBin() : requireLinkBin();
|
|
71546
73966
|
const normalize = requireLib$z();
|
|
71547
73967
|
const linkBins = ({
|
|
@@ -71586,7 +74006,7 @@ function requireManTarget() {
|
|
|
71586
74006
|
const getPrefix = requireGetPrefix();
|
|
71587
74007
|
const {
|
|
71588
74008
|
dirname
|
|
71589
|
-
} = require$$0$
|
|
74009
|
+
} = require$$0$c;
|
|
71590
74010
|
manTarget = ({
|
|
71591
74011
|
top,
|
|
71592
74012
|
path
|
|
@@ -71605,7 +74025,7 @@ function requireLinkMans() {
|
|
|
71605
74025
|
join,
|
|
71606
74026
|
resolve,
|
|
71607
74027
|
basename
|
|
71608
|
-
} = require$$0$
|
|
74028
|
+
} = require$$0$c;
|
|
71609
74029
|
const linkGently = requireLinkGently();
|
|
71610
74030
|
const manTarget = requireManTarget();
|
|
71611
74031
|
const linkMans = async ({
|
|
@@ -71678,11 +74098,11 @@ function requireCheckBin() {
|
|
|
71678
74098
|
const {
|
|
71679
74099
|
resolve,
|
|
71680
74100
|
dirname
|
|
71681
|
-
} = require$$0$
|
|
74101
|
+
} = require$$0$c;
|
|
71682
74102
|
const readCmdShim = requireLib$q();
|
|
71683
74103
|
const {
|
|
71684
74104
|
readlink
|
|
71685
|
-
} = require$$0$
|
|
74105
|
+
} = require$$0$j;
|
|
71686
74106
|
const checkBin = async ({
|
|
71687
74107
|
bin,
|
|
71688
74108
|
path,
|
|
@@ -71822,7 +74242,7 @@ function requireGetPaths() {
|
|
|
71822
74242
|
resolve,
|
|
71823
74243
|
basename,
|
|
71824
74244
|
extname
|
|
71825
|
-
} = require$$0$
|
|
74245
|
+
} = require$$0$c;
|
|
71826
74246
|
const isWindows = requireIsWindows();
|
|
71827
74247
|
getPaths = ({
|
|
71828
74248
|
path,
|
|
@@ -74024,7 +76444,7 @@ function requireNode$4() {
|
|
|
74024
76444
|
* For Node.js, simply re-export the core `util.deprecate` function.
|
|
74025
76445
|
*/
|
|
74026
76446
|
|
|
74027
|
-
node$4 = require$$0$
|
|
76447
|
+
node$4 = require$$0$8.deprecate;
|
|
74028
76448
|
return node$4;
|
|
74029
76449
|
}
|
|
74030
76450
|
|
|
@@ -76844,8 +79264,8 @@ function requireMinipass$5() {
|
|
|
76844
79264
|
stdout: null,
|
|
76845
79265
|
stderr: null
|
|
76846
79266
|
};
|
|
76847
|
-
const EE = require$$0$
|
|
76848
|
-
const Stream = require$$1$
|
|
79267
|
+
const EE = require$$0$b;
|
|
79268
|
+
const Stream = require$$1$7;
|
|
76849
79269
|
const SD = require$$2$7.StringDecoder;
|
|
76850
79270
|
const EOF = Symbol('EOF');
|
|
76851
79271
|
const MAYBE_EMIT_END = Symbol('maybeEmitEnd');
|
|
@@ -77340,7 +79760,7 @@ function requireMinipassPipeline() {
|
|
|
77340
79760
|
if (hasRequiredMinipassPipeline) return minipassPipeline;
|
|
77341
79761
|
hasRequiredMinipassPipeline = 1;
|
|
77342
79762
|
const Minipass = requireMinipass$5();
|
|
77343
|
-
const EE = require$$0$
|
|
79763
|
+
const EE = require$$0$b;
|
|
77344
79764
|
const isStream = s => s && s instanceof EE && (typeof s.pipe === 'function' ||
|
|
77345
79765
|
// readable
|
|
77346
79766
|
typeof s.write === 'function' && typeof s.end === 'function' // writable
|
|
@@ -77456,7 +79876,7 @@ var hasRequiredLib$m;
|
|
|
77456
79876
|
function requireLib$m() {
|
|
77457
79877
|
if (hasRequiredLib$m) return lib$l;
|
|
77458
79878
|
hasRequiredLib$m = 1;
|
|
77459
|
-
const crypto = require$$0$
|
|
79879
|
+
const crypto = require$$0$m;
|
|
77460
79880
|
const {
|
|
77461
79881
|
Minipass
|
|
77462
79882
|
} = requireCommonjs$d();
|
|
@@ -77967,7 +80387,7 @@ var hasRequiredLib$k;
|
|
|
77967
80387
|
function requireLib$k() {
|
|
77968
80388
|
if (hasRequiredLib$k) return lib$j;
|
|
77969
80389
|
hasRequiredLib$k = 1;
|
|
77970
|
-
var path = require$$0$
|
|
80390
|
+
var path = require$$0$c;
|
|
77971
80391
|
var uniqueSlug = requireLib$l();
|
|
77972
80392
|
lib$j = function (filepath, prefix, uniq) {
|
|
77973
80393
|
return path.join(filepath, (prefix ? prefix + '-' : '') + uniqueSlug(uniq));
|
|
@@ -78001,7 +80421,7 @@ function requirePath() {
|
|
|
78001
80421
|
hasRequiredPath = 1;
|
|
78002
80422
|
const contentVer = require$$8['cache-version'].content;
|
|
78003
80423
|
const hashToSegments = requireHashToSegments();
|
|
78004
|
-
const path$1 = require$$0$
|
|
80424
|
+
const path$1 = require$$0$c;
|
|
78005
80425
|
const ssri = requireLib$m();
|
|
78006
80426
|
|
|
78007
80427
|
// Current format of content file path:
|
|
@@ -78079,7 +80499,7 @@ function requireErrors$3() {
|
|
|
78079
80499
|
|
|
78080
80500
|
const {
|
|
78081
80501
|
inspect
|
|
78082
|
-
} = require$$0$
|
|
80502
|
+
} = require$$0$8;
|
|
78083
80503
|
|
|
78084
80504
|
// adapted from node's internal/errors
|
|
78085
80505
|
// https://github.com/nodejs/node/blob/c8a04049/lib/internal/errors.js
|
|
@@ -78227,7 +80647,7 @@ function requirePolyfill() {
|
|
|
78227
80647
|
ENOTDIR
|
|
78228
80648
|
}
|
|
78229
80649
|
}
|
|
78230
|
-
} = require$$0$
|
|
80650
|
+
} = require$$0$e;
|
|
78231
80651
|
const {
|
|
78232
80652
|
chmod,
|
|
78233
80653
|
copyFile,
|
|
@@ -78239,7 +80659,7 @@ function requirePolyfill() {
|
|
|
78239
80659
|
symlink,
|
|
78240
80660
|
unlink,
|
|
78241
80661
|
utimes
|
|
78242
|
-
} = require$$0$
|
|
80662
|
+
} = require$$0$j;
|
|
78243
80663
|
const {
|
|
78244
80664
|
dirname,
|
|
78245
80665
|
isAbsolute,
|
|
@@ -78248,7 +80668,7 @@ function requirePolyfill() {
|
|
|
78248
80668
|
resolve,
|
|
78249
80669
|
sep,
|
|
78250
80670
|
toNamespacedPath
|
|
78251
|
-
} = require$$0$
|
|
80671
|
+
} = require$$0$c;
|
|
78252
80672
|
const {
|
|
78253
80673
|
fileURLToPath
|
|
78254
80674
|
} = require$$0$d;
|
|
@@ -78603,7 +81023,7 @@ var hasRequiredCp;
|
|
|
78603
81023
|
function requireCp() {
|
|
78604
81024
|
if (hasRequiredCp) return cp_1;
|
|
78605
81025
|
hasRequiredCp = 1;
|
|
78606
|
-
const fs = require$$0$
|
|
81026
|
+
const fs = require$$0$j;
|
|
78607
81027
|
const getOptions = requireGetOptions();
|
|
78608
81028
|
const node = requireNode$3();
|
|
78609
81029
|
const polyfill = requirePolyfill();
|
|
@@ -78632,13 +81052,13 @@ function requireWithTempDir() {
|
|
|
78632
81052
|
const {
|
|
78633
81053
|
join,
|
|
78634
81054
|
sep
|
|
78635
|
-
} = require$$0$
|
|
81055
|
+
} = require$$0$c;
|
|
78636
81056
|
const getOptions = requireGetOptions();
|
|
78637
81057
|
const {
|
|
78638
81058
|
mkdir,
|
|
78639
81059
|
mkdtemp,
|
|
78640
81060
|
rm
|
|
78641
|
-
} = require$$0$
|
|
81061
|
+
} = require$$0$j;
|
|
78642
81062
|
|
|
78643
81063
|
// create a temp directory, ensure its permissions match its parent, then call
|
|
78644
81064
|
// the supplied function passing it the path to the directory. clean up after
|
|
@@ -78683,10 +81103,10 @@ function requireReaddirScoped() {
|
|
|
78683
81103
|
hasRequiredReaddirScoped = 1;
|
|
78684
81104
|
const {
|
|
78685
81105
|
readdir
|
|
78686
|
-
} = require$$0$
|
|
81106
|
+
} = require$$0$j;
|
|
78687
81107
|
const {
|
|
78688
81108
|
join
|
|
78689
|
-
} = require$$0$
|
|
81109
|
+
} = require$$0$c;
|
|
78690
81110
|
const readdirScoped = async dir => {
|
|
78691
81111
|
const results = [];
|
|
78692
81112
|
for (const item of await readdir(dir)) {
|
|
@@ -78715,8 +81135,8 @@ function requireMoveFile() {
|
|
|
78715
81135
|
resolve,
|
|
78716
81136
|
relative,
|
|
78717
81137
|
isAbsolute
|
|
78718
|
-
} = require$$0$
|
|
78719
|
-
const fs = require$$0$
|
|
81138
|
+
} = require$$0$c;
|
|
81139
|
+
const fs = require$$0$j;
|
|
78720
81140
|
const pathExists = async path => {
|
|
78721
81141
|
try {
|
|
78722
81142
|
await fs.access(path);
|
|
@@ -78815,7 +81235,7 @@ var hasRequiredEntryIndex;
|
|
|
78815
81235
|
function requireEntryIndex() {
|
|
78816
81236
|
if (hasRequiredEntryIndex) return entryIndex;
|
|
78817
81237
|
hasRequiredEntryIndex = 1;
|
|
78818
|
-
const crypto = require$$0$
|
|
81238
|
+
const crypto = require$$0$m;
|
|
78819
81239
|
const {
|
|
78820
81240
|
appendFile,
|
|
78821
81241
|
mkdir,
|
|
@@ -78823,11 +81243,11 @@ function requireEntryIndex() {
|
|
|
78823
81243
|
readdir,
|
|
78824
81244
|
rm,
|
|
78825
81245
|
writeFile
|
|
78826
|
-
} = require$$0$
|
|
81246
|
+
} = require$$0$j;
|
|
78827
81247
|
const {
|
|
78828
81248
|
Minipass
|
|
78829
81249
|
} = requireCommonjs$d();
|
|
78830
|
-
const path = require$$0$
|
|
81250
|
+
const path = require$$0$c;
|
|
78831
81251
|
const ssri = requireLib$m();
|
|
78832
81252
|
const uniqueFilename = requireLib$k();
|
|
78833
81253
|
const contentPath = requirePath();
|
|
@@ -80733,8 +83153,8 @@ function requireLib$i() {
|
|
|
80733
83153
|
const {
|
|
80734
83154
|
Minipass
|
|
80735
83155
|
} = requireCommonjs$d();
|
|
80736
|
-
const EE = require$$0$
|
|
80737
|
-
const fs = require$$0$
|
|
83156
|
+
const EE = require$$0$b.EventEmitter;
|
|
83157
|
+
const fs = require$$0$9;
|
|
80738
83158
|
const writev = fs.writev;
|
|
80739
83159
|
const _autoClose = Symbol('_autoClose');
|
|
80740
83160
|
const _close = Symbol('_close');
|
|
@@ -81117,7 +83537,7 @@ var hasRequiredRead;
|
|
|
81117
83537
|
function requireRead() {
|
|
81118
83538
|
if (hasRequiredRead) return read.exports;
|
|
81119
83539
|
hasRequiredRead = 1;
|
|
81120
|
-
const fs = require$$0$
|
|
83540
|
+
const fs = require$$0$j;
|
|
81121
83541
|
const fsm = requireLib$i();
|
|
81122
83542
|
const ssri = requireLib$m();
|
|
81123
83543
|
const contentPath = requirePath();
|
|
@@ -81472,8 +83892,8 @@ function requireMinipass$4() {
|
|
|
81472
83892
|
stdout: null,
|
|
81473
83893
|
stderr: null
|
|
81474
83894
|
};
|
|
81475
|
-
const EE = require$$0$
|
|
81476
|
-
const Stream = require$$1$
|
|
83895
|
+
const EE = require$$0$b;
|
|
83896
|
+
const Stream = require$$1$7;
|
|
81477
83897
|
const SD = require$$2$7.StringDecoder;
|
|
81478
83898
|
const EOF = Symbol('EOF');
|
|
81479
83899
|
const MAYBE_EMIT_END = Symbol('maybeEmitEnd');
|
|
@@ -82002,9 +84422,9 @@ var hasRequiredWrite;
|
|
|
82002
84422
|
function requireWrite() {
|
|
82003
84423
|
if (hasRequiredWrite) return write.exports;
|
|
82004
84424
|
hasRequiredWrite = 1;
|
|
82005
|
-
const events = require$$0$
|
|
84425
|
+
const events = require$$0$b;
|
|
82006
84426
|
const contentPath = requirePath();
|
|
82007
|
-
const fs = require$$0$
|
|
84427
|
+
const fs = require$$0$j;
|
|
82008
84428
|
const {
|
|
82009
84429
|
moveFile
|
|
82010
84430
|
} = requireLib$j();
|
|
@@ -82013,7 +84433,7 @@ function requireWrite() {
|
|
|
82013
84433
|
} = requireCommonjs$d();
|
|
82014
84434
|
const Pipeline = requireMinipassPipeline();
|
|
82015
84435
|
const Flush = requireMinipassFlush();
|
|
82016
|
-
const path = require$$0$
|
|
84436
|
+
const path = require$$0$c;
|
|
82017
84437
|
const ssri = requireLib$m();
|
|
82018
84438
|
const uniqueFilename = requireLib$k();
|
|
82019
84439
|
const fsm = requireLib$i();
|
|
@@ -82338,7 +84758,7 @@ function requireCommonjs$5() {
|
|
|
82338
84758
|
const lru_cache_1 = /*@__PURE__*/requireCommonjs$6();
|
|
82339
84759
|
const node_path_1 = path$2;
|
|
82340
84760
|
const node_url_1 = require$$0$6;
|
|
82341
|
-
const fs_1 = require$$0$
|
|
84761
|
+
const fs_1 = require$$0$9;
|
|
82342
84762
|
const actualFS = __importStar(fs$1);
|
|
82343
84763
|
const realpathSync = fs_1.realpathSync.native;
|
|
82344
84764
|
// TODO: test perf of fs/promises realpath vs realpathCB,
|
|
@@ -85610,7 +88030,7 @@ function requireGlob() {
|
|
|
85610
88030
|
const {
|
|
85611
88031
|
glob
|
|
85612
88032
|
} = requireCommonjs$4();
|
|
85613
|
-
const path = require$$0$
|
|
88033
|
+
const path = require$$0$c;
|
|
85614
88034
|
const globify = pattern => pattern.split(path.win32.sep).join(path.posix.sep);
|
|
85615
88035
|
glob_1 = (path, options) => glob(globify(path), options);
|
|
85616
88036
|
return glob_1;
|
|
@@ -85621,7 +88041,7 @@ var hasRequiredRm$1;
|
|
|
85621
88041
|
function requireRm$1() {
|
|
85622
88042
|
if (hasRequiredRm$1) return rm_1;
|
|
85623
88043
|
hasRequiredRm$1 = 1;
|
|
85624
|
-
const fs = require$$0$
|
|
88044
|
+
const fs = require$$0$j;
|
|
85625
88045
|
const contentPath = requirePath();
|
|
85626
88046
|
const {
|
|
85627
88047
|
hasContent
|
|
@@ -85649,11 +88069,11 @@ function requireRm() {
|
|
|
85649
88069
|
hasRequiredRm = 1;
|
|
85650
88070
|
const {
|
|
85651
88071
|
rm: rm$1
|
|
85652
|
-
} = require$$0$
|
|
88072
|
+
} = require$$0$j;
|
|
85653
88073
|
const glob = requireGlob();
|
|
85654
88074
|
const index = requireEntryIndex();
|
|
85655
88075
|
const memo = requireMemoization();
|
|
85656
|
-
const path = require$$0$
|
|
88076
|
+
const path = require$$0$c;
|
|
85657
88077
|
const rmContent = requireRm$1();
|
|
85658
88078
|
rm.exports = entry;
|
|
85659
88079
|
rm.exports.entry = entry;
|
|
@@ -85694,12 +88114,12 @@ function requireVerify$1() {
|
|
|
85694
88114
|
stat,
|
|
85695
88115
|
truncate,
|
|
85696
88116
|
writeFile
|
|
85697
|
-
} = require$$0$
|
|
88117
|
+
} = require$$0$j;
|
|
85698
88118
|
const contentPath = requirePath();
|
|
85699
88119
|
const fsm = requireLib$i();
|
|
85700
88120
|
const glob = requireGlob();
|
|
85701
88121
|
const index$1 = requireEntryIndex();
|
|
85702
|
-
const path = require$$0$
|
|
88122
|
+
const path = require$$0$c;
|
|
85703
88123
|
const ssri = requireLib$m();
|
|
85704
88124
|
const hasOwnProperty = (obj, key) => Object.prototype.hasOwnProperty.call(obj, key);
|
|
85705
88125
|
const verifyOpts = opts => ({
|
|
@@ -85945,8 +88365,8 @@ function requireTmp() {
|
|
|
85945
88365
|
const {
|
|
85946
88366
|
withTempDir
|
|
85947
88367
|
} = requireLib$j();
|
|
85948
|
-
const fs = require$$0$
|
|
85949
|
-
const path = require$$0$
|
|
88368
|
+
const fs = require$$0$j;
|
|
88369
|
+
const path = require$$0$c;
|
|
85950
88370
|
tmp.mkdir = mktmpdir;
|
|
85951
88371
|
async function mktmpdir(cache, opts = {}) {
|
|
85952
88372
|
const {
|
|
@@ -86032,9 +88452,9 @@ function requireLib$g() {
|
|
|
86032
88452
|
// as the "bundled" argument. Additionally, packageJsonCache is shared so
|
|
86033
88453
|
// packlist doesn't have to re-read files already consumed in this pass
|
|
86034
88454
|
|
|
86035
|
-
const fs = require$$0$
|
|
86036
|
-
const path = require$$0$
|
|
86037
|
-
const EE = require$$0$
|
|
88455
|
+
const fs = require$$0$9;
|
|
88456
|
+
const path = require$$0$c;
|
|
88457
|
+
const EE = require$$0$b.EventEmitter;
|
|
86038
88458
|
// we don't care about the package bins, but we share a pj cache
|
|
86039
88459
|
// with other modules that DO care about it, so keep it nice.
|
|
86040
88460
|
const normalizePackageBin = requireLib$z();
|
|
@@ -86273,12 +88693,12 @@ function requireLib$f() {
|
|
|
86273
88693
|
readFile,
|
|
86274
88694
|
readdir,
|
|
86275
88695
|
stat
|
|
86276
|
-
} = require$$0$
|
|
88696
|
+
} = require$$0$j;
|
|
86277
88697
|
const {
|
|
86278
88698
|
resolve,
|
|
86279
88699
|
basename,
|
|
86280
88700
|
dirname
|
|
86281
|
-
} = require$$0$
|
|
88701
|
+
} = require$$0$c;
|
|
86282
88702
|
const normalizePackageBin = requireLib$z();
|
|
86283
88703
|
const readPackage = ({
|
|
86284
88704
|
path,
|
|
@@ -86459,8 +88879,8 @@ function requireMinipass$3() {
|
|
|
86459
88879
|
stdout: null,
|
|
86460
88880
|
stderr: null
|
|
86461
88881
|
};
|
|
86462
|
-
const EE = require$$0$
|
|
86463
|
-
const Stream = require$$1$
|
|
88882
|
+
const EE = require$$0$b;
|
|
88883
|
+
const Stream = require$$1$7;
|
|
86464
88884
|
const stringdecoder = require$$2$7;
|
|
86465
88885
|
const SD = stringdecoder.StringDecoder;
|
|
86466
88886
|
const EOF = Symbol('EOF');
|
|
@@ -87036,7 +89456,7 @@ function requireConstants$5() {
|
|
|
87036
89456
|
// Node v6 didn't export this, so we just hard code the version and rely
|
|
87037
89457
|
// on all the other hard-coded values from zlib v4736. When node v6
|
|
87038
89458
|
// support drops, we can just export the realZlibConstants object.
|
|
87039
|
-
const realZlibConstants = require$$0$
|
|
89459
|
+
const realZlibConstants = require$$0$n.constants || /* istanbul ignore next */{
|
|
87040
89460
|
ZLIB_VERNUM: 4736
|
|
87041
89461
|
};
|
|
87042
89462
|
constants$5 = Object.freeze(Object.assign(Object.create(null), {
|
|
@@ -87159,8 +89579,8 @@ function requireMinipass$2() {
|
|
|
87159
89579
|
stdout: null,
|
|
87160
89580
|
stderr: null
|
|
87161
89581
|
};
|
|
87162
|
-
const EE = require$$0$
|
|
87163
|
-
const Stream = require$$1$
|
|
89582
|
+
const EE = require$$0$b;
|
|
89583
|
+
const Stream = require$$1$7;
|
|
87164
89584
|
const SD = require$$2$7.StringDecoder;
|
|
87165
89585
|
const EOF = Symbol('EOF');
|
|
87166
89586
|
const MAYBE_EMIT_END = Symbol('maybeEmitEnd');
|
|
@@ -87653,9 +90073,9 @@ var hasRequiredMinizlib;
|
|
|
87653
90073
|
function requireMinizlib() {
|
|
87654
90074
|
if (hasRequiredMinizlib) return minizlib;
|
|
87655
90075
|
hasRequiredMinizlib = 1;
|
|
87656
|
-
const assert = require$$0$
|
|
87657
|
-
const Buffer = require$$0$
|
|
87658
|
-
const realZlib = require$$0$
|
|
90076
|
+
const assert = require$$0$a;
|
|
90077
|
+
const Buffer = require$$0$g.Buffer;
|
|
90078
|
+
const realZlib = require$$0$n;
|
|
87659
90079
|
const constants = minizlib.constants = requireConstants$5();
|
|
87660
90080
|
const Minipass = requireMinipass$2();
|
|
87661
90081
|
const OriginalBufferConcat = Buffer.concat;
|
|
@@ -88224,7 +90644,7 @@ function requireHeader() {
|
|
|
88224
90644
|
// (Also, check header.needPax to see if it needs a pax header.)
|
|
88225
90645
|
|
|
88226
90646
|
const types = requireTypes();
|
|
88227
|
-
const pathModule = require$$0$
|
|
90647
|
+
const pathModule = require$$0$c.posix;
|
|
88228
90648
|
const large = requireLargeNumbers();
|
|
88229
90649
|
const SLURP = Symbol('slurp');
|
|
88230
90650
|
const TYPE = Symbol('type');
|
|
@@ -88467,7 +90887,7 @@ function requirePax() {
|
|
|
88467
90887
|
if (hasRequiredPax) return pax;
|
|
88468
90888
|
hasRequiredPax = 1;
|
|
88469
90889
|
const Header = requireHeader();
|
|
88470
|
-
const path = require$$0$
|
|
90890
|
+
const path = require$$0$c;
|
|
88471
90891
|
class Pax {
|
|
88472
90892
|
constructor(obj, global) {
|
|
88473
90893
|
this.atime = obj.atime || null;
|
|
@@ -88656,7 +91076,7 @@ function requireStripAbsolutePath() {
|
|
|
88656
91076
|
const {
|
|
88657
91077
|
isAbsolute,
|
|
88658
91078
|
parse
|
|
88659
|
-
} = require$$0$
|
|
91079
|
+
} = require$$0$c.win32;
|
|
88660
91080
|
|
|
88661
91081
|
// returns [root, stripped]
|
|
88662
91082
|
// Note that windows will think that //x/y/z/a has a "root" of //x/y, and in
|
|
@@ -88724,8 +91144,8 @@ function requireWriteEntry() {
|
|
|
88724
91144
|
} = requireMinipass$3();
|
|
88725
91145
|
const Pax = requirePax();
|
|
88726
91146
|
const Header = requireHeader();
|
|
88727
|
-
const fs = require$$0$
|
|
88728
|
-
const path = require$$0$
|
|
91147
|
+
const fs = require$$0$9;
|
|
91148
|
+
const path = require$$0$c;
|
|
88729
91149
|
const normPath = requireNormalizeWindowsPath();
|
|
88730
91150
|
const stripSlash = requireStripTrailingSlashes();
|
|
88731
91151
|
const prefixPath = (path, prefix) => {
|
|
@@ -89654,8 +92074,8 @@ function requirePack() {
|
|
|
89654
92074
|
const WRITEENTRYCLASS = Symbol('writeEntryClass');
|
|
89655
92075
|
const WRITE = Symbol('write');
|
|
89656
92076
|
const ONDRAIN = Symbol('ondrain');
|
|
89657
|
-
const fs = require$$0$
|
|
89658
|
-
const path = require$$0$
|
|
92077
|
+
const fs = require$$0$9;
|
|
92078
|
+
const path = require$$0$c;
|
|
89659
92079
|
const warner = requireWarnMixin();
|
|
89660
92080
|
const normPath = requireNormalizeWindowsPath();
|
|
89661
92081
|
const Pack = warner(class Pack extends Minipass {
|
|
@@ -89998,8 +92418,8 @@ function requireMinipass$1() {
|
|
|
89998
92418
|
stdout: null,
|
|
89999
92419
|
stderr: null
|
|
90000
92420
|
};
|
|
90001
|
-
const EE = require$$0$
|
|
90002
|
-
const Stream = require$$1$
|
|
92421
|
+
const EE = require$$0$b;
|
|
92422
|
+
const Stream = require$$1$7;
|
|
90003
92423
|
const SD = require$$2$7.StringDecoder;
|
|
90004
92424
|
const EOF = Symbol('EOF');
|
|
90005
92425
|
const MAYBE_EMIT_END = Symbol('maybeEmitEnd');
|
|
@@ -90493,8 +92913,8 @@ function requireFsMinipass() {
|
|
|
90493
92913
|
if (hasRequiredFsMinipass) return fsMinipass;
|
|
90494
92914
|
hasRequiredFsMinipass = 1;
|
|
90495
92915
|
const MiniPass = requireMinipass$1();
|
|
90496
|
-
const EE = require$$0$
|
|
90497
|
-
const fs = require$$0$
|
|
92916
|
+
const EE = require$$0$b.EventEmitter;
|
|
92917
|
+
const fs = require$$0$9;
|
|
90498
92918
|
let writev = fs.writev;
|
|
90499
92919
|
/* istanbul ignore next */
|
|
90500
92920
|
if (!writev) {
|
|
@@ -90856,7 +93276,7 @@ function requireParse$2() {
|
|
|
90856
93276
|
|
|
90857
93277
|
const warner = requireWarnMixin();
|
|
90858
93278
|
const Header = requireHeader();
|
|
90859
|
-
const EE = require$$0$
|
|
93279
|
+
const EE = require$$0$b;
|
|
90860
93280
|
const Yallist = requireYallist();
|
|
90861
93281
|
const maxMetaEntrySize = 1024 * 1024;
|
|
90862
93282
|
const Entry = requireReadEntry();
|
|
@@ -90864,7 +93284,7 @@ function requireParse$2() {
|
|
|
90864
93284
|
const zlib = requireMinizlib();
|
|
90865
93285
|
const {
|
|
90866
93286
|
nextTick
|
|
90867
|
-
} = require$$0$
|
|
93287
|
+
} = require$$0$f;
|
|
90868
93288
|
const gzipHeader = Buffer.from([0x1f, 0x8b]);
|
|
90869
93289
|
const STATE = Symbol('state');
|
|
90870
93290
|
const WRITEENTRY = Symbol('writeEntry');
|
|
@@ -91350,9 +93770,9 @@ function requireList() {
|
|
|
91350
93770
|
// tar -t
|
|
91351
93771
|
const hlo = requireHighLevelOpt();
|
|
91352
93772
|
const Parser = requireParse$2();
|
|
91353
|
-
const fs = require$$0$
|
|
93773
|
+
const fs = require$$0$9;
|
|
91354
93774
|
const fsm = requireFsMinipass();
|
|
91355
|
-
const path = require$$0$
|
|
93775
|
+
const path = require$$0$c;
|
|
91356
93776
|
const stripSlash = requireStripTrailingSlashes();
|
|
91357
93777
|
list_1 = (opt_, files, cb) => {
|
|
91358
93778
|
if (typeof opt_ === 'function') {
|
|
@@ -91471,7 +93891,7 @@ function requireCreate() {
|
|
|
91471
93891
|
const Pack = requirePack();
|
|
91472
93892
|
const fsm = requireFsMinipass();
|
|
91473
93893
|
const t = requireList();
|
|
91474
|
-
const path = require$$0$
|
|
93894
|
+
const path = require$$0$c;
|
|
91475
93895
|
create_1 = (opt_, files, cb) => {
|
|
91476
93896
|
if (typeof files === 'function') {
|
|
91477
93897
|
cb = files;
|
|
@@ -91566,10 +93986,10 @@ function requireReplace() {
|
|
|
91566
93986
|
// tar -r
|
|
91567
93987
|
const hlo = requireHighLevelOpt();
|
|
91568
93988
|
const Pack = requirePack();
|
|
91569
|
-
const fs = require$$0$
|
|
93989
|
+
const fs = require$$0$9;
|
|
91570
93990
|
const fsm = requireFsMinipass();
|
|
91571
93991
|
const t = requireList();
|
|
91572
|
-
const path = require$$0$
|
|
93992
|
+
const path = require$$0$c;
|
|
91573
93993
|
|
|
91574
93994
|
// starting at the head of the file, read a Header
|
|
91575
93995
|
// If the checksum is invalid, that's our position to start writing
|
|
@@ -91818,8 +94238,8 @@ function requireOptsArg() {
|
|
|
91818
94238
|
hasRequiredOptsArg = 1;
|
|
91819
94239
|
const {
|
|
91820
94240
|
promisify
|
|
91821
|
-
} = require$$0$
|
|
91822
|
-
const fs = require$$0$
|
|
94241
|
+
} = require$$0$8;
|
|
94242
|
+
const fs = require$$0$9;
|
|
91823
94243
|
const optsArg = opts => {
|
|
91824
94244
|
if (!opts) opts = {
|
|
91825
94245
|
mode: 0o777,
|
|
@@ -91856,7 +94276,7 @@ function requirePathArg() {
|
|
|
91856
94276
|
const {
|
|
91857
94277
|
resolve,
|
|
91858
94278
|
parse
|
|
91859
|
-
} = require$$0$
|
|
94279
|
+
} = require$$0$c;
|
|
91860
94280
|
const pathArg = path => {
|
|
91861
94281
|
if (/\0/.test(path)) {
|
|
91862
94282
|
// simulate same failure that node raises
|
|
@@ -91891,7 +94311,7 @@ function requireFindMade() {
|
|
|
91891
94311
|
hasRequiredFindMade = 1;
|
|
91892
94312
|
const {
|
|
91893
94313
|
dirname
|
|
91894
|
-
} = require$$0$
|
|
94314
|
+
} = require$$0$c;
|
|
91895
94315
|
const findMade = (opts, parent, path = undefined) => {
|
|
91896
94316
|
// we never want the 'made' return value to be a root directory
|
|
91897
94317
|
if (path === parent) return Promise.resolve();
|
|
@@ -91921,7 +94341,7 @@ function requireMkdirpManual() {
|
|
|
91921
94341
|
hasRequiredMkdirpManual = 1;
|
|
91922
94342
|
const {
|
|
91923
94343
|
dirname
|
|
91924
|
-
} = require$$0$
|
|
94344
|
+
} = require$$0$c;
|
|
91925
94345
|
const mkdirpManual = (path, opts, made) => {
|
|
91926
94346
|
opts.recursive = false;
|
|
91927
94347
|
const parent = dirname(path);
|
|
@@ -91981,7 +94401,7 @@ function requireMkdirpNative() {
|
|
|
91981
94401
|
hasRequiredMkdirpNative = 1;
|
|
91982
94402
|
const {
|
|
91983
94403
|
dirname
|
|
91984
|
-
} = require$$0$
|
|
94404
|
+
} = require$$0$c;
|
|
91985
94405
|
const {
|
|
91986
94406
|
findMade,
|
|
91987
94407
|
findMadeSync
|
|
@@ -92022,7 +94442,7 @@ var hasRequiredUseNative;
|
|
|
92022
94442
|
function requireUseNative() {
|
|
92023
94443
|
if (hasRequiredUseNative) return useNative_1;
|
|
92024
94444
|
hasRequiredUseNative = 1;
|
|
92025
|
-
const fs = require$$0$
|
|
94445
|
+
const fs = require$$0$9;
|
|
92026
94446
|
const version = process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version;
|
|
92027
94447
|
const versArr = version.replace(/^v/, '').split('.');
|
|
92028
94448
|
const hasNative = +versArr[0] > 10 || +versArr[0] === 10 && +versArr[1] >= 12;
|
|
@@ -92078,8 +94498,8 @@ var hasRequiredChownr;
|
|
|
92078
94498
|
function requireChownr() {
|
|
92079
94499
|
if (hasRequiredChownr) return chownr_1;
|
|
92080
94500
|
hasRequiredChownr = 1;
|
|
92081
|
-
const fs = require$$0$
|
|
92082
|
-
const path = require$$0$
|
|
94501
|
+
const fs = require$$0$9;
|
|
94502
|
+
const path = require$$0$c;
|
|
92083
94503
|
|
|
92084
94504
|
/* istanbul ignore next */
|
|
92085
94505
|
const LCHOWN = fs.lchown ? 'lchown' : 'chown';
|
|
@@ -92213,8 +94633,8 @@ function requireMkdir() {
|
|
|
92213
94633
|
// passing around state in a gazillion args.
|
|
92214
94634
|
|
|
92215
94635
|
const mkdirp = requireMkdirp();
|
|
92216
|
-
const fs = require$$0$
|
|
92217
|
-
const path = require$$0$
|
|
94636
|
+
const fs = require$$0$9;
|
|
94637
|
+
const path = require$$0$c;
|
|
92218
94638
|
const chownr = requireChownr();
|
|
92219
94639
|
const normPath = requireNormalizeWindowsPath();
|
|
92220
94640
|
class SymlinkError extends Error {
|
|
@@ -92442,12 +94862,12 @@ function requirePathReservations() {
|
|
|
92442
94862
|
// Used by async unpack to avoid clobbering paths in use,
|
|
92443
94863
|
// while still allowing maximal safe parallelization.
|
|
92444
94864
|
|
|
92445
|
-
const assert = require$$0$
|
|
94865
|
+
const assert = require$$0$a;
|
|
92446
94866
|
const normalize = requireNormalizeUnicode();
|
|
92447
94867
|
const stripSlashes = requireStripTrailingSlashes();
|
|
92448
94868
|
const {
|
|
92449
94869
|
join
|
|
92450
|
-
} = require$$0$
|
|
94870
|
+
} = require$$0$c;
|
|
92451
94871
|
const platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
92452
94872
|
const isWindows = platform === 'win32';
|
|
92453
94873
|
pathReservations = () => {
|
|
@@ -92608,7 +95028,7 @@ function requireGetWriteFlag() {
|
|
|
92608
95028
|
// Only supported in Node v12.9.0 and above.
|
|
92609
95029
|
const platform = process.env.__FAKE_PLATFORM__ || process.platform;
|
|
92610
95030
|
const isWindows = platform === 'win32';
|
|
92611
|
-
const fs = global.__FAKE_TESTING_FS__ || require$$0$
|
|
95031
|
+
const fs = global.__FAKE_TESTING_FS__ || require$$0$9;
|
|
92612
95032
|
|
|
92613
95033
|
/* istanbul ignore next */
|
|
92614
95034
|
const {
|
|
@@ -92636,11 +95056,11 @@ function requireUnpack() {
|
|
|
92636
95056
|
// (like a Link depending on its target) or destructive operations (like
|
|
92637
95057
|
// clobbering an fs object to create one of a different type.)
|
|
92638
95058
|
|
|
92639
|
-
const assert = require$$0$
|
|
95059
|
+
const assert = require$$0$a;
|
|
92640
95060
|
const Parser = requireParse$2();
|
|
92641
|
-
const fs = require$$0$
|
|
95061
|
+
const fs = require$$0$9;
|
|
92642
95062
|
const fsm = requireFsMinipass();
|
|
92643
|
-
const path = require$$0$
|
|
95063
|
+
const path = require$$0$c;
|
|
92644
95064
|
const mkdir = requireMkdir();
|
|
92645
95065
|
const wc = requireWinchars();
|
|
92646
95066
|
const pathReservations = requirePathReservations();
|
|
@@ -92673,7 +95093,7 @@ function requireUnpack() {
|
|
|
92673
95093
|
const UID = Symbol('uid');
|
|
92674
95094
|
const GID = Symbol('gid');
|
|
92675
95095
|
const CHECKED_CWD = Symbol('checkedCwd');
|
|
92676
|
-
const crypto = require$$0$
|
|
95096
|
+
const crypto = require$$0$m;
|
|
92677
95097
|
const getFlag = requireGetWriteFlag();
|
|
92678
95098
|
const platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
92679
95099
|
const isWindows = platform === 'win32';
|
|
@@ -93449,9 +95869,9 @@ function requireExtract() {
|
|
|
93449
95869
|
// tar -x
|
|
93450
95870
|
const hlo = requireHighLevelOpt();
|
|
93451
95871
|
const Unpack = requireUnpack();
|
|
93452
|
-
const fs = require$$0$
|
|
95872
|
+
const fs = require$$0$9;
|
|
93453
95873
|
const fsm = requireFsMinipass();
|
|
93454
|
-
const path = require$$0$
|
|
95874
|
+
const path = require$$0$c;
|
|
93455
95875
|
const stripSlash = requireStripTrailingSlashes();
|
|
93456
95876
|
extract_1 = (opt_, files, cb) => {
|
|
93457
95877
|
if (typeof opt_ === 'function') {
|
|
@@ -93653,9 +96073,9 @@ var hasRequiredLib$e;
|
|
|
93653
96073
|
function requireLib$e() {
|
|
93654
96074
|
if (hasRequiredLib$e) return lib$e;
|
|
93655
96075
|
hasRequiredLib$e = 1;
|
|
93656
|
-
const fs = require$$0$
|
|
93657
|
-
const path = require$$0$
|
|
93658
|
-
const EE = require$$0$
|
|
96076
|
+
const fs = require$$0$9;
|
|
96077
|
+
const path = require$$0$c;
|
|
96078
|
+
const EE = require$$0$b.EventEmitter;
|
|
93659
96079
|
const Minimatch = requireCommonjs$f().Minimatch;
|
|
93660
96080
|
class Walker extends EE {
|
|
93661
96081
|
constructor(opts) {
|
|
@@ -93959,7 +96379,7 @@ function requireLib$d() {
|
|
|
93959
96379
|
const {
|
|
93960
96380
|
lstatSync: lstat,
|
|
93961
96381
|
readFileSync: readFile
|
|
93962
|
-
} = require$$0$
|
|
96382
|
+
} = require$$0$9;
|
|
93963
96383
|
const {
|
|
93964
96384
|
basename,
|
|
93965
96385
|
dirname,
|
|
@@ -93968,7 +96388,7 @@ function requireLib$d() {
|
|
|
93968
96388
|
relative,
|
|
93969
96389
|
resolve,
|
|
93970
96390
|
sep
|
|
93971
|
-
} = require$$0$
|
|
96391
|
+
} = require$$0$c;
|
|
93972
96392
|
|
|
93973
96393
|
// symbols used to represent synthetic rule sets
|
|
93974
96394
|
const defaultRules = Symbol('npm-packlist.rules.default');
|
|
@@ -94359,7 +96779,7 @@ function requireSetPath() {
|
|
|
94359
96779
|
resolve,
|
|
94360
96780
|
dirname,
|
|
94361
96781
|
delimiter
|
|
94362
|
-
} = require$$0$
|
|
96782
|
+
} = require$$0$c;
|
|
94363
96783
|
// the path here is relative, even though it does not need to be
|
|
94364
96784
|
// in order to make the posix tests pass in windows
|
|
94365
96785
|
const nodeGypPath = require('./constants.js').npmNmNodeGypPath;
|
|
@@ -94409,7 +96829,7 @@ function requireMakeSpawnArgs() {
|
|
|
94409
96829
|
const setPATH = requireSetPath();
|
|
94410
96830
|
const {
|
|
94411
96831
|
resolve
|
|
94412
|
-
} = require$$0$
|
|
96832
|
+
} = require$$0$c;
|
|
94413
96833
|
let npm_config_node_gyp;
|
|
94414
96834
|
const makeSpawnArgs = options => {
|
|
94415
96835
|
const {
|
|
@@ -94500,8 +96920,8 @@ var hasRequiredLib$c;
|
|
|
94500
96920
|
function requireLib$c() {
|
|
94501
96921
|
if (hasRequiredLib$c) return lib$c;
|
|
94502
96922
|
hasRequiredLib$c = 1;
|
|
94503
|
-
const util = require$$0$
|
|
94504
|
-
const fs = require$$0$
|
|
96923
|
+
const util = require$$0$8;
|
|
96924
|
+
const fs = require$$0$9;
|
|
94505
96925
|
const {
|
|
94506
96926
|
stat
|
|
94507
96927
|
} = fs.promises || {
|
|
@@ -95119,7 +97539,7 @@ function requireConstants$4() {
|
|
|
95119
97539
|
// Node v6 didn't export this, so we just hard code the version and rely
|
|
95120
97540
|
// on all the other hard-coded values from zlib v4736. When node v6
|
|
95121
97541
|
// support drops, we can just export the realZlibConstants object.
|
|
95122
|
-
const zlib_1 = __importDefault(require$$0$
|
|
97542
|
+
const zlib_1 = __importDefault(require$$0$n);
|
|
95123
97543
|
/* c8 ignore start */
|
|
95124
97544
|
const realZlibConstants = zlib_1.default.constants || {
|
|
95125
97545
|
ZLIB_VERNUM: 4736
|
|
@@ -95292,10 +97712,10 @@ function requireCommonjs$3() {
|
|
|
95292
97712
|
value: true
|
|
95293
97713
|
});
|
|
95294
97714
|
exports.BrotliDecompress = exports.BrotliCompress = exports.Brotli = exports.Unzip = exports.InflateRaw = exports.DeflateRaw = exports.Gunzip = exports.Gzip = exports.Inflate = exports.Deflate = exports.Zlib = exports.ZlibError = exports.constants = void 0;
|
|
95295
|
-
const assert_1 = __importDefault(require$$0$
|
|
95296
|
-
const buffer_1 = require$$0$
|
|
97715
|
+
const assert_1 = __importDefault(require$$0$a);
|
|
97716
|
+
const buffer_1 = require$$0$g;
|
|
95297
97717
|
const minipass_1 = requireCommonjs$d();
|
|
95298
|
-
const realZlib = __importStar(require$$0$
|
|
97718
|
+
const realZlib = __importStar(require$$0$n);
|
|
95299
97719
|
const constants_js_1 = requireConstants$4();
|
|
95300
97720
|
var constants_js_2 = requireConstants$4();
|
|
95301
97721
|
Object.defineProperty(exports, "constants", {
|
|
@@ -95631,8 +98051,8 @@ function requireMinipass() {
|
|
|
95631
98051
|
stdout: null,
|
|
95632
98052
|
stderr: null
|
|
95633
98053
|
};
|
|
95634
|
-
const EE = require$$0$
|
|
95635
|
-
const Stream = require$$1$
|
|
98054
|
+
const EE = require$$0$b;
|
|
98055
|
+
const Stream = require$$1$7;
|
|
95636
98056
|
const SD = require$$2$7.StringDecoder;
|
|
95637
98057
|
const EOF = Symbol('EOF');
|
|
95638
98058
|
const MAYBE_EMIT_END = Symbol('maybeEmitEnd');
|
|
@@ -96300,7 +98720,7 @@ function requireShared() {
|
|
|
96300
98720
|
|
|
96301
98721
|
// Use non-'node:' prefixed require to avoid Webpack errors.
|
|
96302
98722
|
// eslint-disable-next-line n/prefer-node-protocol
|
|
96303
|
-
const builtinBufferExports = require$$0$
|
|
98723
|
+
const builtinBufferExports = require$$0$g;
|
|
96304
98724
|
const builtinBufferExportsDescMap = Object.fromEntries(Object.entries(Object.getOwnPropertyDescriptors(builtinBufferExports)).filter(({
|
|
96305
98725
|
0: key
|
|
96306
98726
|
}) => key !== 'Buffer' && key !== 'SlowBuffer'));
|
|
@@ -96332,7 +98752,7 @@ function requireSafer() {
|
|
|
96332
98752
|
transcode
|
|
96333
98753
|
// Use non-'node:' prefixed require to avoid Webpack errors.
|
|
96334
98754
|
// eslint-disable-next-line n/prefer-node-protocol
|
|
96335
|
-
} = require$$0$
|
|
98755
|
+
} = require$$0$g;
|
|
96336
98756
|
const {
|
|
96337
98757
|
builtinBufferExportsDescMap
|
|
96338
98758
|
} = /*@__PURE__*/requireShared();
|
|
@@ -107907,7 +110327,7 @@ var hasRequiredResponse;
|
|
|
107907
110327
|
function requireResponse() {
|
|
107908
110328
|
if (hasRequiredResponse) return response;
|
|
107909
110329
|
hasRequiredResponse = 1;
|
|
107910
|
-
const http = require$$1$
|
|
110330
|
+
const http = require$$1$8;
|
|
107911
110331
|
const {
|
|
107912
110332
|
STATUS_CODES
|
|
107913
110333
|
} = http;
|
|
@@ -108291,7 +110711,7 @@ function requireLib$a() {
|
|
|
108291
110711
|
const {
|
|
108292
110712
|
URL
|
|
108293
110713
|
} = require$$0$d;
|
|
108294
|
-
const http = require$$1$
|
|
110714
|
+
const http = require$$1$8;
|
|
108295
110715
|
const https = require$$2$3;
|
|
108296
110716
|
const zlib = requireCommonjs$3();
|
|
108297
110717
|
const {
|
|
@@ -109152,7 +111572,7 @@ var hasRequiredAuth;
|
|
|
109152
111572
|
function requireAuth() {
|
|
109153
111573
|
if (hasRequiredAuth) return auth$1;
|
|
109154
111574
|
hasRequiredAuth = 1;
|
|
109155
|
-
const fs = require$$0$
|
|
111575
|
+
const fs = require$$0$9;
|
|
109156
111576
|
const npa = requireNpa();
|
|
109157
111577
|
const {
|
|
109158
111578
|
URL
|
|
@@ -109359,7 +111779,7 @@ var hasRequiredOptions$1;
|
|
|
109359
111779
|
function requireOptions$1() {
|
|
109360
111780
|
if (hasRequiredOptions$1) return options$1;
|
|
109361
111781
|
hasRequiredOptions$1 = 1;
|
|
109362
|
-
const dns = require$$0$
|
|
111782
|
+
const dns = require$$0$o;
|
|
109363
111783
|
const conditionalHeaders = ['if-modified-since', 'if-none-match', 'if-unmodified-since', 'if-match', 'if-range'];
|
|
109364
111784
|
const configureOptions = opts => {
|
|
109365
111785
|
const {
|
|
@@ -112601,7 +115021,7 @@ function requireDns() {
|
|
|
112601
115021
|
const {
|
|
112602
115022
|
LRUCache
|
|
112603
115023
|
} = /*@__PURE__*/requireCommonjs$2();
|
|
112604
|
-
const dns = require$$0$
|
|
115024
|
+
const dns = require$$0$o;
|
|
112605
115025
|
|
|
112606
115026
|
// this is a factory so that each request can have its own opts (i.e. ttl)
|
|
112607
115027
|
// while still sharing the cache across all requests
|
|
@@ -113433,8 +115853,8 @@ function requireNode$2() {
|
|
|
113433
115853
|
if (hasRequiredNode$2) return node$2.exports;
|
|
113434
115854
|
hasRequiredNode$2 = 1;
|
|
113435
115855
|
(function (module, exports) {
|
|
113436
|
-
const tty = require$$1$
|
|
113437
|
-
const util = require$$0$
|
|
115856
|
+
const tty = require$$1$9;
|
|
115857
|
+
const util = require$$0$8;
|
|
113438
115858
|
|
|
113439
115859
|
/**
|
|
113440
115860
|
* This is the Node.js implementation of `debug()`.
|
|
@@ -113663,7 +116083,7 @@ function requireHelpers$3() {
|
|
|
113663
116083
|
value: true
|
|
113664
116084
|
});
|
|
113665
116085
|
helpers$3.req = helpers$3.json = helpers$3.toBuffer = void 0;
|
|
113666
|
-
const http = __importStar(require$$1$
|
|
116086
|
+
const http = __importStar(require$$1$8);
|
|
113667
116087
|
const https = __importStar(require$$2$3);
|
|
113668
116088
|
async function toBuffer(stream) {
|
|
113669
116089
|
let length = 0;
|
|
@@ -113745,8 +116165,8 @@ function requireDist$c() {
|
|
|
113745
116165
|
value: true
|
|
113746
116166
|
});
|
|
113747
116167
|
exports.Agent = void 0;
|
|
113748
|
-
const net = __importStar(require$$0$
|
|
113749
|
-
const http = __importStar(require$$1$
|
|
116168
|
+
const net = __importStar(require$$0$p);
|
|
116169
|
+
const http = __importStar(require$$1$8);
|
|
113750
116170
|
const https_1 = require$$2$3;
|
|
113751
116171
|
__exportStar(requireHelpers$3(), exports);
|
|
113752
116172
|
const INTERNAL = Symbol('AgentBaseInternalState');
|
|
@@ -113936,10 +116356,10 @@ function requireDist$b() {
|
|
|
113936
116356
|
value: true
|
|
113937
116357
|
});
|
|
113938
116358
|
dist$c.HttpProxyAgent = void 0;
|
|
113939
|
-
const net = __importStar(require$$0$
|
|
116359
|
+
const net = __importStar(require$$0$p);
|
|
113940
116360
|
const tls = __importStar(require$$1$c);
|
|
113941
116361
|
const debug_1 = __importDefault(requireSrc$1());
|
|
113942
|
-
const events_1 = require$$0$
|
|
116362
|
+
const events_1 = require$$0$b;
|
|
113943
116363
|
const agent_base_1 = requireDist$c();
|
|
113944
116364
|
const url_1 = require$$0$d;
|
|
113945
116365
|
const debug = (0, debug_1.default)('http-proxy-agent');
|
|
@@ -114200,9 +116620,9 @@ function requireDist$a() {
|
|
|
114200
116620
|
value: true
|
|
114201
116621
|
});
|
|
114202
116622
|
dist$a.HttpsProxyAgent = void 0;
|
|
114203
|
-
const net = __importStar(require$$0$
|
|
116623
|
+
const net = __importStar(require$$0$p);
|
|
114204
116624
|
const tls = __importStar(require$$1$c);
|
|
114205
|
-
const assert_1 = __importDefault(require$$0$
|
|
116625
|
+
const assert_1 = __importDefault(require$$0$a);
|
|
114206
116626
|
const debug_1 = __importDefault(requireSrc$1());
|
|
114207
116627
|
const agent_base_1 = requireDist$c();
|
|
114208
116628
|
const url_1 = require$$0$d;
|
|
@@ -114370,7 +116790,7 @@ function requireUtils$1() {
|
|
|
114370
116790
|
Object.defineProperty(utils$1, "__esModule", {
|
|
114371
116791
|
value: true
|
|
114372
116792
|
});
|
|
114373
|
-
const buffer_1 = require$$0$
|
|
116793
|
+
const buffer_1 = require$$0$g;
|
|
114374
116794
|
/**
|
|
114375
116795
|
* Error strings
|
|
114376
116796
|
*/
|
|
@@ -119362,9 +121782,9 @@ function requireHelpers$1() {
|
|
|
119362
121782
|
helpers$2.ipToBuffer = helpers$2.int32ToIpv4 = helpers$2.ipv4ToInt32 = helpers$2.validateSocksClientChainOptions = helpers$2.validateSocksClientOptions = void 0;
|
|
119363
121783
|
const util_1 = requireUtil$1();
|
|
119364
121784
|
const constants_1 = requireConstants$3();
|
|
119365
|
-
const stream = require$$1$
|
|
121785
|
+
const stream = require$$1$7;
|
|
119366
121786
|
const ip_address_1 = requireIpAddress();
|
|
119367
|
-
const net = require$$0$
|
|
121787
|
+
const net = require$$0$p;
|
|
119368
121788
|
/**
|
|
119369
121789
|
* Validates the provided SocksClientOptions
|
|
119370
121790
|
* @param options { SocksClientOptions }
|
|
@@ -119593,8 +122013,8 @@ function requireSocksclient() {
|
|
|
119593
122013
|
value: true
|
|
119594
122014
|
});
|
|
119595
122015
|
exports.SocksClientError = exports.SocksClient = void 0;
|
|
119596
|
-
const events_1 = require$$0$
|
|
119597
|
-
const net = require$$0$
|
|
122016
|
+
const events_1 = require$$0$b;
|
|
122017
|
+
const net = require$$0$p;
|
|
119598
122018
|
const smart_buffer_1 = requireSmartbuffer();
|
|
119599
122019
|
const constants_1 = requireConstants$3();
|
|
119600
122020
|
const helpers_1 = requireHelpers$1();
|
|
@@ -120430,8 +122850,8 @@ function requireDist$9() {
|
|
|
120430
122850
|
const socks_1 = requireBuild$1();
|
|
120431
122851
|
const agent_base_1 = requireDist$c();
|
|
120432
122852
|
const debug_1 = __importDefault(requireSrc$1());
|
|
120433
|
-
const dns = __importStar(require$$0$
|
|
120434
|
-
const net = __importStar(require$$0$
|
|
122853
|
+
const dns = __importStar(require$$0$o);
|
|
122854
|
+
const net = __importStar(require$$0$p);
|
|
120435
122855
|
const tls = __importStar(require$$1$c);
|
|
120436
122856
|
const url_1 = require$$0$d;
|
|
120437
122857
|
const debug = (0, debug_1.default)('socks-proxy-agent');
|
|
@@ -120758,11 +123178,11 @@ var hasRequiredAgents$2;
|
|
|
120758
123178
|
function requireAgents$2() {
|
|
120759
123179
|
if (hasRequiredAgents$2) return agents$2;
|
|
120760
123180
|
hasRequiredAgents$2 = 1;
|
|
120761
|
-
const net = require$$0$
|
|
123181
|
+
const net = require$$0$p;
|
|
120762
123182
|
const tls = require$$1$c;
|
|
120763
123183
|
const {
|
|
120764
123184
|
once
|
|
120765
|
-
} = require$$0$
|
|
123185
|
+
} = require$$0$b;
|
|
120766
123186
|
const timers = require$$3$4;
|
|
120767
123187
|
const {
|
|
120768
123188
|
normalizeOptions,
|
|
@@ -125975,7 +128395,7 @@ function requireCrypto() {
|
|
|
125975
128395
|
See the License for the specific language governing permissions and
|
|
125976
128396
|
limitations under the License.
|
|
125977
128397
|
*/
|
|
125978
|
-
const crypto_1 = __importDefault(require$$0$
|
|
128398
|
+
const crypto_1 = __importDefault(require$$0$m);
|
|
125979
128399
|
function createPublicKey(key, type = 'spki') {
|
|
125980
128400
|
if (typeof key === 'string') {
|
|
125981
128401
|
return crypto_1.default.createPublicKey(key);
|
|
@@ -127344,7 +129764,7 @@ function requireUa() {
|
|
|
127344
129764
|
See the License for the specific language governing permissions and
|
|
127345
129765
|
limitations under the License.
|
|
127346
129766
|
*/
|
|
127347
|
-
const os_1 = __importDefault(require$$0$
|
|
129767
|
+
const os_1 = __importDefault(require$$0$e);
|
|
127348
129768
|
// Format User-Agent: <product> / <product-version> (<platform>)
|
|
127349
129769
|
// source: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent
|
|
127350
129770
|
const getUserAgent = () => {
|
|
@@ -127967,7 +130387,7 @@ function requireFetch() {
|
|
|
127967
130387
|
See the License for the specific language governing permissions and
|
|
127968
130388
|
limitations under the License.
|
|
127969
130389
|
*/
|
|
127970
|
-
const http2_1 = require$$0$
|
|
130390
|
+
const http2_1 = require$$0$q;
|
|
127971
130391
|
const make_fetch_happen_1 = __importDefault(requireLib$7());
|
|
127972
130392
|
const proc_log_1 = requireLib$F();
|
|
127973
130393
|
const promise_retry_1 = __importDefault(requirePromiseRetry());
|
|
@@ -128194,7 +130614,7 @@ function requireEphemeral() {
|
|
|
128194
130614
|
See the License for the specific language governing permissions and
|
|
128195
130615
|
limitations under the License.
|
|
128196
130616
|
*/
|
|
128197
|
-
const crypto_1 = __importDefault(require$$0$
|
|
130617
|
+
const crypto_1 = __importDefault(require$$0$m);
|
|
128198
130618
|
const EC_KEYPAIR_TYPE = 'ec';
|
|
128199
130619
|
const P256_CURVE = 'P-256';
|
|
128200
130620
|
// Signer implementation which uses an ephemeral keypair to sign artifacts.
|
|
@@ -129060,8 +131480,8 @@ function requireAppdata() {
|
|
|
129060
131480
|
See the License for the specific language governing permissions and
|
|
129061
131481
|
limitations under the License.
|
|
129062
131482
|
*/
|
|
129063
|
-
const os_1 = __importDefault(require$$0$
|
|
129064
|
-
const path_1 = __importDefault(require$$0$
|
|
131483
|
+
const os_1 = __importDefault(require$$0$e);
|
|
131484
|
+
const path_1 = __importDefault(require$$0$c);
|
|
129065
131485
|
function appDataPath(name) {
|
|
129066
131486
|
const homedir = os_1.default.homedir();
|
|
129067
131487
|
switch (process.platform) {
|
|
@@ -129249,7 +131669,7 @@ function requireVerify() {
|
|
|
129249
131669
|
});
|
|
129250
131670
|
verify.verifySignature = void 0;
|
|
129251
131671
|
const canonical_json_1 = requireLib$5();
|
|
129252
|
-
const crypto_1 = __importDefault(require$$0$
|
|
131672
|
+
const crypto_1 = __importDefault(require$$0$m);
|
|
129253
131673
|
const verifySignature = (metaDataSignedData, key, signature) => {
|
|
129254
131674
|
const canonicalData = Buffer.from((0, canonical_json_1.canonicalize)(metaDataSignedData));
|
|
129255
131675
|
return crypto_1.default.verify(undefined, canonicalData, key, Buffer.from(signature, 'hex'));
|
|
@@ -129316,7 +131736,7 @@ function requireBase() {
|
|
|
129316
131736
|
});
|
|
129317
131737
|
base.Signed = base.MetadataKind = void 0;
|
|
129318
131738
|
base.isMetadataKind = isMetadataKind;
|
|
129319
|
-
const util_1 = __importDefault(require$$0$
|
|
131739
|
+
const util_1 = __importDefault(require$$0$8);
|
|
129320
131740
|
const error_1 = requireError$5();
|
|
129321
131741
|
const utils_1 = requireUtils();
|
|
129322
131742
|
const SPECIFICATION_VERSION = ['1', '0', '31'];
|
|
@@ -129416,8 +131836,8 @@ function requireFile() {
|
|
|
129416
131836
|
value: true
|
|
129417
131837
|
});
|
|
129418
131838
|
file.TargetFile = file.MetaFile = void 0;
|
|
129419
|
-
const crypto_1 = __importDefault(require$$0$
|
|
129420
|
-
const util_1 = __importDefault(require$$0$
|
|
131839
|
+
const crypto_1 = __importDefault(require$$0$m);
|
|
131840
|
+
const util_1 = __importDefault(require$$0$8);
|
|
129421
131841
|
const error_1 = requireError$5();
|
|
129422
131842
|
const utils_1 = requireUtils();
|
|
129423
131843
|
// A container with information about a particular metadata file.
|
|
@@ -129650,7 +132070,7 @@ function requireKey$2() {
|
|
|
129650
132070
|
value: true
|
|
129651
132071
|
});
|
|
129652
132072
|
key$1.getPublicKey = getPublicKey;
|
|
129653
|
-
const crypto_1 = __importDefault(require$$0$
|
|
132073
|
+
const crypto_1 = __importDefault(require$$0$m);
|
|
129654
132074
|
const error_1 = requireError$5();
|
|
129655
132075
|
const oid_1 = requireOid();
|
|
129656
132076
|
const ASN1_TAG_SEQUENCE = 0x30;
|
|
@@ -129771,7 +132191,7 @@ function requireKey$1() {
|
|
|
129771
132191
|
value: true
|
|
129772
132192
|
});
|
|
129773
132193
|
key$2.Key = void 0;
|
|
129774
|
-
const util_1 = __importDefault(require$$0$
|
|
132194
|
+
const util_1 = __importDefault(require$$0$8);
|
|
129775
132195
|
const error_1 = requireError$5();
|
|
129776
132196
|
const utils_1 = requireUtils();
|
|
129777
132197
|
const key_1 = requireKey$2();
|
|
@@ -129876,9 +132296,9 @@ function requireRole() {
|
|
|
129876
132296
|
value: true
|
|
129877
132297
|
});
|
|
129878
132298
|
role.SuccinctRoles = role.DelegatedRole = role.Role = role.TOP_LEVEL_ROLE_NAMES = void 0;
|
|
129879
|
-
const crypto_1 = __importDefault(require$$0$
|
|
132299
|
+
const crypto_1 = __importDefault(require$$0$m);
|
|
129880
132300
|
const minimatch_1 = requireCommonjs$f();
|
|
129881
|
-
const util_1 = __importDefault(require$$0$
|
|
132301
|
+
const util_1 = __importDefault(require$$0$8);
|
|
129882
132302
|
const error_1 = requireError$5();
|
|
129883
132303
|
const utils_1 = requireUtils();
|
|
129884
132304
|
role.TOP_LEVEL_ROLE_NAMES = ['root', 'targets', 'snapshot', 'timestamp'];
|
|
@@ -130201,7 +132621,7 @@ function requireRoot() {
|
|
|
130201
132621
|
value: true
|
|
130202
132622
|
});
|
|
130203
132623
|
root.Root = void 0;
|
|
130204
|
-
const util_1 = __importDefault(require$$0$
|
|
132624
|
+
const util_1 = __importDefault(require$$0$8);
|
|
130205
132625
|
const base_1 = requireBase();
|
|
130206
132626
|
const error_1 = requireError$5();
|
|
130207
132627
|
const key_1 = requireKey$1();
|
|
@@ -130396,7 +132816,7 @@ function requireSnapshot() {
|
|
|
130396
132816
|
value: true
|
|
130397
132817
|
});
|
|
130398
132818
|
snapshot.Snapshot = void 0;
|
|
130399
|
-
const util_1 = __importDefault(require$$0$
|
|
132819
|
+
const util_1 = __importDefault(require$$0$8);
|
|
130400
132820
|
const base_1 = requireBase();
|
|
130401
132821
|
const file_1 = requireFile();
|
|
130402
132822
|
const utils_1 = requireUtils();
|
|
@@ -130490,7 +132910,7 @@ function requireDelegations() {
|
|
|
130490
132910
|
value: true
|
|
130491
132911
|
});
|
|
130492
132912
|
delegations.Delegations = void 0;
|
|
130493
|
-
const util_1 = __importDefault(require$$0$
|
|
132913
|
+
const util_1 = __importDefault(require$$0$8);
|
|
130494
132914
|
const error_1 = requireError$5();
|
|
130495
132915
|
const key_1 = requireKey$1();
|
|
130496
132916
|
const role_1 = requireRole();
|
|
@@ -130618,7 +133038,7 @@ function requireTargets() {
|
|
|
130618
133038
|
value: true
|
|
130619
133039
|
});
|
|
130620
133040
|
targets.Targets = void 0;
|
|
130621
|
-
const util_1 = __importDefault(require$$0$
|
|
133041
|
+
const util_1 = __importDefault(require$$0$8);
|
|
130622
133042
|
const base_1 = requireBase();
|
|
130623
133043
|
const delegations_1 = requireDelegations();
|
|
130624
133044
|
const file_1 = requireFile();
|
|
@@ -130801,7 +133221,7 @@ function requireMetadata() {
|
|
|
130801
133221
|
});
|
|
130802
133222
|
metadata.Metadata = void 0;
|
|
130803
133223
|
const canonical_json_1 = requireLib$5();
|
|
130804
|
-
const util_1 = __importDefault(require$$0$
|
|
133224
|
+
const util_1 = __importDefault(require$$0$8);
|
|
130805
133225
|
const base_1 = requireBase();
|
|
130806
133226
|
const error_1 = requireError$5();
|
|
130807
133227
|
const root_1 = requireRoot();
|
|
@@ -131113,9 +133533,9 @@ function requireTmpfile() {
|
|
|
131113
133533
|
value: true
|
|
131114
133534
|
});
|
|
131115
133535
|
tmpfile.withTempFile = void 0;
|
|
131116
|
-
const promises_1 = __importDefault(require$$0$
|
|
131117
|
-
const os_1 = __importDefault(require$$0$
|
|
131118
|
-
const path_1 = __importDefault(require$$0$
|
|
133536
|
+
const promises_1 = __importDefault(require$$0$j);
|
|
133537
|
+
const os_1 = __importDefault(require$$0$e);
|
|
133538
|
+
const path_1 = __importDefault(require$$0$c);
|
|
131119
133539
|
// Invokes the given handler with the path to a temporary file. The file
|
|
131120
133540
|
// is deleted after the handler returns.
|
|
131121
133541
|
const withTempFile = async handler => withTempDir(async dir => handler(path_1.default.join(dir, 'tempfile')));
|
|
@@ -131152,9 +133572,9 @@ function requireFetcher$1() {
|
|
|
131152
133572
|
});
|
|
131153
133573
|
fetcher$1.DefaultFetcher = fetcher$1.BaseFetcher = void 0;
|
|
131154
133574
|
const debug_1 = __importDefault(requireSrc$1());
|
|
131155
|
-
const fs_1 = __importDefault(require$$0$
|
|
133575
|
+
const fs_1 = __importDefault(require$$0$9);
|
|
131156
133576
|
const make_fetch_happen_1 = __importDefault(requireLib$7());
|
|
131157
|
-
const util_1 = __importDefault(require$$0$
|
|
133577
|
+
const util_1 = __importDefault(require$$0$8);
|
|
131158
133578
|
const error_1 = requireError$4();
|
|
131159
133579
|
const tmpfile_1 = requireTmpfile();
|
|
131160
133580
|
const log = (0, debug_1.default)('tuf:fetch');
|
|
@@ -131550,8 +133970,8 @@ function requireUpdater() {
|
|
|
131550
133970
|
updater.Updater = void 0;
|
|
131551
133971
|
const models_1 = requireDist$4();
|
|
131552
133972
|
const debug_1 = __importDefault(requireSrc$1());
|
|
131553
|
-
const fs = __importStar(require$$0$
|
|
131554
|
-
const path = __importStar(require$$0$
|
|
133973
|
+
const fs = __importStar(require$$0$9);
|
|
133974
|
+
const path = __importStar(require$$0$c);
|
|
131555
133975
|
const config_1 = requireConfig$1();
|
|
131556
133976
|
const error_1 = requireError$4();
|
|
131557
133977
|
const fetcher_1 = requireFetcher$1();
|
|
@@ -131964,7 +134384,7 @@ function requireTarget() {
|
|
|
131964
134384
|
See the License for the specific language governing permissions and
|
|
131965
134385
|
limitations under the License.
|
|
131966
134386
|
*/
|
|
131967
|
-
const fs_1 = __importDefault(require$$0$
|
|
134387
|
+
const fs_1 = __importDefault(require$$0$9);
|
|
131968
134388
|
const error_1 = requireError$3();
|
|
131969
134389
|
// Downloads and returns the specified target from the provided TUF Updater.
|
|
131970
134390
|
async function readTarget(tuf, targetPath) {
|
|
@@ -132057,8 +134477,8 @@ function requireClient$1() {
|
|
|
132057
134477
|
See the License for the specific language governing permissions and
|
|
132058
134478
|
limitations under the License.
|
|
132059
134479
|
*/
|
|
132060
|
-
const fs_1 = __importDefault(require$$0$
|
|
132061
|
-
const path_1 = __importDefault(require$$0$
|
|
134480
|
+
const fs_1 = __importDefault(require$$0$9);
|
|
134481
|
+
const path_1 = __importDefault(require$$0$c);
|
|
132062
134482
|
const tuf_js_1 = requireDist$3();
|
|
132063
134483
|
const _1 = requireDist$2();
|
|
132064
134484
|
const target_1 = requireTarget();
|
|
@@ -133726,7 +136146,7 @@ function requireVerifier() {
|
|
|
133726
136146
|
See the License for the specific language governing permissions and
|
|
133727
136147
|
limitations under the License.
|
|
133728
136148
|
*/
|
|
133729
|
-
const util_1 = require$$0$
|
|
136149
|
+
const util_1 = require$$0$8;
|
|
133730
136150
|
const error_1 = requireError$2();
|
|
133731
136151
|
const key_1 = requireKey();
|
|
133732
136152
|
const policy_1 = requirePolicy();
|
|
@@ -134283,7 +136703,7 @@ var hasRequiredRegistry;
|
|
|
134283
136703
|
function requireRegistry() {
|
|
134284
136704
|
if (hasRequiredRegistry) return registry;
|
|
134285
136705
|
hasRequiredRegistry = 1;
|
|
134286
|
-
const crypto = require$$0$
|
|
136706
|
+
const crypto = require$$0$r;
|
|
134287
136707
|
const PackageJson = requireLib$w();
|
|
134288
136708
|
const pickManifest = requireLib$y();
|
|
134289
136709
|
const ssri = requireLib$m();
|
|
@@ -138142,7 +140562,7 @@ function requireHash() {
|
|
|
138142
140562
|
hasRequiredHash = 1;
|
|
138143
140563
|
const {
|
|
138144
140564
|
createHash
|
|
138145
|
-
} = require$$0$
|
|
140565
|
+
} = require$$0$m;
|
|
138146
140566
|
hash = ({
|
|
138147
140567
|
name,
|
|
138148
140568
|
source
|
|
@@ -138583,7 +141003,7 @@ function requireLib$2() {
|
|
|
138583
141003
|
const Advisory = requireAdvisory();
|
|
138584
141004
|
const {
|
|
138585
141005
|
homedir
|
|
138586
|
-
} = require$$0$
|
|
141006
|
+
} = require$$0$e;
|
|
138587
141007
|
const jsonParse = requireLib$E();
|
|
138588
141008
|
const _packument = Symbol('packument');
|
|
138589
141009
|
const _cachePut = Symbol('cachePut');
|
|
@@ -140641,7 +143061,7 @@ var hasRequiredClient;
|
|
|
140641
143061
|
function requireClient() {
|
|
140642
143062
|
if (hasRequiredClient) return client;
|
|
140643
143063
|
hasRequiredClient = 1;
|
|
140644
|
-
const EE = require$$0$
|
|
143064
|
+
const EE = require$$0$b;
|
|
140645
143065
|
const onProgress = Symbol('onProgress');
|
|
140646
143066
|
const bars = Symbol('bars');
|
|
140647
143067
|
const listener = Symbol('listener');
|
|
@@ -140757,7 +143177,7 @@ function requireTracker$1() {
|
|
|
140757
143177
|
hasRequiredTracker$1 = 1;
|
|
140758
143178
|
// The tracker class is intentionally as naive as possible. it is just
|
|
140759
143179
|
// an ergonomic wrapper around process.emit('progress', ...)
|
|
140760
|
-
const EE = require$$0$
|
|
143180
|
+
const EE = require$$0$b;
|
|
140761
143181
|
class Tracker extends EE {
|
|
140762
143182
|
constructor(name, key, total) {
|
|
140763
143183
|
super();
|
|
@@ -146151,7 +148571,7 @@ function requireCommonAncestorPath() {
|
|
|
146151
148571
|
parse,
|
|
146152
148572
|
sep,
|
|
146153
148573
|
normalize: norm
|
|
146154
|
-
} = require$$0$
|
|
148574
|
+
} = require$$0$c;
|
|
146155
148575
|
function* commonArrayMembers(a, b) {
|
|
146156
148576
|
const [l, s] = a.length > b.length ? [a, b] : [b, a];
|
|
146157
148577
|
for (const x of s) {
|
|
@@ -147857,7 +150277,7 @@ var hasRequiredRetirePath;
|
|
|
147857
150277
|
function requireRetirePath() {
|
|
147858
150278
|
if (hasRequiredRetirePath) return retirePath_1;
|
|
147859
150279
|
hasRequiredRetirePath = 1;
|
|
147860
|
-
const crypto = require$$0$
|
|
150280
|
+
const crypto = require$$0$r;
|
|
147861
150281
|
const {
|
|
147862
150282
|
dirname,
|
|
147863
150283
|
basename,
|
|
@@ -149464,7 +151884,7 @@ function requireIsolatedReifier() {
|
|
|
149464
151884
|
const {
|
|
149465
151885
|
depth
|
|
149466
151886
|
} = requireLib$3();
|
|
149467
|
-
const crypto = require$$0$
|
|
151887
|
+
const crypto = require$$0$r;
|
|
149468
151888
|
|
|
149469
151889
|
// cache complicated function results
|
|
149470
151890
|
const memoize = fn => {
|
|
@@ -149991,7 +152411,7 @@ function requireArborist() {
|
|
|
149991
152411
|
const PackumentCache = requirePackumentCache();
|
|
149992
152412
|
const mixins = [requireTracker(), requireBuildIdealTree(), requireLoadActual(), requireLoadVirtual(), requireRebuild(), requireReify(), requireIsolatedReifier()];
|
|
149993
152413
|
const _setWorkspaces = Symbol.for('setWorkspaces');
|
|
149994
|
-
const Base = mixins.reduce((a, b) => b(a), require$$0$
|
|
152414
|
+
const Base = mixins.reduce((a, b) => b(a), require$$0$i);
|
|
149995
152415
|
|
|
149996
152416
|
// if it's 1, 2, or 3, set it explicitly that.
|
|
149997
152417
|
// if undefined or null, set it null
|
|
@@ -165016,8 +167436,8 @@ function requireNode() {
|
|
|
165016
167436
|
(function (module) {
|
|
165017
167437
|
var feature = requireFeature().default;
|
|
165018
167438
|
var region = requireRegion().default;
|
|
165019
|
-
var fs = require$$0$
|
|
165020
|
-
var path = require$$0$
|
|
167439
|
+
var fs = require$$0$9;
|
|
167440
|
+
var path = require$$0$c;
|
|
165021
167441
|
var BrowserslistError = requireError();
|
|
165022
167442
|
var IS_SECTION = /^\s*\[(.+)]\s*$/;
|
|
165023
167443
|
var CONFIG_PATTERN = /^browserslist-config-/;
|
|
@@ -165476,7 +167896,7 @@ function requireBrowserslist() {
|
|
|
165476
167896
|
var agents = requireAgents().agents;
|
|
165477
167897
|
var e2c = requireVersions();
|
|
165478
167898
|
var jsEOL = require$$3;
|
|
165479
|
-
var path = require$$0$
|
|
167899
|
+
var path = require$$0$c;
|
|
165480
167900
|
var BrowserslistError = requireError();
|
|
165481
167901
|
var env = requireNode();
|
|
165482
167902
|
var parseWithoutCache = requireParse(); // Will load browser.js in webpack
|
|
@@ -169479,7 +171899,7 @@ var hasRequiredSupportsColor;
|
|
|
169479
171899
|
function requireSupportsColor() {
|
|
169480
171900
|
if (hasRequiredSupportsColor) return supportsColor_1;
|
|
169481
171901
|
hasRequiredSupportsColor = 1;
|
|
169482
|
-
const os = require$$0$
|
|
171902
|
+
const os = require$$0$e;
|
|
169483
171903
|
const hasFlag = requireHasFlag();
|
|
169484
171904
|
const env = process.env;
|
|
169485
171905
|
let forceColor;
|
|
@@ -170168,6 +172588,8 @@ exports.open = open;
|
|
|
170168
172588
|
exports.overrideSetExports = overrideSetExports;
|
|
170169
172589
|
exports.packageurlJsExports = packageurlJsExports$1;
|
|
170170
172590
|
exports.packageurlJsExports$1 = packageurlJsExports;
|
|
172591
|
+
exports.registryAuthTokenExports = registryAuthTokenExports;
|
|
172592
|
+
exports.registryUrl = registryUrl;
|
|
170171
172593
|
exports.semverExports = semverExports;
|
|
170172
172594
|
exports.srcExports = srcExports;
|
|
170173
172595
|
exports.stackWithCauses = stackWithCauses;
|
|
@@ -170175,5 +172597,5 @@ exports.terminalLinkExports = terminalLinkExports;
|
|
|
170175
172597
|
exports.updater = updater$1;
|
|
170176
172598
|
exports.yargsParser = yargsParser;
|
|
170177
172599
|
exports.yoctocolorsCjsExports = yoctocolorsCjsExports;
|
|
170178
|
-
//# debugId=
|
|
172600
|
+
//# debugId=6199d008-a967-4b64-9966-4aeffaad1d3b
|
|
170179
172601
|
//# sourceMappingURL=vendor.js.map
|