microfox 1.2.0 → 1.2.1
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/CHANGELOG.md +6 -0
- package/dist/cli.js +997 -893
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +544 -440
- package/dist/cli.mjs.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1225,8 +1225,8 @@ var require_command = __commonJS({
|
|
|
1225
1225
|
"use strict";
|
|
1226
1226
|
var EventEmitter3 = require("events").EventEmitter;
|
|
1227
1227
|
var childProcess2 = require("child_process");
|
|
1228
|
-
var
|
|
1229
|
-
var
|
|
1228
|
+
var path19 = require("path");
|
|
1229
|
+
var fs13 = require("fs");
|
|
1230
1230
|
var process10 = require("process");
|
|
1231
1231
|
var { Argument: Argument2, humanReadableArgName } = require_argument();
|
|
1232
1232
|
var { CommanderError: CommanderError2 } = require_error();
|
|
@@ -2229,7 +2229,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2229
2229
|
* @param {string} subcommandName
|
|
2230
2230
|
*/
|
|
2231
2231
|
_checkForMissingExecutable(executableFile, executableDir, subcommandName) {
|
|
2232
|
-
if (
|
|
2232
|
+
if (fs13.existsSync(executableFile)) return;
|
|
2233
2233
|
const executableDirMessage = executableDir ? `searched for local subcommand relative to directory '${executableDir}'` : "no directory for search for local subcommand, use .executableDir() to supply a custom directory";
|
|
2234
2234
|
const executableMissing = `'${executableFile}' does not exist
|
|
2235
2235
|
- if '${subcommandName}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
|
|
@@ -2247,11 +2247,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2247
2247
|
let launchWithNode = false;
|
|
2248
2248
|
const sourceExt = [".js", ".ts", ".tsx", ".mjs", ".cjs"];
|
|
2249
2249
|
function findFile(baseDir, baseName) {
|
|
2250
|
-
const localBin =
|
|
2251
|
-
if (
|
|
2252
|
-
if (sourceExt.includes(
|
|
2250
|
+
const localBin = path19.resolve(baseDir, baseName);
|
|
2251
|
+
if (fs13.existsSync(localBin)) return localBin;
|
|
2252
|
+
if (sourceExt.includes(path19.extname(baseName))) return void 0;
|
|
2253
2253
|
const foundExt = sourceExt.find(
|
|
2254
|
-
(ext2) =>
|
|
2254
|
+
(ext2) => fs13.existsSync(`${localBin}${ext2}`)
|
|
2255
2255
|
);
|
|
2256
2256
|
if (foundExt) return `${localBin}${foundExt}`;
|
|
2257
2257
|
return void 0;
|
|
@@ -2263,21 +2263,21 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2263
2263
|
if (this._scriptPath) {
|
|
2264
2264
|
let resolvedScriptPath;
|
|
2265
2265
|
try {
|
|
2266
|
-
resolvedScriptPath =
|
|
2266
|
+
resolvedScriptPath = fs13.realpathSync(this._scriptPath);
|
|
2267
2267
|
} catch (e) {
|
|
2268
2268
|
resolvedScriptPath = this._scriptPath;
|
|
2269
2269
|
}
|
|
2270
|
-
executableDir =
|
|
2271
|
-
|
|
2270
|
+
executableDir = path19.resolve(
|
|
2271
|
+
path19.dirname(resolvedScriptPath),
|
|
2272
2272
|
executableDir
|
|
2273
2273
|
);
|
|
2274
2274
|
}
|
|
2275
2275
|
if (executableDir) {
|
|
2276
2276
|
let localFile = findFile(executableDir, executableFile);
|
|
2277
2277
|
if (!localFile && !subcommand._executableFile && this._scriptPath) {
|
|
2278
|
-
const legacyName =
|
|
2278
|
+
const legacyName = path19.basename(
|
|
2279
2279
|
this._scriptPath,
|
|
2280
|
-
|
|
2280
|
+
path19.extname(this._scriptPath)
|
|
2281
2281
|
);
|
|
2282
2282
|
if (legacyName !== this._name) {
|
|
2283
2283
|
localFile = findFile(
|
|
@@ -2288,7 +2288,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2288
2288
|
}
|
|
2289
2289
|
executableFile = localFile || executableFile;
|
|
2290
2290
|
}
|
|
2291
|
-
launchWithNode = sourceExt.includes(
|
|
2291
|
+
launchWithNode = sourceExt.includes(path19.extname(executableFile));
|
|
2292
2292
|
let proc2;
|
|
2293
2293
|
if (process10.platform !== "win32") {
|
|
2294
2294
|
if (launchWithNode) {
|
|
@@ -3209,7 +3209,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
3209
3209
|
* @return {Command}
|
|
3210
3210
|
*/
|
|
3211
3211
|
nameFromFilename(filename) {
|
|
3212
|
-
this._name =
|
|
3212
|
+
this._name = path19.basename(filename, path19.extname(filename));
|
|
3213
3213
|
return this;
|
|
3214
3214
|
}
|
|
3215
3215
|
/**
|
|
@@ -3223,9 +3223,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
3223
3223
|
* @param {string} [path]
|
|
3224
3224
|
* @return {(string|null|Command)}
|
|
3225
3225
|
*/
|
|
3226
|
-
executableDir(
|
|
3227
|
-
if (
|
|
3228
|
-
this._executableDir =
|
|
3226
|
+
executableDir(path20) {
|
|
3227
|
+
if (path20 === void 0) return this._executableDir;
|
|
3228
|
+
this._executableDir = path20;
|
|
3229
3229
|
return this;
|
|
3230
3230
|
}
|
|
3231
3231
|
/**
|
|
@@ -3514,7 +3514,7 @@ var require_readline_sync = __commonJS({
|
|
|
3514
3514
|
var ALGORITHM_CIPHER = "aes-256-cbc";
|
|
3515
3515
|
var ALGORITHM_HASH = "sha256";
|
|
3516
3516
|
var DEFAULT_ERR_MSG = "The current environment doesn't support interactive reading from TTY.";
|
|
3517
|
-
var
|
|
3517
|
+
var fs13 = require("fs");
|
|
3518
3518
|
var TTY = process.binding("tty_wrap").TTY;
|
|
3519
3519
|
var childProc = require("child_process");
|
|
3520
3520
|
var pathUtil = require("path");
|
|
@@ -3592,7 +3592,7 @@ var require_readline_sync = __commonJS({
|
|
|
3592
3592
|
while (true) {
|
|
3593
3593
|
filepath = pathUtil.join(tempdir, name + suffix);
|
|
3594
3594
|
try {
|
|
3595
|
-
fd =
|
|
3595
|
+
fd = fs13.openSync(filepath, "wx");
|
|
3596
3596
|
} catch (e) {
|
|
3597
3597
|
if (e.code === "EEXIST") {
|
|
3598
3598
|
suffix++;
|
|
@@ -3601,7 +3601,7 @@ var require_readline_sync = __commonJS({
|
|
|
3601
3601
|
throw e;
|
|
3602
3602
|
}
|
|
3603
3603
|
}
|
|
3604
|
-
|
|
3604
|
+
fs13.closeSync(fd);
|
|
3605
3605
|
break;
|
|
3606
3606
|
}
|
|
3607
3607
|
return filepath;
|
|
@@ -3646,16 +3646,16 @@ var require_readline_sync = __commonJS({
|
|
|
3646
3646
|
res.error.program = shellPath;
|
|
3647
3647
|
res.error.args = shellArgs;
|
|
3648
3648
|
}
|
|
3649
|
-
while (
|
|
3649
|
+
while (fs13.readFileSync(pathDone, { encoding: options.encoding }).trim() !== "1") {
|
|
3650
3650
|
}
|
|
3651
|
-
if ((exitCode =
|
|
3651
|
+
if ((exitCode = fs13.readFileSync(pathExit, { encoding: options.encoding }).trim()) === "0") {
|
|
3652
3652
|
res.input = decipher.update(
|
|
3653
|
-
|
|
3653
|
+
fs13.readFileSync(pathStdout, { encoding: "binary" }),
|
|
3654
3654
|
"hex",
|
|
3655
3655
|
options.encoding
|
|
3656
3656
|
) + decipher.final(options.encoding);
|
|
3657
3657
|
} else {
|
|
3658
|
-
extMessage =
|
|
3658
|
+
extMessage = fs13.readFileSync(pathStderr, { encoding: options.encoding }).trim();
|
|
3659
3659
|
res.error = new Error(DEFAULT_ERR_MSG + (extMessage ? "\n" + extMessage : ""));
|
|
3660
3660
|
res.error.method = "_execFileSync";
|
|
3661
3661
|
res.error.program = shellPath;
|
|
@@ -3663,10 +3663,10 @@ var require_readline_sync = __commonJS({
|
|
|
3663
3663
|
res.error.extMessage = extMessage;
|
|
3664
3664
|
res.error.exitCode = +exitCode;
|
|
3665
3665
|
}
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3666
|
+
fs13.unlinkSync(pathStdout);
|
|
3667
|
+
fs13.unlinkSync(pathStderr);
|
|
3668
|
+
fs13.unlinkSync(pathExit);
|
|
3669
|
+
fs13.unlinkSync(pathDone);
|
|
3670
3670
|
return res;
|
|
3671
3671
|
}
|
|
3672
3672
|
function readlineExt(options) {
|
|
@@ -3776,7 +3776,7 @@ var require_readline_sync = __commonJS({
|
|
|
3776
3776
|
fdW = process.stdout.fd;
|
|
3777
3777
|
} else {
|
|
3778
3778
|
try {
|
|
3779
|
-
fdW =
|
|
3779
|
+
fdW = fs13.openSync("\\\\.\\CON", "w");
|
|
3780
3780
|
} catch (e) {
|
|
3781
3781
|
}
|
|
3782
3782
|
if (typeof fdW !== "number") {
|
|
@@ -3790,13 +3790,13 @@ var require_readline_sync = __commonJS({
|
|
|
3790
3790
|
if (process.stdin.isTTY) {
|
|
3791
3791
|
process.stdin.pause();
|
|
3792
3792
|
try {
|
|
3793
|
-
fdR =
|
|
3793
|
+
fdR = fs13.openSync("/dev/tty", "r");
|
|
3794
3794
|
ttyR = process.stdin._handle;
|
|
3795
3795
|
} catch (e) {
|
|
3796
3796
|
}
|
|
3797
3797
|
} else {
|
|
3798
3798
|
try {
|
|
3799
|
-
fdR =
|
|
3799
|
+
fdR = fs13.openSync("/dev/tty", "r");
|
|
3800
3800
|
ttyR = new TTY(fdR, false);
|
|
3801
3801
|
} catch (e) {
|
|
3802
3802
|
}
|
|
@@ -3805,7 +3805,7 @@ var require_readline_sync = __commonJS({
|
|
|
3805
3805
|
fdW = process.stdout.fd;
|
|
3806
3806
|
} else {
|
|
3807
3807
|
try {
|
|
3808
|
-
fdW =
|
|
3808
|
+
fdW = fs13.openSync("/dev/tty", "w");
|
|
3809
3809
|
} catch (e) {
|
|
3810
3810
|
}
|
|
3811
3811
|
}
|
|
@@ -3829,7 +3829,7 @@ var require_readline_sync = __commonJS({
|
|
|
3829
3829
|
return;
|
|
3830
3830
|
}
|
|
3831
3831
|
if (options.display) {
|
|
3832
|
-
|
|
3832
|
+
fs13.writeSync(fdW, options.display);
|
|
3833
3833
|
options.display = "";
|
|
3834
3834
|
}
|
|
3835
3835
|
if (options.displayOnly) {
|
|
@@ -3850,7 +3850,7 @@ var require_readline_sync = __commonJS({
|
|
|
3850
3850
|
while (true) {
|
|
3851
3851
|
readSize = 0;
|
|
3852
3852
|
try {
|
|
3853
|
-
readSize =
|
|
3853
|
+
readSize = fs13.readSync(fdR, buffer, 0, reqSize);
|
|
3854
3854
|
} catch (e) {
|
|
3855
3855
|
if (e.code !== "EOF") {
|
|
3856
3856
|
setRawMode(false);
|
|
@@ -3878,9 +3878,9 @@ var require_readline_sync = __commonJS({
|
|
|
3878
3878
|
if (chunk) {
|
|
3879
3879
|
if (!isCooked) {
|
|
3880
3880
|
if (!options.hideEchoBack) {
|
|
3881
|
-
|
|
3881
|
+
fs13.writeSync(fdW, chunk);
|
|
3882
3882
|
} else if (options.mask) {
|
|
3883
|
-
|
|
3883
|
+
fs13.writeSync(fdW, new Array(chunk.length + 1).join(options.mask));
|
|
3884
3884
|
}
|
|
3885
3885
|
}
|
|
3886
3886
|
input += chunk;
|
|
@@ -3890,7 +3890,7 @@ var require_readline_sync = __commonJS({
|
|
|
3890
3890
|
}
|
|
3891
3891
|
}
|
|
3892
3892
|
if (!isCooked && !silent) {
|
|
3893
|
-
|
|
3893
|
+
fs13.writeSync(fdW, "\n");
|
|
3894
3894
|
}
|
|
3895
3895
|
setRawMode(false);
|
|
3896
3896
|
})();
|
|
@@ -4032,12 +4032,12 @@ var require_readline_sync = __commonJS({
|
|
|
4032
4032
|
return type2 === "string" ? caseSensitive ? res === comp : res.toLowerCase() === comp.toLowerCase() : type2 === "number" ? parseFloat(res) === comp : type2 === "function" ? comp(res) : comp instanceof RegExp ? comp.test(res) : false;
|
|
4033
4033
|
});
|
|
4034
4034
|
}
|
|
4035
|
-
function replaceHomePath(
|
|
4035
|
+
function replaceHomePath(path19, expand2) {
|
|
4036
4036
|
var homePath = pathUtil.normalize(
|
|
4037
4037
|
IS_WIN ? (process.env.HOMEDRIVE || "") + (process.env.HOMEPATH || "") : process.env.HOME || ""
|
|
4038
4038
|
).replace(/[/\\]+$/, "");
|
|
4039
|
-
|
|
4040
|
-
return expand2 ?
|
|
4039
|
+
path19 = pathUtil.normalize(path19);
|
|
4040
|
+
return expand2 ? path19.replace(/^~(?=\/|\\|$)/, homePath) : path19.replace(new RegExp("^" + escapePattern(homePath) + "(?=\\/|\\\\|$)", IS_WIN ? "i" : ""), "~");
|
|
4041
4041
|
}
|
|
4042
4042
|
function replacePlaceholder(text, generator) {
|
|
4043
4043
|
var PTN_INNER = "(?:\\(([\\s\\S]*?)\\))?(\\w+|.-.)(?:\\(([\\s\\S]*?)\\))?", rePlaceholder = new RegExp("(\\$)?(\\$<" + PTN_INNER + ">)", "g"), rePlaceholderCompat = new RegExp("(\\$)?(\\$\\{" + PTN_INNER + "\\})", "g");
|
|
@@ -4436,18 +4436,18 @@ var require_readline_sync = __commonJS({
|
|
|
4436
4436
|
error2 = "";
|
|
4437
4437
|
function mkdirParents(dirPath) {
|
|
4438
4438
|
dirPath.split(/\/|\\/).reduce(function(parents, dir2) {
|
|
4439
|
-
var
|
|
4440
|
-
if (!
|
|
4441
|
-
|
|
4442
|
-
} else if (!
|
|
4443
|
-
throw new Error("Non directory already exists: " +
|
|
4439
|
+
var path19 = pathUtil.resolve(parents += dir2 + pathUtil.sep);
|
|
4440
|
+
if (!fs13.existsSync(path19)) {
|
|
4441
|
+
fs13.mkdirSync(path19);
|
|
4442
|
+
} else if (!fs13.statSync(path19).isDirectory()) {
|
|
4443
|
+
throw new Error("Non directory already exists: " + path19);
|
|
4444
4444
|
}
|
|
4445
4445
|
return parents;
|
|
4446
4446
|
}, "");
|
|
4447
4447
|
}
|
|
4448
4448
|
try {
|
|
4449
|
-
exists =
|
|
4450
|
-
validPath = exists ?
|
|
4449
|
+
exists = fs13.existsSync(value);
|
|
4450
|
+
validPath = exists ? fs13.realpathSync(value) : pathUtil.resolve(value);
|
|
4451
4451
|
if (!options.hasOwnProperty("exists") && !exists || typeof options.exists === "boolean" && options.exists !== exists) {
|
|
4452
4452
|
error2 = (exists ? "Already exists" : "No such file or directory") + ": " + validPath;
|
|
4453
4453
|
return false;
|
|
@@ -4457,12 +4457,12 @@ var require_readline_sync = __commonJS({
|
|
|
4457
4457
|
mkdirParents(validPath);
|
|
4458
4458
|
} else {
|
|
4459
4459
|
mkdirParents(pathUtil.dirname(validPath));
|
|
4460
|
-
|
|
4460
|
+
fs13.closeSync(fs13.openSync(validPath, "w"));
|
|
4461
4461
|
}
|
|
4462
|
-
validPath =
|
|
4462
|
+
validPath = fs13.realpathSync(validPath);
|
|
4463
4463
|
}
|
|
4464
4464
|
if (exists && (options.min || options.max || options.isFile || options.isDirectory)) {
|
|
4465
|
-
stat =
|
|
4465
|
+
stat = fs13.statSync(validPath);
|
|
4466
4466
|
if (options.isFile && !stat.isFile()) {
|
|
4467
4467
|
error2 = "Not file: " + validPath;
|
|
4468
4468
|
return false;
|
|
@@ -5800,15 +5800,15 @@ var require_route = __commonJS({
|
|
|
5800
5800
|
};
|
|
5801
5801
|
}
|
|
5802
5802
|
function wrapConversion(toModel, graph) {
|
|
5803
|
-
const
|
|
5803
|
+
const path19 = [graph[toModel].parent, toModel];
|
|
5804
5804
|
let fn = conversions[graph[toModel].parent][toModel];
|
|
5805
5805
|
let cur = graph[toModel].parent;
|
|
5806
5806
|
while (graph[cur].parent) {
|
|
5807
|
-
|
|
5807
|
+
path19.unshift(graph[cur].parent);
|
|
5808
5808
|
fn = link(conversions[graph[cur].parent][cur], fn);
|
|
5809
5809
|
cur = graph[cur].parent;
|
|
5810
5810
|
}
|
|
5811
|
-
fn.conversion =
|
|
5811
|
+
fn.conversion = path19;
|
|
5812
5812
|
return fn;
|
|
5813
5813
|
}
|
|
5814
5814
|
module2.exports = function(fromModel) {
|
|
@@ -11751,7 +11751,7 @@ var require_iso2022 = __commonJS({
|
|
|
11751
11751
|
var require_chardet = __commonJS({
|
|
11752
11752
|
"../../node_modules/chardet/index.js"(exports2, module2) {
|
|
11753
11753
|
"use strict";
|
|
11754
|
-
var
|
|
11754
|
+
var fs13 = require("fs");
|
|
11755
11755
|
var utf8 = require_utf8();
|
|
11756
11756
|
var unicode = require_unicode();
|
|
11757
11757
|
var mbcs = require_mbcs();
|
|
@@ -11825,28 +11825,28 @@ var require_chardet = __commonJS({
|
|
|
11825
11825
|
var fd;
|
|
11826
11826
|
var handler = function(err, buffer) {
|
|
11827
11827
|
if (fd) {
|
|
11828
|
-
|
|
11828
|
+
fs13.closeSync(fd);
|
|
11829
11829
|
}
|
|
11830
11830
|
if (err) return cb(err, null);
|
|
11831
11831
|
cb(null, self2.detect(buffer, opts));
|
|
11832
11832
|
};
|
|
11833
11833
|
if (opts && opts.sampleSize) {
|
|
11834
|
-
fd =
|
|
11835
|
-
|
|
11834
|
+
fd = fs13.openSync(filepath, "r"), sample = Buffer.allocUnsafe(opts.sampleSize);
|
|
11835
|
+
fs13.read(fd, sample, 0, opts.sampleSize, null, function(err) {
|
|
11836
11836
|
handler(err, sample);
|
|
11837
11837
|
});
|
|
11838
11838
|
return;
|
|
11839
11839
|
}
|
|
11840
|
-
|
|
11840
|
+
fs13.readFile(filepath, handler);
|
|
11841
11841
|
};
|
|
11842
11842
|
module2.exports.detectFileSync = function(filepath, opts) {
|
|
11843
11843
|
if (opts && opts.sampleSize) {
|
|
11844
|
-
var fd =
|
|
11845
|
-
|
|
11846
|
-
|
|
11844
|
+
var fd = fs13.openSync(filepath, "r"), sample2 = Buffer.allocUnsafe(opts.sampleSize);
|
|
11845
|
+
fs13.readSync(fd, sample2, 0, opts.sampleSize);
|
|
11846
|
+
fs13.closeSync(fd);
|
|
11847
11847
|
return self2.detect(sample2, opts);
|
|
11848
11848
|
}
|
|
11849
|
-
return self2.detect(
|
|
11849
|
+
return self2.detect(fs13.readFileSync(filepath), opts);
|
|
11850
11850
|
};
|
|
11851
11851
|
module2.exports.detectAll = function(buffer, opts) {
|
|
11852
11852
|
if (typeof opts !== "object") {
|
|
@@ -15311,16 +15311,16 @@ var require_os_tmpdir = __commonJS({
|
|
|
15311
15311
|
var isWindows = process.platform === "win32";
|
|
15312
15312
|
var trailingSlashRe = isWindows ? /[^:]\\$/ : /.\/$/;
|
|
15313
15313
|
module2.exports = function() {
|
|
15314
|
-
var
|
|
15314
|
+
var path19;
|
|
15315
15315
|
if (isWindows) {
|
|
15316
|
-
|
|
15316
|
+
path19 = process.env.TEMP || process.env.TMP || (process.env.SystemRoot || process.env.windir) + "\\temp";
|
|
15317
15317
|
} else {
|
|
15318
|
-
|
|
15318
|
+
path19 = process.env.TMPDIR || process.env.TMP || process.env.TEMP || "/tmp";
|
|
15319
15319
|
}
|
|
15320
|
-
if (trailingSlashRe.test(
|
|
15321
|
-
|
|
15320
|
+
if (trailingSlashRe.test(path19)) {
|
|
15321
|
+
path19 = path19.slice(0, -1);
|
|
15322
15322
|
}
|
|
15323
|
-
return
|
|
15323
|
+
return path19;
|
|
15324
15324
|
};
|
|
15325
15325
|
}
|
|
15326
15326
|
});
|
|
@@ -15329,8 +15329,8 @@ var require_os_tmpdir = __commonJS({
|
|
|
15329
15329
|
var require_tmp = __commonJS({
|
|
15330
15330
|
"../../node_modules/tmp/lib/tmp.js"(exports2, module2) {
|
|
15331
15331
|
"use strict";
|
|
15332
|
-
var
|
|
15333
|
-
var
|
|
15332
|
+
var fs13 = require("fs");
|
|
15333
|
+
var path19 = require("path");
|
|
15334
15334
|
var crypto2 = require("crypto");
|
|
15335
15335
|
var osTmpDir = require_os_tmpdir();
|
|
15336
15336
|
var _c2 = process.binding("constants");
|
|
@@ -15372,7 +15372,7 @@ var require_tmp = __commonJS({
|
|
|
15372
15372
|
}
|
|
15373
15373
|
function _generateTmpName(opts) {
|
|
15374
15374
|
if (opts.name) {
|
|
15375
|
-
return
|
|
15375
|
+
return path19.join(opts.dir || tmpDir, opts.name);
|
|
15376
15376
|
}
|
|
15377
15377
|
if (opts.template) {
|
|
15378
15378
|
return opts.template.replace(TEMPLATE_PATTERN, _randomChars(6));
|
|
@@ -15383,7 +15383,7 @@ var require_tmp = __commonJS({
|
|
|
15383
15383
|
_randomChars(12),
|
|
15384
15384
|
opts.postfix || ""
|
|
15385
15385
|
].join("");
|
|
15386
|
-
return
|
|
15386
|
+
return path19.join(opts.dir || tmpDir, name);
|
|
15387
15387
|
}
|
|
15388
15388
|
function tmpName(options, callback) {
|
|
15389
15389
|
var args = _parseArguments(options, callback), opts = args[0], cb = args[1], tries = opts.name ? 1 : opts.tries || DEFAULT_TRIES;
|
|
@@ -15393,7 +15393,7 @@ var require_tmp = __commonJS({
|
|
|
15393
15393
|
return cb(new Error("Invalid template provided"));
|
|
15394
15394
|
(function _getUniqueName() {
|
|
15395
15395
|
const name = _generateTmpName(opts);
|
|
15396
|
-
|
|
15396
|
+
fs13.stat(name, function(err) {
|
|
15397
15397
|
if (!err) {
|
|
15398
15398
|
if (tries-- > 0) return _getUniqueName();
|
|
15399
15399
|
return cb(new Error("Could not get a unique tmp filename, max tries reached " + name));
|
|
@@ -15411,7 +15411,7 @@ var require_tmp = __commonJS({
|
|
|
15411
15411
|
do {
|
|
15412
15412
|
const name = _generateTmpName(opts);
|
|
15413
15413
|
try {
|
|
15414
|
-
|
|
15414
|
+
fs13.statSync(name);
|
|
15415
15415
|
} catch (e) {
|
|
15416
15416
|
return name;
|
|
15417
15417
|
}
|
|
@@ -15423,13 +15423,13 @@ var require_tmp = __commonJS({
|
|
|
15423
15423
|
opts.postfix = _isUndefined(opts.postfix) ? ".tmp" : opts.postfix;
|
|
15424
15424
|
tmpName(opts, function _tmpNameCreated(err, name) {
|
|
15425
15425
|
if (err) return cb(err);
|
|
15426
|
-
|
|
15426
|
+
fs13.open(name, CREATE_FLAGS, opts.mode || FILE_MODE, function _fileCreated(err2, fd) {
|
|
15427
15427
|
if (err2) return cb(err2);
|
|
15428
15428
|
if (opts.discardDescriptor) {
|
|
15429
|
-
return
|
|
15429
|
+
return fs13.close(fd, function _discardCallback(err3) {
|
|
15430
15430
|
if (err3) {
|
|
15431
15431
|
try {
|
|
15432
|
-
|
|
15432
|
+
fs13.unlinkSync(name);
|
|
15433
15433
|
} catch (e) {
|
|
15434
15434
|
if (!isENOENT(e)) {
|
|
15435
15435
|
err3 = e;
|
|
@@ -15452,9 +15452,9 @@ var require_tmp = __commonJS({
|
|
|
15452
15452
|
opts.postfix = opts.postfix || ".tmp";
|
|
15453
15453
|
const discardOrDetachDescriptor = opts.discardDescriptor || opts.detachDescriptor;
|
|
15454
15454
|
const name = tmpNameSync(opts);
|
|
15455
|
-
var fd =
|
|
15455
|
+
var fd = fs13.openSync(name, CREATE_FLAGS, opts.mode || FILE_MODE);
|
|
15456
15456
|
if (opts.discardDescriptor) {
|
|
15457
|
-
|
|
15457
|
+
fs13.closeSync(fd);
|
|
15458
15458
|
fd = void 0;
|
|
15459
15459
|
}
|
|
15460
15460
|
return {
|
|
@@ -15466,9 +15466,9 @@ var require_tmp = __commonJS({
|
|
|
15466
15466
|
function _rmdirRecursiveSync(root) {
|
|
15467
15467
|
const dirs = [root];
|
|
15468
15468
|
do {
|
|
15469
|
-
var dir3 = dirs.pop(), deferred = false, files =
|
|
15469
|
+
var dir3 = dirs.pop(), deferred = false, files = fs13.readdirSync(dir3);
|
|
15470
15470
|
for (var i = 0, length = files.length; i < length; i++) {
|
|
15471
|
-
var file2 =
|
|
15471
|
+
var file2 = path19.join(dir3, files[i]), stat = fs13.lstatSync(file2);
|
|
15472
15472
|
if (stat.isDirectory()) {
|
|
15473
15473
|
if (!deferred) {
|
|
15474
15474
|
deferred = true;
|
|
@@ -15476,11 +15476,11 @@ var require_tmp = __commonJS({
|
|
|
15476
15476
|
}
|
|
15477
15477
|
dirs.push(file2);
|
|
15478
15478
|
} else {
|
|
15479
|
-
|
|
15479
|
+
fs13.unlinkSync(file2);
|
|
15480
15480
|
}
|
|
15481
15481
|
}
|
|
15482
15482
|
if (!deferred) {
|
|
15483
|
-
|
|
15483
|
+
fs13.rmdirSync(dir3);
|
|
15484
15484
|
}
|
|
15485
15485
|
} while (dirs.length !== 0);
|
|
15486
15486
|
}
|
|
@@ -15488,7 +15488,7 @@ var require_tmp = __commonJS({
|
|
|
15488
15488
|
var args = _parseArguments(options, callback), opts = args[0], cb = args[1];
|
|
15489
15489
|
tmpName(opts, function _tmpNameCreated(err, name) {
|
|
15490
15490
|
if (err) return cb(err);
|
|
15491
|
-
|
|
15491
|
+
fs13.mkdir(name, opts.mode || DIR_MODE, function _dirCreated(err2) {
|
|
15492
15492
|
if (err2) return cb(err2);
|
|
15493
15493
|
cb(null, name, _prepareTmpDirRemoveCallback(name, opts));
|
|
15494
15494
|
});
|
|
@@ -15497,7 +15497,7 @@ var require_tmp = __commonJS({
|
|
|
15497
15497
|
function dirSync(options) {
|
|
15498
15498
|
var args = _parseArguments(options), opts = args[0];
|
|
15499
15499
|
const name = tmpNameSync(opts);
|
|
15500
|
-
|
|
15500
|
+
fs13.mkdirSync(name, opts.mode || DIR_MODE);
|
|
15501
15501
|
return {
|
|
15502
15502
|
name,
|
|
15503
15503
|
removeCallback: _prepareTmpDirRemoveCallback(name, opts)
|
|
@@ -15507,7 +15507,7 @@ var require_tmp = __commonJS({
|
|
|
15507
15507
|
const removeCallback = _prepareRemoveCallback(function _removeCallback(fdPath) {
|
|
15508
15508
|
try {
|
|
15509
15509
|
if (0 <= fdPath[0]) {
|
|
15510
|
-
|
|
15510
|
+
fs13.closeSync(fdPath[0]);
|
|
15511
15511
|
}
|
|
15512
15512
|
} catch (e) {
|
|
15513
15513
|
if (!isEBADF(e) && !isENOENT(e)) {
|
|
@@ -15515,7 +15515,7 @@ var require_tmp = __commonJS({
|
|
|
15515
15515
|
}
|
|
15516
15516
|
}
|
|
15517
15517
|
try {
|
|
15518
|
-
|
|
15518
|
+
fs13.unlinkSync(fdPath[1]);
|
|
15519
15519
|
} catch (e) {
|
|
15520
15520
|
if (!isENOENT(e)) {
|
|
15521
15521
|
throw e;
|
|
@@ -15528,7 +15528,7 @@ var require_tmp = __commonJS({
|
|
|
15528
15528
|
return removeCallback;
|
|
15529
15529
|
}
|
|
15530
15530
|
function _prepareTmpDirRemoveCallback(name, opts) {
|
|
15531
|
-
const removeFunction = opts.unsafeCleanup ? _rmdirRecursiveSync :
|
|
15531
|
+
const removeFunction = opts.unsafeCleanup ? _rmdirRecursiveSync : fs13.rmdirSync.bind(fs13);
|
|
15532
15532
|
const removeCallback = _prepareRemoveCallback(removeFunction, name);
|
|
15533
15533
|
if (!opts.keep) {
|
|
15534
15534
|
_removeObjects.unshift(removeCallback);
|
|
@@ -27431,10 +27431,10 @@ var require_header = __commonJS({
|
|
|
27431
27431
|
}
|
|
27432
27432
|
const prefixSize = this.ctime || this.atime ? 130 : 155;
|
|
27433
27433
|
const split = splitPrefix(this.path || "", prefixSize);
|
|
27434
|
-
const
|
|
27434
|
+
const path19 = split[0];
|
|
27435
27435
|
const prefix = split[1];
|
|
27436
27436
|
this.needPax = split[2];
|
|
27437
|
-
this.needPax = encString(buf, off, 100,
|
|
27437
|
+
this.needPax = encString(buf, off, 100, path19) || this.needPax;
|
|
27438
27438
|
this.needPax = encNumber(buf, off + 100, 8, this.mode) || this.needPax;
|
|
27439
27439
|
this.needPax = encNumber(buf, off + 108, 8, this.uid) || this.needPax;
|
|
27440
27440
|
this.needPax = encNumber(buf, off + 116, 8, this.gid) || this.needPax;
|
|
@@ -27544,7 +27544,7 @@ var require_pax = __commonJS({
|
|
|
27544
27544
|
"../../node_modules/tar/lib/pax.js"(exports2, module2) {
|
|
27545
27545
|
"use strict";
|
|
27546
27546
|
var Header = require_header();
|
|
27547
|
-
var
|
|
27547
|
+
var path19 = require("path");
|
|
27548
27548
|
var Pax = class {
|
|
27549
27549
|
constructor(obj, global3) {
|
|
27550
27550
|
this.atime = obj.atime || null;
|
|
@@ -27579,7 +27579,7 @@ var require_pax = __commonJS({
|
|
|
27579
27579
|
// XXX split the path
|
|
27580
27580
|
// then the path should be PaxHeader + basename, but less than 99,
|
|
27581
27581
|
// prepend with the dirname
|
|
27582
|
-
path: ("PaxHeader/" +
|
|
27582
|
+
path: ("PaxHeader/" + path19.basename(this.path)).slice(0, 99),
|
|
27583
27583
|
mode: this.mode || 420,
|
|
27584
27584
|
uid: this.uid || null,
|
|
27585
27585
|
gid: this.gid || null,
|
|
@@ -27712,16 +27712,16 @@ var require_strip_absolute_path = __commonJS({
|
|
|
27712
27712
|
"../../node_modules/tar/lib/strip-absolute-path.js"(exports2, module2) {
|
|
27713
27713
|
"use strict";
|
|
27714
27714
|
var { isAbsolute: isAbsolute2, parse } = require("path").win32;
|
|
27715
|
-
module2.exports = (
|
|
27715
|
+
module2.exports = (path19) => {
|
|
27716
27716
|
let r = "";
|
|
27717
|
-
let parsed = parse(
|
|
27718
|
-
while (isAbsolute2(
|
|
27719
|
-
const root =
|
|
27720
|
-
|
|
27717
|
+
let parsed = parse(path19);
|
|
27718
|
+
while (isAbsolute2(path19) || parsed.root) {
|
|
27719
|
+
const root = path19.charAt(0) === "/" && path19.slice(0, 4) !== "//?/" ? "/" : parsed.root;
|
|
27720
|
+
path19 = path19.slice(root.length);
|
|
27721
27721
|
r += root;
|
|
27722
|
-
parsed = parse(
|
|
27722
|
+
parsed = parse(path19);
|
|
27723
27723
|
}
|
|
27724
|
-
return [r,
|
|
27724
|
+
return [r, path19];
|
|
27725
27725
|
};
|
|
27726
27726
|
}
|
|
27727
27727
|
});
|
|
@@ -27758,16 +27758,16 @@ var require_write_entry = __commonJS({
|
|
|
27758
27758
|
var { Minipass: Minipass2 } = require_minipass();
|
|
27759
27759
|
var Pax = require_pax();
|
|
27760
27760
|
var Header = require_header();
|
|
27761
|
-
var
|
|
27762
|
-
var
|
|
27761
|
+
var fs13 = require("fs");
|
|
27762
|
+
var path19 = require("path");
|
|
27763
27763
|
var normPath = require_normalize_windows_path();
|
|
27764
27764
|
var stripSlash = require_strip_trailing_slashes();
|
|
27765
|
-
var prefixPath = (
|
|
27765
|
+
var prefixPath = (path20, prefix) => {
|
|
27766
27766
|
if (!prefix) {
|
|
27767
|
-
return normPath(
|
|
27767
|
+
return normPath(path20);
|
|
27768
27768
|
}
|
|
27769
|
-
|
|
27770
|
-
return stripSlash(prefix) + "/" +
|
|
27769
|
+
path20 = normPath(path20).replace(/^\.(\/|$)/, "");
|
|
27770
|
+
return stripSlash(prefix) + "/" + path20;
|
|
27771
27771
|
};
|
|
27772
27772
|
var maxReadSize = 16 * 1024 * 1024;
|
|
27773
27773
|
var PROCESS2 = Symbol("process");
|
|
@@ -27838,7 +27838,7 @@ var require_write_entry = __commonJS({
|
|
|
27838
27838
|
this.path = winchars.decode(this.path.replace(/\\/g, "/"));
|
|
27839
27839
|
p = p.replace(/\\/g, "/");
|
|
27840
27840
|
}
|
|
27841
|
-
this.absolute = normPath(opt.absolute ||
|
|
27841
|
+
this.absolute = normPath(opt.absolute || path19.resolve(this.cwd, p));
|
|
27842
27842
|
if (this.path === "") {
|
|
27843
27843
|
this.path = "./";
|
|
27844
27844
|
}
|
|
@@ -27861,7 +27861,7 @@ var require_write_entry = __commonJS({
|
|
|
27861
27861
|
return super.emit(ev, ...data);
|
|
27862
27862
|
}
|
|
27863
27863
|
[LSTAT]() {
|
|
27864
|
-
|
|
27864
|
+
fs13.lstat(this.absolute, (er, stat) => {
|
|
27865
27865
|
if (er) {
|
|
27866
27866
|
return this.emit("error", er);
|
|
27867
27867
|
}
|
|
@@ -27894,8 +27894,8 @@ var require_write_entry = __commonJS({
|
|
|
27894
27894
|
[MODE](mode) {
|
|
27895
27895
|
return modeFix(mode, this.type === "Directory", this.portable);
|
|
27896
27896
|
}
|
|
27897
|
-
[PREFIX](
|
|
27898
|
-
return prefixPath(
|
|
27897
|
+
[PREFIX](path20) {
|
|
27898
|
+
return prefixPath(path20, this.prefix);
|
|
27899
27899
|
}
|
|
27900
27900
|
[HEADER]() {
|
|
27901
27901
|
if (this.type === "Directory" && this.portable) {
|
|
@@ -27944,7 +27944,7 @@ var require_write_entry = __commonJS({
|
|
|
27944
27944
|
this.end();
|
|
27945
27945
|
}
|
|
27946
27946
|
[SYMLINK]() {
|
|
27947
|
-
|
|
27947
|
+
fs13.readlink(this.absolute, (er, linkpath) => {
|
|
27948
27948
|
if (er) {
|
|
27949
27949
|
return this.emit("error", er);
|
|
27950
27950
|
}
|
|
@@ -27958,7 +27958,7 @@ var require_write_entry = __commonJS({
|
|
|
27958
27958
|
}
|
|
27959
27959
|
[HARDLINK](linkpath) {
|
|
27960
27960
|
this.type = "Link";
|
|
27961
|
-
this.linkpath = normPath(
|
|
27961
|
+
this.linkpath = normPath(path19.relative(this.cwd, linkpath));
|
|
27962
27962
|
this.stat.size = 0;
|
|
27963
27963
|
this[HEADER]();
|
|
27964
27964
|
this.end();
|
|
@@ -27981,7 +27981,7 @@ var require_write_entry = __commonJS({
|
|
|
27981
27981
|
this[OPENFILE]();
|
|
27982
27982
|
}
|
|
27983
27983
|
[OPENFILE]() {
|
|
27984
|
-
|
|
27984
|
+
fs13.open(this.absolute, "r", (er, fd) => {
|
|
27985
27985
|
if (er) {
|
|
27986
27986
|
return this.emit("error", er);
|
|
27987
27987
|
}
|
|
@@ -28005,7 +28005,7 @@ var require_write_entry = __commonJS({
|
|
|
28005
28005
|
}
|
|
28006
28006
|
[READ2]() {
|
|
28007
28007
|
const { fd, buf, offset, length, pos } = this;
|
|
28008
|
-
|
|
28008
|
+
fs13.read(fd, buf, offset, length, pos, (er, bytesRead) => {
|
|
28009
28009
|
if (er) {
|
|
28010
28010
|
return this[CLOSE](() => this.emit("error", er));
|
|
28011
28011
|
}
|
|
@@ -28013,7 +28013,7 @@ var require_write_entry = __commonJS({
|
|
|
28013
28013
|
});
|
|
28014
28014
|
}
|
|
28015
28015
|
[CLOSE](cb) {
|
|
28016
|
-
|
|
28016
|
+
fs13.close(this.fd, cb);
|
|
28017
28017
|
}
|
|
28018
28018
|
[ONREAD](bytesRead) {
|
|
28019
28019
|
if (bytesRead <= 0 && this.remain > 0) {
|
|
@@ -28077,19 +28077,19 @@ var require_write_entry = __commonJS({
|
|
|
28077
28077
|
});
|
|
28078
28078
|
var WriteEntrySync = class extends WriteEntry {
|
|
28079
28079
|
[LSTAT]() {
|
|
28080
|
-
this[ONLSTAT](
|
|
28080
|
+
this[ONLSTAT](fs13.lstatSync(this.absolute));
|
|
28081
28081
|
}
|
|
28082
28082
|
[SYMLINK]() {
|
|
28083
|
-
this[ONREADLINK](
|
|
28083
|
+
this[ONREADLINK](fs13.readlinkSync(this.absolute));
|
|
28084
28084
|
}
|
|
28085
28085
|
[OPENFILE]() {
|
|
28086
|
-
this[ONOPENFILE](
|
|
28086
|
+
this[ONOPENFILE](fs13.openSync(this.absolute, "r"));
|
|
28087
28087
|
}
|
|
28088
28088
|
[READ2]() {
|
|
28089
28089
|
let threw = true;
|
|
28090
28090
|
try {
|
|
28091
28091
|
const { fd, buf, offset, length, pos } = this;
|
|
28092
|
-
const bytesRead =
|
|
28092
|
+
const bytesRead = fs13.readSync(fd, buf, offset, length, pos);
|
|
28093
28093
|
this[ONREAD](bytesRead);
|
|
28094
28094
|
threw = false;
|
|
28095
28095
|
} finally {
|
|
@@ -28106,7 +28106,7 @@ var require_write_entry = __commonJS({
|
|
|
28106
28106
|
cb();
|
|
28107
28107
|
}
|
|
28108
28108
|
[CLOSE](cb) {
|
|
28109
|
-
|
|
28109
|
+
fs13.closeSync(this.fd);
|
|
28110
28110
|
cb();
|
|
28111
28111
|
}
|
|
28112
28112
|
};
|
|
@@ -28189,8 +28189,8 @@ var require_write_entry = __commonJS({
|
|
|
28189
28189
|
super.write(this.header.block);
|
|
28190
28190
|
readEntry.pipe(this);
|
|
28191
28191
|
}
|
|
28192
|
-
[PREFIX](
|
|
28193
|
-
return prefixPath(
|
|
28192
|
+
[PREFIX](path20) {
|
|
28193
|
+
return prefixPath(path20, this.prefix);
|
|
28194
28194
|
}
|
|
28195
28195
|
[MODE](mode) {
|
|
28196
28196
|
return modeFix(mode, this.type === "Directory", this.portable);
|
|
@@ -28605,8 +28605,8 @@ var require_pack = __commonJS({
|
|
|
28605
28605
|
"../../node_modules/tar/lib/pack.js"(exports2, module2) {
|
|
28606
28606
|
"use strict";
|
|
28607
28607
|
var PackJob = class {
|
|
28608
|
-
constructor(
|
|
28609
|
-
this.path =
|
|
28608
|
+
constructor(path20, absolute) {
|
|
28609
|
+
this.path = path20 || "./";
|
|
28610
28610
|
this.absolute = absolute;
|
|
28611
28611
|
this.entry = null;
|
|
28612
28612
|
this.stat = null;
|
|
@@ -28644,8 +28644,8 @@ var require_pack = __commonJS({
|
|
|
28644
28644
|
var WRITEENTRYCLASS = Symbol("writeEntryClass");
|
|
28645
28645
|
var WRITE = Symbol("write");
|
|
28646
28646
|
var ONDRAIN = Symbol("ondrain");
|
|
28647
|
-
var
|
|
28648
|
-
var
|
|
28647
|
+
var fs13 = require("fs");
|
|
28648
|
+
var path19 = require("path");
|
|
28649
28649
|
var warner = require_warn_mixin();
|
|
28650
28650
|
var normPath = require_normalize_windows_path();
|
|
28651
28651
|
var Pack = warner(class Pack extends Minipass2 {
|
|
@@ -28709,31 +28709,31 @@ var require_pack = __commonJS({
|
|
|
28709
28709
|
[WRITE](chunk) {
|
|
28710
28710
|
return super.write(chunk);
|
|
28711
28711
|
}
|
|
28712
|
-
add(
|
|
28713
|
-
this.write(
|
|
28712
|
+
add(path20) {
|
|
28713
|
+
this.write(path20);
|
|
28714
28714
|
return this;
|
|
28715
28715
|
}
|
|
28716
|
-
end(
|
|
28717
|
-
if (
|
|
28718
|
-
this.write(
|
|
28716
|
+
end(path20) {
|
|
28717
|
+
if (path20) {
|
|
28718
|
+
this.write(path20);
|
|
28719
28719
|
}
|
|
28720
28720
|
this[ENDED] = true;
|
|
28721
28721
|
this[PROCESS2]();
|
|
28722
28722
|
return this;
|
|
28723
28723
|
}
|
|
28724
|
-
write(
|
|
28724
|
+
write(path20) {
|
|
28725
28725
|
if (this[ENDED]) {
|
|
28726
28726
|
throw new Error("write after end");
|
|
28727
28727
|
}
|
|
28728
|
-
if (
|
|
28729
|
-
this[ADDTARENTRY](
|
|
28728
|
+
if (path20 instanceof ReadEntry) {
|
|
28729
|
+
this[ADDTARENTRY](path20);
|
|
28730
28730
|
} else {
|
|
28731
|
-
this[ADDFSENTRY](
|
|
28731
|
+
this[ADDFSENTRY](path20);
|
|
28732
28732
|
}
|
|
28733
28733
|
return this.flowing;
|
|
28734
28734
|
}
|
|
28735
28735
|
[ADDTARENTRY](p) {
|
|
28736
|
-
const absolute = normPath(
|
|
28736
|
+
const absolute = normPath(path19.resolve(this.cwd, p.path));
|
|
28737
28737
|
if (!this.filter(p.path, p)) {
|
|
28738
28738
|
p.resume();
|
|
28739
28739
|
} else {
|
|
@@ -28746,7 +28746,7 @@ var require_pack = __commonJS({
|
|
|
28746
28746
|
this[PROCESS2]();
|
|
28747
28747
|
}
|
|
28748
28748
|
[ADDFSENTRY](p) {
|
|
28749
|
-
const absolute = normPath(
|
|
28749
|
+
const absolute = normPath(path19.resolve(this.cwd, p));
|
|
28750
28750
|
this[QUEUE].push(new PackJob(p, absolute));
|
|
28751
28751
|
this[PROCESS2]();
|
|
28752
28752
|
}
|
|
@@ -28754,7 +28754,7 @@ var require_pack = __commonJS({
|
|
|
28754
28754
|
job.pending = true;
|
|
28755
28755
|
this[JOBS] += 1;
|
|
28756
28756
|
const stat = this.follow ? "stat" : "lstat";
|
|
28757
|
-
|
|
28757
|
+
fs13[stat](job.absolute, (er, stat2) => {
|
|
28758
28758
|
job.pending = false;
|
|
28759
28759
|
this[JOBS] -= 1;
|
|
28760
28760
|
if (er) {
|
|
@@ -28775,7 +28775,7 @@ var require_pack = __commonJS({
|
|
|
28775
28775
|
[READDIR](job) {
|
|
28776
28776
|
job.pending = true;
|
|
28777
28777
|
this[JOBS] += 1;
|
|
28778
|
-
|
|
28778
|
+
fs13.readdir(job.absolute, (er, entries) => {
|
|
28779
28779
|
job.pending = false;
|
|
28780
28780
|
this[JOBS] -= 1;
|
|
28781
28781
|
if (er) {
|
|
@@ -28937,10 +28937,10 @@ var require_pack = __commonJS({
|
|
|
28937
28937
|
}
|
|
28938
28938
|
[STAT](job) {
|
|
28939
28939
|
const stat = this.follow ? "statSync" : "lstatSync";
|
|
28940
|
-
this[ONSTAT](job,
|
|
28940
|
+
this[ONSTAT](job, fs13[stat](job.absolute));
|
|
28941
28941
|
}
|
|
28942
28942
|
[READDIR](job, stat) {
|
|
28943
|
-
this[ONREADDIR](job,
|
|
28943
|
+
this[ONREADDIR](job, fs13.readdirSync(job.absolute));
|
|
28944
28944
|
}
|
|
28945
28945
|
// gotta get it all in this tick
|
|
28946
28946
|
[PIPE](job) {
|
|
@@ -29499,8 +29499,8 @@ var require_fs_minipass = __commonJS({
|
|
|
29499
29499
|
"use strict";
|
|
29500
29500
|
var MiniPass = require_minipass3();
|
|
29501
29501
|
var EE = require("events").EventEmitter;
|
|
29502
|
-
var
|
|
29503
|
-
var writev =
|
|
29502
|
+
var fs13 = require("fs");
|
|
29503
|
+
var writev = fs13.writev;
|
|
29504
29504
|
if (!writev) {
|
|
29505
29505
|
const binding = process.binding("fs");
|
|
29506
29506
|
const FSReqWrap = binding.FSReqWrap || binding.FSReqCallback;
|
|
@@ -29540,16 +29540,16 @@ var require_fs_minipass = __commonJS({
|
|
|
29540
29540
|
var _defaultFlag = Symbol("_defaultFlag");
|
|
29541
29541
|
var _errored = Symbol("_errored");
|
|
29542
29542
|
var ReadStream = class extends MiniPass {
|
|
29543
|
-
constructor(
|
|
29543
|
+
constructor(path19, opt) {
|
|
29544
29544
|
opt = opt || {};
|
|
29545
29545
|
super(opt);
|
|
29546
29546
|
this.readable = true;
|
|
29547
29547
|
this.writable = false;
|
|
29548
|
-
if (typeof
|
|
29548
|
+
if (typeof path19 !== "string")
|
|
29549
29549
|
throw new TypeError("path must be a string");
|
|
29550
29550
|
this[_errored] = false;
|
|
29551
29551
|
this[_fd] = typeof opt.fd === "number" ? opt.fd : null;
|
|
29552
|
-
this[_path] =
|
|
29552
|
+
this[_path] = path19;
|
|
29553
29553
|
this[_readSize] = opt.readSize || 16 * 1024 * 1024;
|
|
29554
29554
|
this[_reading] = false;
|
|
29555
29555
|
this[_size3] = typeof opt.size === "number" ? opt.size : Infinity;
|
|
@@ -29573,7 +29573,7 @@ var require_fs_minipass = __commonJS({
|
|
|
29573
29573
|
throw new TypeError("this is a readable stream");
|
|
29574
29574
|
}
|
|
29575
29575
|
[_open]() {
|
|
29576
|
-
|
|
29576
|
+
fs13.open(this[_path], "r", (er, fd) => this[_onopen](er, fd));
|
|
29577
29577
|
}
|
|
29578
29578
|
[_onopen](er, fd) {
|
|
29579
29579
|
if (er)
|
|
@@ -29593,7 +29593,7 @@ var require_fs_minipass = __commonJS({
|
|
|
29593
29593
|
const buf = this[_makeBuf]();
|
|
29594
29594
|
if (buf.length === 0)
|
|
29595
29595
|
return process.nextTick(() => this[_onread](null, 0, buf));
|
|
29596
|
-
|
|
29596
|
+
fs13.read(this[_fd], buf, 0, buf.length, null, (er, br, buf2) => this[_onread](er, br, buf2));
|
|
29597
29597
|
}
|
|
29598
29598
|
}
|
|
29599
29599
|
[_onread](er, br, buf) {
|
|
@@ -29607,7 +29607,7 @@ var require_fs_minipass = __commonJS({
|
|
|
29607
29607
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
29608
29608
|
const fd = this[_fd];
|
|
29609
29609
|
this[_fd] = null;
|
|
29610
|
-
|
|
29610
|
+
fs13.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
29611
29611
|
}
|
|
29612
29612
|
}
|
|
29613
29613
|
[_onerror](er) {
|
|
@@ -29650,7 +29650,7 @@ var require_fs_minipass = __commonJS({
|
|
|
29650
29650
|
[_open]() {
|
|
29651
29651
|
let threw = true;
|
|
29652
29652
|
try {
|
|
29653
|
-
this[_onopen](null,
|
|
29653
|
+
this[_onopen](null, fs13.openSync(this[_path], "r"));
|
|
29654
29654
|
threw = false;
|
|
29655
29655
|
} finally {
|
|
29656
29656
|
if (threw)
|
|
@@ -29664,7 +29664,7 @@ var require_fs_minipass = __commonJS({
|
|
|
29664
29664
|
this[_reading] = true;
|
|
29665
29665
|
do {
|
|
29666
29666
|
const buf = this[_makeBuf]();
|
|
29667
|
-
const br = buf.length === 0 ? 0 :
|
|
29667
|
+
const br = buf.length === 0 ? 0 : fs13.readSync(this[_fd], buf, 0, buf.length, null);
|
|
29668
29668
|
if (!this[_handleChunk](br, buf))
|
|
29669
29669
|
break;
|
|
29670
29670
|
} while (true);
|
|
@@ -29680,13 +29680,13 @@ var require_fs_minipass = __commonJS({
|
|
|
29680
29680
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
29681
29681
|
const fd = this[_fd];
|
|
29682
29682
|
this[_fd] = null;
|
|
29683
|
-
|
|
29683
|
+
fs13.closeSync(fd);
|
|
29684
29684
|
this.emit("close");
|
|
29685
29685
|
}
|
|
29686
29686
|
}
|
|
29687
29687
|
};
|
|
29688
29688
|
var WriteStream = class extends EE {
|
|
29689
|
-
constructor(
|
|
29689
|
+
constructor(path19, opt) {
|
|
29690
29690
|
opt = opt || {};
|
|
29691
29691
|
super(opt);
|
|
29692
29692
|
this.readable = false;
|
|
@@ -29696,7 +29696,7 @@ var require_fs_minipass = __commonJS({
|
|
|
29696
29696
|
this[_ended] = false;
|
|
29697
29697
|
this[_needDrain] = false;
|
|
29698
29698
|
this[_queue] = [];
|
|
29699
|
-
this[_path] =
|
|
29699
|
+
this[_path] = path19;
|
|
29700
29700
|
this[_fd] = typeof opt.fd === "number" ? opt.fd : null;
|
|
29701
29701
|
this[_mode2] = opt.mode === void 0 ? 438 : opt.mode;
|
|
29702
29702
|
this[_pos] = typeof opt.start === "number" ? opt.start : null;
|
|
@@ -29727,7 +29727,7 @@ var require_fs_minipass = __commonJS({
|
|
|
29727
29727
|
this.emit("error", er);
|
|
29728
29728
|
}
|
|
29729
29729
|
[_open]() {
|
|
29730
|
-
|
|
29730
|
+
fs13.open(
|
|
29731
29731
|
this[_path],
|
|
29732
29732
|
this[_flags],
|
|
29733
29733
|
this[_mode2],
|
|
@@ -29771,7 +29771,7 @@ var require_fs_minipass = __commonJS({
|
|
|
29771
29771
|
return true;
|
|
29772
29772
|
}
|
|
29773
29773
|
[_write](buf) {
|
|
29774
|
-
|
|
29774
|
+
fs13.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
29775
29775
|
}
|
|
29776
29776
|
[_onwrite](er, bw) {
|
|
29777
29777
|
if (er)
|
|
@@ -29815,7 +29815,7 @@ var require_fs_minipass = __commonJS({
|
|
|
29815
29815
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
29816
29816
|
const fd = this[_fd];
|
|
29817
29817
|
this[_fd] = null;
|
|
29818
|
-
|
|
29818
|
+
fs13.close(fd, (er) => er ? this.emit("error", er) : this.emit("close"));
|
|
29819
29819
|
}
|
|
29820
29820
|
}
|
|
29821
29821
|
};
|
|
@@ -29824,7 +29824,7 @@ var require_fs_minipass = __commonJS({
|
|
|
29824
29824
|
let fd;
|
|
29825
29825
|
if (this[_defaultFlag] && this[_flags] === "r+") {
|
|
29826
29826
|
try {
|
|
29827
|
-
fd =
|
|
29827
|
+
fd = fs13.openSync(this[_path], this[_flags], this[_mode2]);
|
|
29828
29828
|
} catch (er) {
|
|
29829
29829
|
if (er.code === "ENOENT") {
|
|
29830
29830
|
this[_flags] = "w";
|
|
@@ -29833,14 +29833,14 @@ var require_fs_minipass = __commonJS({
|
|
|
29833
29833
|
throw er;
|
|
29834
29834
|
}
|
|
29835
29835
|
} else
|
|
29836
|
-
fd =
|
|
29836
|
+
fd = fs13.openSync(this[_path], this[_flags], this[_mode2]);
|
|
29837
29837
|
this[_onopen](null, fd);
|
|
29838
29838
|
}
|
|
29839
29839
|
[_close]() {
|
|
29840
29840
|
if (this[_autoClose] && typeof this[_fd] === "number") {
|
|
29841
29841
|
const fd = this[_fd];
|
|
29842
29842
|
this[_fd] = null;
|
|
29843
|
-
|
|
29843
|
+
fs13.closeSync(fd);
|
|
29844
29844
|
this.emit("close");
|
|
29845
29845
|
}
|
|
29846
29846
|
}
|
|
@@ -29849,7 +29849,7 @@ var require_fs_minipass = __commonJS({
|
|
|
29849
29849
|
try {
|
|
29850
29850
|
this[_onwrite](
|
|
29851
29851
|
null,
|
|
29852
|
-
|
|
29852
|
+
fs13.writeSync(this[_fd], buf, 0, buf.length, this[_pos])
|
|
29853
29853
|
);
|
|
29854
29854
|
threw = false;
|
|
29855
29855
|
} finally {
|
|
@@ -30299,9 +30299,9 @@ var require_list = __commonJS({
|
|
|
30299
30299
|
"use strict";
|
|
30300
30300
|
var hlo = require_high_level_opt();
|
|
30301
30301
|
var Parser = require_parse();
|
|
30302
|
-
var
|
|
30302
|
+
var fs13 = require("fs");
|
|
30303
30303
|
var fsm = require_fs_minipass();
|
|
30304
|
-
var
|
|
30304
|
+
var path19 = require("path");
|
|
30305
30305
|
var stripSlash = require_strip_trailing_slashes();
|
|
30306
30306
|
module2.exports = (opt_, files, cb) => {
|
|
30307
30307
|
if (typeof opt_ === "function") {
|
|
@@ -30343,8 +30343,8 @@ var require_list = __commonJS({
|
|
|
30343
30343
|
const map3 = new Map(files.map((f) => [stripSlash(f), true]));
|
|
30344
30344
|
const filter5 = opt.filter;
|
|
30345
30345
|
const mapHas = (file, r) => {
|
|
30346
|
-
const root = r ||
|
|
30347
|
-
const ret = file === root ? false : map3.has(file) ? map3.get(file) : mapHas(
|
|
30346
|
+
const root = r || path19.parse(file).root || ".";
|
|
30347
|
+
const ret = file === root ? false : map3.has(file) ? map3.get(file) : mapHas(path19.dirname(file), root);
|
|
30348
30348
|
map3.set(file, ret);
|
|
30349
30349
|
return ret;
|
|
30350
30350
|
};
|
|
@@ -30356,16 +30356,16 @@ var require_list = __commonJS({
|
|
|
30356
30356
|
let threw = true;
|
|
30357
30357
|
let fd;
|
|
30358
30358
|
try {
|
|
30359
|
-
const stat =
|
|
30359
|
+
const stat = fs13.statSync(file);
|
|
30360
30360
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
30361
30361
|
if (stat.size < readSize) {
|
|
30362
|
-
p.end(
|
|
30362
|
+
p.end(fs13.readFileSync(file));
|
|
30363
30363
|
} else {
|
|
30364
30364
|
let pos = 0;
|
|
30365
30365
|
const buf = Buffer.allocUnsafe(readSize);
|
|
30366
|
-
fd =
|
|
30366
|
+
fd = fs13.openSync(file, "r");
|
|
30367
30367
|
while (pos < stat.size) {
|
|
30368
|
-
const bytesRead =
|
|
30368
|
+
const bytesRead = fs13.readSync(fd, buf, 0, readSize, pos);
|
|
30369
30369
|
pos += bytesRead;
|
|
30370
30370
|
p.write(buf.slice(0, bytesRead));
|
|
30371
30371
|
}
|
|
@@ -30375,7 +30375,7 @@ var require_list = __commonJS({
|
|
|
30375
30375
|
} finally {
|
|
30376
30376
|
if (threw && fd) {
|
|
30377
30377
|
try {
|
|
30378
|
-
|
|
30378
|
+
fs13.closeSync(fd);
|
|
30379
30379
|
} catch (er) {
|
|
30380
30380
|
}
|
|
30381
30381
|
}
|
|
@@ -30388,7 +30388,7 @@ var require_list = __commonJS({
|
|
|
30388
30388
|
const p = new Promise((resolve3, reject2) => {
|
|
30389
30389
|
parse.on("error", reject2);
|
|
30390
30390
|
parse.on("end", resolve3);
|
|
30391
|
-
|
|
30391
|
+
fs13.stat(file, (er, stat) => {
|
|
30392
30392
|
if (er) {
|
|
30393
30393
|
reject2(er);
|
|
30394
30394
|
} else {
|
|
@@ -30415,7 +30415,7 @@ var require_create = __commonJS({
|
|
|
30415
30415
|
var Pack = require_pack();
|
|
30416
30416
|
var fsm = require_fs_minipass();
|
|
30417
30417
|
var t = require_list();
|
|
30418
|
-
var
|
|
30418
|
+
var path19 = require("path");
|
|
30419
30419
|
module2.exports = (opt_, files, cb) => {
|
|
30420
30420
|
if (typeof files === "function") {
|
|
30421
30421
|
cb = files;
|
|
@@ -30462,7 +30462,7 @@ var require_create = __commonJS({
|
|
|
30462
30462
|
files.forEach((file) => {
|
|
30463
30463
|
if (file.charAt(0) === "@") {
|
|
30464
30464
|
t({
|
|
30465
|
-
file:
|
|
30465
|
+
file: path19.resolve(p.cwd, file.slice(1)),
|
|
30466
30466
|
sync: true,
|
|
30467
30467
|
noResume: true,
|
|
30468
30468
|
onentry: (entry) => p.add(entry)
|
|
@@ -30478,7 +30478,7 @@ var require_create = __commonJS({
|
|
|
30478
30478
|
const file = files.shift();
|
|
30479
30479
|
if (file.charAt(0) === "@") {
|
|
30480
30480
|
return t({
|
|
30481
|
-
file:
|
|
30481
|
+
file: path19.resolve(p.cwd, file.slice(1)),
|
|
30482
30482
|
noResume: true,
|
|
30483
30483
|
onentry: (entry) => p.add(entry)
|
|
30484
30484
|
}).then((_3) => addFilesAsync(p, files));
|
|
@@ -30507,10 +30507,10 @@ var require_replace = __commonJS({
|
|
|
30507
30507
|
"use strict";
|
|
30508
30508
|
var hlo = require_high_level_opt();
|
|
30509
30509
|
var Pack = require_pack();
|
|
30510
|
-
var
|
|
30510
|
+
var fs13 = require("fs");
|
|
30511
30511
|
var fsm = require_fs_minipass();
|
|
30512
30512
|
var t = require_list();
|
|
30513
|
-
var
|
|
30513
|
+
var path19 = require("path");
|
|
30514
30514
|
var Header = require_header();
|
|
30515
30515
|
module2.exports = (opt_, files, cb) => {
|
|
30516
30516
|
const opt = hlo(opt_);
|
|
@@ -30533,19 +30533,19 @@ var require_replace = __commonJS({
|
|
|
30533
30533
|
let position;
|
|
30534
30534
|
try {
|
|
30535
30535
|
try {
|
|
30536
|
-
fd =
|
|
30536
|
+
fd = fs13.openSync(opt.file, "r+");
|
|
30537
30537
|
} catch (er) {
|
|
30538
30538
|
if (er.code === "ENOENT") {
|
|
30539
|
-
fd =
|
|
30539
|
+
fd = fs13.openSync(opt.file, "w+");
|
|
30540
30540
|
} else {
|
|
30541
30541
|
throw er;
|
|
30542
30542
|
}
|
|
30543
30543
|
}
|
|
30544
|
-
const st =
|
|
30544
|
+
const st = fs13.fstatSync(fd);
|
|
30545
30545
|
const headBuf = Buffer.alloc(512);
|
|
30546
30546
|
POSITION: for (position = 0; position < st.size; position += 512) {
|
|
30547
30547
|
for (let bufPos = 0, bytes = 0; bufPos < 512; bufPos += bytes) {
|
|
30548
|
-
bytes =
|
|
30548
|
+
bytes = fs13.readSync(
|
|
30549
30549
|
fd,
|
|
30550
30550
|
headBuf,
|
|
30551
30551
|
bufPos,
|
|
@@ -30577,7 +30577,7 @@ var require_replace = __commonJS({
|
|
|
30577
30577
|
} finally {
|
|
30578
30578
|
if (threw) {
|
|
30579
30579
|
try {
|
|
30580
|
-
|
|
30580
|
+
fs13.closeSync(fd);
|
|
30581
30581
|
} catch (er) {
|
|
30582
30582
|
}
|
|
30583
30583
|
}
|
|
@@ -30597,7 +30597,7 @@ var require_replace = __commonJS({
|
|
|
30597
30597
|
const getPos = (fd, size, cb_) => {
|
|
30598
30598
|
const cb2 = (er, pos) => {
|
|
30599
30599
|
if (er) {
|
|
30600
|
-
|
|
30600
|
+
fs13.close(fd, (_3) => cb_(er));
|
|
30601
30601
|
} else {
|
|
30602
30602
|
cb_(null, pos);
|
|
30603
30603
|
}
|
|
@@ -30614,7 +30614,7 @@ var require_replace = __commonJS({
|
|
|
30614
30614
|
}
|
|
30615
30615
|
bufPos += bytes;
|
|
30616
30616
|
if (bufPos < 512 && bytes) {
|
|
30617
|
-
return
|
|
30617
|
+
return fs13.read(
|
|
30618
30618
|
fd,
|
|
30619
30619
|
headBuf,
|
|
30620
30620
|
bufPos,
|
|
@@ -30645,9 +30645,9 @@ var require_replace = __commonJS({
|
|
|
30645
30645
|
opt.mtimeCache.set(h.path, h.mtime);
|
|
30646
30646
|
}
|
|
30647
30647
|
bufPos = 0;
|
|
30648
|
-
|
|
30648
|
+
fs13.read(fd, headBuf, 0, 512, position, onread);
|
|
30649
30649
|
};
|
|
30650
|
-
|
|
30650
|
+
fs13.read(fd, headBuf, 0, 512, position, onread);
|
|
30651
30651
|
};
|
|
30652
30652
|
const promise = new Promise((resolve3, reject2) => {
|
|
30653
30653
|
p.on("error", reject2);
|
|
@@ -30655,14 +30655,14 @@ var require_replace = __commonJS({
|
|
|
30655
30655
|
const onopen = (er, fd) => {
|
|
30656
30656
|
if (er && er.code === "ENOENT" && flag === "r+") {
|
|
30657
30657
|
flag = "w+";
|
|
30658
|
-
return
|
|
30658
|
+
return fs13.open(opt.file, flag, onopen);
|
|
30659
30659
|
}
|
|
30660
30660
|
if (er) {
|
|
30661
30661
|
return reject2(er);
|
|
30662
30662
|
}
|
|
30663
|
-
|
|
30663
|
+
fs13.fstat(fd, (er2, st) => {
|
|
30664
30664
|
if (er2) {
|
|
30665
|
-
return
|
|
30665
|
+
return fs13.close(fd, () => reject2(er2));
|
|
30666
30666
|
}
|
|
30667
30667
|
getPos(fd, st.size, (er3, position) => {
|
|
30668
30668
|
if (er3) {
|
|
@@ -30679,7 +30679,7 @@ var require_replace = __commonJS({
|
|
|
30679
30679
|
});
|
|
30680
30680
|
});
|
|
30681
30681
|
};
|
|
30682
|
-
|
|
30682
|
+
fs13.open(opt.file, flag, onopen);
|
|
30683
30683
|
});
|
|
30684
30684
|
return cb ? promise.then(cb, cb) : promise;
|
|
30685
30685
|
};
|
|
@@ -30687,7 +30687,7 @@ var require_replace = __commonJS({
|
|
|
30687
30687
|
files.forEach((file) => {
|
|
30688
30688
|
if (file.charAt(0) === "@") {
|
|
30689
30689
|
t({
|
|
30690
|
-
file:
|
|
30690
|
+
file: path19.resolve(p.cwd, file.slice(1)),
|
|
30691
30691
|
sync: true,
|
|
30692
30692
|
noResume: true,
|
|
30693
30693
|
onentry: (entry) => p.add(entry)
|
|
@@ -30703,7 +30703,7 @@ var require_replace = __commonJS({
|
|
|
30703
30703
|
const file = files.shift();
|
|
30704
30704
|
if (file.charAt(0) === "@") {
|
|
30705
30705
|
return t({
|
|
30706
|
-
file:
|
|
30706
|
+
file: path19.resolve(p.cwd, file.slice(1)),
|
|
30707
30707
|
noResume: true,
|
|
30708
30708
|
onentry: (entry) => p.add(entry)
|
|
30709
30709
|
}).then((_3) => addFilesAsync(p, files));
|
|
@@ -30742,7 +30742,7 @@ var require_update = __commonJS({
|
|
|
30742
30742
|
if (!opt.mtimeCache) {
|
|
30743
30743
|
opt.mtimeCache = /* @__PURE__ */ new Map();
|
|
30744
30744
|
}
|
|
30745
|
-
opt.filter = filter5 ? (
|
|
30745
|
+
opt.filter = filter5 ? (path19, stat) => filter5(path19, stat) && !(opt.mtimeCache.get(path19) > stat.mtime) : (path19, stat) => !(opt.mtimeCache.get(path19) > stat.mtime);
|
|
30746
30746
|
};
|
|
30747
30747
|
}
|
|
30748
30748
|
});
|
|
@@ -30752,24 +30752,24 @@ var require_opts_arg = __commonJS({
|
|
|
30752
30752
|
"../../node_modules/mkdirp/lib/opts-arg.js"(exports2, module2) {
|
|
30753
30753
|
"use strict";
|
|
30754
30754
|
var { promisify: promisify2 } = require("util");
|
|
30755
|
-
var
|
|
30755
|
+
var fs13 = require("fs");
|
|
30756
30756
|
var optsArg = (opts) => {
|
|
30757
30757
|
if (!opts)
|
|
30758
|
-
opts = { mode: 511, fs:
|
|
30758
|
+
opts = { mode: 511, fs: fs13 };
|
|
30759
30759
|
else if (typeof opts === "object")
|
|
30760
|
-
opts = { mode: 511, fs:
|
|
30760
|
+
opts = { mode: 511, fs: fs13, ...opts };
|
|
30761
30761
|
else if (typeof opts === "number")
|
|
30762
|
-
opts = { mode: opts, fs:
|
|
30762
|
+
opts = { mode: opts, fs: fs13 };
|
|
30763
30763
|
else if (typeof opts === "string")
|
|
30764
|
-
opts = { mode: parseInt(opts, 8), fs:
|
|
30764
|
+
opts = { mode: parseInt(opts, 8), fs: fs13 };
|
|
30765
30765
|
else
|
|
30766
30766
|
throw new TypeError("invalid options argument");
|
|
30767
|
-
opts.mkdir = opts.mkdir || opts.fs.mkdir ||
|
|
30767
|
+
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs13.mkdir;
|
|
30768
30768
|
opts.mkdirAsync = promisify2(opts.mkdir);
|
|
30769
|
-
opts.stat = opts.stat || opts.fs.stat ||
|
|
30769
|
+
opts.stat = opts.stat || opts.fs.stat || fs13.stat;
|
|
30770
30770
|
opts.statAsync = promisify2(opts.stat);
|
|
30771
|
-
opts.statSync = opts.statSync || opts.fs.statSync ||
|
|
30772
|
-
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync ||
|
|
30771
|
+
opts.statSync = opts.statSync || opts.fs.statSync || fs13.statSync;
|
|
30772
|
+
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs13.mkdirSync;
|
|
30773
30773
|
return opts;
|
|
30774
30774
|
};
|
|
30775
30775
|
module2.exports = optsArg;
|
|
@@ -30782,28 +30782,28 @@ var require_path_arg = __commonJS({
|
|
|
30782
30782
|
"use strict";
|
|
30783
30783
|
var platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;
|
|
30784
30784
|
var { resolve: resolve3, parse } = require("path");
|
|
30785
|
-
var pathArg = (
|
|
30786
|
-
if (/\0/.test(
|
|
30785
|
+
var pathArg = (path19) => {
|
|
30786
|
+
if (/\0/.test(path19)) {
|
|
30787
30787
|
throw Object.assign(
|
|
30788
30788
|
new TypeError("path must be a string without null bytes"),
|
|
30789
30789
|
{
|
|
30790
|
-
path:
|
|
30790
|
+
path: path19,
|
|
30791
30791
|
code: "ERR_INVALID_ARG_VALUE"
|
|
30792
30792
|
}
|
|
30793
30793
|
);
|
|
30794
30794
|
}
|
|
30795
|
-
|
|
30795
|
+
path19 = resolve3(path19);
|
|
30796
30796
|
if (platform === "win32") {
|
|
30797
30797
|
const badWinChars = /[*|"<>?:]/;
|
|
30798
|
-
const { root } = parse(
|
|
30799
|
-
if (badWinChars.test(
|
|
30798
|
+
const { root } = parse(path19);
|
|
30799
|
+
if (badWinChars.test(path19.substr(root.length))) {
|
|
30800
30800
|
throw Object.assign(new Error("Illegal characters in path."), {
|
|
30801
|
-
path:
|
|
30801
|
+
path: path19,
|
|
30802
30802
|
code: "EINVAL"
|
|
30803
30803
|
});
|
|
30804
30804
|
}
|
|
30805
30805
|
}
|
|
30806
|
-
return
|
|
30806
|
+
return path19;
|
|
30807
30807
|
};
|
|
30808
30808
|
module2.exports = pathArg;
|
|
30809
30809
|
}
|
|
@@ -30813,23 +30813,23 @@ var require_path_arg = __commonJS({
|
|
|
30813
30813
|
var require_find_made = __commonJS({
|
|
30814
30814
|
"../../node_modules/mkdirp/lib/find-made.js"(exports2, module2) {
|
|
30815
30815
|
"use strict";
|
|
30816
|
-
var { dirname:
|
|
30817
|
-
var findMade = (opts, parent2,
|
|
30818
|
-
if (
|
|
30816
|
+
var { dirname: dirname4 } = require("path");
|
|
30817
|
+
var findMade = (opts, parent2, path19 = void 0) => {
|
|
30818
|
+
if (path19 === parent2)
|
|
30819
30819
|
return Promise.resolve();
|
|
30820
30820
|
return opts.statAsync(parent2).then(
|
|
30821
|
-
(st) => st.isDirectory() ?
|
|
30821
|
+
(st) => st.isDirectory() ? path19 : void 0,
|
|
30822
30822
|
// will fail later
|
|
30823
|
-
(er) => er.code === "ENOENT" ? findMade(opts,
|
|
30823
|
+
(er) => er.code === "ENOENT" ? findMade(opts, dirname4(parent2), parent2) : void 0
|
|
30824
30824
|
);
|
|
30825
30825
|
};
|
|
30826
|
-
var findMadeSync = (opts, parent2,
|
|
30827
|
-
if (
|
|
30826
|
+
var findMadeSync = (opts, parent2, path19 = void 0) => {
|
|
30827
|
+
if (path19 === parent2)
|
|
30828
30828
|
return void 0;
|
|
30829
30829
|
try {
|
|
30830
|
-
return opts.statSync(parent2).isDirectory() ?
|
|
30830
|
+
return opts.statSync(parent2).isDirectory() ? path19 : void 0;
|
|
30831
30831
|
} catch (er) {
|
|
30832
|
-
return er.code === "ENOENT" ? findMadeSync(opts,
|
|
30832
|
+
return er.code === "ENOENT" ? findMadeSync(opts, dirname4(parent2), parent2) : void 0;
|
|
30833
30833
|
}
|
|
30834
30834
|
};
|
|
30835
30835
|
module2.exports = { findMade, findMadeSync };
|
|
@@ -30840,22 +30840,22 @@ var require_find_made = __commonJS({
|
|
|
30840
30840
|
var require_mkdirp_manual = __commonJS({
|
|
30841
30841
|
"../../node_modules/mkdirp/lib/mkdirp-manual.js"(exports2, module2) {
|
|
30842
30842
|
"use strict";
|
|
30843
|
-
var { dirname:
|
|
30844
|
-
var mkdirpManual = (
|
|
30843
|
+
var { dirname: dirname4 } = require("path");
|
|
30844
|
+
var mkdirpManual = (path19, opts, made) => {
|
|
30845
30845
|
opts.recursive = false;
|
|
30846
|
-
const parent2 =
|
|
30847
|
-
if (parent2 ===
|
|
30848
|
-
return opts.mkdirAsync(
|
|
30846
|
+
const parent2 = dirname4(path19);
|
|
30847
|
+
if (parent2 === path19) {
|
|
30848
|
+
return opts.mkdirAsync(path19, opts).catch((er) => {
|
|
30849
30849
|
if (er.code !== "EISDIR")
|
|
30850
30850
|
throw er;
|
|
30851
30851
|
});
|
|
30852
30852
|
}
|
|
30853
|
-
return opts.mkdirAsync(
|
|
30853
|
+
return opts.mkdirAsync(path19, opts).then(() => made || path19, (er) => {
|
|
30854
30854
|
if (er.code === "ENOENT")
|
|
30855
|
-
return mkdirpManual(parent2, opts).then((made2) => mkdirpManual(
|
|
30855
|
+
return mkdirpManual(parent2, opts).then((made2) => mkdirpManual(path19, opts, made2));
|
|
30856
30856
|
if (er.code !== "EEXIST" && er.code !== "EROFS")
|
|
30857
30857
|
throw er;
|
|
30858
|
-
return opts.statAsync(
|
|
30858
|
+
return opts.statAsync(path19).then((st) => {
|
|
30859
30859
|
if (st.isDirectory())
|
|
30860
30860
|
return made;
|
|
30861
30861
|
else
|
|
@@ -30865,12 +30865,12 @@ var require_mkdirp_manual = __commonJS({
|
|
|
30865
30865
|
});
|
|
30866
30866
|
});
|
|
30867
30867
|
};
|
|
30868
|
-
var mkdirpManualSync = (
|
|
30869
|
-
const parent2 =
|
|
30868
|
+
var mkdirpManualSync = (path19, opts, made) => {
|
|
30869
|
+
const parent2 = dirname4(path19);
|
|
30870
30870
|
opts.recursive = false;
|
|
30871
|
-
if (parent2 ===
|
|
30871
|
+
if (parent2 === path19) {
|
|
30872
30872
|
try {
|
|
30873
|
-
return opts.mkdirSync(
|
|
30873
|
+
return opts.mkdirSync(path19, opts);
|
|
30874
30874
|
} catch (er) {
|
|
30875
30875
|
if (er.code !== "EISDIR")
|
|
30876
30876
|
throw er;
|
|
@@ -30879,15 +30879,15 @@ var require_mkdirp_manual = __commonJS({
|
|
|
30879
30879
|
}
|
|
30880
30880
|
}
|
|
30881
30881
|
try {
|
|
30882
|
-
opts.mkdirSync(
|
|
30883
|
-
return made ||
|
|
30882
|
+
opts.mkdirSync(path19, opts);
|
|
30883
|
+
return made || path19;
|
|
30884
30884
|
} catch (er) {
|
|
30885
30885
|
if (er.code === "ENOENT")
|
|
30886
|
-
return mkdirpManualSync(
|
|
30886
|
+
return mkdirpManualSync(path19, opts, mkdirpManualSync(parent2, opts, made));
|
|
30887
30887
|
if (er.code !== "EEXIST" && er.code !== "EROFS")
|
|
30888
30888
|
throw er;
|
|
30889
30889
|
try {
|
|
30890
|
-
if (!opts.statSync(
|
|
30890
|
+
if (!opts.statSync(path19).isDirectory())
|
|
30891
30891
|
throw er;
|
|
30892
30892
|
} catch (_3) {
|
|
30893
30893
|
throw er;
|
|
@@ -30902,33 +30902,33 @@ var require_mkdirp_manual = __commonJS({
|
|
|
30902
30902
|
var require_mkdirp_native = __commonJS({
|
|
30903
30903
|
"../../node_modules/mkdirp/lib/mkdirp-native.js"(exports2, module2) {
|
|
30904
30904
|
"use strict";
|
|
30905
|
-
var { dirname:
|
|
30905
|
+
var { dirname: dirname4 } = require("path");
|
|
30906
30906
|
var { findMade, findMadeSync } = require_find_made();
|
|
30907
30907
|
var { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
|
|
30908
|
-
var mkdirpNative = (
|
|
30908
|
+
var mkdirpNative = (path19, opts) => {
|
|
30909
30909
|
opts.recursive = true;
|
|
30910
|
-
const parent2 =
|
|
30911
|
-
if (parent2 ===
|
|
30912
|
-
return opts.mkdirAsync(
|
|
30913
|
-
return findMade(opts,
|
|
30910
|
+
const parent2 = dirname4(path19);
|
|
30911
|
+
if (parent2 === path19)
|
|
30912
|
+
return opts.mkdirAsync(path19, opts);
|
|
30913
|
+
return findMade(opts, path19).then((made) => opts.mkdirAsync(path19, opts).then(() => made).catch((er) => {
|
|
30914
30914
|
if (er.code === "ENOENT")
|
|
30915
|
-
return mkdirpManual(
|
|
30915
|
+
return mkdirpManual(path19, opts);
|
|
30916
30916
|
else
|
|
30917
30917
|
throw er;
|
|
30918
30918
|
}));
|
|
30919
30919
|
};
|
|
30920
|
-
var mkdirpNativeSync = (
|
|
30920
|
+
var mkdirpNativeSync = (path19, opts) => {
|
|
30921
30921
|
opts.recursive = true;
|
|
30922
|
-
const parent2 =
|
|
30923
|
-
if (parent2 ===
|
|
30924
|
-
return opts.mkdirSync(
|
|
30925
|
-
const made = findMadeSync(opts,
|
|
30922
|
+
const parent2 = dirname4(path19);
|
|
30923
|
+
if (parent2 === path19)
|
|
30924
|
+
return opts.mkdirSync(path19, opts);
|
|
30925
|
+
const made = findMadeSync(opts, path19);
|
|
30926
30926
|
try {
|
|
30927
|
-
opts.mkdirSync(
|
|
30927
|
+
opts.mkdirSync(path19, opts);
|
|
30928
30928
|
return made;
|
|
30929
30929
|
} catch (er) {
|
|
30930
30930
|
if (er.code === "ENOENT")
|
|
30931
|
-
return mkdirpManualSync(
|
|
30931
|
+
return mkdirpManualSync(path19, opts);
|
|
30932
30932
|
else
|
|
30933
30933
|
throw er;
|
|
30934
30934
|
}
|
|
@@ -30941,12 +30941,12 @@ var require_mkdirp_native = __commonJS({
|
|
|
30941
30941
|
var require_use_native = __commonJS({
|
|
30942
30942
|
"../../node_modules/mkdirp/lib/use-native.js"(exports2, module2) {
|
|
30943
30943
|
"use strict";
|
|
30944
|
-
var
|
|
30944
|
+
var fs13 = require("fs");
|
|
30945
30945
|
var version2 = process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version;
|
|
30946
30946
|
var versArr = version2.replace(/^v/, "").split(".");
|
|
30947
30947
|
var hasNative = +versArr[0] > 10 || +versArr[0] === 10 && +versArr[1] >= 12;
|
|
30948
|
-
var useNative = !hasNative ? () => false : (opts) => opts.mkdir ===
|
|
30949
|
-
var useNativeSync = !hasNative ? () => false : (opts) => opts.mkdirSync ===
|
|
30948
|
+
var useNative = !hasNative ? () => false : (opts) => opts.mkdir === fs13.mkdir;
|
|
30949
|
+
var useNativeSync = !hasNative ? () => false : (opts) => opts.mkdirSync === fs13.mkdirSync;
|
|
30950
30950
|
module2.exports = { useNative, useNativeSync };
|
|
30951
30951
|
}
|
|
30952
30952
|
});
|
|
@@ -30960,21 +30960,21 @@ var require_mkdirp = __commonJS({
|
|
|
30960
30960
|
var { mkdirpNative, mkdirpNativeSync } = require_mkdirp_native();
|
|
30961
30961
|
var { mkdirpManual, mkdirpManualSync } = require_mkdirp_manual();
|
|
30962
30962
|
var { useNative, useNativeSync } = require_use_native();
|
|
30963
|
-
var mkdirp = (
|
|
30964
|
-
|
|
30963
|
+
var mkdirp = (path19, opts) => {
|
|
30964
|
+
path19 = pathArg(path19);
|
|
30965
30965
|
opts = optsArg(opts);
|
|
30966
|
-
return useNative(opts) ? mkdirpNative(
|
|
30966
|
+
return useNative(opts) ? mkdirpNative(path19, opts) : mkdirpManual(path19, opts);
|
|
30967
30967
|
};
|
|
30968
|
-
var mkdirpSync = (
|
|
30969
|
-
|
|
30968
|
+
var mkdirpSync = (path19, opts) => {
|
|
30969
|
+
path19 = pathArg(path19);
|
|
30970
30970
|
opts = optsArg(opts);
|
|
30971
|
-
return useNativeSync(opts) ? mkdirpNativeSync(
|
|
30971
|
+
return useNativeSync(opts) ? mkdirpNativeSync(path19, opts) : mkdirpManualSync(path19, opts);
|
|
30972
30972
|
};
|
|
30973
30973
|
mkdirp.sync = mkdirpSync;
|
|
30974
|
-
mkdirp.native = (
|
|
30975
|
-
mkdirp.manual = (
|
|
30976
|
-
mkdirp.nativeSync = (
|
|
30977
|
-
mkdirp.manualSync = (
|
|
30974
|
+
mkdirp.native = (path19, opts) => mkdirpNative(pathArg(path19), optsArg(opts));
|
|
30975
|
+
mkdirp.manual = (path19, opts) => mkdirpManual(pathArg(path19), optsArg(opts));
|
|
30976
|
+
mkdirp.nativeSync = (path19, opts) => mkdirpNativeSync(pathArg(path19), optsArg(opts));
|
|
30977
|
+
mkdirp.manualSync = (path19, opts) => mkdirpManualSync(pathArg(path19), optsArg(opts));
|
|
30978
30978
|
module2.exports = mkdirp;
|
|
30979
30979
|
}
|
|
30980
30980
|
});
|
|
@@ -30983,69 +30983,69 @@ var require_mkdirp = __commonJS({
|
|
|
30983
30983
|
var require_chownr = __commonJS({
|
|
30984
30984
|
"../../node_modules/chownr/chownr.js"(exports2, module2) {
|
|
30985
30985
|
"use strict";
|
|
30986
|
-
var
|
|
30987
|
-
var
|
|
30988
|
-
var LCHOWN =
|
|
30989
|
-
var LCHOWNSYNC =
|
|
30990
|
-
var needEISDIRHandled =
|
|
30991
|
-
var lchownSync = (
|
|
30986
|
+
var fs13 = require("fs");
|
|
30987
|
+
var path19 = require("path");
|
|
30988
|
+
var LCHOWN = fs13.lchown ? "lchown" : "chown";
|
|
30989
|
+
var LCHOWNSYNC = fs13.lchownSync ? "lchownSync" : "chownSync";
|
|
30990
|
+
var needEISDIRHandled = fs13.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/);
|
|
30991
|
+
var lchownSync = (path20, uid, gid) => {
|
|
30992
30992
|
try {
|
|
30993
|
-
return
|
|
30993
|
+
return fs13[LCHOWNSYNC](path20, uid, gid);
|
|
30994
30994
|
} catch (er) {
|
|
30995
30995
|
if (er.code !== "ENOENT")
|
|
30996
30996
|
throw er;
|
|
30997
30997
|
}
|
|
30998
30998
|
};
|
|
30999
|
-
var chownSync = (
|
|
30999
|
+
var chownSync = (path20, uid, gid) => {
|
|
31000
31000
|
try {
|
|
31001
|
-
return
|
|
31001
|
+
return fs13.chownSync(path20, uid, gid);
|
|
31002
31002
|
} catch (er) {
|
|
31003
31003
|
if (er.code !== "ENOENT")
|
|
31004
31004
|
throw er;
|
|
31005
31005
|
}
|
|
31006
31006
|
};
|
|
31007
|
-
var handleEISDIR = needEISDIRHandled ? (
|
|
31007
|
+
var handleEISDIR = needEISDIRHandled ? (path20, uid, gid, cb) => (er) => {
|
|
31008
31008
|
if (!er || er.code !== "EISDIR")
|
|
31009
31009
|
cb(er);
|
|
31010
31010
|
else
|
|
31011
|
-
|
|
31011
|
+
fs13.chown(path20, uid, gid, cb);
|
|
31012
31012
|
} : (_3, __, ___, cb) => cb;
|
|
31013
|
-
var handleEISDirSync = needEISDIRHandled ? (
|
|
31013
|
+
var handleEISDirSync = needEISDIRHandled ? (path20, uid, gid) => {
|
|
31014
31014
|
try {
|
|
31015
|
-
return lchownSync(
|
|
31015
|
+
return lchownSync(path20, uid, gid);
|
|
31016
31016
|
} catch (er) {
|
|
31017
31017
|
if (er.code !== "EISDIR")
|
|
31018
31018
|
throw er;
|
|
31019
|
-
chownSync(
|
|
31019
|
+
chownSync(path20, uid, gid);
|
|
31020
31020
|
}
|
|
31021
|
-
} : (
|
|
31021
|
+
} : (path20, uid, gid) => lchownSync(path20, uid, gid);
|
|
31022
31022
|
var nodeVersion = process.version;
|
|
31023
|
-
var readdir2 = (
|
|
31024
|
-
var readdirSync4 = (
|
|
31023
|
+
var readdir2 = (path20, options, cb) => fs13.readdir(path20, options, cb);
|
|
31024
|
+
var readdirSync4 = (path20, options) => fs13.readdirSync(path20, options);
|
|
31025
31025
|
if (/^v4\./.test(nodeVersion))
|
|
31026
|
-
readdir2 = (
|
|
31026
|
+
readdir2 = (path20, options, cb) => fs13.readdir(path20, cb);
|
|
31027
31027
|
var chown = (cpath, uid, gid, cb) => {
|
|
31028
|
-
|
|
31028
|
+
fs13[LCHOWN](cpath, uid, gid, handleEISDIR(cpath, uid, gid, (er) => {
|
|
31029
31029
|
cb(er && er.code !== "ENOENT" ? er : null);
|
|
31030
31030
|
}));
|
|
31031
31031
|
};
|
|
31032
31032
|
var chownrKid = (p, child, uid, gid, cb) => {
|
|
31033
31033
|
if (typeof child === "string")
|
|
31034
|
-
return
|
|
31034
|
+
return fs13.lstat(path19.resolve(p, child), (er, stats) => {
|
|
31035
31035
|
if (er)
|
|
31036
31036
|
return cb(er.code !== "ENOENT" ? er : null);
|
|
31037
31037
|
stats.name = child;
|
|
31038
31038
|
chownrKid(p, stats, uid, gid, cb);
|
|
31039
31039
|
});
|
|
31040
31040
|
if (child.isDirectory()) {
|
|
31041
|
-
chownr(
|
|
31041
|
+
chownr(path19.resolve(p, child.name), uid, gid, (er) => {
|
|
31042
31042
|
if (er)
|
|
31043
31043
|
return cb(er);
|
|
31044
|
-
const cpath =
|
|
31044
|
+
const cpath = path19.resolve(p, child.name);
|
|
31045
31045
|
chown(cpath, uid, gid, cb);
|
|
31046
31046
|
});
|
|
31047
31047
|
} else {
|
|
31048
|
-
const cpath =
|
|
31048
|
+
const cpath = path19.resolve(p, child.name);
|
|
31049
31049
|
chown(cpath, uid, gid, cb);
|
|
31050
31050
|
}
|
|
31051
31051
|
};
|
|
@@ -31075,7 +31075,7 @@ var require_chownr = __commonJS({
|
|
|
31075
31075
|
var chownrKidSync = (p, child, uid, gid) => {
|
|
31076
31076
|
if (typeof child === "string") {
|
|
31077
31077
|
try {
|
|
31078
|
-
const stats =
|
|
31078
|
+
const stats = fs13.lstatSync(path19.resolve(p, child));
|
|
31079
31079
|
stats.name = child;
|
|
31080
31080
|
child = stats;
|
|
31081
31081
|
} catch (er) {
|
|
@@ -31086,8 +31086,8 @@ var require_chownr = __commonJS({
|
|
|
31086
31086
|
}
|
|
31087
31087
|
}
|
|
31088
31088
|
if (child.isDirectory())
|
|
31089
|
-
chownrSync(
|
|
31090
|
-
handleEISDirSync(
|
|
31089
|
+
chownrSync(path19.resolve(p, child.name), uid, gid);
|
|
31090
|
+
handleEISDirSync(path19.resolve(p, child.name), uid, gid);
|
|
31091
31091
|
};
|
|
31092
31092
|
var chownrSync = (p, uid, gid) => {
|
|
31093
31093
|
let children;
|
|
@@ -31115,14 +31115,14 @@ var require_mkdir = __commonJS({
|
|
|
31115
31115
|
"../../node_modules/tar/lib/mkdir.js"(exports2, module2) {
|
|
31116
31116
|
"use strict";
|
|
31117
31117
|
var mkdirp = require_mkdirp();
|
|
31118
|
-
var
|
|
31119
|
-
var
|
|
31118
|
+
var fs13 = require("fs");
|
|
31119
|
+
var path19 = require("path");
|
|
31120
31120
|
var chownr = require_chownr();
|
|
31121
31121
|
var normPath = require_normalize_windows_path();
|
|
31122
31122
|
var SymlinkError = class extends Error {
|
|
31123
|
-
constructor(symlink,
|
|
31123
|
+
constructor(symlink, path20) {
|
|
31124
31124
|
super("Cannot extract through symbolic link");
|
|
31125
|
-
this.path =
|
|
31125
|
+
this.path = path20;
|
|
31126
31126
|
this.symlink = symlink;
|
|
31127
31127
|
}
|
|
31128
31128
|
get name() {
|
|
@@ -31130,9 +31130,9 @@ var require_mkdir = __commonJS({
|
|
|
31130
31130
|
}
|
|
31131
31131
|
};
|
|
31132
31132
|
var CwdError = class extends Error {
|
|
31133
|
-
constructor(
|
|
31134
|
-
super(code + ": Cannot cd into '" +
|
|
31135
|
-
this.path =
|
|
31133
|
+
constructor(path20, code) {
|
|
31134
|
+
super(code + ": Cannot cd into '" + path20 + "'");
|
|
31135
|
+
this.path = path20;
|
|
31136
31136
|
this.code = code;
|
|
31137
31137
|
}
|
|
31138
31138
|
get name() {
|
|
@@ -31142,7 +31142,7 @@ var require_mkdir = __commonJS({
|
|
|
31142
31142
|
var cGet = (cache, key) => cache.get(normPath(key));
|
|
31143
31143
|
var cSet = (cache, key, val) => cache.set(normPath(key), val);
|
|
31144
31144
|
var checkCwd = (dir2, cb) => {
|
|
31145
|
-
|
|
31145
|
+
fs13.stat(dir2, (er, st) => {
|
|
31146
31146
|
if (er || !st.isDirectory()) {
|
|
31147
31147
|
er = new CwdError(dir2, er && er.code || "ENOTDIR");
|
|
31148
31148
|
}
|
|
@@ -31169,7 +31169,7 @@ var require_mkdir = __commonJS({
|
|
|
31169
31169
|
if (created && doChown) {
|
|
31170
31170
|
chownr(created, uid, gid, (er2) => done(er2));
|
|
31171
31171
|
} else if (needChmod) {
|
|
31172
|
-
|
|
31172
|
+
fs13.chmod(dir2, mode, cb);
|
|
31173
31173
|
} else {
|
|
31174
31174
|
cb();
|
|
31175
31175
|
}
|
|
@@ -31184,7 +31184,7 @@ var require_mkdir = __commonJS({
|
|
|
31184
31184
|
if (preserve) {
|
|
31185
31185
|
return mkdirp(dir2, { mode }).then((made) => done(null, made), done);
|
|
31186
31186
|
}
|
|
31187
|
-
const sub = normPath(
|
|
31187
|
+
const sub = normPath(path19.relative(cwd, dir2));
|
|
31188
31188
|
const parts = sub.split("/");
|
|
31189
31189
|
mkdir_(cwd, parts, mode, cache, unlink, cwd, null, done);
|
|
31190
31190
|
};
|
|
@@ -31193,26 +31193,26 @@ var require_mkdir = __commonJS({
|
|
|
31193
31193
|
return cb(null, created);
|
|
31194
31194
|
}
|
|
31195
31195
|
const p = parts.shift();
|
|
31196
|
-
const part = normPath(
|
|
31196
|
+
const part = normPath(path19.resolve(base + "/" + p));
|
|
31197
31197
|
if (cGet(cache, part)) {
|
|
31198
31198
|
return mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
31199
31199
|
}
|
|
31200
|
-
|
|
31200
|
+
fs13.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
31201
31201
|
};
|
|
31202
31202
|
var onmkdir = (part, parts, mode, cache, unlink, cwd, created, cb) => (er) => {
|
|
31203
31203
|
if (er) {
|
|
31204
|
-
|
|
31204
|
+
fs13.lstat(part, (statEr, st) => {
|
|
31205
31205
|
if (statEr) {
|
|
31206
31206
|
statEr.path = statEr.path && normPath(statEr.path);
|
|
31207
31207
|
cb(statEr);
|
|
31208
31208
|
} else if (st.isDirectory()) {
|
|
31209
31209
|
mkdir_(part, parts, mode, cache, unlink, cwd, created, cb);
|
|
31210
31210
|
} else if (unlink) {
|
|
31211
|
-
|
|
31211
|
+
fs13.unlink(part, (er2) => {
|
|
31212
31212
|
if (er2) {
|
|
31213
31213
|
return cb(er2);
|
|
31214
31214
|
}
|
|
31215
|
-
|
|
31215
|
+
fs13.mkdir(part, mode, onmkdir(part, parts, mode, cache, unlink, cwd, created, cb));
|
|
31216
31216
|
});
|
|
31217
31217
|
} else if (st.isSymbolicLink()) {
|
|
31218
31218
|
return cb(new SymlinkError(part, part + "/" + parts.join("/")));
|
|
@@ -31229,7 +31229,7 @@ var require_mkdir = __commonJS({
|
|
|
31229
31229
|
let ok = false;
|
|
31230
31230
|
let code = "ENOTDIR";
|
|
31231
31231
|
try {
|
|
31232
|
-
ok =
|
|
31232
|
+
ok = fs13.statSync(dir2).isDirectory();
|
|
31233
31233
|
} catch (er) {
|
|
31234
31234
|
code = er.code;
|
|
31235
31235
|
} finally {
|
|
@@ -31256,7 +31256,7 @@ var require_mkdir = __commonJS({
|
|
|
31256
31256
|
chownr.sync(created2, uid, gid);
|
|
31257
31257
|
}
|
|
31258
31258
|
if (needChmod) {
|
|
31259
|
-
|
|
31259
|
+
fs13.chmodSync(dir2, mode);
|
|
31260
31260
|
}
|
|
31261
31261
|
};
|
|
31262
31262
|
if (cache && cGet(cache, dir2) === true) {
|
|
@@ -31269,26 +31269,26 @@ var require_mkdir = __commonJS({
|
|
|
31269
31269
|
if (preserve) {
|
|
31270
31270
|
return done(mkdirp.sync(dir2, mode));
|
|
31271
31271
|
}
|
|
31272
|
-
const sub = normPath(
|
|
31272
|
+
const sub = normPath(path19.relative(cwd, dir2));
|
|
31273
31273
|
const parts = sub.split("/");
|
|
31274
31274
|
let created = null;
|
|
31275
31275
|
for (let p = parts.shift(), part = cwd; p && (part += "/" + p); p = parts.shift()) {
|
|
31276
|
-
part = normPath(
|
|
31276
|
+
part = normPath(path19.resolve(part));
|
|
31277
31277
|
if (cGet(cache, part)) {
|
|
31278
31278
|
continue;
|
|
31279
31279
|
}
|
|
31280
31280
|
try {
|
|
31281
|
-
|
|
31281
|
+
fs13.mkdirSync(part, mode);
|
|
31282
31282
|
created = created || part;
|
|
31283
31283
|
cSet(cache, part, true);
|
|
31284
31284
|
} catch (er) {
|
|
31285
|
-
const st =
|
|
31285
|
+
const st = fs13.lstatSync(part);
|
|
31286
31286
|
if (st.isDirectory()) {
|
|
31287
31287
|
cSet(cache, part, true);
|
|
31288
31288
|
continue;
|
|
31289
31289
|
} else if (unlink) {
|
|
31290
|
-
|
|
31291
|
-
|
|
31290
|
+
fs13.unlinkSync(part);
|
|
31291
|
+
fs13.mkdirSync(part, mode);
|
|
31292
31292
|
created = created || part;
|
|
31293
31293
|
cSet(cache, part, true);
|
|
31294
31294
|
continue;
|
|
@@ -31324,18 +31324,18 @@ var require_path_reservations = __commonJS({
|
|
|
31324
31324
|
var assert = require("assert");
|
|
31325
31325
|
var normalize2 = require_normalize_unicode();
|
|
31326
31326
|
var stripSlashes = require_strip_trailing_slashes();
|
|
31327
|
-
var { join:
|
|
31327
|
+
var { join: join5 } = require("path");
|
|
31328
31328
|
var platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
31329
31329
|
var isWindows = platform === "win32";
|
|
31330
31330
|
module2.exports = () => {
|
|
31331
31331
|
const queues = /* @__PURE__ */ new Map();
|
|
31332
31332
|
const reservations = /* @__PURE__ */ new Map();
|
|
31333
|
-
const getDirs = (
|
|
31334
|
-
const dirs =
|
|
31333
|
+
const getDirs = (path19) => {
|
|
31334
|
+
const dirs = path19.split("/").slice(0, -1).reduce((set2, path20) => {
|
|
31335
31335
|
if (set2.length) {
|
|
31336
|
-
|
|
31336
|
+
path20 = join5(set2[set2.length - 1], path20);
|
|
31337
31337
|
}
|
|
31338
|
-
set2.push(
|
|
31338
|
+
set2.push(path20 || "/");
|
|
31339
31339
|
return set2;
|
|
31340
31340
|
}, []);
|
|
31341
31341
|
return dirs;
|
|
@@ -31347,8 +31347,8 @@ var require_path_reservations = __commonJS({
|
|
|
31347
31347
|
throw new Error("function does not have any path reservations");
|
|
31348
31348
|
}
|
|
31349
31349
|
return {
|
|
31350
|
-
paths: res.paths.map((
|
|
31351
|
-
dirs: [...res.dirs].map((
|
|
31350
|
+
paths: res.paths.map((path19) => queues.get(path19)),
|
|
31351
|
+
dirs: [...res.dirs].map((path19) => queues.get(path19))
|
|
31352
31352
|
};
|
|
31353
31353
|
};
|
|
31354
31354
|
const check2 = (fn) => {
|
|
@@ -31369,11 +31369,11 @@ var require_path_reservations = __commonJS({
|
|
|
31369
31369
|
}
|
|
31370
31370
|
const { paths, dirs } = reservations.get(fn);
|
|
31371
31371
|
const next = /* @__PURE__ */ new Set();
|
|
31372
|
-
paths.forEach((
|
|
31373
|
-
const q = queues.get(
|
|
31372
|
+
paths.forEach((path19) => {
|
|
31373
|
+
const q = queues.get(path19);
|
|
31374
31374
|
assert.equal(q[0], fn);
|
|
31375
31375
|
if (q.length === 1) {
|
|
31376
|
-
queues.delete(
|
|
31376
|
+
queues.delete(path19);
|
|
31377
31377
|
} else {
|
|
31378
31378
|
q.shift();
|
|
31379
31379
|
if (typeof q[0] === "function") {
|
|
@@ -31401,16 +31401,16 @@ var require_path_reservations = __commonJS({
|
|
|
31401
31401
|
};
|
|
31402
31402
|
const reserve = (paths, fn) => {
|
|
31403
31403
|
paths = isWindows ? ["win32 parallelization disabled"] : paths.map((p) => {
|
|
31404
|
-
return stripSlashes(
|
|
31404
|
+
return stripSlashes(join5(normalize2(p))).toLowerCase();
|
|
31405
31405
|
});
|
|
31406
31406
|
const dirs = new Set(
|
|
31407
|
-
paths.map((
|
|
31407
|
+
paths.map((path19) => getDirs(path19)).reduce((a, b) => a.concat(b))
|
|
31408
31408
|
);
|
|
31409
31409
|
reservations.set(fn, { dirs, paths });
|
|
31410
|
-
paths.forEach((
|
|
31411
|
-
const q = queues.get(
|
|
31410
|
+
paths.forEach((path19) => {
|
|
31411
|
+
const q = queues.get(path19);
|
|
31412
31412
|
if (!q) {
|
|
31413
|
-
queues.set(
|
|
31413
|
+
queues.set(path19, [fn]);
|
|
31414
31414
|
} else {
|
|
31415
31415
|
q.push(fn);
|
|
31416
31416
|
}
|
|
@@ -31438,8 +31438,8 @@ var require_get_write_flag = __commonJS({
|
|
|
31438
31438
|
"use strict";
|
|
31439
31439
|
var platform = process.env.__FAKE_PLATFORM__ || process.platform;
|
|
31440
31440
|
var isWindows = platform === "win32";
|
|
31441
|
-
var
|
|
31442
|
-
var { O_CREAT, O_TRUNC, O_WRONLY, UV_FS_O_FILEMAP = 0 } =
|
|
31441
|
+
var fs13 = global.__FAKE_TESTING_FS__ || require("fs");
|
|
31442
|
+
var { O_CREAT, O_TRUNC, O_WRONLY, UV_FS_O_FILEMAP = 0 } = fs13.constants;
|
|
31443
31443
|
var fMapEnabled = isWindows && !!UV_FS_O_FILEMAP;
|
|
31444
31444
|
var fMapLimit = 512 * 1024;
|
|
31445
31445
|
var fMapFlag = UV_FS_O_FILEMAP | O_TRUNC | O_CREAT | O_WRONLY;
|
|
@@ -31453,9 +31453,9 @@ var require_unpack = __commonJS({
|
|
|
31453
31453
|
"use strict";
|
|
31454
31454
|
var assert = require("assert");
|
|
31455
31455
|
var Parser = require_parse();
|
|
31456
|
-
var
|
|
31456
|
+
var fs13 = require("fs");
|
|
31457
31457
|
var fsm = require_fs_minipass();
|
|
31458
|
-
var
|
|
31458
|
+
var path19 = require("path");
|
|
31459
31459
|
var mkdir = require_mkdir();
|
|
31460
31460
|
var wc = require_winchars();
|
|
31461
31461
|
var pathReservations = require_path_reservations();
|
|
@@ -31493,34 +31493,34 @@ var require_unpack = __commonJS({
|
|
|
31493
31493
|
var platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
31494
31494
|
var isWindows = platform === "win32";
|
|
31495
31495
|
var DEFAULT_MAX_DEPTH = 1024;
|
|
31496
|
-
var unlinkFile = (
|
|
31496
|
+
var unlinkFile = (path20, cb) => {
|
|
31497
31497
|
if (!isWindows) {
|
|
31498
|
-
return
|
|
31498
|
+
return fs13.unlink(path20, cb);
|
|
31499
31499
|
}
|
|
31500
|
-
const name =
|
|
31501
|
-
|
|
31500
|
+
const name = path20 + ".DELETE." + crypto2.randomBytes(16).toString("hex");
|
|
31501
|
+
fs13.rename(path20, name, (er) => {
|
|
31502
31502
|
if (er) {
|
|
31503
31503
|
return cb(er);
|
|
31504
31504
|
}
|
|
31505
|
-
|
|
31505
|
+
fs13.unlink(name, cb);
|
|
31506
31506
|
});
|
|
31507
31507
|
};
|
|
31508
|
-
var unlinkFileSync = (
|
|
31508
|
+
var unlinkFileSync = (path20) => {
|
|
31509
31509
|
if (!isWindows) {
|
|
31510
|
-
return
|
|
31510
|
+
return fs13.unlinkSync(path20);
|
|
31511
31511
|
}
|
|
31512
|
-
const name =
|
|
31513
|
-
|
|
31514
|
-
|
|
31512
|
+
const name = path20 + ".DELETE." + crypto2.randomBytes(16).toString("hex");
|
|
31513
|
+
fs13.renameSync(path20, name);
|
|
31514
|
+
fs13.unlinkSync(name);
|
|
31515
31515
|
};
|
|
31516
31516
|
var uint32 = (a, b, c2) => a === a >>> 0 ? a : b === b >>> 0 ? b : c2;
|
|
31517
|
-
var cacheKeyNormalize = (
|
|
31517
|
+
var cacheKeyNormalize = (path20) => stripSlash(normPath(normalize2(path20))).toLowerCase();
|
|
31518
31518
|
var pruneCache = (cache, abs) => {
|
|
31519
31519
|
abs = cacheKeyNormalize(abs);
|
|
31520
|
-
for (const
|
|
31521
|
-
const pnorm = cacheKeyNormalize(
|
|
31520
|
+
for (const path20 of cache.keys()) {
|
|
31521
|
+
const pnorm = cacheKeyNormalize(path20);
|
|
31522
31522
|
if (pnorm === abs || pnorm.indexOf(abs + "/") === 0) {
|
|
31523
|
-
cache.delete(
|
|
31523
|
+
cache.delete(path20);
|
|
31524
31524
|
}
|
|
31525
31525
|
}
|
|
31526
31526
|
};
|
|
@@ -31579,7 +31579,7 @@ var require_unpack = __commonJS({
|
|
|
31579
31579
|
this.noMtime = !!opt.noMtime;
|
|
31580
31580
|
this.preservePaths = !!opt.preservePaths;
|
|
31581
31581
|
this.unlink = !!opt.unlink;
|
|
31582
|
-
this.cwd = normPath(
|
|
31582
|
+
this.cwd = normPath(path19.resolve(opt.cwd || process.cwd()));
|
|
31583
31583
|
this.strip = +opt.strip || 0;
|
|
31584
31584
|
this.processUmask = opt.noChmod ? 0 : process.umask();
|
|
31585
31585
|
this.umask = typeof opt.umask === "number" ? opt.umask : this.processUmask;
|
|
@@ -31647,10 +31647,10 @@ var require_unpack = __commonJS({
|
|
|
31647
31647
|
});
|
|
31648
31648
|
}
|
|
31649
31649
|
}
|
|
31650
|
-
if (
|
|
31651
|
-
entry.absolute = normPath(
|
|
31650
|
+
if (path19.isAbsolute(entry.path)) {
|
|
31651
|
+
entry.absolute = normPath(path19.resolve(entry.path));
|
|
31652
31652
|
} else {
|
|
31653
|
-
entry.absolute = normPath(
|
|
31653
|
+
entry.absolute = normPath(path19.resolve(this.cwd, entry.path));
|
|
31654
31654
|
}
|
|
31655
31655
|
if (!this.preservePaths && entry.absolute.indexOf(this.cwd + "/") !== 0 && entry.absolute !== this.cwd) {
|
|
31656
31656
|
this.warn("TAR_ENTRY_ERROR", "path escaped extraction target", {
|
|
@@ -31665,9 +31665,9 @@ var require_unpack = __commonJS({
|
|
|
31665
31665
|
return false;
|
|
31666
31666
|
}
|
|
31667
31667
|
if (this.win32) {
|
|
31668
|
-
const { root: aRoot } =
|
|
31668
|
+
const { root: aRoot } = path19.win32.parse(entry.absolute);
|
|
31669
31669
|
entry.absolute = aRoot + wc.encode(entry.absolute.slice(aRoot.length));
|
|
31670
|
-
const { root: pRoot } =
|
|
31670
|
+
const { root: pRoot } = path19.win32.parse(entry.path);
|
|
31671
31671
|
entry.path = pRoot + wc.encode(entry.path.slice(pRoot.length));
|
|
31672
31672
|
}
|
|
31673
31673
|
return true;
|
|
@@ -31739,7 +31739,7 @@ var require_unpack = __commonJS({
|
|
|
31739
31739
|
});
|
|
31740
31740
|
stream6.on("error", (er) => {
|
|
31741
31741
|
if (stream6.fd) {
|
|
31742
|
-
|
|
31742
|
+
fs13.close(stream6.fd, () => {
|
|
31743
31743
|
});
|
|
31744
31744
|
}
|
|
31745
31745
|
stream6.write = () => true;
|
|
@@ -31750,7 +31750,7 @@ var require_unpack = __commonJS({
|
|
|
31750
31750
|
const done = (er) => {
|
|
31751
31751
|
if (er) {
|
|
31752
31752
|
if (stream6.fd) {
|
|
31753
|
-
|
|
31753
|
+
fs13.close(stream6.fd, () => {
|
|
31754
31754
|
});
|
|
31755
31755
|
}
|
|
31756
31756
|
this[ONERROR](er, entry);
|
|
@@ -31758,7 +31758,7 @@ var require_unpack = __commonJS({
|
|
|
31758
31758
|
return;
|
|
31759
31759
|
}
|
|
31760
31760
|
if (--actions === 0) {
|
|
31761
|
-
|
|
31761
|
+
fs13.close(stream6.fd, (er2) => {
|
|
31762
31762
|
if (er2) {
|
|
31763
31763
|
this[ONERROR](er2, entry);
|
|
31764
31764
|
} else {
|
|
@@ -31775,13 +31775,13 @@ var require_unpack = __commonJS({
|
|
|
31775
31775
|
actions++;
|
|
31776
31776
|
const atime = entry.atime || /* @__PURE__ */ new Date();
|
|
31777
31777
|
const mtime = entry.mtime;
|
|
31778
|
-
|
|
31778
|
+
fs13.futimes(fd, atime, mtime, (er) => er ? fs13.utimes(abs, atime, mtime, (er2) => done(er2 && er)) : done());
|
|
31779
31779
|
}
|
|
31780
31780
|
if (this[DOCHOWN](entry)) {
|
|
31781
31781
|
actions++;
|
|
31782
31782
|
const uid = this[UID](entry);
|
|
31783
31783
|
const gid = this[GID](entry);
|
|
31784
|
-
|
|
31784
|
+
fs13.fchown(fd, uid, gid, (er) => er ? fs13.chown(abs, uid, gid, (er2) => done(er2 && er)) : done());
|
|
31785
31785
|
}
|
|
31786
31786
|
done();
|
|
31787
31787
|
});
|
|
@@ -31813,11 +31813,11 @@ var require_unpack = __commonJS({
|
|
|
31813
31813
|
};
|
|
31814
31814
|
if (entry.mtime && !this.noMtime) {
|
|
31815
31815
|
actions++;
|
|
31816
|
-
|
|
31816
|
+
fs13.utimes(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime, done);
|
|
31817
31817
|
}
|
|
31818
31818
|
if (this[DOCHOWN](entry)) {
|
|
31819
31819
|
actions++;
|
|
31820
|
-
|
|
31820
|
+
fs13.chown(entry.absolute, this[UID](entry), this[GID](entry), done);
|
|
31821
31821
|
}
|
|
31822
31822
|
done();
|
|
31823
31823
|
});
|
|
@@ -31835,7 +31835,7 @@ var require_unpack = __commonJS({
|
|
|
31835
31835
|
this[LINK](entry, entry.linkpath, "symlink", done);
|
|
31836
31836
|
}
|
|
31837
31837
|
[HARDLINK](entry, done) {
|
|
31838
|
-
const linkpath = normPath(
|
|
31838
|
+
const linkpath = normPath(path19.resolve(this.cwd, entry.linkpath));
|
|
31839
31839
|
this[LINK](entry, linkpath, "link", done);
|
|
31840
31840
|
}
|
|
31841
31841
|
[PEND]() {
|
|
@@ -31890,7 +31890,7 @@ var require_unpack = __commonJS({
|
|
|
31890
31890
|
};
|
|
31891
31891
|
const start = () => {
|
|
31892
31892
|
if (entry.absolute !== this.cwd) {
|
|
31893
|
-
const parent2 = normPath(
|
|
31893
|
+
const parent2 = normPath(path19.dirname(entry.absolute));
|
|
31894
31894
|
if (parent2 !== this.cwd) {
|
|
31895
31895
|
return this[MKDIR](parent2, this.dmode, (er) => {
|
|
31896
31896
|
if (er) {
|
|
@@ -31905,7 +31905,7 @@ var require_unpack = __commonJS({
|
|
|
31905
31905
|
afterMakeParent();
|
|
31906
31906
|
};
|
|
31907
31907
|
const afterMakeParent = () => {
|
|
31908
|
-
|
|
31908
|
+
fs13.lstat(entry.absolute, (lstatEr, st) => {
|
|
31909
31909
|
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) {
|
|
31910
31910
|
this[SKIP](entry);
|
|
31911
31911
|
done();
|
|
@@ -31921,10 +31921,10 @@ var require_unpack = __commonJS({
|
|
|
31921
31921
|
if (!needChmod) {
|
|
31922
31922
|
return afterChmod();
|
|
31923
31923
|
}
|
|
31924
|
-
return
|
|
31924
|
+
return fs13.chmod(entry.absolute, entry.mode, afterChmod);
|
|
31925
31925
|
}
|
|
31926
31926
|
if (entry.absolute !== this.cwd) {
|
|
31927
|
-
return
|
|
31927
|
+
return fs13.rmdir(entry.absolute, (er) => this[MAKEFS](er, entry, done));
|
|
31928
31928
|
}
|
|
31929
31929
|
}
|
|
31930
31930
|
if (entry.absolute === this.cwd) {
|
|
@@ -31960,7 +31960,7 @@ var require_unpack = __commonJS({
|
|
|
31960
31960
|
}
|
|
31961
31961
|
}
|
|
31962
31962
|
[LINK](entry, linkpath, link, done) {
|
|
31963
|
-
|
|
31963
|
+
fs13[link](linkpath, entry.absolute, (er) => {
|
|
31964
31964
|
if (er) {
|
|
31965
31965
|
this[ONERROR](er, entry);
|
|
31966
31966
|
} else {
|
|
@@ -31993,7 +31993,7 @@ var require_unpack = __commonJS({
|
|
|
31993
31993
|
this[CHECKED_CWD] = true;
|
|
31994
31994
|
}
|
|
31995
31995
|
if (entry.absolute !== this.cwd) {
|
|
31996
|
-
const parent2 = normPath(
|
|
31996
|
+
const parent2 = normPath(path19.dirname(entry.absolute));
|
|
31997
31997
|
if (parent2 !== this.cwd) {
|
|
31998
31998
|
const mkParent = this[MKDIR](parent2, this.dmode);
|
|
31999
31999
|
if (mkParent) {
|
|
@@ -32001,7 +32001,7 @@ var require_unpack = __commonJS({
|
|
|
32001
32001
|
}
|
|
32002
32002
|
}
|
|
32003
32003
|
}
|
|
32004
|
-
const [lstatEr, st] = callSync(() =>
|
|
32004
|
+
const [lstatEr, st] = callSync(() => fs13.lstatSync(entry.absolute));
|
|
32005
32005
|
if (st && (this.keep || this.newer && st.mtime > entry.mtime)) {
|
|
32006
32006
|
return this[SKIP](entry);
|
|
32007
32007
|
}
|
|
@@ -32012,11 +32012,11 @@ var require_unpack = __commonJS({
|
|
|
32012
32012
|
if (entry.type === "Directory") {
|
|
32013
32013
|
const needChmod = !this.noChmod && entry.mode && (st.mode & 4095) !== entry.mode;
|
|
32014
32014
|
const [er3] = needChmod ? callSync(() => {
|
|
32015
|
-
|
|
32015
|
+
fs13.chmodSync(entry.absolute, entry.mode);
|
|
32016
32016
|
}) : [];
|
|
32017
32017
|
return this[MAKEFS](er3, entry);
|
|
32018
32018
|
}
|
|
32019
|
-
const [er2] = callSync(() =>
|
|
32019
|
+
const [er2] = callSync(() => fs13.rmdirSync(entry.absolute));
|
|
32020
32020
|
this[MAKEFS](er2, entry);
|
|
32021
32021
|
}
|
|
32022
32022
|
const [er] = entry.absolute === this.cwd ? [] : callSync(() => unlinkFileSync(entry.absolute));
|
|
@@ -32027,7 +32027,7 @@ var require_unpack = __commonJS({
|
|
|
32027
32027
|
const oner = (er) => {
|
|
32028
32028
|
let closeError;
|
|
32029
32029
|
try {
|
|
32030
|
-
|
|
32030
|
+
fs13.closeSync(fd);
|
|
32031
32031
|
} catch (e) {
|
|
32032
32032
|
closeError = e;
|
|
32033
32033
|
}
|
|
@@ -32038,7 +32038,7 @@ var require_unpack = __commonJS({
|
|
|
32038
32038
|
};
|
|
32039
32039
|
let fd;
|
|
32040
32040
|
try {
|
|
32041
|
-
fd =
|
|
32041
|
+
fd = fs13.openSync(entry.absolute, getFlag(entry.size), mode);
|
|
32042
32042
|
} catch (er) {
|
|
32043
32043
|
return oner(er);
|
|
32044
32044
|
}
|
|
@@ -32049,7 +32049,7 @@ var require_unpack = __commonJS({
|
|
|
32049
32049
|
}
|
|
32050
32050
|
tx.on("data", (chunk) => {
|
|
32051
32051
|
try {
|
|
32052
|
-
|
|
32052
|
+
fs13.writeSync(fd, chunk, 0, chunk.length);
|
|
32053
32053
|
} catch (er) {
|
|
32054
32054
|
oner(er);
|
|
32055
32055
|
}
|
|
@@ -32060,10 +32060,10 @@ var require_unpack = __commonJS({
|
|
|
32060
32060
|
const atime = entry.atime || /* @__PURE__ */ new Date();
|
|
32061
32061
|
const mtime = entry.mtime;
|
|
32062
32062
|
try {
|
|
32063
|
-
|
|
32063
|
+
fs13.futimesSync(fd, atime, mtime);
|
|
32064
32064
|
} catch (futimeser) {
|
|
32065
32065
|
try {
|
|
32066
|
-
|
|
32066
|
+
fs13.utimesSync(entry.absolute, atime, mtime);
|
|
32067
32067
|
} catch (utimeser) {
|
|
32068
32068
|
er = futimeser;
|
|
32069
32069
|
}
|
|
@@ -32073,10 +32073,10 @@ var require_unpack = __commonJS({
|
|
|
32073
32073
|
const uid = this[UID](entry);
|
|
32074
32074
|
const gid = this[GID](entry);
|
|
32075
32075
|
try {
|
|
32076
|
-
|
|
32076
|
+
fs13.fchownSync(fd, uid, gid);
|
|
32077
32077
|
} catch (fchowner) {
|
|
32078
32078
|
try {
|
|
32079
|
-
|
|
32079
|
+
fs13.chownSync(entry.absolute, uid, gid);
|
|
32080
32080
|
} catch (chowner) {
|
|
32081
32081
|
er = er || fchowner;
|
|
32082
32082
|
}
|
|
@@ -32095,13 +32095,13 @@ var require_unpack = __commonJS({
|
|
|
32095
32095
|
}
|
|
32096
32096
|
if (entry.mtime && !this.noMtime) {
|
|
32097
32097
|
try {
|
|
32098
|
-
|
|
32098
|
+
fs13.utimesSync(entry.absolute, entry.atime || /* @__PURE__ */ new Date(), entry.mtime);
|
|
32099
32099
|
} catch (er2) {
|
|
32100
32100
|
}
|
|
32101
32101
|
}
|
|
32102
32102
|
if (this[DOCHOWN](entry)) {
|
|
32103
32103
|
try {
|
|
32104
|
-
|
|
32104
|
+
fs13.chownSync(entry.absolute, this[UID](entry), this[GID](entry));
|
|
32105
32105
|
} catch (er2) {
|
|
32106
32106
|
}
|
|
32107
32107
|
}
|
|
@@ -32128,7 +32128,7 @@ var require_unpack = __commonJS({
|
|
|
32128
32128
|
}
|
|
32129
32129
|
[LINK](entry, linkpath, link, done) {
|
|
32130
32130
|
try {
|
|
32131
|
-
|
|
32131
|
+
fs13[link + "Sync"](linkpath, entry.absolute);
|
|
32132
32132
|
done();
|
|
32133
32133
|
entry.resume();
|
|
32134
32134
|
} catch (er) {
|
|
@@ -32147,9 +32147,9 @@ var require_extract = __commonJS({
|
|
|
32147
32147
|
"use strict";
|
|
32148
32148
|
var hlo = require_high_level_opt();
|
|
32149
32149
|
var Unpack = require_unpack();
|
|
32150
|
-
var
|
|
32150
|
+
var fs13 = require("fs");
|
|
32151
32151
|
var fsm = require_fs_minipass();
|
|
32152
|
-
var
|
|
32152
|
+
var path19 = require("path");
|
|
32153
32153
|
var stripSlash = require_strip_trailing_slashes();
|
|
32154
32154
|
module2.exports = (opt_, files, cb) => {
|
|
32155
32155
|
if (typeof opt_ === "function") {
|
|
@@ -32181,8 +32181,8 @@ var require_extract = __commonJS({
|
|
|
32181
32181
|
const map3 = new Map(files.map((f) => [stripSlash(f), true]));
|
|
32182
32182
|
const filter5 = opt.filter;
|
|
32183
32183
|
const mapHas = (file, r) => {
|
|
32184
|
-
const root = r ||
|
|
32185
|
-
const ret = file === root ? false : map3.has(file) ? map3.get(file) : mapHas(
|
|
32184
|
+
const root = r || path19.parse(file).root || ".";
|
|
32185
|
+
const ret = file === root ? false : map3.has(file) ? map3.get(file) : mapHas(path19.dirname(file), root);
|
|
32186
32186
|
map3.set(file, ret);
|
|
32187
32187
|
return ret;
|
|
32188
32188
|
};
|
|
@@ -32191,7 +32191,7 @@ var require_extract = __commonJS({
|
|
|
32191
32191
|
var extractFileSync = (opt) => {
|
|
32192
32192
|
const u = new Unpack.Sync(opt);
|
|
32193
32193
|
const file = opt.file;
|
|
32194
|
-
const stat =
|
|
32194
|
+
const stat = fs13.statSync(file);
|
|
32195
32195
|
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
32196
32196
|
const stream6 = new fsm.ReadStreamSync(file, {
|
|
32197
32197
|
readSize,
|
|
@@ -32206,7 +32206,7 @@ var require_extract = __commonJS({
|
|
|
32206
32206
|
const p = new Promise((resolve3, reject2) => {
|
|
32207
32207
|
u.on("error", reject2);
|
|
32208
32208
|
u.on("close", resolve3);
|
|
32209
|
-
|
|
32209
|
+
fs13.stat(file, (er, stat) => {
|
|
32210
32210
|
if (er) {
|
|
32211
32211
|
reject2(er);
|
|
32212
32212
|
} else {
|
|
@@ -32461,8 +32461,8 @@ var require_windows = __commonJS({
|
|
|
32461
32461
|
"use strict";
|
|
32462
32462
|
module2.exports = isexe;
|
|
32463
32463
|
isexe.sync = sync2;
|
|
32464
|
-
var
|
|
32465
|
-
function checkPathExt(
|
|
32464
|
+
var fs13 = require("fs");
|
|
32465
|
+
function checkPathExt(path19, options) {
|
|
32466
32466
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
32467
32467
|
if (!pathext) {
|
|
32468
32468
|
return true;
|
|
@@ -32473,25 +32473,25 @@ var require_windows = __commonJS({
|
|
|
32473
32473
|
}
|
|
32474
32474
|
for (var i = 0; i < pathext.length; i++) {
|
|
32475
32475
|
var p = pathext[i].toLowerCase();
|
|
32476
|
-
if (p &&
|
|
32476
|
+
if (p && path19.substr(-p.length).toLowerCase() === p) {
|
|
32477
32477
|
return true;
|
|
32478
32478
|
}
|
|
32479
32479
|
}
|
|
32480
32480
|
return false;
|
|
32481
32481
|
}
|
|
32482
|
-
function checkStat(stat,
|
|
32482
|
+
function checkStat(stat, path19, options) {
|
|
32483
32483
|
if (!stat.isSymbolicLink() && !stat.isFile()) {
|
|
32484
32484
|
return false;
|
|
32485
32485
|
}
|
|
32486
|
-
return checkPathExt(
|
|
32486
|
+
return checkPathExt(path19, options);
|
|
32487
32487
|
}
|
|
32488
|
-
function isexe(
|
|
32489
|
-
|
|
32490
|
-
cb(er, er ? false : checkStat(stat,
|
|
32488
|
+
function isexe(path19, options, cb) {
|
|
32489
|
+
fs13.stat(path19, function(er, stat) {
|
|
32490
|
+
cb(er, er ? false : checkStat(stat, path19, options));
|
|
32491
32491
|
});
|
|
32492
32492
|
}
|
|
32493
|
-
function sync2(
|
|
32494
|
-
return checkStat(
|
|
32493
|
+
function sync2(path19, options) {
|
|
32494
|
+
return checkStat(fs13.statSync(path19), path19, options);
|
|
32495
32495
|
}
|
|
32496
32496
|
}
|
|
32497
32497
|
});
|
|
@@ -32502,14 +32502,14 @@ var require_mode = __commonJS({
|
|
|
32502
32502
|
"use strict";
|
|
32503
32503
|
module2.exports = isexe;
|
|
32504
32504
|
isexe.sync = sync2;
|
|
32505
|
-
var
|
|
32506
|
-
function isexe(
|
|
32507
|
-
|
|
32505
|
+
var fs13 = require("fs");
|
|
32506
|
+
function isexe(path19, options, cb) {
|
|
32507
|
+
fs13.stat(path19, function(er, stat) {
|
|
32508
32508
|
cb(er, er ? false : checkStat(stat, options));
|
|
32509
32509
|
});
|
|
32510
32510
|
}
|
|
32511
|
-
function sync2(
|
|
32512
|
-
return checkStat(
|
|
32511
|
+
function sync2(path19, options) {
|
|
32512
|
+
return checkStat(fs13.statSync(path19), options);
|
|
32513
32513
|
}
|
|
32514
32514
|
function checkStat(stat, options) {
|
|
32515
32515
|
return stat.isFile() && checkMode(stat, options);
|
|
@@ -32534,7 +32534,7 @@ var require_mode = __commonJS({
|
|
|
32534
32534
|
var require_isexe = __commonJS({
|
|
32535
32535
|
"../../node_modules/isexe/index.js"(exports2, module2) {
|
|
32536
32536
|
"use strict";
|
|
32537
|
-
var
|
|
32537
|
+
var fs13 = require("fs");
|
|
32538
32538
|
var core2;
|
|
32539
32539
|
if (process.platform === "win32" || global.TESTING_WINDOWS) {
|
|
32540
32540
|
core2 = require_windows();
|
|
@@ -32543,7 +32543,7 @@ var require_isexe = __commonJS({
|
|
|
32543
32543
|
}
|
|
32544
32544
|
module2.exports = isexe;
|
|
32545
32545
|
isexe.sync = sync2;
|
|
32546
|
-
function isexe(
|
|
32546
|
+
function isexe(path19, options, cb) {
|
|
32547
32547
|
if (typeof options === "function") {
|
|
32548
32548
|
cb = options;
|
|
32549
32549
|
options = {};
|
|
@@ -32553,7 +32553,7 @@ var require_isexe = __commonJS({
|
|
|
32553
32553
|
throw new TypeError("callback not provided");
|
|
32554
32554
|
}
|
|
32555
32555
|
return new Promise(function(resolve3, reject2) {
|
|
32556
|
-
isexe(
|
|
32556
|
+
isexe(path19, options || {}, function(er, is) {
|
|
32557
32557
|
if (er) {
|
|
32558
32558
|
reject2(er);
|
|
32559
32559
|
} else {
|
|
@@ -32562,7 +32562,7 @@ var require_isexe = __commonJS({
|
|
|
32562
32562
|
});
|
|
32563
32563
|
});
|
|
32564
32564
|
}
|
|
32565
|
-
core2(
|
|
32565
|
+
core2(path19, options || {}, function(er, is) {
|
|
32566
32566
|
if (er) {
|
|
32567
32567
|
if (er.code === "EACCES" || options && options.ignoreErrors) {
|
|
32568
32568
|
er = null;
|
|
@@ -32572,9 +32572,9 @@ var require_isexe = __commonJS({
|
|
|
32572
32572
|
cb(er, is);
|
|
32573
32573
|
});
|
|
32574
32574
|
}
|
|
32575
|
-
function sync2(
|
|
32575
|
+
function sync2(path19, options) {
|
|
32576
32576
|
try {
|
|
32577
|
-
return core2.sync(
|
|
32577
|
+
return core2.sync(path19, options || {});
|
|
32578
32578
|
} catch (er) {
|
|
32579
32579
|
if (options && options.ignoreErrors || er.code === "EACCES") {
|
|
32580
32580
|
return false;
|
|
@@ -32591,7 +32591,7 @@ var require_which = __commonJS({
|
|
|
32591
32591
|
"../../node_modules/which/which.js"(exports2, module2) {
|
|
32592
32592
|
"use strict";
|
|
32593
32593
|
var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
32594
|
-
var
|
|
32594
|
+
var path19 = require("path");
|
|
32595
32595
|
var COLON = isWindows ? ";" : ":";
|
|
32596
32596
|
var isexe = require_isexe();
|
|
32597
32597
|
var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
@@ -32629,7 +32629,7 @@ var require_which = __commonJS({
|
|
|
32629
32629
|
return opt.all && found.length ? resolve3(found) : reject2(getNotFoundError(cmd));
|
|
32630
32630
|
const ppRaw = pathEnv[i];
|
|
32631
32631
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
32632
|
-
const pCmd =
|
|
32632
|
+
const pCmd = path19.join(pathPart, cmd);
|
|
32633
32633
|
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
32634
32634
|
resolve3(subStep(p, i, 0));
|
|
32635
32635
|
});
|
|
@@ -32656,7 +32656,7 @@ var require_which = __commonJS({
|
|
|
32656
32656
|
for (let i = 0; i < pathEnv.length; i++) {
|
|
32657
32657
|
const ppRaw = pathEnv[i];
|
|
32658
32658
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
32659
|
-
const pCmd =
|
|
32659
|
+
const pCmd = path19.join(pathPart, cmd);
|
|
32660
32660
|
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
32661
32661
|
for (let j = 0; j < pathExt.length; j++) {
|
|
32662
32662
|
const cur = p + pathExt[j];
|
|
@@ -32704,7 +32704,7 @@ var require_path_key = __commonJS({
|
|
|
32704
32704
|
var require_resolveCommand = __commonJS({
|
|
32705
32705
|
"../../node_modules/cross-spawn/lib/util/resolveCommand.js"(exports2, module2) {
|
|
32706
32706
|
"use strict";
|
|
32707
|
-
var
|
|
32707
|
+
var path19 = require("path");
|
|
32708
32708
|
var which = require_which();
|
|
32709
32709
|
var getPathKey = require_path_key();
|
|
32710
32710
|
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
@@ -32722,7 +32722,7 @@ var require_resolveCommand = __commonJS({
|
|
|
32722
32722
|
try {
|
|
32723
32723
|
resolved = which.sync(parsed.command, {
|
|
32724
32724
|
path: env3[getPathKey({ env: env3 })],
|
|
32725
|
-
pathExt: withoutPathExt ?
|
|
32725
|
+
pathExt: withoutPathExt ? path19.delimiter : void 0
|
|
32726
32726
|
});
|
|
32727
32727
|
} catch (e) {
|
|
32728
32728
|
} finally {
|
|
@@ -32731,7 +32731,7 @@ var require_resolveCommand = __commonJS({
|
|
|
32731
32731
|
}
|
|
32732
32732
|
}
|
|
32733
32733
|
if (resolved) {
|
|
32734
|
-
resolved =
|
|
32734
|
+
resolved = path19.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
|
|
32735
32735
|
}
|
|
32736
32736
|
return resolved;
|
|
32737
32737
|
}
|
|
@@ -32785,8 +32785,8 @@ var require_shebang_command = __commonJS({
|
|
|
32785
32785
|
if (!match2) {
|
|
32786
32786
|
return null;
|
|
32787
32787
|
}
|
|
32788
|
-
const [
|
|
32789
|
-
const binary2 =
|
|
32788
|
+
const [path19, argument] = match2[0].replace(/#! ?/, "").split(" ");
|
|
32789
|
+
const binary2 = path19.split("/").pop();
|
|
32790
32790
|
if (binary2 === "env") {
|
|
32791
32791
|
return argument;
|
|
32792
32792
|
}
|
|
@@ -32799,16 +32799,16 @@ var require_shebang_command = __commonJS({
|
|
|
32799
32799
|
var require_readShebang = __commonJS({
|
|
32800
32800
|
"../../node_modules/cross-spawn/lib/util/readShebang.js"(exports2, module2) {
|
|
32801
32801
|
"use strict";
|
|
32802
|
-
var
|
|
32802
|
+
var fs13 = require("fs");
|
|
32803
32803
|
var shebangCommand = require_shebang_command();
|
|
32804
32804
|
function readShebang(command) {
|
|
32805
32805
|
const size = 150;
|
|
32806
32806
|
const buffer = Buffer.alloc(size);
|
|
32807
32807
|
let fd;
|
|
32808
32808
|
try {
|
|
32809
|
-
fd =
|
|
32810
|
-
|
|
32811
|
-
|
|
32809
|
+
fd = fs13.openSync(command, "r");
|
|
32810
|
+
fs13.readSync(fd, buffer, 0, size, 0);
|
|
32811
|
+
fs13.closeSync(fd);
|
|
32812
32812
|
} catch (e) {
|
|
32813
32813
|
}
|
|
32814
32814
|
return shebangCommand(buffer.toString());
|
|
@@ -32821,7 +32821,7 @@ var require_readShebang = __commonJS({
|
|
|
32821
32821
|
var require_parse2 = __commonJS({
|
|
32822
32822
|
"../../node_modules/cross-spawn/lib/parse.js"(exports2, module2) {
|
|
32823
32823
|
"use strict";
|
|
32824
|
-
var
|
|
32824
|
+
var path19 = require("path");
|
|
32825
32825
|
var resolveCommand = require_resolveCommand();
|
|
32826
32826
|
var escape2 = require_escape();
|
|
32827
32827
|
var readShebang = require_readShebang();
|
|
@@ -32846,7 +32846,7 @@ var require_parse2 = __commonJS({
|
|
|
32846
32846
|
const needsShell = !isExecutableRegExp.test(commandFile);
|
|
32847
32847
|
if (parsed.options.forceShell || needsShell) {
|
|
32848
32848
|
const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
|
|
32849
|
-
parsed.command =
|
|
32849
|
+
parsed.command = path19.normalize(parsed.command);
|
|
32850
32850
|
parsed.command = escape2.command(parsed.command);
|
|
32851
32851
|
parsed.args = parsed.args.map((arg) => escape2.argument(arg, needsDoubleEscapeMetaChars));
|
|
32852
32852
|
const shellCommand = [parsed.command].concat(parsed.args).join(" ");
|
|
@@ -35914,7 +35914,7 @@ var require_buffer_list = __commonJS({
|
|
|
35914
35914
|
}
|
|
35915
35915
|
}, {
|
|
35916
35916
|
key: "join",
|
|
35917
|
-
value: function
|
|
35917
|
+
value: function join5(s) {
|
|
35918
35918
|
if (this.length === 0) return "";
|
|
35919
35919
|
var p = this.head;
|
|
35920
35920
|
var ret = "" + p.data;
|
|
@@ -48063,11 +48063,11 @@ var require_mime_types = __commonJS({
|
|
|
48063
48063
|
}
|
|
48064
48064
|
return exts[0];
|
|
48065
48065
|
}
|
|
48066
|
-
function lookup(
|
|
48067
|
-
if (!
|
|
48066
|
+
function lookup(path19) {
|
|
48067
|
+
if (!path19 || typeof path19 !== "string") {
|
|
48068
48068
|
return false;
|
|
48069
48069
|
}
|
|
48070
|
-
var extension2 = extname("x." +
|
|
48070
|
+
var extension2 = extname("x." + path19).toLowerCase().substr(1);
|
|
48071
48071
|
if (!extension2) {
|
|
48072
48072
|
return false;
|
|
48073
48073
|
}
|
|
@@ -49182,11 +49182,11 @@ var require_form_data = __commonJS({
|
|
|
49182
49182
|
"use strict";
|
|
49183
49183
|
var CombinedStream = require_combined_stream();
|
|
49184
49184
|
var util3 = require("util");
|
|
49185
|
-
var
|
|
49185
|
+
var path19 = require("path");
|
|
49186
49186
|
var http2 = require("http");
|
|
49187
49187
|
var https2 = require("https");
|
|
49188
49188
|
var parseUrl = require("url").parse;
|
|
49189
|
-
var
|
|
49189
|
+
var fs13 = require("fs");
|
|
49190
49190
|
var Stream2 = require("stream").Stream;
|
|
49191
49191
|
var crypto2 = require("crypto");
|
|
49192
49192
|
var mime = require_mime_types();
|
|
@@ -49253,7 +49253,7 @@ var require_form_data = __commonJS({
|
|
|
49253
49253
|
if (value.end != void 0 && value.end != Infinity && value.start != void 0) {
|
|
49254
49254
|
callback(null, value.end + 1 - (value.start ? value.start : 0));
|
|
49255
49255
|
} else {
|
|
49256
|
-
|
|
49256
|
+
fs13.stat(value.path, function(err, stat) {
|
|
49257
49257
|
if (err) {
|
|
49258
49258
|
callback(err);
|
|
49259
49259
|
return;
|
|
@@ -49310,11 +49310,11 @@ var require_form_data = __commonJS({
|
|
|
49310
49310
|
FormData4.prototype._getContentDisposition = function(value, options) {
|
|
49311
49311
|
var filename;
|
|
49312
49312
|
if (typeof options.filepath === "string") {
|
|
49313
|
-
filename =
|
|
49313
|
+
filename = path19.normalize(options.filepath).replace(/\\/g, "/");
|
|
49314
49314
|
} else if (options.filename || value && (value.name || value.path)) {
|
|
49315
|
-
filename =
|
|
49315
|
+
filename = path19.basename(options.filename || value && (value.name || value.path));
|
|
49316
49316
|
} else if (value && value.readable && hasOwn(value, "httpVersion")) {
|
|
49317
|
-
filename =
|
|
49317
|
+
filename = path19.basename(value.client._httpMessage.path || "");
|
|
49318
49318
|
}
|
|
49319
49319
|
if (filename) {
|
|
49320
49320
|
return 'filename="' + filename + '"';
|
|
@@ -51822,7 +51822,7 @@ var require_braces = __commonJS({
|
|
|
51822
51822
|
var require_constants3 = __commonJS({
|
|
51823
51823
|
"../../node_modules/picomatch/lib/constants.js"(exports2, module2) {
|
|
51824
51824
|
"use strict";
|
|
51825
|
-
var
|
|
51825
|
+
var path19 = require("path");
|
|
51826
51826
|
var WIN_SLASH = "\\\\/";
|
|
51827
51827
|
var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
51828
51828
|
var DOT_LITERAL = "\\.";
|
|
@@ -51992,7 +51992,7 @@ var require_constants3 = __commonJS({
|
|
|
51992
51992
|
/* | */
|
|
51993
51993
|
CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
|
|
51994
51994
|
/* \uFEFF */
|
|
51995
|
-
SEP:
|
|
51995
|
+
SEP: path19.sep,
|
|
51996
51996
|
/**
|
|
51997
51997
|
* Create EXTGLOB_CHARS
|
|
51998
51998
|
*/
|
|
@@ -52019,7 +52019,7 @@ var require_constants3 = __commonJS({
|
|
|
52019
52019
|
var require_utils2 = __commonJS({
|
|
52020
52020
|
"../../node_modules/picomatch/lib/utils.js"(exports2) {
|
|
52021
52021
|
"use strict";
|
|
52022
|
-
var
|
|
52022
|
+
var path19 = require("path");
|
|
52023
52023
|
var win322 = process.platform === "win32";
|
|
52024
52024
|
var {
|
|
52025
52025
|
REGEX_BACKSLASH,
|
|
@@ -52048,7 +52048,7 @@ var require_utils2 = __commonJS({
|
|
|
52048
52048
|
if (options && typeof options.windows === "boolean") {
|
|
52049
52049
|
return options.windows;
|
|
52050
52050
|
}
|
|
52051
|
-
return win322 === true ||
|
|
52051
|
+
return win322 === true || path19.sep === "\\";
|
|
52052
52052
|
};
|
|
52053
52053
|
exports2.escapeLast = (input, char, lastIdx) => {
|
|
52054
52054
|
const idx = input.lastIndexOf(char, lastIdx);
|
|
@@ -53183,7 +53183,7 @@ var require_parse4 = __commonJS({
|
|
|
53183
53183
|
var require_picomatch = __commonJS({
|
|
53184
53184
|
"../../node_modules/picomatch/lib/picomatch.js"(exports2, module2) {
|
|
53185
53185
|
"use strict";
|
|
53186
|
-
var
|
|
53186
|
+
var path19 = require("path");
|
|
53187
53187
|
var scan = require_scan2();
|
|
53188
53188
|
var parse = require_parse4();
|
|
53189
53189
|
var utils = require_utils2();
|
|
@@ -53268,7 +53268,7 @@ var require_picomatch = __commonJS({
|
|
|
53268
53268
|
};
|
|
53269
53269
|
picomatch.matchBase = (input, glob2, options, posix2 = utils.isWindows(options)) => {
|
|
53270
53270
|
const regex = glob2 instanceof RegExp ? glob2 : picomatch.makeRe(glob2, options);
|
|
53271
|
-
return regex.test(
|
|
53271
|
+
return regex.test(path19.basename(input));
|
|
53272
53272
|
};
|
|
53273
53273
|
picomatch.isMatch = (str2, patterns, options) => picomatch(patterns, options)(str2);
|
|
53274
53274
|
picomatch.parse = (pattern, options) => {
|
|
@@ -53661,8 +53661,8 @@ var require_minimatch = __commonJS({
|
|
|
53661
53661
|
return new Minimatch2(pattern, options).match(p);
|
|
53662
53662
|
};
|
|
53663
53663
|
module2.exports = minimatch2;
|
|
53664
|
-
var
|
|
53665
|
-
minimatch2.sep =
|
|
53664
|
+
var path19 = require_path();
|
|
53665
|
+
minimatch2.sep = path19.sep;
|
|
53666
53666
|
var GLOBSTAR2 = Symbol("globstar **");
|
|
53667
53667
|
minimatch2.GLOBSTAR = GLOBSTAR2;
|
|
53668
53668
|
var expand2 = require_brace_expansion2();
|
|
@@ -54171,8 +54171,8 @@ var require_minimatch = __commonJS({
|
|
|
54171
54171
|
if (this.empty) return f === "";
|
|
54172
54172
|
if (f === "/" && partial) return true;
|
|
54173
54173
|
const options = this.options;
|
|
54174
|
-
if (
|
|
54175
|
-
f = f.split(
|
|
54174
|
+
if (path19.sep !== "/") {
|
|
54175
|
+
f = f.split(path19.sep).join("/");
|
|
54176
54176
|
}
|
|
54177
54177
|
f = f.split(slashSplit);
|
|
54178
54178
|
this.debug(this.pattern, "split", f);
|
|
@@ -54211,13 +54211,13 @@ var require_readdir_glob = __commonJS({
|
|
|
54211
54211
|
"../../node_modules/readdir-glob/index.js"(exports2, module2) {
|
|
54212
54212
|
"use strict";
|
|
54213
54213
|
module2.exports = readdirGlob;
|
|
54214
|
-
var
|
|
54214
|
+
var fs13 = require("fs");
|
|
54215
54215
|
var { EventEmitter: EventEmitter3 } = require("events");
|
|
54216
54216
|
var { Minimatch: Minimatch2 } = require_minimatch();
|
|
54217
54217
|
var { resolve: resolve3 } = require("path");
|
|
54218
54218
|
function readdir2(dir2, strict) {
|
|
54219
54219
|
return new Promise((resolve4, reject2) => {
|
|
54220
|
-
|
|
54220
|
+
fs13.readdir(dir2, { withFileTypes: true }, (err, files) => {
|
|
54221
54221
|
if (err) {
|
|
54222
54222
|
switch (err.code) {
|
|
54223
54223
|
case "ENOTDIR":
|
|
@@ -54250,7 +54250,7 @@ var require_readdir_glob = __commonJS({
|
|
|
54250
54250
|
}
|
|
54251
54251
|
function stat(file, followSymlinks) {
|
|
54252
54252
|
return new Promise((resolve4, reject2) => {
|
|
54253
|
-
const statFunc = followSymlinks ?
|
|
54253
|
+
const statFunc = followSymlinks ? fs13.stat : fs13.lstat;
|
|
54254
54254
|
statFunc(file, (err, stats) => {
|
|
54255
54255
|
if (err) {
|
|
54256
54256
|
switch (err.code) {
|
|
@@ -54271,8 +54271,8 @@ var require_readdir_glob = __commonJS({
|
|
|
54271
54271
|
});
|
|
54272
54272
|
});
|
|
54273
54273
|
}
|
|
54274
|
-
async function* exploreWalkAsync(dir2,
|
|
54275
|
-
let files = await readdir2(
|
|
54274
|
+
async function* exploreWalkAsync(dir2, path19, followSymlinks, useStat, shouldSkip, strict) {
|
|
54275
|
+
let files = await readdir2(path19 + dir2, strict);
|
|
54276
54276
|
for (const file of files) {
|
|
54277
54277
|
let name = file.name;
|
|
54278
54278
|
if (name === void 0) {
|
|
@@ -54281,7 +54281,7 @@ var require_readdir_glob = __commonJS({
|
|
|
54281
54281
|
}
|
|
54282
54282
|
const filename = dir2 + "/" + name;
|
|
54283
54283
|
const relative = filename.slice(1);
|
|
54284
|
-
const absolute =
|
|
54284
|
+
const absolute = path19 + "/" + relative;
|
|
54285
54285
|
let stats = null;
|
|
54286
54286
|
if (useStat || followSymlinks) {
|
|
54287
54287
|
stats = await stat(absolute, followSymlinks);
|
|
@@ -54295,15 +54295,15 @@ var require_readdir_glob = __commonJS({
|
|
|
54295
54295
|
if (stats.isDirectory()) {
|
|
54296
54296
|
if (!shouldSkip(relative)) {
|
|
54297
54297
|
yield { relative, absolute, stats };
|
|
54298
|
-
yield* exploreWalkAsync(filename,
|
|
54298
|
+
yield* exploreWalkAsync(filename, path19, followSymlinks, useStat, shouldSkip, false);
|
|
54299
54299
|
}
|
|
54300
54300
|
} else {
|
|
54301
54301
|
yield { relative, absolute, stats };
|
|
54302
54302
|
}
|
|
54303
54303
|
}
|
|
54304
54304
|
}
|
|
54305
|
-
async function* explore(
|
|
54306
|
-
yield* exploreWalkAsync("",
|
|
54305
|
+
async function* explore(path19, followSymlinks, useStat, shouldSkip) {
|
|
54306
|
+
yield* exploreWalkAsync("", path19, followSymlinks, useStat, shouldSkip, true);
|
|
54307
54307
|
}
|
|
54308
54308
|
function readOptions(options) {
|
|
54309
54309
|
return {
|
|
@@ -56313,54 +56313,54 @@ var require_polyfills = __commonJS({
|
|
|
56313
56313
|
}
|
|
56314
56314
|
var chdir;
|
|
56315
56315
|
module2.exports = patch;
|
|
56316
|
-
function patch(
|
|
56316
|
+
function patch(fs13) {
|
|
56317
56317
|
if (constants3.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
|
|
56318
|
-
patchLchmod(
|
|
56319
|
-
}
|
|
56320
|
-
if (!
|
|
56321
|
-
patchLutimes(
|
|
56322
|
-
}
|
|
56323
|
-
|
|
56324
|
-
|
|
56325
|
-
|
|
56326
|
-
|
|
56327
|
-
|
|
56328
|
-
|
|
56329
|
-
|
|
56330
|
-
|
|
56331
|
-
|
|
56332
|
-
|
|
56333
|
-
|
|
56334
|
-
|
|
56335
|
-
|
|
56336
|
-
|
|
56337
|
-
|
|
56338
|
-
|
|
56339
|
-
|
|
56340
|
-
|
|
56341
|
-
if (
|
|
56342
|
-
|
|
56318
|
+
patchLchmod(fs13);
|
|
56319
|
+
}
|
|
56320
|
+
if (!fs13.lutimes) {
|
|
56321
|
+
patchLutimes(fs13);
|
|
56322
|
+
}
|
|
56323
|
+
fs13.chown = chownFix(fs13.chown);
|
|
56324
|
+
fs13.fchown = chownFix(fs13.fchown);
|
|
56325
|
+
fs13.lchown = chownFix(fs13.lchown);
|
|
56326
|
+
fs13.chmod = chmodFix(fs13.chmod);
|
|
56327
|
+
fs13.fchmod = chmodFix(fs13.fchmod);
|
|
56328
|
+
fs13.lchmod = chmodFix(fs13.lchmod);
|
|
56329
|
+
fs13.chownSync = chownFixSync(fs13.chownSync);
|
|
56330
|
+
fs13.fchownSync = chownFixSync(fs13.fchownSync);
|
|
56331
|
+
fs13.lchownSync = chownFixSync(fs13.lchownSync);
|
|
56332
|
+
fs13.chmodSync = chmodFixSync(fs13.chmodSync);
|
|
56333
|
+
fs13.fchmodSync = chmodFixSync(fs13.fchmodSync);
|
|
56334
|
+
fs13.lchmodSync = chmodFixSync(fs13.lchmodSync);
|
|
56335
|
+
fs13.stat = statFix(fs13.stat);
|
|
56336
|
+
fs13.fstat = statFix(fs13.fstat);
|
|
56337
|
+
fs13.lstat = statFix(fs13.lstat);
|
|
56338
|
+
fs13.statSync = statFixSync(fs13.statSync);
|
|
56339
|
+
fs13.fstatSync = statFixSync(fs13.fstatSync);
|
|
56340
|
+
fs13.lstatSync = statFixSync(fs13.lstatSync);
|
|
56341
|
+
if (fs13.chmod && !fs13.lchmod) {
|
|
56342
|
+
fs13.lchmod = function(path19, mode, cb) {
|
|
56343
56343
|
if (cb) process.nextTick(cb);
|
|
56344
56344
|
};
|
|
56345
|
-
|
|
56345
|
+
fs13.lchmodSync = function() {
|
|
56346
56346
|
};
|
|
56347
56347
|
}
|
|
56348
|
-
if (
|
|
56349
|
-
|
|
56348
|
+
if (fs13.chown && !fs13.lchown) {
|
|
56349
|
+
fs13.lchown = function(path19, uid, gid, cb) {
|
|
56350
56350
|
if (cb) process.nextTick(cb);
|
|
56351
56351
|
};
|
|
56352
|
-
|
|
56352
|
+
fs13.lchownSync = function() {
|
|
56353
56353
|
};
|
|
56354
56354
|
}
|
|
56355
56355
|
if (platform === "win32") {
|
|
56356
|
-
|
|
56356
|
+
fs13.rename = typeof fs13.rename !== "function" ? fs13.rename : function(fs$rename) {
|
|
56357
56357
|
function rename(from2, to, cb) {
|
|
56358
56358
|
var start = Date.now();
|
|
56359
56359
|
var backoff = 0;
|
|
56360
56360
|
fs$rename(from2, to, function CB(er) {
|
|
56361
56361
|
if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
|
|
56362
56362
|
setTimeout(function() {
|
|
56363
|
-
|
|
56363
|
+
fs13.stat(to, function(stater, st) {
|
|
56364
56364
|
if (stater && stater.code === "ENOENT")
|
|
56365
56365
|
fs$rename(from2, to, CB);
|
|
56366
56366
|
else
|
|
@@ -56376,9 +56376,9 @@ var require_polyfills = __commonJS({
|
|
|
56376
56376
|
}
|
|
56377
56377
|
if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
|
|
56378
56378
|
return rename;
|
|
56379
|
-
}(
|
|
56379
|
+
}(fs13.rename);
|
|
56380
56380
|
}
|
|
56381
|
-
|
|
56381
|
+
fs13.read = typeof fs13.read !== "function" ? fs13.read : function(fs$read) {
|
|
56382
56382
|
function read(fd, buffer, offset, length, position, callback_) {
|
|
56383
56383
|
var callback;
|
|
56384
56384
|
if (callback_ && typeof callback_ === "function") {
|
|
@@ -56386,22 +56386,22 @@ var require_polyfills = __commonJS({
|
|
|
56386
56386
|
callback = function(er, _3, __) {
|
|
56387
56387
|
if (er && er.code === "EAGAIN" && eagCounter < 10) {
|
|
56388
56388
|
eagCounter++;
|
|
56389
|
-
return fs$read.call(
|
|
56389
|
+
return fs$read.call(fs13, fd, buffer, offset, length, position, callback);
|
|
56390
56390
|
}
|
|
56391
56391
|
callback_.apply(this, arguments);
|
|
56392
56392
|
};
|
|
56393
56393
|
}
|
|
56394
|
-
return fs$read.call(
|
|
56394
|
+
return fs$read.call(fs13, fd, buffer, offset, length, position, callback);
|
|
56395
56395
|
}
|
|
56396
56396
|
if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
|
|
56397
56397
|
return read;
|
|
56398
|
-
}(
|
|
56399
|
-
|
|
56398
|
+
}(fs13.read);
|
|
56399
|
+
fs13.readSync = typeof fs13.readSync !== "function" ? fs13.readSync : /* @__PURE__ */ function(fs$readSync) {
|
|
56400
56400
|
return function(fd, buffer, offset, length, position) {
|
|
56401
56401
|
var eagCounter = 0;
|
|
56402
56402
|
while (true) {
|
|
56403
56403
|
try {
|
|
56404
|
-
return fs$readSync.call(
|
|
56404
|
+
return fs$readSync.call(fs13, fd, buffer, offset, length, position);
|
|
56405
56405
|
} catch (er) {
|
|
56406
56406
|
if (er.code === "EAGAIN" && eagCounter < 10) {
|
|
56407
56407
|
eagCounter++;
|
|
@@ -56411,11 +56411,11 @@ var require_polyfills = __commonJS({
|
|
|
56411
56411
|
}
|
|
56412
56412
|
}
|
|
56413
56413
|
};
|
|
56414
|
-
}(
|
|
56415
|
-
function patchLchmod(
|
|
56416
|
-
|
|
56417
|
-
|
|
56418
|
-
|
|
56414
|
+
}(fs13.readSync);
|
|
56415
|
+
function patchLchmod(fs14) {
|
|
56416
|
+
fs14.lchmod = function(path19, mode, callback) {
|
|
56417
|
+
fs14.open(
|
|
56418
|
+
path19,
|
|
56419
56419
|
constants3.O_WRONLY | constants3.O_SYMLINK,
|
|
56420
56420
|
mode,
|
|
56421
56421
|
function(err, fd) {
|
|
@@ -56423,80 +56423,80 @@ var require_polyfills = __commonJS({
|
|
|
56423
56423
|
if (callback) callback(err);
|
|
56424
56424
|
return;
|
|
56425
56425
|
}
|
|
56426
|
-
|
|
56427
|
-
|
|
56426
|
+
fs14.fchmod(fd, mode, function(err2) {
|
|
56427
|
+
fs14.close(fd, function(err22) {
|
|
56428
56428
|
if (callback) callback(err2 || err22);
|
|
56429
56429
|
});
|
|
56430
56430
|
});
|
|
56431
56431
|
}
|
|
56432
56432
|
);
|
|
56433
56433
|
};
|
|
56434
|
-
|
|
56435
|
-
var fd =
|
|
56434
|
+
fs14.lchmodSync = function(path19, mode) {
|
|
56435
|
+
var fd = fs14.openSync(path19, constants3.O_WRONLY | constants3.O_SYMLINK, mode);
|
|
56436
56436
|
var threw = true;
|
|
56437
56437
|
var ret;
|
|
56438
56438
|
try {
|
|
56439
|
-
ret =
|
|
56439
|
+
ret = fs14.fchmodSync(fd, mode);
|
|
56440
56440
|
threw = false;
|
|
56441
56441
|
} finally {
|
|
56442
56442
|
if (threw) {
|
|
56443
56443
|
try {
|
|
56444
|
-
|
|
56444
|
+
fs14.closeSync(fd);
|
|
56445
56445
|
} catch (er) {
|
|
56446
56446
|
}
|
|
56447
56447
|
} else {
|
|
56448
|
-
|
|
56448
|
+
fs14.closeSync(fd);
|
|
56449
56449
|
}
|
|
56450
56450
|
}
|
|
56451
56451
|
return ret;
|
|
56452
56452
|
};
|
|
56453
56453
|
}
|
|
56454
|
-
function patchLutimes(
|
|
56455
|
-
if (constants3.hasOwnProperty("O_SYMLINK") &&
|
|
56456
|
-
|
|
56457
|
-
|
|
56454
|
+
function patchLutimes(fs14) {
|
|
56455
|
+
if (constants3.hasOwnProperty("O_SYMLINK") && fs14.futimes) {
|
|
56456
|
+
fs14.lutimes = function(path19, at, mt, cb) {
|
|
56457
|
+
fs14.open(path19, constants3.O_SYMLINK, function(er, fd) {
|
|
56458
56458
|
if (er) {
|
|
56459
56459
|
if (cb) cb(er);
|
|
56460
56460
|
return;
|
|
56461
56461
|
}
|
|
56462
|
-
|
|
56463
|
-
|
|
56462
|
+
fs14.futimes(fd, at, mt, function(er2) {
|
|
56463
|
+
fs14.close(fd, function(er22) {
|
|
56464
56464
|
if (cb) cb(er2 || er22);
|
|
56465
56465
|
});
|
|
56466
56466
|
});
|
|
56467
56467
|
});
|
|
56468
56468
|
};
|
|
56469
|
-
|
|
56470
|
-
var fd =
|
|
56469
|
+
fs14.lutimesSync = function(path19, at, mt) {
|
|
56470
|
+
var fd = fs14.openSync(path19, constants3.O_SYMLINK);
|
|
56471
56471
|
var ret;
|
|
56472
56472
|
var threw = true;
|
|
56473
56473
|
try {
|
|
56474
|
-
ret =
|
|
56474
|
+
ret = fs14.futimesSync(fd, at, mt);
|
|
56475
56475
|
threw = false;
|
|
56476
56476
|
} finally {
|
|
56477
56477
|
if (threw) {
|
|
56478
56478
|
try {
|
|
56479
|
-
|
|
56479
|
+
fs14.closeSync(fd);
|
|
56480
56480
|
} catch (er) {
|
|
56481
56481
|
}
|
|
56482
56482
|
} else {
|
|
56483
|
-
|
|
56483
|
+
fs14.closeSync(fd);
|
|
56484
56484
|
}
|
|
56485
56485
|
}
|
|
56486
56486
|
return ret;
|
|
56487
56487
|
};
|
|
56488
|
-
} else if (
|
|
56489
|
-
|
|
56488
|
+
} else if (fs14.futimes) {
|
|
56489
|
+
fs14.lutimes = function(_a4, _b3, _c2, cb) {
|
|
56490
56490
|
if (cb) process.nextTick(cb);
|
|
56491
56491
|
};
|
|
56492
|
-
|
|
56492
|
+
fs14.lutimesSync = function() {
|
|
56493
56493
|
};
|
|
56494
56494
|
}
|
|
56495
56495
|
}
|
|
56496
56496
|
function chmodFix(orig) {
|
|
56497
56497
|
if (!orig) return orig;
|
|
56498
56498
|
return function(target, mode, cb) {
|
|
56499
|
-
return orig.call(
|
|
56499
|
+
return orig.call(fs13, target, mode, function(er) {
|
|
56500
56500
|
if (chownErOk(er)) er = null;
|
|
56501
56501
|
if (cb) cb.apply(this, arguments);
|
|
56502
56502
|
});
|
|
@@ -56506,7 +56506,7 @@ var require_polyfills = __commonJS({
|
|
|
56506
56506
|
if (!orig) return orig;
|
|
56507
56507
|
return function(target, mode) {
|
|
56508
56508
|
try {
|
|
56509
|
-
return orig.call(
|
|
56509
|
+
return orig.call(fs13, target, mode);
|
|
56510
56510
|
} catch (er) {
|
|
56511
56511
|
if (!chownErOk(er)) throw er;
|
|
56512
56512
|
}
|
|
@@ -56515,7 +56515,7 @@ var require_polyfills = __commonJS({
|
|
|
56515
56515
|
function chownFix(orig) {
|
|
56516
56516
|
if (!orig) return orig;
|
|
56517
56517
|
return function(target, uid, gid, cb) {
|
|
56518
|
-
return orig.call(
|
|
56518
|
+
return orig.call(fs13, target, uid, gid, function(er) {
|
|
56519
56519
|
if (chownErOk(er)) er = null;
|
|
56520
56520
|
if (cb) cb.apply(this, arguments);
|
|
56521
56521
|
});
|
|
@@ -56525,7 +56525,7 @@ var require_polyfills = __commonJS({
|
|
|
56525
56525
|
if (!orig) return orig;
|
|
56526
56526
|
return function(target, uid, gid) {
|
|
56527
56527
|
try {
|
|
56528
|
-
return orig.call(
|
|
56528
|
+
return orig.call(fs13, target, uid, gid);
|
|
56529
56529
|
} catch (er) {
|
|
56530
56530
|
if (!chownErOk(er)) throw er;
|
|
56531
56531
|
}
|
|
@@ -56545,13 +56545,13 @@ var require_polyfills = __commonJS({
|
|
|
56545
56545
|
}
|
|
56546
56546
|
if (cb) cb.apply(this, arguments);
|
|
56547
56547
|
}
|
|
56548
|
-
return options ? orig.call(
|
|
56548
|
+
return options ? orig.call(fs13, target, options, callback) : orig.call(fs13, target, callback);
|
|
56549
56549
|
};
|
|
56550
56550
|
}
|
|
56551
56551
|
function statFixSync(orig) {
|
|
56552
56552
|
if (!orig) return orig;
|
|
56553
56553
|
return function(target, options) {
|
|
56554
|
-
var stats = options ? orig.call(
|
|
56554
|
+
var stats = options ? orig.call(fs13, target, options) : orig.call(fs13, target);
|
|
56555
56555
|
if (stats) {
|
|
56556
56556
|
if (stats.uid < 0) stats.uid += 4294967296;
|
|
56557
56557
|
if (stats.gid < 0) stats.gid += 4294967296;
|
|
@@ -56581,16 +56581,16 @@ var require_legacy_streams = __commonJS({
|
|
|
56581
56581
|
"use strict";
|
|
56582
56582
|
var Stream2 = require("stream").Stream;
|
|
56583
56583
|
module2.exports = legacy;
|
|
56584
|
-
function legacy(
|
|
56584
|
+
function legacy(fs13) {
|
|
56585
56585
|
return {
|
|
56586
56586
|
ReadStream,
|
|
56587
56587
|
WriteStream
|
|
56588
56588
|
};
|
|
56589
|
-
function ReadStream(
|
|
56590
|
-
if (!(this instanceof ReadStream)) return new ReadStream(
|
|
56589
|
+
function ReadStream(path19, options) {
|
|
56590
|
+
if (!(this instanceof ReadStream)) return new ReadStream(path19, options);
|
|
56591
56591
|
Stream2.call(this);
|
|
56592
56592
|
var self2 = this;
|
|
56593
|
-
this.path =
|
|
56593
|
+
this.path = path19;
|
|
56594
56594
|
this.fd = null;
|
|
56595
56595
|
this.readable = true;
|
|
56596
56596
|
this.paused = false;
|
|
@@ -56624,7 +56624,7 @@ var require_legacy_streams = __commonJS({
|
|
|
56624
56624
|
});
|
|
56625
56625
|
return;
|
|
56626
56626
|
}
|
|
56627
|
-
|
|
56627
|
+
fs13.open(this.path, this.flags, this.mode, function(err, fd) {
|
|
56628
56628
|
if (err) {
|
|
56629
56629
|
self2.emit("error", err);
|
|
56630
56630
|
self2.readable = false;
|
|
@@ -56635,10 +56635,10 @@ var require_legacy_streams = __commonJS({
|
|
|
56635
56635
|
self2._read();
|
|
56636
56636
|
});
|
|
56637
56637
|
}
|
|
56638
|
-
function WriteStream(
|
|
56639
|
-
if (!(this instanceof WriteStream)) return new WriteStream(
|
|
56638
|
+
function WriteStream(path19, options) {
|
|
56639
|
+
if (!(this instanceof WriteStream)) return new WriteStream(path19, options);
|
|
56640
56640
|
Stream2.call(this);
|
|
56641
|
-
this.path =
|
|
56641
|
+
this.path = path19;
|
|
56642
56642
|
this.fd = null;
|
|
56643
56643
|
this.writable = true;
|
|
56644
56644
|
this.flags = "w";
|
|
@@ -56663,7 +56663,7 @@ var require_legacy_streams = __commonJS({
|
|
|
56663
56663
|
this.busy = false;
|
|
56664
56664
|
this._queue = [];
|
|
56665
56665
|
if (this.fd === null) {
|
|
56666
|
-
this._open =
|
|
56666
|
+
this._open = fs13.open;
|
|
56667
56667
|
this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
|
|
56668
56668
|
this.flush();
|
|
56669
56669
|
}
|
|
@@ -56699,7 +56699,7 @@ var require_clone2 = __commonJS({
|
|
|
56699
56699
|
var require_graceful_fs = __commonJS({
|
|
56700
56700
|
"../../node_modules/graceful-fs/graceful-fs.js"(exports2, module2) {
|
|
56701
56701
|
"use strict";
|
|
56702
|
-
var
|
|
56702
|
+
var fs13 = require("fs");
|
|
56703
56703
|
var polyfills = require_polyfills();
|
|
56704
56704
|
var legacy = require_legacy_streams();
|
|
56705
56705
|
var clone = require_clone2();
|
|
@@ -56731,12 +56731,12 @@ var require_graceful_fs = __commonJS({
|
|
|
56731
56731
|
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
56732
56732
|
console.error(m);
|
|
56733
56733
|
};
|
|
56734
|
-
if (!
|
|
56734
|
+
if (!fs13[gracefulQueue]) {
|
|
56735
56735
|
queue2 = global[gracefulQueue] || [];
|
|
56736
|
-
publishQueue(
|
|
56737
|
-
|
|
56736
|
+
publishQueue(fs13, queue2);
|
|
56737
|
+
fs13.close = function(fs$close) {
|
|
56738
56738
|
function close(fd, cb) {
|
|
56739
|
-
return fs$close.call(
|
|
56739
|
+
return fs$close.call(fs13, fd, function(err) {
|
|
56740
56740
|
if (!err) {
|
|
56741
56741
|
resetQueue();
|
|
56742
56742
|
}
|
|
@@ -56748,48 +56748,48 @@ var require_graceful_fs = __commonJS({
|
|
|
56748
56748
|
value: fs$close
|
|
56749
56749
|
});
|
|
56750
56750
|
return close;
|
|
56751
|
-
}(
|
|
56752
|
-
|
|
56751
|
+
}(fs13.close);
|
|
56752
|
+
fs13.closeSync = function(fs$closeSync) {
|
|
56753
56753
|
function closeSync(fd) {
|
|
56754
|
-
fs$closeSync.apply(
|
|
56754
|
+
fs$closeSync.apply(fs13, arguments);
|
|
56755
56755
|
resetQueue();
|
|
56756
56756
|
}
|
|
56757
56757
|
Object.defineProperty(closeSync, previousSymbol, {
|
|
56758
56758
|
value: fs$closeSync
|
|
56759
56759
|
});
|
|
56760
56760
|
return closeSync;
|
|
56761
|
-
}(
|
|
56761
|
+
}(fs13.closeSync);
|
|
56762
56762
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
|
|
56763
56763
|
process.on("exit", function() {
|
|
56764
|
-
debug(
|
|
56765
|
-
require("assert").equal(
|
|
56764
|
+
debug(fs13[gracefulQueue]);
|
|
56765
|
+
require("assert").equal(fs13[gracefulQueue].length, 0);
|
|
56766
56766
|
});
|
|
56767
56767
|
}
|
|
56768
56768
|
}
|
|
56769
56769
|
var queue2;
|
|
56770
56770
|
if (!global[gracefulQueue]) {
|
|
56771
|
-
publishQueue(global,
|
|
56772
|
-
}
|
|
56773
|
-
module2.exports = patch(clone(
|
|
56774
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !
|
|
56775
|
-
module2.exports = patch(
|
|
56776
|
-
|
|
56777
|
-
}
|
|
56778
|
-
function patch(
|
|
56779
|
-
polyfills(
|
|
56780
|
-
|
|
56781
|
-
|
|
56782
|
-
|
|
56783
|
-
var fs$readFile =
|
|
56784
|
-
|
|
56785
|
-
function readFile(
|
|
56771
|
+
publishQueue(global, fs13[gracefulQueue]);
|
|
56772
|
+
}
|
|
56773
|
+
module2.exports = patch(clone(fs13));
|
|
56774
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs13.__patched) {
|
|
56775
|
+
module2.exports = patch(fs13);
|
|
56776
|
+
fs13.__patched = true;
|
|
56777
|
+
}
|
|
56778
|
+
function patch(fs14) {
|
|
56779
|
+
polyfills(fs14);
|
|
56780
|
+
fs14.gracefulify = patch;
|
|
56781
|
+
fs14.createReadStream = createReadStream3;
|
|
56782
|
+
fs14.createWriteStream = createWriteStream3;
|
|
56783
|
+
var fs$readFile = fs14.readFile;
|
|
56784
|
+
fs14.readFile = readFile;
|
|
56785
|
+
function readFile(path19, options, cb) {
|
|
56786
56786
|
if (typeof options === "function")
|
|
56787
56787
|
cb = options, options = null;
|
|
56788
|
-
return go$readFile(
|
|
56789
|
-
function go$readFile(
|
|
56790
|
-
return fs$readFile(
|
|
56788
|
+
return go$readFile(path19, options, cb);
|
|
56789
|
+
function go$readFile(path20, options2, cb2, startTime) {
|
|
56790
|
+
return fs$readFile(path20, options2, function(err) {
|
|
56791
56791
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
56792
|
-
enqueue([go$readFile, [
|
|
56792
|
+
enqueue([go$readFile, [path20, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
56793
56793
|
else {
|
|
56794
56794
|
if (typeof cb2 === "function")
|
|
56795
56795
|
cb2.apply(this, arguments);
|
|
@@ -56797,16 +56797,16 @@ var require_graceful_fs = __commonJS({
|
|
|
56797
56797
|
});
|
|
56798
56798
|
}
|
|
56799
56799
|
}
|
|
56800
|
-
var fs$writeFile =
|
|
56801
|
-
|
|
56802
|
-
function writeFile(
|
|
56800
|
+
var fs$writeFile = fs14.writeFile;
|
|
56801
|
+
fs14.writeFile = writeFile;
|
|
56802
|
+
function writeFile(path19, data, options, cb) {
|
|
56803
56803
|
if (typeof options === "function")
|
|
56804
56804
|
cb = options, options = null;
|
|
56805
|
-
return go$writeFile(
|
|
56806
|
-
function go$writeFile(
|
|
56807
|
-
return fs$writeFile(
|
|
56805
|
+
return go$writeFile(path19, data, options, cb);
|
|
56806
|
+
function go$writeFile(path20, data2, options2, cb2, startTime) {
|
|
56807
|
+
return fs$writeFile(path20, data2, options2, function(err) {
|
|
56808
56808
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
56809
|
-
enqueue([go$writeFile, [
|
|
56809
|
+
enqueue([go$writeFile, [path20, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
56810
56810
|
else {
|
|
56811
56811
|
if (typeof cb2 === "function")
|
|
56812
56812
|
cb2.apply(this, arguments);
|
|
@@ -56814,17 +56814,17 @@ var require_graceful_fs = __commonJS({
|
|
|
56814
56814
|
});
|
|
56815
56815
|
}
|
|
56816
56816
|
}
|
|
56817
|
-
var fs$appendFile =
|
|
56817
|
+
var fs$appendFile = fs14.appendFile;
|
|
56818
56818
|
if (fs$appendFile)
|
|
56819
|
-
|
|
56820
|
-
function appendFile(
|
|
56819
|
+
fs14.appendFile = appendFile;
|
|
56820
|
+
function appendFile(path19, data, options, cb) {
|
|
56821
56821
|
if (typeof options === "function")
|
|
56822
56822
|
cb = options, options = null;
|
|
56823
|
-
return go$appendFile(
|
|
56824
|
-
function go$appendFile(
|
|
56825
|
-
return fs$appendFile(
|
|
56823
|
+
return go$appendFile(path19, data, options, cb);
|
|
56824
|
+
function go$appendFile(path20, data2, options2, cb2, startTime) {
|
|
56825
|
+
return fs$appendFile(path20, data2, options2, function(err) {
|
|
56826
56826
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
56827
|
-
enqueue([go$appendFile, [
|
|
56827
|
+
enqueue([go$appendFile, [path20, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
56828
56828
|
else {
|
|
56829
56829
|
if (typeof cb2 === "function")
|
|
56830
56830
|
cb2.apply(this, arguments);
|
|
@@ -56832,9 +56832,9 @@ var require_graceful_fs = __commonJS({
|
|
|
56832
56832
|
});
|
|
56833
56833
|
}
|
|
56834
56834
|
}
|
|
56835
|
-
var fs$copyFile =
|
|
56835
|
+
var fs$copyFile = fs14.copyFile;
|
|
56836
56836
|
if (fs$copyFile)
|
|
56837
|
-
|
|
56837
|
+
fs14.copyFile = copyFile;
|
|
56838
56838
|
function copyFile(src, dest, flags, cb) {
|
|
56839
56839
|
if (typeof flags === "function") {
|
|
56840
56840
|
cb = flags;
|
|
@@ -56852,34 +56852,34 @@ var require_graceful_fs = __commonJS({
|
|
|
56852
56852
|
});
|
|
56853
56853
|
}
|
|
56854
56854
|
}
|
|
56855
|
-
var fs$readdir =
|
|
56856
|
-
|
|
56855
|
+
var fs$readdir = fs14.readdir;
|
|
56856
|
+
fs14.readdir = readdir2;
|
|
56857
56857
|
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
56858
|
-
function readdir2(
|
|
56858
|
+
function readdir2(path19, options, cb) {
|
|
56859
56859
|
if (typeof options === "function")
|
|
56860
56860
|
cb = options, options = null;
|
|
56861
|
-
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(
|
|
56862
|
-
return fs$readdir(
|
|
56863
|
-
|
|
56861
|
+
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path20, options2, cb2, startTime) {
|
|
56862
|
+
return fs$readdir(path20, fs$readdirCallback(
|
|
56863
|
+
path20,
|
|
56864
56864
|
options2,
|
|
56865
56865
|
cb2,
|
|
56866
56866
|
startTime
|
|
56867
56867
|
));
|
|
56868
|
-
} : function go$readdir2(
|
|
56869
|
-
return fs$readdir(
|
|
56870
|
-
|
|
56868
|
+
} : function go$readdir2(path20, options2, cb2, startTime) {
|
|
56869
|
+
return fs$readdir(path20, options2, fs$readdirCallback(
|
|
56870
|
+
path20,
|
|
56871
56871
|
options2,
|
|
56872
56872
|
cb2,
|
|
56873
56873
|
startTime
|
|
56874
56874
|
));
|
|
56875
56875
|
};
|
|
56876
|
-
return go$readdir(
|
|
56877
|
-
function fs$readdirCallback(
|
|
56876
|
+
return go$readdir(path19, options, cb);
|
|
56877
|
+
function fs$readdirCallback(path20, options2, cb2, startTime) {
|
|
56878
56878
|
return function(err, files) {
|
|
56879
56879
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
56880
56880
|
enqueue([
|
|
56881
56881
|
go$readdir,
|
|
56882
|
-
[
|
|
56882
|
+
[path20, options2, cb2],
|
|
56883
56883
|
err,
|
|
56884
56884
|
startTime || Date.now(),
|
|
56885
56885
|
Date.now()
|
|
@@ -56894,21 +56894,21 @@ var require_graceful_fs = __commonJS({
|
|
|
56894
56894
|
}
|
|
56895
56895
|
}
|
|
56896
56896
|
if (process.version.substr(0, 4) === "v0.8") {
|
|
56897
|
-
var legStreams = legacy(
|
|
56897
|
+
var legStreams = legacy(fs14);
|
|
56898
56898
|
ReadStream = legStreams.ReadStream;
|
|
56899
56899
|
WriteStream = legStreams.WriteStream;
|
|
56900
56900
|
}
|
|
56901
|
-
var fs$ReadStream =
|
|
56901
|
+
var fs$ReadStream = fs14.ReadStream;
|
|
56902
56902
|
if (fs$ReadStream) {
|
|
56903
56903
|
ReadStream.prototype = Object.create(fs$ReadStream.prototype);
|
|
56904
56904
|
ReadStream.prototype.open = ReadStream$open;
|
|
56905
56905
|
}
|
|
56906
|
-
var fs$WriteStream =
|
|
56906
|
+
var fs$WriteStream = fs14.WriteStream;
|
|
56907
56907
|
if (fs$WriteStream) {
|
|
56908
56908
|
WriteStream.prototype = Object.create(fs$WriteStream.prototype);
|
|
56909
56909
|
WriteStream.prototype.open = WriteStream$open;
|
|
56910
56910
|
}
|
|
56911
|
-
Object.defineProperty(
|
|
56911
|
+
Object.defineProperty(fs14, "ReadStream", {
|
|
56912
56912
|
get: function() {
|
|
56913
56913
|
return ReadStream;
|
|
56914
56914
|
},
|
|
@@ -56918,7 +56918,7 @@ var require_graceful_fs = __commonJS({
|
|
|
56918
56918
|
enumerable: true,
|
|
56919
56919
|
configurable: true
|
|
56920
56920
|
});
|
|
56921
|
-
Object.defineProperty(
|
|
56921
|
+
Object.defineProperty(fs14, "WriteStream", {
|
|
56922
56922
|
get: function() {
|
|
56923
56923
|
return WriteStream;
|
|
56924
56924
|
},
|
|
@@ -56929,7 +56929,7 @@ var require_graceful_fs = __commonJS({
|
|
|
56929
56929
|
configurable: true
|
|
56930
56930
|
});
|
|
56931
56931
|
var FileReadStream = ReadStream;
|
|
56932
|
-
Object.defineProperty(
|
|
56932
|
+
Object.defineProperty(fs14, "FileReadStream", {
|
|
56933
56933
|
get: function() {
|
|
56934
56934
|
return FileReadStream;
|
|
56935
56935
|
},
|
|
@@ -56940,7 +56940,7 @@ var require_graceful_fs = __commonJS({
|
|
|
56940
56940
|
configurable: true
|
|
56941
56941
|
});
|
|
56942
56942
|
var FileWriteStream = WriteStream;
|
|
56943
|
-
Object.defineProperty(
|
|
56943
|
+
Object.defineProperty(fs14, "FileWriteStream", {
|
|
56944
56944
|
get: function() {
|
|
56945
56945
|
return FileWriteStream;
|
|
56946
56946
|
},
|
|
@@ -56950,7 +56950,7 @@ var require_graceful_fs = __commonJS({
|
|
|
56950
56950
|
enumerable: true,
|
|
56951
56951
|
configurable: true
|
|
56952
56952
|
});
|
|
56953
|
-
function ReadStream(
|
|
56953
|
+
function ReadStream(path19, options) {
|
|
56954
56954
|
if (this instanceof ReadStream)
|
|
56955
56955
|
return fs$ReadStream.apply(this, arguments), this;
|
|
56956
56956
|
else
|
|
@@ -56970,7 +56970,7 @@ var require_graceful_fs = __commonJS({
|
|
|
56970
56970
|
}
|
|
56971
56971
|
});
|
|
56972
56972
|
}
|
|
56973
|
-
function WriteStream(
|
|
56973
|
+
function WriteStream(path19, options) {
|
|
56974
56974
|
if (this instanceof WriteStream)
|
|
56975
56975
|
return fs$WriteStream.apply(this, arguments), this;
|
|
56976
56976
|
else
|
|
@@ -56988,22 +56988,22 @@ var require_graceful_fs = __commonJS({
|
|
|
56988
56988
|
}
|
|
56989
56989
|
});
|
|
56990
56990
|
}
|
|
56991
|
-
function createReadStream3(
|
|
56992
|
-
return new
|
|
56991
|
+
function createReadStream3(path19, options) {
|
|
56992
|
+
return new fs14.ReadStream(path19, options);
|
|
56993
56993
|
}
|
|
56994
|
-
function createWriteStream3(
|
|
56995
|
-
return new
|
|
56994
|
+
function createWriteStream3(path19, options) {
|
|
56995
|
+
return new fs14.WriteStream(path19, options);
|
|
56996
56996
|
}
|
|
56997
|
-
var fs$open =
|
|
56998
|
-
|
|
56999
|
-
function open(
|
|
56997
|
+
var fs$open = fs14.open;
|
|
56998
|
+
fs14.open = open;
|
|
56999
|
+
function open(path19, flags, mode, cb) {
|
|
57000
57000
|
if (typeof mode === "function")
|
|
57001
57001
|
cb = mode, mode = null;
|
|
57002
|
-
return go$open(
|
|
57003
|
-
function go$open(
|
|
57004
|
-
return fs$open(
|
|
57002
|
+
return go$open(path19, flags, mode, cb);
|
|
57003
|
+
function go$open(path20, flags2, mode2, cb2, startTime) {
|
|
57004
|
+
return fs$open(path20, flags2, mode2, function(err, fd) {
|
|
57005
57005
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
57006
|
-
enqueue([go$open, [
|
|
57006
|
+
enqueue([go$open, [path20, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
57007
57007
|
else {
|
|
57008
57008
|
if (typeof cb2 === "function")
|
|
57009
57009
|
cb2.apply(this, arguments);
|
|
@@ -57011,20 +57011,20 @@ var require_graceful_fs = __commonJS({
|
|
|
57011
57011
|
});
|
|
57012
57012
|
}
|
|
57013
57013
|
}
|
|
57014
|
-
return
|
|
57014
|
+
return fs14;
|
|
57015
57015
|
}
|
|
57016
57016
|
function enqueue(elem) {
|
|
57017
57017
|
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
57018
|
-
|
|
57018
|
+
fs13[gracefulQueue].push(elem);
|
|
57019
57019
|
retry2();
|
|
57020
57020
|
}
|
|
57021
57021
|
var retryTimer;
|
|
57022
57022
|
function resetQueue() {
|
|
57023
57023
|
var now = Date.now();
|
|
57024
|
-
for (var i = 0; i <
|
|
57025
|
-
if (
|
|
57026
|
-
|
|
57027
|
-
|
|
57024
|
+
for (var i = 0; i < fs13[gracefulQueue].length; ++i) {
|
|
57025
|
+
if (fs13[gracefulQueue][i].length > 2) {
|
|
57026
|
+
fs13[gracefulQueue][i][3] = now;
|
|
57027
|
+
fs13[gracefulQueue][i][4] = now;
|
|
57028
57028
|
}
|
|
57029
57029
|
}
|
|
57030
57030
|
retry2();
|
|
@@ -57032,9 +57032,9 @@ var require_graceful_fs = __commonJS({
|
|
|
57032
57032
|
function retry2() {
|
|
57033
57033
|
clearTimeout(retryTimer);
|
|
57034
57034
|
retryTimer = void 0;
|
|
57035
|
-
if (
|
|
57035
|
+
if (fs13[gracefulQueue].length === 0)
|
|
57036
57036
|
return;
|
|
57037
|
-
var elem =
|
|
57037
|
+
var elem = fs13[gracefulQueue].shift();
|
|
57038
57038
|
var fn = elem[0];
|
|
57039
57039
|
var args = elem[1];
|
|
57040
57040
|
var err = elem[2];
|
|
@@ -57056,7 +57056,7 @@ var require_graceful_fs = __commonJS({
|
|
|
57056
57056
|
debug("RETRY", fn.name, args);
|
|
57057
57057
|
fn.apply(null, args.concat([startTime]));
|
|
57058
57058
|
} else {
|
|
57059
|
-
|
|
57059
|
+
fs13[gracefulQueue].push(elem);
|
|
57060
57060
|
}
|
|
57061
57061
|
}
|
|
57062
57062
|
if (retryTimer === void 0) {
|
|
@@ -57318,7 +57318,7 @@ var require_BufferList2 = __commonJS({
|
|
|
57318
57318
|
this.head = this.tail = null;
|
|
57319
57319
|
this.length = 0;
|
|
57320
57320
|
};
|
|
57321
|
-
BufferList.prototype.join = function
|
|
57321
|
+
BufferList.prototype.join = function join5(s) {
|
|
57322
57322
|
if (this.length === 0) return "";
|
|
57323
57323
|
var p = this.head;
|
|
57324
57324
|
var ret = "" + p.data;
|
|
@@ -59063,22 +59063,22 @@ var require_lazystream = __commonJS({
|
|
|
59063
59063
|
var require_normalize_path = __commonJS({
|
|
59064
59064
|
"../../node_modules/normalize-path/index.js"(exports2, module2) {
|
|
59065
59065
|
"use strict";
|
|
59066
|
-
module2.exports = function(
|
|
59067
|
-
if (typeof
|
|
59066
|
+
module2.exports = function(path19, stripTrailing) {
|
|
59067
|
+
if (typeof path19 !== "string") {
|
|
59068
59068
|
throw new TypeError("expected path to be a string");
|
|
59069
59069
|
}
|
|
59070
|
-
if (
|
|
59071
|
-
var len =
|
|
59072
|
-
if (len <= 1) return
|
|
59070
|
+
if (path19 === "\\" || path19 === "/") return "/";
|
|
59071
|
+
var len = path19.length;
|
|
59072
|
+
if (len <= 1) return path19;
|
|
59073
59073
|
var prefix = "";
|
|
59074
|
-
if (len > 4 &&
|
|
59075
|
-
var ch =
|
|
59076
|
-
if ((ch === "?" || ch === ".") &&
|
|
59077
|
-
|
|
59074
|
+
if (len > 4 && path19[3] === "\\") {
|
|
59075
|
+
var ch = path19[2];
|
|
59076
|
+
if ((ch === "?" || ch === ".") && path19.slice(0, 2) === "\\\\") {
|
|
59077
|
+
path19 = path19.slice(2);
|
|
59078
59078
|
prefix = "//";
|
|
59079
59079
|
}
|
|
59080
59080
|
}
|
|
59081
|
-
var segs =
|
|
59081
|
+
var segs = path19.split(/[/\\]+/);
|
|
59082
59082
|
if (stripTrailing !== false && segs[segs.length - 1] === "") {
|
|
59083
59083
|
segs.pop();
|
|
59084
59084
|
}
|
|
@@ -67605,11 +67605,11 @@ var require_commonjs = __commonJS({
|
|
|
67605
67605
|
return (f) => f.length === len && f !== "." && f !== "..";
|
|
67606
67606
|
};
|
|
67607
67607
|
var defaultPlatform4 = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
|
|
67608
|
-
var
|
|
67608
|
+
var path19 = {
|
|
67609
67609
|
win32: { sep: "\\" },
|
|
67610
67610
|
posix: { sep: "/" }
|
|
67611
67611
|
};
|
|
67612
|
-
exports2.sep = defaultPlatform4 === "win32" ?
|
|
67612
|
+
exports2.sep = defaultPlatform4 === "win32" ? path19.win32.sep : path19.posix.sep;
|
|
67613
67613
|
exports2.minimatch.sep = exports2.sep;
|
|
67614
67614
|
exports2.GLOBSTAR = Symbol("globstar **");
|
|
67615
67615
|
exports2.minimatch.GLOBSTAR = exports2.GLOBSTAR;
|
|
@@ -70930,13 +70930,13 @@ var require_commonjs4 = __commonJS({
|
|
|
70930
70930
|
/**
|
|
70931
70931
|
* Get the Path object referenced by the string path, resolved from this Path
|
|
70932
70932
|
*/
|
|
70933
|
-
resolve(
|
|
70933
|
+
resolve(path19) {
|
|
70934
70934
|
var _a4;
|
|
70935
|
-
if (!
|
|
70935
|
+
if (!path19) {
|
|
70936
70936
|
return this;
|
|
70937
70937
|
}
|
|
70938
|
-
const rootPath = this.getRootString(
|
|
70939
|
-
const dir2 =
|
|
70938
|
+
const rootPath = this.getRootString(path19);
|
|
70939
|
+
const dir2 = path19.substring(rootPath.length);
|
|
70940
70940
|
const dirParts = dir2.split(this.splitSep);
|
|
70941
70941
|
const result = rootPath ? __privateMethod(_a4 = this.getRoot(rootPath), _PathBase_instances2, resolveParts_fn2).call(_a4, dirParts) : __privateMethod(this, _PathBase_instances2, resolveParts_fn2).call(this, dirParts);
|
|
70942
70942
|
return result;
|
|
@@ -71725,8 +71725,8 @@ var require_commonjs4 = __commonJS({
|
|
|
71725
71725
|
/**
|
|
71726
71726
|
* @internal
|
|
71727
71727
|
*/
|
|
71728
|
-
getRootString(
|
|
71729
|
-
return node_path_1.win32.parse(
|
|
71728
|
+
getRootString(path19) {
|
|
71729
|
+
return node_path_1.win32.parse(path19).root;
|
|
71730
71730
|
}
|
|
71731
71731
|
/**
|
|
71732
71732
|
* @internal
|
|
@@ -71773,8 +71773,8 @@ var require_commonjs4 = __commonJS({
|
|
|
71773
71773
|
/**
|
|
71774
71774
|
* @internal
|
|
71775
71775
|
*/
|
|
71776
|
-
getRootString(
|
|
71777
|
-
return
|
|
71776
|
+
getRootString(path19) {
|
|
71777
|
+
return path19.startsWith("/") ? "/" : "";
|
|
71778
71778
|
}
|
|
71779
71779
|
/**
|
|
71780
71780
|
* @internal
|
|
@@ -71799,7 +71799,7 @@ var require_commonjs4 = __commonJS({
|
|
|
71799
71799
|
*
|
|
71800
71800
|
* @internal
|
|
71801
71801
|
*/
|
|
71802
|
-
constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs:
|
|
71802
|
+
constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs: fs13 = defaultFS2 } = {}) {
|
|
71803
71803
|
/**
|
|
71804
71804
|
* The root Path entry for the current working directory of this Scurry
|
|
71805
71805
|
*/
|
|
@@ -71826,7 +71826,7 @@ var require_commonjs4 = __commonJS({
|
|
|
71826
71826
|
*/
|
|
71827
71827
|
__publicField(this, "nocase");
|
|
71828
71828
|
__privateAdd(this, _fs4);
|
|
71829
|
-
__privateSet(this, _fs4, fsFromOption2(
|
|
71829
|
+
__privateSet(this, _fs4, fsFromOption2(fs13));
|
|
71830
71830
|
if (cwd instanceof URL || cwd.startsWith("file://")) {
|
|
71831
71831
|
cwd = (0, node_url_1.fileURLToPath)(cwd);
|
|
71832
71832
|
}
|
|
@@ -71865,11 +71865,11 @@ var require_commonjs4 = __commonJS({
|
|
|
71865
71865
|
/**
|
|
71866
71866
|
* Get the depth of a provided path, string, or the cwd
|
|
71867
71867
|
*/
|
|
71868
|
-
depth(
|
|
71869
|
-
if (typeof
|
|
71870
|
-
|
|
71868
|
+
depth(path19 = this.cwd) {
|
|
71869
|
+
if (typeof path19 === "string") {
|
|
71870
|
+
path19 = this.cwd.resolve(path19);
|
|
71871
71871
|
}
|
|
71872
|
-
return
|
|
71872
|
+
return path19.depth();
|
|
71873
71873
|
}
|
|
71874
71874
|
/**
|
|
71875
71875
|
* Return the cache of child entries. Exposed so subclasses can create
|
|
@@ -72356,9 +72356,9 @@ var require_commonjs4 = __commonJS({
|
|
|
72356
72356
|
process10();
|
|
72357
72357
|
return results;
|
|
72358
72358
|
}
|
|
72359
|
-
chdir(
|
|
72359
|
+
chdir(path19 = this.cwd) {
|
|
72360
72360
|
const oldCwd = this.cwd;
|
|
72361
|
-
this.cwd = typeof
|
|
72361
|
+
this.cwd = typeof path19 === "string" ? this.cwd.resolve(path19) : path19;
|
|
72362
72362
|
this.cwd[setAsCwd2](oldCwd);
|
|
72363
72363
|
}
|
|
72364
72364
|
};
|
|
@@ -72389,8 +72389,8 @@ var require_commonjs4 = __commonJS({
|
|
|
72389
72389
|
/**
|
|
72390
72390
|
* @internal
|
|
72391
72391
|
*/
|
|
72392
|
-
newRoot(
|
|
72393
|
-
return new PathWin322(this.rootPath, IFDIR2, void 0, this.roots, this.nocase, this.childrenCache(), { fs:
|
|
72392
|
+
newRoot(fs13) {
|
|
72393
|
+
return new PathWin322(this.rootPath, IFDIR2, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs13 });
|
|
72394
72394
|
}
|
|
72395
72395
|
/**
|
|
72396
72396
|
* Return true if the provided path string is an absolute path
|
|
@@ -72419,8 +72419,8 @@ var require_commonjs4 = __commonJS({
|
|
|
72419
72419
|
/**
|
|
72420
72420
|
* @internal
|
|
72421
72421
|
*/
|
|
72422
|
-
newRoot(
|
|
72423
|
-
return new PathPosix2(this.rootPath, IFDIR2, void 0, this.roots, this.nocase, this.childrenCache(), { fs:
|
|
72422
|
+
newRoot(fs13) {
|
|
72423
|
+
return new PathPosix2(this.rootPath, IFDIR2, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs13 });
|
|
72424
72424
|
}
|
|
72425
72425
|
/**
|
|
72426
72426
|
* Return true if the provided path string is an absolute path
|
|
@@ -72765,8 +72765,8 @@ var require_processor = __commonJS({
|
|
|
72765
72765
|
}
|
|
72766
72766
|
// match, absolute, ifdir
|
|
72767
72767
|
entries() {
|
|
72768
|
-
return [...this.store.entries()].map(([
|
|
72769
|
-
|
|
72768
|
+
return [...this.store.entries()].map(([path19, n]) => [
|
|
72769
|
+
path19,
|
|
72770
72770
|
!!(n & 2),
|
|
72771
72771
|
!!(n & 1)
|
|
72772
72772
|
]);
|
|
@@ -72975,7 +72975,7 @@ var require_walker = __commonJS({
|
|
|
72975
72975
|
var makeIgnore2 = (ignore, opts) => typeof ignore === "string" ? new ignore_js_1.Ignore([ignore], opts) : Array.isArray(ignore) ? new ignore_js_1.Ignore(ignore, opts) : ignore;
|
|
72976
72976
|
var _onResume2, _ignore2, _sep2, _GlobUtil_instances2, ignored_fn2, childrenIgnored_fn2;
|
|
72977
72977
|
var GlobUtil2 = class {
|
|
72978
|
-
constructor(patterns,
|
|
72978
|
+
constructor(patterns, path19, opts) {
|
|
72979
72979
|
__privateAdd(this, _GlobUtil_instances2);
|
|
72980
72980
|
__publicField(this, "path");
|
|
72981
72981
|
__publicField(this, "patterns");
|
|
@@ -72991,7 +72991,7 @@ var require_walker = __commonJS({
|
|
|
72991
72991
|
__publicField(this, "includeChildMatches");
|
|
72992
72992
|
var _a4;
|
|
72993
72993
|
this.patterns = patterns;
|
|
72994
|
-
this.path =
|
|
72994
|
+
this.path = path19;
|
|
72995
72995
|
this.opts = opts;
|
|
72996
72996
|
__privateSet(this, _sep2, !opts.posix && opts.platform === "win32" ? "\\" : "/");
|
|
72997
72997
|
this.includeChildMatches = opts.includeChildMatches !== false;
|
|
@@ -73233,18 +73233,18 @@ var require_walker = __commonJS({
|
|
|
73233
73233
|
_ignore2 = new WeakMap();
|
|
73234
73234
|
_sep2 = new WeakMap();
|
|
73235
73235
|
_GlobUtil_instances2 = new WeakSet();
|
|
73236
|
-
ignored_fn2 = function(
|
|
73236
|
+
ignored_fn2 = function(path19) {
|
|
73237
73237
|
var _a4, _b3;
|
|
73238
|
-
return this.seen.has(
|
|
73238
|
+
return this.seen.has(path19) || !!((_b3 = (_a4 = __privateGet(this, _ignore2)) == null ? void 0 : _a4.ignored) == null ? void 0 : _b3.call(_a4, path19));
|
|
73239
73239
|
};
|
|
73240
|
-
childrenIgnored_fn2 = function(
|
|
73240
|
+
childrenIgnored_fn2 = function(path19) {
|
|
73241
73241
|
var _a4, _b3;
|
|
73242
|
-
return !!((_b3 = (_a4 = __privateGet(this, _ignore2)) == null ? void 0 : _a4.childrenIgnored) == null ? void 0 : _b3.call(_a4,
|
|
73242
|
+
return !!((_b3 = (_a4 = __privateGet(this, _ignore2)) == null ? void 0 : _a4.childrenIgnored) == null ? void 0 : _b3.call(_a4, path19));
|
|
73243
73243
|
};
|
|
73244
73244
|
exports2.GlobUtil = GlobUtil2;
|
|
73245
73245
|
var GlobWalker2 = class extends GlobUtil2 {
|
|
73246
|
-
constructor(patterns,
|
|
73247
|
-
super(patterns,
|
|
73246
|
+
constructor(patterns, path19, opts) {
|
|
73247
|
+
super(patterns, path19, opts);
|
|
73248
73248
|
__publicField(this, "matches", /* @__PURE__ */ new Set());
|
|
73249
73249
|
}
|
|
73250
73250
|
matchEmit(e) {
|
|
@@ -73286,8 +73286,8 @@ var require_walker = __commonJS({
|
|
|
73286
73286
|
};
|
|
73287
73287
|
exports2.GlobWalker = GlobWalker2;
|
|
73288
73288
|
var GlobStream2 = class extends GlobUtil2 {
|
|
73289
|
-
constructor(patterns,
|
|
73290
|
-
super(patterns,
|
|
73289
|
+
constructor(patterns, path19, opts) {
|
|
73290
|
+
super(patterns, path19, opts);
|
|
73291
73291
|
__publicField(this, "results");
|
|
73292
73292
|
this.results = new minipass_1.Minipass({
|
|
73293
73293
|
signal: this.signal,
|
|
@@ -73644,8 +73644,8 @@ var require_commonjs5 = __commonJS({
|
|
|
73644
73644
|
var require_file = __commonJS({
|
|
73645
73645
|
"node_modules/archiver-utils/file.js"(exports2, module2) {
|
|
73646
73646
|
"use strict";
|
|
73647
|
-
var
|
|
73648
|
-
var
|
|
73647
|
+
var fs13 = require_graceful_fs();
|
|
73648
|
+
var path19 = require("path");
|
|
73649
73649
|
var flatten = require_flatten();
|
|
73650
73650
|
var difference = require_difference();
|
|
73651
73651
|
var union = require_union();
|
|
@@ -73670,8 +73670,8 @@ var require_file = __commonJS({
|
|
|
73670
73670
|
return result;
|
|
73671
73671
|
};
|
|
73672
73672
|
file.exists = function() {
|
|
73673
|
-
var filepath =
|
|
73674
|
-
return
|
|
73673
|
+
var filepath = path19.join.apply(path19, arguments);
|
|
73674
|
+
return fs13.existsSync(filepath);
|
|
73675
73675
|
};
|
|
73676
73676
|
file.expand = function(...args) {
|
|
73677
73677
|
var options = isPlainObject3(args[0]) ? args.shift() : {};
|
|
@@ -73684,12 +73684,12 @@ var require_file = __commonJS({
|
|
|
73684
73684
|
});
|
|
73685
73685
|
if (options.filter) {
|
|
73686
73686
|
matches = matches.filter(function(filepath) {
|
|
73687
|
-
filepath =
|
|
73687
|
+
filepath = path19.join(options.cwd || "", filepath);
|
|
73688
73688
|
try {
|
|
73689
73689
|
if (typeof options.filter === "function") {
|
|
73690
73690
|
return options.filter(filepath);
|
|
73691
73691
|
} else {
|
|
73692
|
-
return
|
|
73692
|
+
return fs13.statSync(filepath)[options.filter]();
|
|
73693
73693
|
}
|
|
73694
73694
|
} catch (e) {
|
|
73695
73695
|
return false;
|
|
@@ -73701,7 +73701,7 @@ var require_file = __commonJS({
|
|
|
73701
73701
|
file.expandMapping = function(patterns, destBase, options) {
|
|
73702
73702
|
options = Object.assign({
|
|
73703
73703
|
rename: function(destBase2, destPath) {
|
|
73704
|
-
return
|
|
73704
|
+
return path19.join(destBase2 || "", destPath);
|
|
73705
73705
|
}
|
|
73706
73706
|
}, options);
|
|
73707
73707
|
var files = [];
|
|
@@ -73709,14 +73709,14 @@ var require_file = __commonJS({
|
|
|
73709
73709
|
file.expand(options, patterns).forEach(function(src) {
|
|
73710
73710
|
var destPath = src;
|
|
73711
73711
|
if (options.flatten) {
|
|
73712
|
-
destPath =
|
|
73712
|
+
destPath = path19.basename(destPath);
|
|
73713
73713
|
}
|
|
73714
73714
|
if (options.ext) {
|
|
73715
73715
|
destPath = destPath.replace(/(\.[^\/]*)?$/, options.ext);
|
|
73716
73716
|
}
|
|
73717
73717
|
var dest = options.rename(destBase, destPath, options);
|
|
73718
73718
|
if (options.cwd) {
|
|
73719
|
-
src =
|
|
73719
|
+
src = path19.join(options.cwd, src);
|
|
73720
73720
|
}
|
|
73721
73721
|
dest = dest.replace(pathSeparatorRe, "/");
|
|
73722
73722
|
src = src.replace(pathSeparatorRe, "/");
|
|
@@ -73798,8 +73798,8 @@ var require_file = __commonJS({
|
|
|
73798
73798
|
var require_archiver_utils = __commonJS({
|
|
73799
73799
|
"node_modules/archiver-utils/index.js"(exports2, module2) {
|
|
73800
73800
|
"use strict";
|
|
73801
|
-
var
|
|
73802
|
-
var
|
|
73801
|
+
var fs13 = require_graceful_fs();
|
|
73802
|
+
var path19 = require("path");
|
|
73803
73803
|
var isStream4 = require_is_stream();
|
|
73804
73804
|
var lazystream = require_lazystream();
|
|
73805
73805
|
var normalizePath = require_normalize_path();
|
|
@@ -73847,7 +73847,7 @@ var require_archiver_utils = __commonJS({
|
|
|
73847
73847
|
};
|
|
73848
73848
|
utils.lazyReadStream = function(filepath) {
|
|
73849
73849
|
return new lazystream.Readable(function() {
|
|
73850
|
-
return
|
|
73850
|
+
return fs13.createReadStream(filepath);
|
|
73851
73851
|
});
|
|
73852
73852
|
};
|
|
73853
73853
|
utils.normalizeInputSource = function(source) {
|
|
@@ -73875,7 +73875,7 @@ var require_archiver_utils = __commonJS({
|
|
|
73875
73875
|
callback = base;
|
|
73876
73876
|
base = dirpath;
|
|
73877
73877
|
}
|
|
73878
|
-
|
|
73878
|
+
fs13.readdir(dirpath, function(err, list) {
|
|
73879
73879
|
var i = 0;
|
|
73880
73880
|
var file;
|
|
73881
73881
|
var filepath;
|
|
@@ -73887,11 +73887,11 @@ var require_archiver_utils = __commonJS({
|
|
|
73887
73887
|
if (!file) {
|
|
73888
73888
|
return callback(null, results);
|
|
73889
73889
|
}
|
|
73890
|
-
filepath =
|
|
73891
|
-
|
|
73890
|
+
filepath = path19.join(dirpath, file);
|
|
73891
|
+
fs13.stat(filepath, function(err2, stats) {
|
|
73892
73892
|
results.push({
|
|
73893
73893
|
path: filepath,
|
|
73894
|
-
relative:
|
|
73894
|
+
relative: path19.relative(base, filepath).replace(/\\/g, "/"),
|
|
73895
73895
|
stats
|
|
73896
73896
|
});
|
|
73897
73897
|
if (stats && stats.isDirectory()) {
|
|
@@ -73952,10 +73952,10 @@ var require_error2 = __commonJS({
|
|
|
73952
73952
|
var require_core = __commonJS({
|
|
73953
73953
|
"node_modules/archiver/lib/core.js"(exports2, module2) {
|
|
73954
73954
|
"use strict";
|
|
73955
|
-
var
|
|
73955
|
+
var fs13 = require("fs");
|
|
73956
73956
|
var glob2 = require_readdir_glob();
|
|
73957
73957
|
var async = (init_async(), __toCommonJS(async_exports));
|
|
73958
|
-
var
|
|
73958
|
+
var path19 = require("path");
|
|
73959
73959
|
var util3 = require_archiver_utils();
|
|
73960
73960
|
var inherits2 = require("util").inherits;
|
|
73961
73961
|
var ArchiverError = require_error2();
|
|
@@ -74016,7 +74016,7 @@ var require_core = __commonJS({
|
|
|
74016
74016
|
data.sourcePath = filepath;
|
|
74017
74017
|
task.data = data;
|
|
74018
74018
|
this._entriesCount++;
|
|
74019
|
-
if (data.stats && data.stats instanceof
|
|
74019
|
+
if (data.stats && data.stats instanceof fs13.Stats) {
|
|
74020
74020
|
task = this._updateQueueTaskWithStats(task, data.stats);
|
|
74021
74021
|
if (task) {
|
|
74022
74022
|
if (data.stats.size) {
|
|
@@ -74187,7 +74187,7 @@ var require_core = __commonJS({
|
|
|
74187
74187
|
callback();
|
|
74188
74188
|
return;
|
|
74189
74189
|
}
|
|
74190
|
-
|
|
74190
|
+
fs13.lstat(task.filepath, function(err, stats) {
|
|
74191
74191
|
if (this._state.aborted) {
|
|
74192
74192
|
setImmediate(callback);
|
|
74193
74193
|
return;
|
|
@@ -74230,10 +74230,10 @@ var require_core = __commonJS({
|
|
|
74230
74230
|
task.data.sourceType = "buffer";
|
|
74231
74231
|
task.source = Buffer.concat([]);
|
|
74232
74232
|
} else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) {
|
|
74233
|
-
var linkPath =
|
|
74234
|
-
var dirName =
|
|
74233
|
+
var linkPath = fs13.readlinkSync(task.filepath);
|
|
74234
|
+
var dirName = path19.dirname(task.filepath);
|
|
74235
74235
|
task.data.type = "symlink";
|
|
74236
|
-
task.data.linkname =
|
|
74236
|
+
task.data.linkname = path19.relative(dirName, path19.resolve(dirName, linkPath));
|
|
74237
74237
|
task.data.sourceType = "buffer";
|
|
74238
74238
|
task.source = Buffer.concat([]);
|
|
74239
74239
|
} else {
|
|
@@ -79113,14 +79113,14 @@ var require_util6 = __commonJS({
|
|
|
79113
79113
|
}
|
|
79114
79114
|
const port = url2.port != null ? url2.port : url2.protocol === "https:" ? 443 : 80;
|
|
79115
79115
|
let origin2 = url2.origin != null ? url2.origin : `${url2.protocol}//${url2.hostname}:${port}`;
|
|
79116
|
-
let
|
|
79116
|
+
let path19 = url2.path != null ? url2.path : `${url2.pathname || ""}${url2.search || ""}`;
|
|
79117
79117
|
if (origin2.endsWith("/")) {
|
|
79118
79118
|
origin2 = origin2.substring(0, origin2.length - 1);
|
|
79119
79119
|
}
|
|
79120
|
-
if (
|
|
79121
|
-
|
|
79120
|
+
if (path19 && !path19.startsWith("/")) {
|
|
79121
|
+
path19 = `/${path19}`;
|
|
79122
79122
|
}
|
|
79123
|
-
url2 = new URL(origin2 +
|
|
79123
|
+
url2 = new URL(origin2 + path19);
|
|
79124
79124
|
}
|
|
79125
79125
|
return url2;
|
|
79126
79126
|
}
|
|
@@ -80734,20 +80734,20 @@ var require_parseParams = __commonJS({
|
|
|
80734
80734
|
var require_basename = __commonJS({
|
|
80735
80735
|
"../../node_modules/@fastify/busboy/lib/utils/basename.js"(exports2, module2) {
|
|
80736
80736
|
"use strict";
|
|
80737
|
-
module2.exports = function basename2(
|
|
80738
|
-
if (typeof
|
|
80737
|
+
module2.exports = function basename2(path19) {
|
|
80738
|
+
if (typeof path19 !== "string") {
|
|
80739
80739
|
return "";
|
|
80740
80740
|
}
|
|
80741
|
-
for (var i =
|
|
80742
|
-
switch (
|
|
80741
|
+
for (var i = path19.length - 1; i >= 0; --i) {
|
|
80742
|
+
switch (path19.charCodeAt(i)) {
|
|
80743
80743
|
case 47:
|
|
80744
80744
|
// '/'
|
|
80745
80745
|
case 92:
|
|
80746
|
-
|
|
80747
|
-
return
|
|
80746
|
+
path19 = path19.slice(i + 1);
|
|
80747
|
+
return path19 === ".." || path19 === "." ? "" : path19;
|
|
80748
80748
|
}
|
|
80749
80749
|
}
|
|
80750
|
-
return
|
|
80750
|
+
return path19 === ".." || path19 === "." ? "" : path19;
|
|
80751
80751
|
};
|
|
80752
80752
|
}
|
|
80753
80753
|
});
|
|
@@ -83789,7 +83789,7 @@ var require_request = __commonJS({
|
|
|
83789
83789
|
}
|
|
83790
83790
|
var Request2 = class _Request {
|
|
83791
83791
|
constructor(origin2, {
|
|
83792
|
-
path:
|
|
83792
|
+
path: path19,
|
|
83793
83793
|
method,
|
|
83794
83794
|
body,
|
|
83795
83795
|
headers,
|
|
@@ -83803,11 +83803,11 @@ var require_request = __commonJS({
|
|
|
83803
83803
|
throwOnError,
|
|
83804
83804
|
expectContinue
|
|
83805
83805
|
}, handler) {
|
|
83806
|
-
if (typeof
|
|
83806
|
+
if (typeof path19 !== "string") {
|
|
83807
83807
|
throw new InvalidArgumentError2("path must be a string");
|
|
83808
|
-
} else if (
|
|
83808
|
+
} else if (path19[0] !== "/" && !(path19.startsWith("http://") || path19.startsWith("https://")) && method !== "CONNECT") {
|
|
83809
83809
|
throw new InvalidArgumentError2("path must be an absolute URL or start with a slash");
|
|
83810
|
-
} else if (invalidPathRegex.exec(
|
|
83810
|
+
} else if (invalidPathRegex.exec(path19) !== null) {
|
|
83811
83811
|
throw new InvalidArgumentError2("invalid request path");
|
|
83812
83812
|
}
|
|
83813
83813
|
if (typeof method !== "string") {
|
|
@@ -83870,7 +83870,7 @@ var require_request = __commonJS({
|
|
|
83870
83870
|
this.completed = false;
|
|
83871
83871
|
this.aborted = false;
|
|
83872
83872
|
this.upgrade = upgrade || null;
|
|
83873
|
-
this.path = query ? util3.buildURL(
|
|
83873
|
+
this.path = query ? util3.buildURL(path19, query) : path19;
|
|
83874
83874
|
this.origin = origin2;
|
|
83875
83875
|
this.idempotent = idempotent == null ? method === "HEAD" || method === "GET" : idempotent;
|
|
83876
83876
|
this.blocking = blocking == null ? false : blocking;
|
|
@@ -84878,9 +84878,9 @@ var require_RedirectHandler = __commonJS({
|
|
|
84878
84878
|
return this.handler.onHeaders(statusCode, headers, resume, statusText);
|
|
84879
84879
|
}
|
|
84880
84880
|
const { origin: origin2, pathname, search } = util3.parseURL(new URL(this.location, this.opts.origin && new URL(this.opts.path, this.opts.origin)));
|
|
84881
|
-
const
|
|
84881
|
+
const path19 = search ? `${pathname}${search}` : pathname;
|
|
84882
84882
|
this.opts.headers = cleanRequestHeaders(this.opts.headers, statusCode === 303, this.opts.origin !== origin2);
|
|
84883
|
-
this.opts.path =
|
|
84883
|
+
this.opts.path = path19;
|
|
84884
84884
|
this.opts.origin = origin2;
|
|
84885
84885
|
this.opts.maxRedirections = 0;
|
|
84886
84886
|
this.opts.query = null;
|
|
@@ -86122,7 +86122,7 @@ var require_client = __commonJS({
|
|
|
86122
86122
|
writeH2(client, client[kHTTP2Session], request);
|
|
86123
86123
|
return;
|
|
86124
86124
|
}
|
|
86125
|
-
const { body, method, path:
|
|
86125
|
+
const { body, method, path: path19, host, upgrade, headers, blocking, reset } = request;
|
|
86126
86126
|
const expectsPayload = method === "PUT" || method === "POST" || method === "PATCH";
|
|
86127
86127
|
if (body && typeof body.read === "function") {
|
|
86128
86128
|
body.read(0);
|
|
@@ -86172,7 +86172,7 @@ var require_client = __commonJS({
|
|
|
86172
86172
|
if (blocking) {
|
|
86173
86173
|
socket[kBlocking] = true;
|
|
86174
86174
|
}
|
|
86175
|
-
let header = `${method} ${
|
|
86175
|
+
let header = `${method} ${path19} HTTP/1.1\r
|
|
86176
86176
|
`;
|
|
86177
86177
|
if (typeof host === "string") {
|
|
86178
86178
|
header += `host: ${host}\r
|
|
@@ -86235,7 +86235,7 @@ upgrade: ${upgrade}\r
|
|
|
86235
86235
|
return true;
|
|
86236
86236
|
}
|
|
86237
86237
|
function writeH2(client, session, request) {
|
|
86238
|
-
const { body, method, path:
|
|
86238
|
+
const { body, method, path: path19, host, upgrade, expectContinue, signal, headers: reqHeaders } = request;
|
|
86239
86239
|
let headers;
|
|
86240
86240
|
if (typeof reqHeaders === "string") headers = Request2[kHTTP2CopyHeaders](reqHeaders.trim());
|
|
86241
86241
|
else headers = reqHeaders;
|
|
@@ -86278,7 +86278,7 @@ upgrade: ${upgrade}\r
|
|
|
86278
86278
|
});
|
|
86279
86279
|
return true;
|
|
86280
86280
|
}
|
|
86281
|
-
headers[HTTP2_HEADER_PATH] =
|
|
86281
|
+
headers[HTTP2_HEADER_PATH] = path19;
|
|
86282
86282
|
headers[HTTP2_HEADER_SCHEME] = "https";
|
|
86283
86283
|
const expectsPayload = method === "PUT" || method === "POST" || method === "PATCH";
|
|
86284
86284
|
if (body && typeof body.read === "function") {
|
|
@@ -88521,20 +88521,20 @@ var require_mock_utils = __commonJS({
|
|
|
88521
88521
|
}
|
|
88522
88522
|
return true;
|
|
88523
88523
|
}
|
|
88524
|
-
function safeUrl(
|
|
88525
|
-
if (typeof
|
|
88526
|
-
return
|
|
88524
|
+
function safeUrl(path19) {
|
|
88525
|
+
if (typeof path19 !== "string") {
|
|
88526
|
+
return path19;
|
|
88527
88527
|
}
|
|
88528
|
-
const pathSegments =
|
|
88528
|
+
const pathSegments = path19.split("?");
|
|
88529
88529
|
if (pathSegments.length !== 2) {
|
|
88530
|
-
return
|
|
88530
|
+
return path19;
|
|
88531
88531
|
}
|
|
88532
88532
|
const qp = new URLSearchParams(pathSegments.pop());
|
|
88533
88533
|
qp.sort();
|
|
88534
88534
|
return [...pathSegments, qp.toString()].join("?");
|
|
88535
88535
|
}
|
|
88536
|
-
function matchKey(mockDispatch2, { path:
|
|
88537
|
-
const pathMatch = matchValue(mockDispatch2.path,
|
|
88536
|
+
function matchKey(mockDispatch2, { path: path19, method, body, headers }) {
|
|
88537
|
+
const pathMatch = matchValue(mockDispatch2.path, path19);
|
|
88538
88538
|
const methodMatch = matchValue(mockDispatch2.method, method);
|
|
88539
88539
|
const bodyMatch = typeof mockDispatch2.body !== "undefined" ? matchValue(mockDispatch2.body, body) : true;
|
|
88540
88540
|
const headersMatch = matchHeaders(mockDispatch2, headers);
|
|
@@ -88552,7 +88552,7 @@ var require_mock_utils = __commonJS({
|
|
|
88552
88552
|
function getMockDispatch(mockDispatches, key) {
|
|
88553
88553
|
const basePath = key.query ? buildURL2(key.path, key.query) : key.path;
|
|
88554
88554
|
const resolvedPath = typeof basePath === "string" ? safeUrl(basePath) : basePath;
|
|
88555
|
-
let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path:
|
|
88555
|
+
let matchedMockDispatches = mockDispatches.filter(({ consumed }) => !consumed).filter(({ path: path19 }) => matchValue(safeUrl(path19), resolvedPath));
|
|
88556
88556
|
if (matchedMockDispatches.length === 0) {
|
|
88557
88557
|
throw new MockNotMatchedError(`Mock dispatch not matched for path '${resolvedPath}'`);
|
|
88558
88558
|
}
|
|
@@ -88589,9 +88589,9 @@ var require_mock_utils = __commonJS({
|
|
|
88589
88589
|
}
|
|
88590
88590
|
}
|
|
88591
88591
|
function buildKey(opts) {
|
|
88592
|
-
const { path:
|
|
88592
|
+
const { path: path19, method, body, headers, query } = opts;
|
|
88593
88593
|
return {
|
|
88594
|
-
path:
|
|
88594
|
+
path: path19,
|
|
88595
88595
|
method,
|
|
88596
88596
|
body,
|
|
88597
88597
|
headers,
|
|
@@ -89040,10 +89040,10 @@ var require_pending_interceptors_formatter = __commonJS({
|
|
|
89040
89040
|
}
|
|
89041
89041
|
format(pendingInterceptors) {
|
|
89042
89042
|
const withPrettyHeaders = pendingInterceptors.map(
|
|
89043
|
-
({ method, path:
|
|
89043
|
+
({ method, path: path19, data: { statusCode }, persist, times: times2, timesInvoked, origin: origin2 }) => ({
|
|
89044
89044
|
Method: method,
|
|
89045
89045
|
Origin: origin2,
|
|
89046
|
-
Path:
|
|
89046
|
+
Path: path19,
|
|
89047
89047
|
"Status code": statusCode,
|
|
89048
89048
|
Persistent: persist ? "\u2705" : "\u274C",
|
|
89049
89049
|
Invocations: timesInvoked,
|
|
@@ -93690,8 +93690,8 @@ var require_util11 = __commonJS({
|
|
|
93690
93690
|
}
|
|
93691
93691
|
}
|
|
93692
93692
|
}
|
|
93693
|
-
function validateCookiePath(
|
|
93694
|
-
for (const char of
|
|
93693
|
+
function validateCookiePath(path19) {
|
|
93694
|
+
for (const char of path19) {
|
|
93695
93695
|
const code = char.charCodeAt(0);
|
|
93696
93696
|
if (code < 33 || char === ";") {
|
|
93697
93697
|
throw new Error("Invalid cookie path");
|
|
@@ -95400,11 +95400,11 @@ var require_undici = __commonJS({
|
|
|
95400
95400
|
if (typeof opts.path !== "string") {
|
|
95401
95401
|
throw new InvalidArgumentError2("invalid opts.path");
|
|
95402
95402
|
}
|
|
95403
|
-
let
|
|
95403
|
+
let path19 = opts.path;
|
|
95404
95404
|
if (!opts.path.startsWith("/")) {
|
|
95405
|
-
|
|
95405
|
+
path19 = `/${path19}`;
|
|
95406
95406
|
}
|
|
95407
|
-
url2 = new URL(util3.parseOrigin(url2).origin +
|
|
95407
|
+
url2 = new URL(util3.parseOrigin(url2).origin + path19);
|
|
95408
95408
|
} else {
|
|
95409
95409
|
if (!opts) {
|
|
95410
95410
|
opts = typeof url2 === "object" ? url2 : {};
|
|
@@ -98175,9 +98175,9 @@ var import_run_async = __toESM(require_run_async(), 1);
|
|
|
98175
98175
|
var import_mute_stream2 = __toESM(require_lib3(), 1);
|
|
98176
98176
|
var import_ansi_escapes5 = __toESM(require_ansi_escapes(), 1);
|
|
98177
98177
|
var _2 = {
|
|
98178
|
-
set: (obj,
|
|
98178
|
+
set: (obj, path19 = "", value) => {
|
|
98179
98179
|
let pointer = obj;
|
|
98180
|
-
|
|
98180
|
+
path19.split(".").forEach((key, index2, arr) => {
|
|
98181
98181
|
if (key === "__proto__" || key === "constructor")
|
|
98182
98182
|
return;
|
|
98183
98183
|
if (index2 === arr.length - 1) {
|
|
@@ -98188,8 +98188,8 @@ var _2 = {
|
|
|
98188
98188
|
pointer = pointer[key];
|
|
98189
98189
|
});
|
|
98190
98190
|
},
|
|
98191
|
-
get: (obj,
|
|
98192
|
-
const travel = (regexp) => String.prototype.split.call(
|
|
98191
|
+
get: (obj, path19 = "", defaultValue) => {
|
|
98192
|
+
const travel = (regexp) => String.prototype.split.call(path19, regexp).filter(Boolean).reduce(
|
|
98193
98193
|
// @ts-expect-error implicit any on res[key]
|
|
98194
98194
|
(res, key) => res == null ? res : res[key],
|
|
98195
98195
|
obj
|
|
@@ -102451,13 +102451,13 @@ var PathBase = class {
|
|
|
102451
102451
|
/**
|
|
102452
102452
|
* Get the Path object referenced by the string path, resolved from this Path
|
|
102453
102453
|
*/
|
|
102454
|
-
resolve(
|
|
102454
|
+
resolve(path19) {
|
|
102455
102455
|
var _a4;
|
|
102456
|
-
if (!
|
|
102456
|
+
if (!path19) {
|
|
102457
102457
|
return this;
|
|
102458
102458
|
}
|
|
102459
|
-
const rootPath = this.getRootString(
|
|
102460
|
-
const dir2 =
|
|
102459
|
+
const rootPath = this.getRootString(path19);
|
|
102460
|
+
const dir2 = path19.substring(rootPath.length);
|
|
102461
102461
|
const dirParts = dir2.split(this.splitSep);
|
|
102462
102462
|
const result = rootPath ? __privateMethod(_a4 = this.getRoot(rootPath), _PathBase_instances, resolveParts_fn).call(_a4, dirParts) : __privateMethod(this, _PathBase_instances, resolveParts_fn).call(this, dirParts);
|
|
102463
102463
|
return result;
|
|
@@ -103245,8 +103245,8 @@ var PathWin32 = class _PathWin32 extends PathBase {
|
|
|
103245
103245
|
/**
|
|
103246
103246
|
* @internal
|
|
103247
103247
|
*/
|
|
103248
|
-
getRootString(
|
|
103249
|
-
return import_node_path.win32.parse(
|
|
103248
|
+
getRootString(path19) {
|
|
103249
|
+
return import_node_path.win32.parse(path19).root;
|
|
103250
103250
|
}
|
|
103251
103251
|
/**
|
|
103252
103252
|
* @internal
|
|
@@ -103292,8 +103292,8 @@ var PathPosix = class _PathPosix extends PathBase {
|
|
|
103292
103292
|
/**
|
|
103293
103293
|
* @internal
|
|
103294
103294
|
*/
|
|
103295
|
-
getRootString(
|
|
103296
|
-
return
|
|
103295
|
+
getRootString(path19) {
|
|
103296
|
+
return path19.startsWith("/") ? "/" : "";
|
|
103297
103297
|
}
|
|
103298
103298
|
/**
|
|
103299
103299
|
* @internal
|
|
@@ -103317,7 +103317,7 @@ var PathScurryBase = class {
|
|
|
103317
103317
|
*
|
|
103318
103318
|
* @internal
|
|
103319
103319
|
*/
|
|
103320
|
-
constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs:
|
|
103320
|
+
constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs: fs13 = defaultFS } = {}) {
|
|
103321
103321
|
/**
|
|
103322
103322
|
* The root Path entry for the current working directory of this Scurry
|
|
103323
103323
|
*/
|
|
@@ -103344,7 +103344,7 @@ var PathScurryBase = class {
|
|
|
103344
103344
|
*/
|
|
103345
103345
|
__publicField(this, "nocase");
|
|
103346
103346
|
__privateAdd(this, _fs2);
|
|
103347
|
-
__privateSet(this, _fs2, fsFromOption(
|
|
103347
|
+
__privateSet(this, _fs2, fsFromOption(fs13));
|
|
103348
103348
|
if (cwd instanceof URL || cwd.startsWith("file://")) {
|
|
103349
103349
|
cwd = (0, import_node_url.fileURLToPath)(cwd);
|
|
103350
103350
|
}
|
|
@@ -103383,11 +103383,11 @@ var PathScurryBase = class {
|
|
|
103383
103383
|
/**
|
|
103384
103384
|
* Get the depth of a provided path, string, or the cwd
|
|
103385
103385
|
*/
|
|
103386
|
-
depth(
|
|
103387
|
-
if (typeof
|
|
103388
|
-
|
|
103386
|
+
depth(path19 = this.cwd) {
|
|
103387
|
+
if (typeof path19 === "string") {
|
|
103388
|
+
path19 = this.cwd.resolve(path19);
|
|
103389
103389
|
}
|
|
103390
|
-
return
|
|
103390
|
+
return path19.depth();
|
|
103391
103391
|
}
|
|
103392
103392
|
/**
|
|
103393
103393
|
* Return the cache of child entries. Exposed so subclasses can create
|
|
@@ -103874,9 +103874,9 @@ var PathScurryBase = class {
|
|
|
103874
103874
|
process10();
|
|
103875
103875
|
return results;
|
|
103876
103876
|
}
|
|
103877
|
-
chdir(
|
|
103877
|
+
chdir(path19 = this.cwd) {
|
|
103878
103878
|
const oldCwd = this.cwd;
|
|
103879
|
-
this.cwd = typeof
|
|
103879
|
+
this.cwd = typeof path19 === "string" ? this.cwd.resolve(path19) : path19;
|
|
103880
103880
|
this.cwd[setAsCwd](oldCwd);
|
|
103881
103881
|
}
|
|
103882
103882
|
};
|
|
@@ -103906,8 +103906,8 @@ var PathScurryWin32 = class extends PathScurryBase {
|
|
|
103906
103906
|
/**
|
|
103907
103907
|
* @internal
|
|
103908
103908
|
*/
|
|
103909
|
-
newRoot(
|
|
103910
|
-
return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs:
|
|
103909
|
+
newRoot(fs13) {
|
|
103910
|
+
return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs13 });
|
|
103911
103911
|
}
|
|
103912
103912
|
/**
|
|
103913
103913
|
* Return true if the provided path string is an absolute path
|
|
@@ -103935,8 +103935,8 @@ var PathScurryPosix = class extends PathScurryBase {
|
|
|
103935
103935
|
/**
|
|
103936
103936
|
* @internal
|
|
103937
103937
|
*/
|
|
103938
|
-
newRoot(
|
|
103939
|
-
return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs:
|
|
103938
|
+
newRoot(fs13) {
|
|
103939
|
+
return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs13 });
|
|
103940
103940
|
}
|
|
103941
103941
|
/**
|
|
103942
103942
|
* Return true if the provided path string is an absolute path
|
|
@@ -104251,8 +104251,8 @@ var MatchRecord = class {
|
|
|
104251
104251
|
}
|
|
104252
104252
|
// match, absolute, ifdir
|
|
104253
104253
|
entries() {
|
|
104254
|
-
return [...this.store.entries()].map(([
|
|
104255
|
-
|
|
104254
|
+
return [...this.store.entries()].map(([path19, n]) => [
|
|
104255
|
+
path19,
|
|
104256
104256
|
!!(n & 2),
|
|
104257
104257
|
!!(n & 1)
|
|
104258
104258
|
]);
|
|
@@ -104448,7 +104448,7 @@ var Processor = class _Processor {
|
|
|
104448
104448
|
var makeIgnore = (ignore, opts) => typeof ignore === "string" ? new Ignore([ignore], opts) : Array.isArray(ignore) ? new Ignore(ignore, opts) : ignore;
|
|
104449
104449
|
var _onResume, _ignore, _sep, _GlobUtil_instances, ignored_fn, childrenIgnored_fn;
|
|
104450
104450
|
var GlobUtil = class {
|
|
104451
|
-
constructor(patterns,
|
|
104451
|
+
constructor(patterns, path19, opts) {
|
|
104452
104452
|
__privateAdd(this, _GlobUtil_instances);
|
|
104453
104453
|
__publicField(this, "path");
|
|
104454
104454
|
__publicField(this, "patterns");
|
|
@@ -104464,7 +104464,7 @@ var GlobUtil = class {
|
|
|
104464
104464
|
__publicField(this, "includeChildMatches");
|
|
104465
104465
|
var _a4;
|
|
104466
104466
|
this.patterns = patterns;
|
|
104467
|
-
this.path =
|
|
104467
|
+
this.path = path19;
|
|
104468
104468
|
this.opts = opts;
|
|
104469
104469
|
__privateSet(this, _sep, !opts.posix && opts.platform === "win32" ? "\\" : "/");
|
|
104470
104470
|
this.includeChildMatches = opts.includeChildMatches !== false;
|
|
@@ -104706,17 +104706,17 @@ _onResume = new WeakMap();
|
|
|
104706
104706
|
_ignore = new WeakMap();
|
|
104707
104707
|
_sep = new WeakMap();
|
|
104708
104708
|
_GlobUtil_instances = new WeakSet();
|
|
104709
|
-
ignored_fn = function(
|
|
104709
|
+
ignored_fn = function(path19) {
|
|
104710
104710
|
var _a4, _b3;
|
|
104711
|
-
return this.seen.has(
|
|
104711
|
+
return this.seen.has(path19) || !!((_b3 = (_a4 = __privateGet(this, _ignore)) == null ? void 0 : _a4.ignored) == null ? void 0 : _b3.call(_a4, path19));
|
|
104712
104712
|
};
|
|
104713
|
-
childrenIgnored_fn = function(
|
|
104713
|
+
childrenIgnored_fn = function(path19) {
|
|
104714
104714
|
var _a4, _b3;
|
|
104715
|
-
return !!((_b3 = (_a4 = __privateGet(this, _ignore)) == null ? void 0 : _a4.childrenIgnored) == null ? void 0 : _b3.call(_a4,
|
|
104715
|
+
return !!((_b3 = (_a4 = __privateGet(this, _ignore)) == null ? void 0 : _a4.childrenIgnored) == null ? void 0 : _b3.call(_a4, path19));
|
|
104716
104716
|
};
|
|
104717
104717
|
var GlobWalker = class extends GlobUtil {
|
|
104718
|
-
constructor(patterns,
|
|
104719
|
-
super(patterns,
|
|
104718
|
+
constructor(patterns, path19, opts) {
|
|
104719
|
+
super(patterns, path19, opts);
|
|
104720
104720
|
__publicField(this, "matches", /* @__PURE__ */ new Set());
|
|
104721
104721
|
}
|
|
104722
104722
|
matchEmit(e) {
|
|
@@ -104757,8 +104757,8 @@ var GlobWalker = class extends GlobUtil {
|
|
|
104757
104757
|
}
|
|
104758
104758
|
};
|
|
104759
104759
|
var GlobStream = class extends GlobUtil {
|
|
104760
|
-
constructor(patterns,
|
|
104761
|
-
super(patterns,
|
|
104760
|
+
constructor(patterns, path19, opts) {
|
|
104761
|
+
super(patterns, path19, opts);
|
|
104762
104762
|
__publicField(this, "results");
|
|
104763
104763
|
this.results = new Minipass({
|
|
104764
104764
|
signal: this.signal,
|
|
@@ -107201,9 +107201,9 @@ function isVisitable(thing) {
|
|
|
107201
107201
|
function removeBrackets(key) {
|
|
107202
107202
|
return utils_default.endsWith(key, "[]") ? key.slice(0, -2) : key;
|
|
107203
107203
|
}
|
|
107204
|
-
function renderKey(
|
|
107205
|
-
if (!
|
|
107206
|
-
return
|
|
107204
|
+
function renderKey(path19, key, dots) {
|
|
107205
|
+
if (!path19) return key;
|
|
107206
|
+
return path19.concat(key).map(function each2(token, i) {
|
|
107207
107207
|
token = removeBrackets(token);
|
|
107208
107208
|
return !dots && i ? "[" + token + "]" : token;
|
|
107209
107209
|
}).join(dots ? "." : "");
|
|
@@ -107251,9 +107251,9 @@ function toFormData(obj, formData, options) {
|
|
|
107251
107251
|
}
|
|
107252
107252
|
return value;
|
|
107253
107253
|
}
|
|
107254
|
-
function defaultVisitor(value, key,
|
|
107254
|
+
function defaultVisitor(value, key, path19) {
|
|
107255
107255
|
let arr = value;
|
|
107256
|
-
if (value && !
|
|
107256
|
+
if (value && !path19 && typeof value === "object") {
|
|
107257
107257
|
if (utils_default.endsWith(key, "{}")) {
|
|
107258
107258
|
key = metaTokens ? key : key.slice(0, -2);
|
|
107259
107259
|
value = JSON.stringify(value);
|
|
@@ -107272,7 +107272,7 @@ function toFormData(obj, formData, options) {
|
|
|
107272
107272
|
if (isVisitable(value)) {
|
|
107273
107273
|
return true;
|
|
107274
107274
|
}
|
|
107275
|
-
formData.append(renderKey(
|
|
107275
|
+
formData.append(renderKey(path19, key, dots), convertValue(value));
|
|
107276
107276
|
return false;
|
|
107277
107277
|
}
|
|
107278
107278
|
const stack = [];
|
|
@@ -107281,10 +107281,10 @@ function toFormData(obj, formData, options) {
|
|
|
107281
107281
|
convertValue,
|
|
107282
107282
|
isVisitable
|
|
107283
107283
|
});
|
|
107284
|
-
function build(value,
|
|
107284
|
+
function build(value, path19) {
|
|
107285
107285
|
if (utils_default.isUndefined(value)) return;
|
|
107286
107286
|
if (stack.indexOf(value) !== -1) {
|
|
107287
|
-
throw Error("Circular reference detected in " +
|
|
107287
|
+
throw Error("Circular reference detected in " + path19.join("."));
|
|
107288
107288
|
}
|
|
107289
107289
|
stack.push(value);
|
|
107290
107290
|
utils_default.forEach(value, function each2(el, key) {
|
|
@@ -107292,11 +107292,11 @@ function toFormData(obj, formData, options) {
|
|
|
107292
107292
|
formData,
|
|
107293
107293
|
el,
|
|
107294
107294
|
utils_default.isString(key) ? key.trim() : key,
|
|
107295
|
-
|
|
107295
|
+
path19,
|
|
107296
107296
|
exposedHelpers
|
|
107297
107297
|
);
|
|
107298
107298
|
if (result === true) {
|
|
107299
|
-
build(el,
|
|
107299
|
+
build(el, path19 ? path19.concat(key) : [key]);
|
|
107300
107300
|
}
|
|
107301
107301
|
});
|
|
107302
107302
|
stack.pop();
|
|
@@ -107508,7 +107508,7 @@ var platform_default = {
|
|
|
107508
107508
|
// ../../node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
107509
107509
|
function toURLEncodedForm(data, options) {
|
|
107510
107510
|
return toFormData_default(data, new platform_default.classes.URLSearchParams(), Object.assign({
|
|
107511
|
-
visitor: function(value, key,
|
|
107511
|
+
visitor: function(value, key, path19, helpers) {
|
|
107512
107512
|
if (platform_default.isNode && utils_default.isBuffer(value)) {
|
|
107513
107513
|
this.append(key, value.toString("base64"));
|
|
107514
107514
|
return false;
|
|
@@ -107537,11 +107537,11 @@ function arrayToObject(arr) {
|
|
|
107537
107537
|
return obj;
|
|
107538
107538
|
}
|
|
107539
107539
|
function formDataToJSON(formData) {
|
|
107540
|
-
function buildPath(
|
|
107541
|
-
let name =
|
|
107540
|
+
function buildPath(path19, value, target, index2) {
|
|
107541
|
+
let name = path19[index2++];
|
|
107542
107542
|
if (name === "__proto__") return true;
|
|
107543
107543
|
const isNumericKey = Number.isFinite(+name);
|
|
107544
|
-
const isLast = index2 >=
|
|
107544
|
+
const isLast = index2 >= path19.length;
|
|
107545
107545
|
name = !name && utils_default.isArray(target) ? target.length : name;
|
|
107546
107546
|
if (isLast) {
|
|
107547
107547
|
if (utils_default.hasOwnProp(target, name)) {
|
|
@@ -107554,7 +107554,7 @@ function formDataToJSON(formData) {
|
|
|
107554
107554
|
if (!target[name] || !utils_default.isObject(target[name])) {
|
|
107555
107555
|
target[name] = [];
|
|
107556
107556
|
}
|
|
107557
|
-
const result = buildPath(
|
|
107557
|
+
const result = buildPath(path19, value, target[name], index2);
|
|
107558
107558
|
if (result && utils_default.isArray(target[name])) {
|
|
107559
107559
|
target[name] = arrayToObject(target[name]);
|
|
107560
107560
|
}
|
|
@@ -108689,9 +108689,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
108689
108689
|
auth = urlUsername + ":" + urlPassword;
|
|
108690
108690
|
}
|
|
108691
108691
|
auth && headers.delete("authorization");
|
|
108692
|
-
let
|
|
108692
|
+
let path19;
|
|
108693
108693
|
try {
|
|
108694
|
-
|
|
108694
|
+
path19 = buildURL(
|
|
108695
108695
|
parsed.pathname + parsed.search,
|
|
108696
108696
|
config.params,
|
|
108697
108697
|
config.paramsSerializer
|
|
@@ -108709,7 +108709,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
108709
108709
|
false
|
|
108710
108710
|
);
|
|
108711
108711
|
const options = {
|
|
108712
|
-
path:
|
|
108712
|
+
path: path19,
|
|
108713
108713
|
method,
|
|
108714
108714
|
headers: headers.toJSON(),
|
|
108715
108715
|
agents: { http: config.httpAgent, https: config.httpsAgent },
|
|
@@ -108939,10 +108939,10 @@ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PUR
|
|
|
108939
108939
|
var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
108940
108940
|
// Standard browser envs support document.cookie
|
|
108941
108941
|
{
|
|
108942
|
-
write(name, value, expires,
|
|
108942
|
+
write(name, value, expires, path19, domain, secure) {
|
|
108943
108943
|
const cookie = [name + "=" + encodeURIComponent(value)];
|
|
108944
108944
|
utils_default.isNumber(expires) && cookie.push("expires=" + new Date(expires).toGMTString());
|
|
108945
|
-
utils_default.isString(
|
|
108945
|
+
utils_default.isString(path19) && cookie.push("path=" + path19);
|
|
108946
108946
|
utils_default.isString(domain) && cookie.push("domain=" + domain);
|
|
108947
108947
|
secure === true && cookie.push("secure");
|
|
108948
108948
|
document.cookie = cookie.join("; ");
|
|
@@ -111643,7 +111643,7 @@ var kickstartCommand = new Command("kickstart").description("Kickstart a new Mic
|
|
|
111643
111643
|
});
|
|
111644
111644
|
|
|
111645
111645
|
// package.json
|
|
111646
|
-
var version = "1.2.
|
|
111646
|
+
var version = "1.2.1";
|
|
111647
111647
|
|
|
111648
111648
|
// src/commands/track.ts
|
|
111649
111649
|
var track = new Command("track").description("Run tracker scripts locally.").option("--file <path>", "Run a single tracker file instead of all.").action(async (options) => {
|
|
@@ -114432,17 +114432,17 @@ var ESC_1_RE = /~1/g;
|
|
|
114432
114432
|
var TS_UNION_INTERSECTION_RE = /[&|]/;
|
|
114433
114433
|
var TS_READONLY_RE = /^readonly\s+/;
|
|
114434
114434
|
var JS_OBJ_KEY = /^(\d+|[A-Za-z_$][A-Za-z0-9_$]*)$/;
|
|
114435
|
-
function walk(obj, cb,
|
|
114435
|
+
function walk(obj, cb, path19 = []) {
|
|
114436
114436
|
if (!obj || typeof obj !== "object")
|
|
114437
114437
|
return;
|
|
114438
114438
|
if (Array.isArray(obj)) {
|
|
114439
114439
|
for (let i = 0; i < obj.length; i++)
|
|
114440
|
-
walk(obj[i], cb,
|
|
114440
|
+
walk(obj[i], cb, path19.concat(i));
|
|
114441
114441
|
return;
|
|
114442
114442
|
}
|
|
114443
|
-
cb(obj,
|
|
114443
|
+
cb(obj, path19);
|
|
114444
114444
|
for (const k of Object.keys(obj))
|
|
114445
|
-
walk(obj[k], cb,
|
|
114445
|
+
walk(obj[k], cb, path19.concat(k));
|
|
114446
114446
|
}
|
|
114447
114447
|
function getSchemaObjectComment(v, indentLv) {
|
|
114448
114448
|
if (!v || typeof v !== "object")
|
|
@@ -114497,23 +114497,23 @@ function parseRef(ref) {
|
|
|
114497
114497
|
if (ref.includes("#/")) {
|
|
114498
114498
|
const [filename, pathStr] = ref.split("#");
|
|
114499
114499
|
const parts = pathStr.split("/");
|
|
114500
|
-
const
|
|
114500
|
+
const path19 = [];
|
|
114501
114501
|
for (const part of parts) {
|
|
114502
114502
|
if (!part || part === "properties")
|
|
114503
114503
|
continue;
|
|
114504
|
-
|
|
114504
|
+
path19.push(decodeRef(part));
|
|
114505
114505
|
}
|
|
114506
|
-
return { filename: filename || ".", path:
|
|
114506
|
+
return { filename: filename || ".", path: path19 };
|
|
114507
114507
|
} else if (ref.includes('["')) {
|
|
114508
114508
|
const parts = ref.split('["');
|
|
114509
|
-
const
|
|
114509
|
+
const path19 = [];
|
|
114510
114510
|
for (const part of parts) {
|
|
114511
114511
|
const sanitized = part.replace('"]', "").trim();
|
|
114512
114512
|
if (!sanitized || sanitized === "properties")
|
|
114513
114513
|
continue;
|
|
114514
|
-
|
|
114514
|
+
path19.push(sanitized);
|
|
114515
114515
|
}
|
|
114516
|
-
return { filename: ".", path:
|
|
114516
|
+
return { filename: ".", path: path19 };
|
|
114517
114517
|
}
|
|
114518
114518
|
return { filename: ref, path: [] };
|
|
114519
114519
|
}
|
|
@@ -114830,124 +114830,124 @@ function relativePath(src, dest) {
|
|
|
114830
114830
|
}
|
|
114831
114831
|
return dest.href;
|
|
114832
114832
|
}
|
|
114833
|
-
function getHint({ path:
|
|
114833
|
+
function getHint({ path: path19, external, startFrom }) {
|
|
114834
114834
|
if (startFrom && startFrom !== "OpenAPI3") {
|
|
114835
114835
|
switch (startFrom) {
|
|
114836
114836
|
case "OperationObject":
|
|
114837
|
-
return getHintFromOperationObject(
|
|
114837
|
+
return getHintFromOperationObject(path19, external);
|
|
114838
114838
|
case "RequestBodyObject":
|
|
114839
|
-
return getHintFromRequestBodyObject(
|
|
114839
|
+
return getHintFromRequestBodyObject(path19, external);
|
|
114840
114840
|
case "ResponseObject":
|
|
114841
|
-
return getHintFromResponseObject(
|
|
114841
|
+
return getHintFromResponseObject(path19, external);
|
|
114842
114842
|
case "SchemaMap":
|
|
114843
114843
|
return "SchemaObject";
|
|
114844
114844
|
default:
|
|
114845
114845
|
return startFrom;
|
|
114846
114846
|
}
|
|
114847
114847
|
}
|
|
114848
|
-
switch (
|
|
114848
|
+
switch (path19[0]) {
|
|
114849
114849
|
case "paths": {
|
|
114850
|
-
if (EXT_RE.test(
|
|
114850
|
+
if (EXT_RE.test(path19[2])) {
|
|
114851
114851
|
return "SchemaMap";
|
|
114852
114852
|
}
|
|
114853
|
-
return getHintFromPathItemObject(
|
|
114853
|
+
return getHintFromPathItemObject(path19.slice(2), external);
|
|
114854
114854
|
}
|
|
114855
114855
|
case "components":
|
|
114856
|
-
return getHintFromComponentsObject(
|
|
114856
|
+
return getHintFromComponentsObject(path19.slice(1), external);
|
|
114857
114857
|
}
|
|
114858
114858
|
return void 0;
|
|
114859
114859
|
}
|
|
114860
|
-
function getHintFromComponentsObject(
|
|
114861
|
-
switch (
|
|
114860
|
+
function getHintFromComponentsObject(path19, external) {
|
|
114861
|
+
switch (path19[0]) {
|
|
114862
114862
|
case "schemas":
|
|
114863
114863
|
case "headers":
|
|
114864
|
-
return getHintFromSchemaObject(
|
|
114864
|
+
return getHintFromSchemaObject(path19.slice(2), external);
|
|
114865
114865
|
case "parameters":
|
|
114866
|
-
return getHintFromParameterObject(
|
|
114866
|
+
return getHintFromParameterObject(path19.slice(2), external);
|
|
114867
114867
|
case "responses":
|
|
114868
|
-
return getHintFromResponseObject(
|
|
114868
|
+
return getHintFromResponseObject(path19.slice(2), external);
|
|
114869
114869
|
case "requestBodies":
|
|
114870
|
-
return getHintFromRequestBodyObject(
|
|
114870
|
+
return getHintFromRequestBodyObject(path19.slice(2), external);
|
|
114871
114871
|
case "pathItems":
|
|
114872
|
-
return getHintFromPathItemObject(
|
|
114872
|
+
return getHintFromPathItemObject(path19.slice(2), external);
|
|
114873
114873
|
}
|
|
114874
114874
|
return "SchemaObject";
|
|
114875
114875
|
}
|
|
114876
|
-
function getHintFromMediaTypeObject(
|
|
114877
|
-
switch (
|
|
114876
|
+
function getHintFromMediaTypeObject(path19, external) {
|
|
114877
|
+
switch (path19[0]) {
|
|
114878
114878
|
case "schema":
|
|
114879
|
-
return getHintFromSchemaObject(
|
|
114879
|
+
return getHintFromSchemaObject(path19.slice(1), external);
|
|
114880
114880
|
}
|
|
114881
114881
|
return "MediaTypeObject";
|
|
114882
114882
|
}
|
|
114883
|
-
function getHintFromOperationObject(
|
|
114884
|
-
switch (
|
|
114883
|
+
function getHintFromOperationObject(path19, external) {
|
|
114884
|
+
switch (path19[0]) {
|
|
114885
114885
|
case "parameters":
|
|
114886
114886
|
return "ParameterObject[]";
|
|
114887
114887
|
case "requestBody":
|
|
114888
|
-
return getHintFromRequestBodyObject(
|
|
114888
|
+
return getHintFromRequestBodyObject(path19.slice(1), external);
|
|
114889
114889
|
case "responses":
|
|
114890
|
-
return getHintFromResponseObject(
|
|
114890
|
+
return getHintFromResponseObject(path19.slice(2), external);
|
|
114891
114891
|
}
|
|
114892
114892
|
return "OperationObject";
|
|
114893
114893
|
}
|
|
114894
|
-
function getHintFromParameterObject(
|
|
114895
|
-
switch (
|
|
114894
|
+
function getHintFromParameterObject(path19, external) {
|
|
114895
|
+
switch (path19[0]) {
|
|
114896
114896
|
case "content":
|
|
114897
|
-
return getHintFromMediaTypeObject(
|
|
114897
|
+
return getHintFromMediaTypeObject(path19.slice(2), external);
|
|
114898
114898
|
case "schema":
|
|
114899
|
-
return getHintFromSchemaObject(
|
|
114899
|
+
return getHintFromSchemaObject(path19.slice(1), external);
|
|
114900
114900
|
}
|
|
114901
114901
|
return "ParameterObject";
|
|
114902
114902
|
}
|
|
114903
|
-
function getHintFromPathItemObject(
|
|
114904
|
-
switch (
|
|
114903
|
+
function getHintFromPathItemObject(path19, external) {
|
|
114904
|
+
switch (path19[0]) {
|
|
114905
114905
|
case "parameters": {
|
|
114906
|
-
if (typeof
|
|
114906
|
+
if (typeof path19[1] === "number") {
|
|
114907
114907
|
return "ParameterObject[]";
|
|
114908
114908
|
}
|
|
114909
|
-
return getHintFromParameterObject(
|
|
114909
|
+
return getHintFromParameterObject(path19.slice(1), external);
|
|
114910
114910
|
}
|
|
114911
114911
|
default:
|
|
114912
|
-
return getHintFromOperationObject(
|
|
114912
|
+
return getHintFromOperationObject(path19.slice(1), external);
|
|
114913
114913
|
}
|
|
114914
114914
|
}
|
|
114915
|
-
function getHintFromRequestBodyObject(
|
|
114916
|
-
switch (
|
|
114915
|
+
function getHintFromRequestBodyObject(path19, external) {
|
|
114916
|
+
switch (path19[0]) {
|
|
114917
114917
|
case "content":
|
|
114918
|
-
return getHintFromMediaTypeObject(
|
|
114918
|
+
return getHintFromMediaTypeObject(path19.slice(2), external);
|
|
114919
114919
|
}
|
|
114920
114920
|
return "RequestBodyObject";
|
|
114921
114921
|
}
|
|
114922
|
-
function getHintFromResponseObject(
|
|
114923
|
-
switch (
|
|
114922
|
+
function getHintFromResponseObject(path19, external) {
|
|
114923
|
+
switch (path19[0]) {
|
|
114924
114924
|
case "headers":
|
|
114925
|
-
return getHintFromSchemaObject(
|
|
114925
|
+
return getHintFromSchemaObject(path19.slice(2), external);
|
|
114926
114926
|
case "content":
|
|
114927
|
-
return getHintFromMediaTypeObject(
|
|
114927
|
+
return getHintFromMediaTypeObject(path19.slice(2), external);
|
|
114928
114928
|
}
|
|
114929
114929
|
return "ResponseObject";
|
|
114930
114930
|
}
|
|
114931
|
-
function getHintFromSchemaObject(
|
|
114932
|
-
switch (
|
|
114931
|
+
function getHintFromSchemaObject(path19, external) {
|
|
114932
|
+
switch (path19[0]) {
|
|
114933
114933
|
case "allOf":
|
|
114934
114934
|
case "anyOf":
|
|
114935
114935
|
case "oneOf":
|
|
114936
114936
|
return "SchemaMap";
|
|
114937
114937
|
}
|
|
114938
|
-
if (
|
|
114938
|
+
if (path19.length >= 2 && external) {
|
|
114939
114939
|
return "SchemaMap";
|
|
114940
114940
|
}
|
|
114941
114941
|
return "SchemaObject";
|
|
114942
114942
|
}
|
|
114943
114943
|
|
|
114944
114944
|
// node_modules/openapi-typescript/dist/transform/parameter-object.js
|
|
114945
|
-
function transformParameterObject(parameterObject, { path:
|
|
114946
|
-
return parameterObject.schema ? transformSchemaObject(parameterObject.schema, { path:
|
|
114945
|
+
function transformParameterObject(parameterObject, { path: path19, ctx }) {
|
|
114946
|
+
return parameterObject.schema ? transformSchemaObject(parameterObject.schema, { path: path19, ctx }) : "string";
|
|
114947
114947
|
}
|
|
114948
114948
|
|
|
114949
114949
|
// node_modules/openapi-typescript/dist/transform/request-body-object.js
|
|
114950
|
-
function transformRequestBodyObject(requestBodyObject, { path:
|
|
114950
|
+
function transformRequestBodyObject(requestBodyObject, { path: path19, ctx }) {
|
|
114951
114951
|
let { indentLv } = ctx;
|
|
114952
114952
|
const output = ["{"];
|
|
114953
114953
|
indentLv++;
|
|
@@ -114965,12 +114965,12 @@ function transformRequestBodyObject(requestBodyObject, { path: path18, ctx }) {
|
|
|
114965
114965
|
key = tsReadonly(key);
|
|
114966
114966
|
if ("$ref" in mediaTypeObject) {
|
|
114967
114967
|
output.push(indent(`${key}: ${transformSchemaObject(mediaTypeObject, {
|
|
114968
|
-
path: `${
|
|
114968
|
+
path: `${path19}/${contentType}`,
|
|
114969
114969
|
ctx: { ...ctx, indentLv }
|
|
114970
114970
|
})};`, indentLv));
|
|
114971
114971
|
} else {
|
|
114972
114972
|
const mediaType = transformMediaTypeObject(mediaTypeObject, {
|
|
114973
|
-
path: `${
|
|
114973
|
+
path: `${path19}/${contentType}`,
|
|
114974
114974
|
ctx: { ...ctx, indentLv }
|
|
114975
114975
|
});
|
|
114976
114976
|
output.push(indent(`${key}: ${mediaType};`, indentLv));
|
|
@@ -114984,7 +114984,7 @@ function transformRequestBodyObject(requestBodyObject, { path: path18, ctx }) {
|
|
|
114984
114984
|
}
|
|
114985
114985
|
|
|
114986
114986
|
// node_modules/openapi-typescript/dist/transform/response-object.js
|
|
114987
|
-
function transformResponseObject(responseObject, { path:
|
|
114987
|
+
function transformResponseObject(responseObject, { path: path19, ctx }) {
|
|
114988
114988
|
const output = ["{"];
|
|
114989
114989
|
let { indentLv } = ctx;
|
|
114990
114990
|
if (responseObject.headers) {
|
|
@@ -115004,7 +115004,7 @@ function transformResponseObject(responseObject, { path: path18, ctx }) {
|
|
|
115004
115004
|
if (!headerObject.required)
|
|
115005
115005
|
key = tsOptionalProperty(key);
|
|
115006
115006
|
output.push(indent(`${key}: ${transformHeaderObject(headerObject, {
|
|
115007
|
-
path: `${
|
|
115007
|
+
path: `${path19}/headers/${name}`,
|
|
115008
115008
|
ctx: { ...ctx, indentLv }
|
|
115009
115009
|
})};`, indentLv));
|
|
115010
115010
|
}
|
|
@@ -115022,7 +115022,7 @@ function transformResponseObject(responseObject, { path: path18, ctx }) {
|
|
|
115022
115022
|
if (ctx.immutableTypes)
|
|
115023
115023
|
key = tsReadonly(key);
|
|
115024
115024
|
output.push(indent(`${key}: ${transformMediaTypeObject(mediaTypeObject, {
|
|
115025
|
-
path: `${
|
|
115025
|
+
path: `${path19}/content/${contentType}`,
|
|
115026
115026
|
ctx: { ...ctx, indentLv }
|
|
115027
115027
|
})};`, indentLv));
|
|
115028
115028
|
}
|
|
@@ -115039,7 +115039,7 @@ function transformResponseObject(responseObject, { path: path18, ctx }) {
|
|
|
115039
115039
|
}
|
|
115040
115040
|
|
|
115041
115041
|
// node_modules/openapi-typescript/dist/transform/operation-object.js
|
|
115042
|
-
function transformOperationObject(operationObject, { path:
|
|
115042
|
+
function transformOperationObject(operationObject, { path: path19, ctx, wrapObject = true }) {
|
|
115043
115043
|
let { indentLv } = ctx;
|
|
115044
115044
|
const output = wrapObject ? ["{"] : [];
|
|
115045
115045
|
indentLv++;
|
|
@@ -115067,7 +115067,7 @@ function transformOperationObject(operationObject, { path: path18, ctx, wrapObje
|
|
|
115067
115067
|
if (c2)
|
|
115068
115068
|
paramInternalOutput.push(indent(c2, indentLv));
|
|
115069
115069
|
const parameterType = "$ref" in param ? param.$ref : transformParameterObject(param, {
|
|
115070
|
-
path: `${
|
|
115070
|
+
path: `${path19}/parameters/${param.name}`,
|
|
115071
115071
|
ctx: { ...ctx, indentLv }
|
|
115072
115072
|
});
|
|
115073
115073
|
paramInternalOutput.push(indent(`${key}: ${parameterType};`, indentLv));
|
|
@@ -115097,12 +115097,12 @@ function transformOperationObject(operationObject, { path: path18, ctx, wrapObje
|
|
|
115097
115097
|
if (ctx.immutableTypes)
|
|
115098
115098
|
key = tsReadonly(key);
|
|
115099
115099
|
if ("$ref" in operationObject.requestBody) {
|
|
115100
|
-
output.push(indent(`${key}: ${transformSchemaObject(operationObject.requestBody, { path:
|
|
115100
|
+
output.push(indent(`${key}: ${transformSchemaObject(operationObject.requestBody, { path: path19, ctx })};`, indentLv));
|
|
115101
115101
|
} else {
|
|
115102
115102
|
if (!operationObject.requestBody.required)
|
|
115103
115103
|
key = tsOptionalProperty(key);
|
|
115104
115104
|
const requestBody = transformRequestBodyObject(operationObject.requestBody, {
|
|
115105
|
-
path: `${
|
|
115105
|
+
path: `${path19}/requestBody`,
|
|
115106
115106
|
ctx: { ...ctx, indentLv }
|
|
115107
115107
|
});
|
|
115108
115108
|
output.push(indent(`${key}: ${requestBody};`, indentLv));
|
|
@@ -115120,12 +115120,12 @@ function transformOperationObject(operationObject, { path: path18, ctx, wrapObje
|
|
|
115120
115120
|
output.push(indent(c2, indentLv));
|
|
115121
115121
|
if ("$ref" in responseObject) {
|
|
115122
115122
|
output.push(indent(`${key}: ${transformSchemaObject(responseObject, {
|
|
115123
|
-
path: `${
|
|
115123
|
+
path: `${path19}/responses/${responseCode}`,
|
|
115124
115124
|
ctx
|
|
115125
115125
|
})};`, indentLv));
|
|
115126
115126
|
} else {
|
|
115127
115127
|
const responseType = transformResponseObject(responseObject, {
|
|
115128
|
-
path: `${
|
|
115128
|
+
path: `${path19}/responses/${responseCode}`,
|
|
115129
115129
|
ctx: { ...ctx, indentLv }
|
|
115130
115130
|
});
|
|
115131
115131
|
output.push(indent(`${key}: ${responseType};`, indentLv));
|
|
@@ -115143,7 +115143,7 @@ function transformOperationObject(operationObject, { path: path18, ctx, wrapObje
|
|
|
115143
115143
|
}
|
|
115144
115144
|
|
|
115145
115145
|
// node_modules/openapi-typescript/dist/transform/path-item-object.js
|
|
115146
|
-
function transformPathItemObject(pathItem, { path:
|
|
115146
|
+
function transformPathItemObject(pathItem, { path: path19, ctx }) {
|
|
115147
115147
|
var _a4, _b3;
|
|
115148
115148
|
let { indentLv } = ctx;
|
|
115149
115149
|
const output = [];
|
|
@@ -115165,19 +115165,19 @@ function transformPathItemObject(pathItem, { path: path18, ctx }) {
|
|
|
115165
115165
|
if ("$ref" in operationObject) {
|
|
115166
115166
|
output.push(indent(`${method}: ${operationObject.$ref}`, indentLv));
|
|
115167
115167
|
} else if (operationObject.operationId) {
|
|
115168
|
-
const operationType = transformOperationObject({ ...operationObject, parameters: Object.values(keyedParameters) }, { path:
|
|
115168
|
+
const operationType = transformOperationObject({ ...operationObject, parameters: Object.values(keyedParameters) }, { path: path19, ctx: { ...ctx, indentLv: 1 } });
|
|
115169
115169
|
ctx.operations[operationObject.operationId] = {
|
|
115170
115170
|
operationType,
|
|
115171
115171
|
comment: getSchemaObjectComment(operationObject, 1)
|
|
115172
115172
|
};
|
|
115173
115173
|
output.push(indent(`${method}: operations[${escStr(operationObject.operationId)}];`, indentLv));
|
|
115174
115174
|
} else {
|
|
115175
|
-
const operationType = transformOperationObject({ ...operationObject, parameters: Object.values(keyedParameters) }, { path:
|
|
115175
|
+
const operationType = transformOperationObject({ ...operationObject, parameters: Object.values(keyedParameters) }, { path: path19, ctx: { ...ctx, indentLv } });
|
|
115176
115176
|
output.push(indent(`${method}: ${operationType};`, indentLv));
|
|
115177
115177
|
}
|
|
115178
115178
|
}
|
|
115179
115179
|
if ((_b3 = pathItem.parameters) == null ? void 0 : _b3.length) {
|
|
115180
|
-
output.push(indent(transformOperationObject({ parameters: pathItem.parameters }, { path:
|
|
115180
|
+
output.push(indent(transformOperationObject({ parameters: pathItem.parameters }, { path: path19, ctx, wrapObject: false }).trim(), indentLv));
|
|
115181
115181
|
}
|
|
115182
115182
|
indentLv--;
|
|
115183
115183
|
output.push(indent("}", indentLv));
|
|
@@ -115185,9 +115185,9 @@ function transformPathItemObject(pathItem, { path: path18, ctx }) {
|
|
|
115185
115185
|
}
|
|
115186
115186
|
|
|
115187
115187
|
// node_modules/openapi-typescript/dist/transform/schema-object-map.js
|
|
115188
|
-
function transformSchemaObjectMap(schemaObjMap, { path:
|
|
115188
|
+
function transformSchemaObjectMap(schemaObjMap, { path: path19, ctx }) {
|
|
115189
115189
|
if ("type" in schemaObjMap && typeof schemaObjMap.type === "string" || "allOf" in schemaObjMap && Array.isArray(schemaObjMap.allOf) || "oneOf" in schemaObjMap && Array.isArray(schemaObjMap.oneOf) || "anyOf" in schemaObjMap && Array.isArray(schemaObjMap.anyOf)) {
|
|
115190
|
-
return transformSchemaObject(schemaObjMap, { path:
|
|
115190
|
+
return transformSchemaObject(schemaObjMap, { path: path19, ctx });
|
|
115191
115191
|
}
|
|
115192
115192
|
let { indentLv } = ctx;
|
|
115193
115193
|
const output = ["{"];
|
|
@@ -115204,16 +115204,16 @@ function transformSchemaObjectMap(schemaObjMap, { path: path18, ctx }) {
|
|
|
115204
115204
|
if (!("type" in schemaObject) && !("$ref" in schemaObject)) {
|
|
115205
115205
|
for (const method of ["get", "put", "post", "delete", "options", "head", "patch", "trace"]) {
|
|
115206
115206
|
if (method in schemaObject) {
|
|
115207
|
-
output.push(indent(`${key}: ${transformPathItemObject(schemaObject, { path: `${
|
|
115207
|
+
output.push(indent(`${key}: ${transformPathItemObject(schemaObject, { path: `${path19}${name}`, ctx: { ...ctx, indentLv } })};`, indentLv));
|
|
115208
115208
|
continue outer;
|
|
115209
115209
|
}
|
|
115210
115210
|
}
|
|
115211
115211
|
}
|
|
115212
115212
|
if ("in" in schemaObject) {
|
|
115213
|
-
output.push(indent(`${key}: ${transformParameterObject(schemaObject, { path: `${
|
|
115213
|
+
output.push(indent(`${key}: ${transformParameterObject(schemaObject, { path: `${path19}${name}`, ctx: { ...ctx, indentLv } })};`, indentLv));
|
|
115214
115214
|
continue;
|
|
115215
115215
|
}
|
|
115216
|
-
output.push(indent(`${key}: ${transformSchemaObject(schemaObject, { path: `${
|
|
115216
|
+
output.push(indent(`${key}: ${transformSchemaObject(schemaObject, { path: `${path19}${name}`, ctx: { ...ctx, indentLv } })};`, indentLv));
|
|
115217
115217
|
}
|
|
115218
115218
|
indentLv--;
|
|
115219
115219
|
output.push(indent("}", indentLv));
|
|
@@ -115230,7 +115230,7 @@ function transformSchemaObject(schemaObject, options) {
|
|
|
115230
115230
|
}
|
|
115231
115231
|
return result;
|
|
115232
115232
|
}
|
|
115233
|
-
function defaultSchemaObjectTransform(schemaObject, { path:
|
|
115233
|
+
function defaultSchemaObjectTransform(schemaObject, { path: path19, ctx }) {
|
|
115234
115234
|
var _a4, _b3, _c2;
|
|
115235
115235
|
let { indentLv } = ctx;
|
|
115236
115236
|
if (typeof schemaObject === "boolean") {
|
|
@@ -115246,13 +115246,13 @@ function defaultSchemaObjectTransform(schemaObject, { path: path18, ctx }) {
|
|
|
115246
115246
|
return schemaObject.$ref;
|
|
115247
115247
|
}
|
|
115248
115248
|
if (typeof ctx.transform === "function") {
|
|
115249
|
-
const result = ctx.transform(schemaObject, { path:
|
|
115249
|
+
const result = ctx.transform(schemaObject, { path: path19, ctx });
|
|
115250
115250
|
if (result)
|
|
115251
115251
|
return result;
|
|
115252
115252
|
}
|
|
115253
115253
|
if (schemaObject.const !== null && schemaObject.const !== void 0) {
|
|
115254
115254
|
return transformSchemaObject(escStr(schemaObject.const), {
|
|
115255
|
-
path:
|
|
115255
|
+
path: path19,
|
|
115256
115256
|
ctx: { ...ctx, immutableTypes: false, indentLv: indentLv + 1 }
|
|
115257
115257
|
});
|
|
115258
115258
|
}
|
|
@@ -115269,16 +115269,16 @@ function defaultSchemaObjectTransform(schemaObject, { path: path18, ctx }) {
|
|
|
115269
115269
|
}
|
|
115270
115270
|
const oneOf = typeof schemaObject === "object" && !schemaObject.discriminator && schemaObject.oneOf || schemaObject.enum || void 0;
|
|
115271
115271
|
if (oneOf && !oneOf.some((t) => "$ref" in t && ctx.discriminators[t.$ref])) {
|
|
115272
|
-
const oneOfNormalized = oneOf.map((item) => transformSchemaObject(item, { path:
|
|
115272
|
+
const oneOfNormalized = oneOf.map((item) => transformSchemaObject(item, { path: path19, ctx }));
|
|
115273
115273
|
if (schemaObject.nullable)
|
|
115274
115274
|
oneOfNormalized.push("null");
|
|
115275
115275
|
if ("type" in schemaObject && Array.isArray(schemaObject.type)) {
|
|
115276
|
-
const coreTypes = schemaObject.type.map((t) => transformSchemaObject({ ...schemaObject, oneOf: void 0, type: t }, { path:
|
|
115276
|
+
const coreTypes = schemaObject.type.map((t) => transformSchemaObject({ ...schemaObject, oneOf: void 0, type: t }, { path: path19, ctx }));
|
|
115277
115277
|
return tsUnionOf(...oneOfNormalized, ...coreTypes);
|
|
115278
115278
|
}
|
|
115279
115279
|
const oneOfTypes = oneOfNormalized.some((t) => typeof t === "string" && t.includes("{")) ? tsOneOf(...oneOfNormalized) : tsUnionOf(...oneOfNormalized);
|
|
115280
115280
|
if ("type" in schemaObject && schemaObject.type === "object" && (schemaObject.properties || schemaObject.additionalProperties)) {
|
|
115281
|
-
return tsIntersectionOf(transformSchemaObject({ ...schemaObject, oneOf: void 0, enum: void 0 }, { path:
|
|
115281
|
+
return tsIntersectionOf(transformSchemaObject({ ...schemaObject, oneOf: void 0, enum: void 0 }, { path: path19, ctx }), oneOfTypes);
|
|
115282
115282
|
}
|
|
115283
115283
|
return oneOfTypes;
|
|
115284
115284
|
}
|
|
@@ -115299,11 +115299,11 @@ function defaultSchemaObjectTransform(schemaObject, { path: path18, ctx }) {
|
|
|
115299
115299
|
isTupleType = true;
|
|
115300
115300
|
const result = [];
|
|
115301
115301
|
for (const item of (_a4 = schemaObject.prefixItems) != null ? _a4 : schemaObject.items) {
|
|
115302
|
-
result.push(transformSchemaObject(item, { path:
|
|
115302
|
+
result.push(transformSchemaObject(item, { path: path19, ctx: { ...ctx, indentLv } }));
|
|
115303
115303
|
}
|
|
115304
115304
|
itemType = `[${result.join(", ")}]`;
|
|
115305
115305
|
} else if (schemaObject.items) {
|
|
115306
|
-
itemType = transformSchemaObject(schemaObject.items, { path:
|
|
115306
|
+
itemType = transformSchemaObject(schemaObject.items, { path: path19, ctx: { ...ctx, indentLv } });
|
|
115307
115307
|
}
|
|
115308
115308
|
const min = typeof schemaObject.minItems === "number" && schemaObject.minItems >= 0 ? schemaObject.minItems : 0;
|
|
115309
115309
|
const max = typeof schemaObject.maxItems === "number" && schemaObject.maxItems >= 0 && min <= schemaObject.maxItems ? schemaObject.maxItems : void 0;
|
|
@@ -115326,7 +115326,7 @@ function defaultSchemaObjectTransform(schemaObject, { path: path18, ctx }) {
|
|
|
115326
115326
|
return schemaObject.nullable ? tsUnionOf(itemType, "null") : itemType;
|
|
115327
115327
|
}
|
|
115328
115328
|
if (Array.isArray(schemaObject.type)) {
|
|
115329
|
-
return tsUnionOf(...schemaObject.type.map((t) => transformSchemaObject({ ...schemaObject, type: t }, { path:
|
|
115329
|
+
return tsUnionOf(...schemaObject.type.map((t) => transformSchemaObject({ ...schemaObject, type: t }, { path: path19, ctx })));
|
|
115330
115330
|
}
|
|
115331
115331
|
}
|
|
115332
115332
|
const coreType = [];
|
|
@@ -115335,16 +115335,16 @@ function defaultSchemaObjectTransform(schemaObject, { path: path18, ctx }) {
|
|
|
115335
115335
|
continue;
|
|
115336
115336
|
const discriminatorRef = schemaObject[k].find((t) => "$ref" in t && (ctx.discriminators[t.$ref] || Object.values(ctx.discriminators).find((d) => {
|
|
115337
115337
|
var _a5;
|
|
115338
|
-
return (_a5 = d.oneOf) == null ? void 0 : _a5.includes(
|
|
115338
|
+
return (_a5 = d.oneOf) == null ? void 0 : _a5.includes(path19);
|
|
115339
115339
|
})));
|
|
115340
115340
|
if (discriminatorRef && ctx.discriminators[discriminatorRef.$ref]) {
|
|
115341
|
-
coreType.unshift(indent(getDiscriminatorPropertyName(
|
|
115341
|
+
coreType.unshift(indent(getDiscriminatorPropertyName(path19, ctx.discriminators[discriminatorRef.$ref]), indentLv + 1));
|
|
115342
115342
|
break;
|
|
115343
115343
|
}
|
|
115344
115344
|
}
|
|
115345
115345
|
for (const d of Object.values(ctx.discriminators)) {
|
|
115346
|
-
if ((_b3 = d.oneOf) == null ? void 0 : _b3.includes(
|
|
115347
|
-
coreType.unshift(indent(getDiscriminatorPropertyName(
|
|
115346
|
+
if ((_b3 = d.oneOf) == null ? void 0 : _b3.includes(path19)) {
|
|
115347
|
+
coreType.unshift(indent(getDiscriminatorPropertyName(path19, d), indentLv + 1));
|
|
115348
115348
|
break;
|
|
115349
115349
|
}
|
|
115350
115350
|
}
|
|
@@ -115362,7 +115362,7 @@ function defaultSchemaObjectTransform(schemaObject, { path: path18, ctx }) {
|
|
|
115362
115362
|
key = tsOptionalProperty(key);
|
|
115363
115363
|
if (ctx.immutableTypes || schemaObject.readOnly)
|
|
115364
115364
|
key = tsReadonly(key);
|
|
115365
|
-
coreType.push(indent(`${key}: ${transformSchemaObject(v, { path:
|
|
115365
|
+
coreType.push(indent(`${key}: ${transformSchemaObject(v, { path: path19, ctx: { ...ctx, indentLv } })};`, indentLv));
|
|
115366
115366
|
}
|
|
115367
115367
|
if (schemaObject.additionalProperties || ctx.additionalProperties) {
|
|
115368
115368
|
let addlType = "unknown";
|
|
@@ -115371,7 +115371,7 @@ function defaultSchemaObjectTransform(schemaObject, { path: path18, ctx }) {
|
|
|
115371
115371
|
addlType = "unknown";
|
|
115372
115372
|
} else {
|
|
115373
115373
|
addlType = transformSchemaObject(schemaObject.additionalProperties, {
|
|
115374
|
-
path:
|
|
115374
|
+
path: path19,
|
|
115375
115375
|
ctx: { ...ctx, indentLv }
|
|
115376
115376
|
});
|
|
115377
115377
|
}
|
|
@@ -115384,7 +115384,7 @@ function defaultSchemaObjectTransform(schemaObject, { path: path18, ctx }) {
|
|
|
115384
115384
|
}
|
|
115385
115385
|
}
|
|
115386
115386
|
if (schemaObject.$defs && typeof schemaObject.$defs === "object" && Object.keys(schemaObject.$defs).length) {
|
|
115387
|
-
coreType.push(indent(`$defs: ${transformSchemaObjectMap(schemaObject.$defs, { path: `${
|
|
115387
|
+
coreType.push(indent(`$defs: ${transformSchemaObjectMap(schemaObject.$defs, { path: `${path19}$defs/`, ctx: { ...ctx, indentLv } })};`, indentLv));
|
|
115388
115388
|
}
|
|
115389
115389
|
indentLv--;
|
|
115390
115390
|
}
|
|
@@ -115394,7 +115394,7 @@ ${indent("}", indentLv)}` : "";
|
|
|
115394
115394
|
function collectCompositions(items) {
|
|
115395
115395
|
const output = [];
|
|
115396
115396
|
for (const item of items) {
|
|
115397
|
-
const itemType = transformSchemaObject(item, { path:
|
|
115397
|
+
const itemType = transformSchemaObject(item, { path: path19, ctx: { ...ctx, indentLv } });
|
|
115398
115398
|
if ("$ref" in item && ctx.discriminators[item.$ref]) {
|
|
115399
115399
|
output.push(tsOmit(itemType, [ctx.discriminators[item.$ref].propertyName]));
|
|
115400
115400
|
continue;
|
|
@@ -115431,8 +115431,8 @@ ${indent("}", indentLv)}` : "";
|
|
|
115431
115431
|
return "unknown";
|
|
115432
115432
|
return ctx.emptyObjectsUnknown ? "Record<string, unknown>" : "Record<string, never>";
|
|
115433
115433
|
}
|
|
115434
|
-
function getDiscriminatorPropertyName(
|
|
115435
|
-
let value = parseRef(
|
|
115434
|
+
function getDiscriminatorPropertyName(path19, discriminator) {
|
|
115435
|
+
let value = parseRef(path19).path.pop();
|
|
115436
115436
|
if (discriminator.mapping) {
|
|
115437
115437
|
const matchedValue = Object.entries(discriminator.mapping).find(([, v]) => !v.startsWith("#") && v === value || v.startsWith("#") && parseRef(v).path.pop() === value);
|
|
115438
115438
|
if (matchedValue)
|
|
@@ -115442,16 +115442,16 @@ function getDiscriminatorPropertyName(path18, discriminator) {
|
|
|
115442
115442
|
}
|
|
115443
115443
|
|
|
115444
115444
|
// node_modules/openapi-typescript/dist/transform/media-type-object.js
|
|
115445
|
-
function transformMediaTypeObject(mediaTypeObject, { path:
|
|
115445
|
+
function transformMediaTypeObject(mediaTypeObject, { path: path19, ctx }) {
|
|
115446
115446
|
if (!mediaTypeObject.schema)
|
|
115447
115447
|
return "unknown";
|
|
115448
|
-
return transformSchemaObject(mediaTypeObject.schema, { path:
|
|
115448
|
+
return transformSchemaObject(mediaTypeObject.schema, { path: path19, ctx });
|
|
115449
115449
|
}
|
|
115450
115450
|
|
|
115451
115451
|
// node_modules/openapi-typescript/dist/transform/header-object.js
|
|
115452
|
-
function transformHeaderObject(headerObject, { path:
|
|
115452
|
+
function transformHeaderObject(headerObject, { path: path19, ctx }) {
|
|
115453
115453
|
if (headerObject.schema)
|
|
115454
|
-
return transformSchemaObject(headerObject.schema, { path:
|
|
115454
|
+
return transformSchemaObject(headerObject.schema, { path: path19, ctx });
|
|
115455
115455
|
if (headerObject.content) {
|
|
115456
115456
|
let { indentLv } = ctx;
|
|
115457
115457
|
const output = ["{"];
|
|
@@ -115464,9 +115464,9 @@ function transformHeaderObject(headerObject, { path: path18, ctx }) {
|
|
|
115464
115464
|
if (ctx.immutableTypes)
|
|
115465
115465
|
key = tsReadonly(key);
|
|
115466
115466
|
if ("$ref" in mediaTypeObject) {
|
|
115467
|
-
output.push(indent(`${key}: ${transformSchemaObject(mediaTypeObject, { path: `${
|
|
115467
|
+
output.push(indent(`${key}: ${transformSchemaObject(mediaTypeObject, { path: `${path19}/${contentType}`, ctx })};`, indentLv));
|
|
115468
115468
|
} else {
|
|
115469
|
-
const mediaType = transformMediaTypeObject(mediaTypeObject, { path: `${
|
|
115469
|
+
const mediaType = transformMediaTypeObject(mediaTypeObject, { path: `${path19}/${contentType}`, ctx });
|
|
115470
115470
|
output.push(indent(`${key}: ${mediaType};`, indentLv));
|
|
115471
115471
|
}
|
|
115472
115472
|
}
|
|
@@ -115646,25 +115646,25 @@ function transformPathsObject(pathsObject, ctx) {
|
|
|
115646
115646
|
for (const [url2, pathItemObject] of getEntries(pathsObject, ctx.alphabetize, ctx.excludeDeprecated)) {
|
|
115647
115647
|
if (!pathItemObject || typeof pathItemObject !== "object")
|
|
115648
115648
|
continue;
|
|
115649
|
-
let
|
|
115649
|
+
let path19 = url2;
|
|
115650
115650
|
if ("$ref" in pathItemObject) {
|
|
115651
115651
|
const c2 = getSchemaObjectComment(pathItemObject, indentLv);
|
|
115652
115652
|
if (c2)
|
|
115653
115653
|
output.push(indent(c2, indentLv));
|
|
115654
|
-
output.push(indent(`${escStr(
|
|
115654
|
+
output.push(indent(`${escStr(path19)}: ${pathItemObject.$ref};`, indentLv));
|
|
115655
115655
|
continue;
|
|
115656
115656
|
}
|
|
115657
115657
|
const pathParams = new Map([...extractPathParams(pathItemObject), ...OPERATIONS.flatMap((op) => Array.from(extractPathParams(pathItemObject[op])))]);
|
|
115658
115658
|
if (ctx.pathParamsAsTypes && pathParams.size) {
|
|
115659
115659
|
for (const p of pathParams.values()) {
|
|
115660
115660
|
const paramType = transformParameterObject(p, { path: `#/paths/${url2}/parameters/${p.name}`, ctx });
|
|
115661
|
-
|
|
115661
|
+
path19 = path19.replace(`{${p.name}}`, `\${${paramType}}`);
|
|
115662
115662
|
}
|
|
115663
|
-
|
|
115663
|
+
path19 = `[path: \`${path19}\`]`;
|
|
115664
115664
|
} else {
|
|
115665
|
-
|
|
115665
|
+
path19 = escStr(path19);
|
|
115666
115666
|
}
|
|
115667
|
-
output.push(indent(`${
|
|
115667
|
+
output.push(indent(`${path19}: ${transformPathItemObject(pathItemObject, {
|
|
115668
115668
|
path: `#/paths/${url2}`,
|
|
115669
115669
|
ctx: { ...ctx, indentLv }
|
|
115670
115670
|
})};`, indentLv));
|
|
@@ -115715,7 +115715,7 @@ function transformSchema(schema2, ctx) {
|
|
|
115715
115715
|
}
|
|
115716
115716
|
|
|
115717
115717
|
// node_modules/openapi-typescript/dist/transform/parameter-object-array.js
|
|
115718
|
-
function transformParameterObjectArray(parameterObjectArray, { path:
|
|
115718
|
+
function transformParameterObjectArray(parameterObjectArray, { path: path19, ctx }) {
|
|
115719
115719
|
const output = [];
|
|
115720
115720
|
const parameters = Array.isArray(parameterObjectArray) ? parameterObjectArray.map((p) => [p.name, p]) : Object.entries(parameterObjectArray);
|
|
115721
115721
|
for (const [id, param] of parameters) {
|
|
@@ -115728,7 +115728,7 @@ function transformParameterObjectArray(parameterObjectArray, { path: path18, ctx
|
|
|
115728
115728
|
if (node.in !== "path" && !node.required)
|
|
115729
115729
|
key = tsOptionalProperty(key);
|
|
115730
115730
|
output.push(indent(`${key}: ${transformParameterObject(node, {
|
|
115731
|
-
path: `${
|
|
115731
|
+
path: `${path19}/${node.in}/${node.name}`,
|
|
115732
115732
|
ctx: { ...ctx, indentLv: ctx.indentLv + 1 }
|
|
115733
115733
|
})};`, ctx.indentLv));
|
|
115734
115734
|
}
|
|
@@ -115830,7 +115830,7 @@ async function openapiTS(schema2, options = {}) {
|
|
|
115830
115830
|
for (const subschemaID of externalKeys) {
|
|
115831
115831
|
const subschema = allSchemas[subschemaID];
|
|
115832
115832
|
const key = escObjKey(subschemaID);
|
|
115833
|
-
const
|
|
115833
|
+
const path19 = `${subschemaID}#`;
|
|
115834
115834
|
let subschemaOutput = "";
|
|
115835
115835
|
let comment2;
|
|
115836
115836
|
switch (subschema.hint) {
|
|
@@ -115851,25 +115851,25 @@ async function openapiTS(schema2, options = {}) {
|
|
|
115851
115851
|
break;
|
|
115852
115852
|
}
|
|
115853
115853
|
case "MediaTypeObject": {
|
|
115854
|
-
subschemaOutput = transformMediaTypeObject(subschema.schema, { path:
|
|
115854
|
+
subschemaOutput = transformMediaTypeObject(subschema.schema, { path: path19, ctx: { ...ctx, indentLv } });
|
|
115855
115855
|
break;
|
|
115856
115856
|
}
|
|
115857
115857
|
case "OperationObject": {
|
|
115858
115858
|
comment2 = getSchemaObjectComment(subschema.schema, indentLv);
|
|
115859
|
-
subschemaOutput = transformOperationObject(subschema.schema, { path:
|
|
115859
|
+
subschemaOutput = transformOperationObject(subschema.schema, { path: path19, ctx: { ...ctx, indentLv } });
|
|
115860
115860
|
break;
|
|
115861
115861
|
}
|
|
115862
115862
|
case "ParameterObject": {
|
|
115863
|
-
subschemaOutput = transformParameterObject(subschema.schema, { path:
|
|
115863
|
+
subschemaOutput = transformParameterObject(subschema.schema, { path: path19, ctx: { ...ctx, indentLv } });
|
|
115864
115864
|
break;
|
|
115865
115865
|
}
|
|
115866
115866
|
case "ParameterObject[]": {
|
|
115867
115867
|
if (typeof subschema.schema === "object" && ("schema" in subschema.schema || "type" in subschema.schema)) {
|
|
115868
|
-
subschemaOutput = transformSchemaObject(subschema.schema, { path:
|
|
115868
|
+
subschemaOutput = transformSchemaObject(subschema.schema, { path: path19, ctx: { ...ctx, indentLv } });
|
|
115869
115869
|
} else {
|
|
115870
115870
|
subschemaOutput += "{\n";
|
|
115871
115871
|
indentLv++;
|
|
115872
|
-
subschemaOutput += transformParameterObjectArray(subschema.schema, { path:
|
|
115872
|
+
subschemaOutput += transformParameterObjectArray(subschema.schema, { path: path19, ctx: { ...ctx, indentLv } });
|
|
115873
115873
|
subschemaOutput += "\n";
|
|
115874
115874
|
indentLv--;
|
|
115875
115875
|
subschemaOutput += indent("};", indentLv);
|
|
@@ -115877,19 +115877,19 @@ async function openapiTS(schema2, options = {}) {
|
|
|
115877
115877
|
break;
|
|
115878
115878
|
}
|
|
115879
115879
|
case "RequestBodyObject": {
|
|
115880
|
-
subschemaOutput = `${transformRequestBodyObject(subschema.schema, { path:
|
|
115880
|
+
subschemaOutput = `${transformRequestBodyObject(subschema.schema, { path: path19, ctx: { ...ctx, indentLv } })};`;
|
|
115881
115881
|
break;
|
|
115882
115882
|
}
|
|
115883
115883
|
case "ResponseObject": {
|
|
115884
|
-
subschemaOutput = `${transformResponseObject(subschema.schema, { path:
|
|
115884
|
+
subschemaOutput = `${transformResponseObject(subschema.schema, { path: path19, ctx: { ...ctx, indentLv } })};`;
|
|
115885
115885
|
break;
|
|
115886
115886
|
}
|
|
115887
115887
|
case "SchemaMap": {
|
|
115888
|
-
subschemaOutput = `${transformSchemaObjectMap(subschema.schema, { path:
|
|
115888
|
+
subschemaOutput = `${transformSchemaObjectMap(subschema.schema, { path: path19, ctx: { ...ctx, indentLv } })};`;
|
|
115889
115889
|
break;
|
|
115890
115890
|
}
|
|
115891
115891
|
case "SchemaObject": {
|
|
115892
|
-
subschemaOutput = `${transformSchemaObject(subschema.schema, { path:
|
|
115892
|
+
subschemaOutput = `${transformSchemaObject(subschema.schema, { path: path19, ctx: { ...ctx, indentLv } })};`;
|
|
115893
115893
|
break;
|
|
115894
115894
|
}
|
|
115895
115895
|
default: {
|
|
@@ -115945,6 +115945,109 @@ var openapi = new Command("openapi:gen").description("Generate TypeScript types
|
|
|
115945
115945
|
}
|
|
115946
115946
|
});
|
|
115947
115947
|
|
|
115948
|
+
// src/commands/delete-group.ts
|
|
115949
|
+
var fs12 = __toESM(require("fs"));
|
|
115950
|
+
var path18 = __toESM(require("path"));
|
|
115951
|
+
var ENDPOINT_BASE2 = ({ mode, version: version2, port }) => {
|
|
115952
|
+
const normalizedMode = (mode == null ? void 0 : mode.toLowerCase()) === "prod" || (mode == null ? void 0 : mode.toLowerCase()) === "production" ? "prod" : "staging";
|
|
115953
|
+
const normalizedVersion = (version2 == null ? void 0 : version2.toLowerCase()) === "v2" ? "v2" : "v1";
|
|
115954
|
+
if (port) return `http://localhost:${port}`;
|
|
115955
|
+
if (normalizedVersion === "v2") return `https://${normalizedMode}-v2-cicd.microfox.app`;
|
|
115956
|
+
return `https://${normalizedMode}-v1-cicd.microfox.app`;
|
|
115957
|
+
};
|
|
115958
|
+
function resolveMicrofoxConfig(startCwd) {
|
|
115959
|
+
const cwd = startCwd;
|
|
115960
|
+
const configPath = path18.join(cwd, "microfox.json");
|
|
115961
|
+
if (fs12.existsSync(configPath)) {
|
|
115962
|
+
return JSON.parse(fs12.readFileSync(configPath, "utf-8"));
|
|
115963
|
+
}
|
|
115964
|
+
const parentConfigPath = path18.join(path18.dirname(cwd), "microfox.json");
|
|
115965
|
+
if (fs12.existsSync(parentConfigPath)) {
|
|
115966
|
+
return JSON.parse(fs12.readFileSync(parentConfigPath, "utf-8"));
|
|
115967
|
+
}
|
|
115968
|
+
const serverlessDir = findServerlessWorkersDir(cwd);
|
|
115969
|
+
if (serverlessDir) {
|
|
115970
|
+
const inServerlessPath = path18.join(serverlessDir, "microfox.json");
|
|
115971
|
+
const inServerlessParentPath = path18.join(path18.dirname(serverlessDir), "microfox.json");
|
|
115972
|
+
if (!fs12.existsSync(inServerlessPath) && fs12.existsSync(inServerlessParentPath)) {
|
|
115973
|
+
try {
|
|
115974
|
+
fs12.copyFileSync(inServerlessParentPath, inServerlessPath);
|
|
115975
|
+
} catch (e) {
|
|
115976
|
+
}
|
|
115977
|
+
}
|
|
115978
|
+
const finalConfigPath = fs12.existsSync(inServerlessPath) ? inServerlessPath : inServerlessParentPath;
|
|
115979
|
+
if (fs12.existsSync(finalConfigPath)) {
|
|
115980
|
+
return JSON.parse(fs12.readFileSync(finalConfigPath, "utf-8"));
|
|
115981
|
+
}
|
|
115982
|
+
}
|
|
115983
|
+
console.error(source_default.red("\u274C Error: `microfox.json` not found. Run from project root or `.serverless-workers`."));
|
|
115984
|
+
process.exit(1);
|
|
115985
|
+
}
|
|
115986
|
+
async function deleteGroupAction(group) {
|
|
115987
|
+
var _a4, _b3, _c2, _d2;
|
|
115988
|
+
const normalizedGroup = group == null ? void 0 : group.trim();
|
|
115989
|
+
if (!normalizedGroup) {
|
|
115990
|
+
console.error(source_default.red("\u274C Error: group name is required."));
|
|
115991
|
+
process.exit(1);
|
|
115992
|
+
}
|
|
115993
|
+
const cfg = resolveMicrofoxConfig(process.cwd());
|
|
115994
|
+
const deploymentConfig = cfg.deployment || {};
|
|
115995
|
+
const apiVersion = (deploymentConfig.apiVersion || cfg.apiVersion || cfg.API_VERSION || "").toString().toLowerCase();
|
|
115996
|
+
if (apiVersion !== "v2") {
|
|
115997
|
+
console.error(source_default.red("\u274C Error: `delete-group` is supported only for v2 deployments."));
|
|
115998
|
+
process.exit(1);
|
|
115999
|
+
}
|
|
116000
|
+
const mode = deploymentConfig.apiMode || cfg.apiMode || cfg.API_MODE;
|
|
116001
|
+
const port = deploymentConfig.port || cfg.port || cfg.PORT;
|
|
116002
|
+
const base = ENDPOINT_BASE2({ mode, version: "v2", port });
|
|
116003
|
+
const projectId = cfg.projectId || process.env.PROJECT_ID;
|
|
116004
|
+
if (!projectId) {
|
|
116005
|
+
console.error(source_default.red("\u274C Error: `projectId` is required. Add `projectId` to your microfox.json."));
|
|
116006
|
+
process.exit(1);
|
|
116007
|
+
}
|
|
116008
|
+
const url2 = `${base}/api/projects/${encodeURIComponent(projectId)}/groups/${encodeURIComponent(normalizedGroup)}`;
|
|
116009
|
+
console.log(source_default.cyan(`\u{1F9F9} Requesting deletion for group "${normalizedGroup}"...`));
|
|
116010
|
+
try {
|
|
116011
|
+
const response = await axios_default.delete(url2, {
|
|
116012
|
+
headers: {
|
|
116013
|
+
"x-project-id": projectId
|
|
116014
|
+
},
|
|
116015
|
+
data: {
|
|
116016
|
+
group: normalizedGroup
|
|
116017
|
+
}
|
|
116018
|
+
});
|
|
116019
|
+
if (response.status >= 200 && response.status < 300) {
|
|
116020
|
+
console.log(source_default.green("\u2705 Group resource deletion initiated."));
|
|
116021
|
+
if ((_a4 = response.data) == null ? void 0 : _a4.message) {
|
|
116022
|
+
console.log(source_default.green(` Message: ${response.data.message}`));
|
|
116023
|
+
}
|
|
116024
|
+
if ((_b3 = response.data) == null ? void 0 : _b3.workerName) {
|
|
116025
|
+
console.log(source_default.green(` Worker: ${response.data.workerName}`));
|
|
116026
|
+
}
|
|
116027
|
+
return;
|
|
116028
|
+
}
|
|
116029
|
+
console.error(source_default.red(`\u274C Failed with status ${response.status}`));
|
|
116030
|
+
process.exit(1);
|
|
116031
|
+
} catch (error2) {
|
|
116032
|
+
if (axios_default.isAxiosError(error2) && error2.response) {
|
|
116033
|
+
console.error(source_default.red(`\u274C Error: ${error2.response.status}`));
|
|
116034
|
+
const message = ((_c2 = error2.response.data) == null ? void 0 : _c2.error) || ((_d2 = error2.response.data) == null ? void 0 : _d2.message);
|
|
116035
|
+
if (message) {
|
|
116036
|
+
console.error(source_default.red(` ${message}`));
|
|
116037
|
+
} else {
|
|
116038
|
+
console.error(source_default.red(` ${JSON.stringify(error2.response.data)}`));
|
|
116039
|
+
}
|
|
116040
|
+
} else {
|
|
116041
|
+
console.error(source_default.red("\u274C Failed to delete group resources."));
|
|
116042
|
+
console.error(error2);
|
|
116043
|
+
}
|
|
116044
|
+
process.exit(1);
|
|
116045
|
+
}
|
|
116046
|
+
}
|
|
116047
|
+
var deleteGroupCommand = new Command("delete-group").description("Delete resources for a specific project group (v2)").argument("<group>", "Group name to delete (e.g. default, core, workflows)").action(async (group) => {
|
|
116048
|
+
await deleteGroupAction(group);
|
|
116049
|
+
});
|
|
116050
|
+
|
|
115948
116051
|
// src/cli.ts
|
|
115949
116052
|
var program2 = new Command();
|
|
115950
116053
|
program2.name("microfox").description("Universal CLI tool for creating and managing Microfox projects").version(version);
|
|
@@ -115962,6 +116065,7 @@ program2.addCommand(kickstartCommand);
|
|
|
115962
116065
|
program2.addCommand(track);
|
|
115963
116066
|
program2.addCommand(trackCi);
|
|
115964
116067
|
program2.addCommand(openapi);
|
|
116068
|
+
program2.addCommand(deleteGroupCommand);
|
|
115965
116069
|
program2.addCommand(addCommand);
|
|
115966
116070
|
program2.action(() => {
|
|
115967
116071
|
if (process.argv.length <= 2) {
|