@sinoia/hubdoc-tools 1.12.0 → 1.13.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/cli.js +1060 -820
- package/docs/llm-usage.md +65 -0
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -929,8 +929,8 @@ var require_command = __commonJS({
|
|
|
929
929
|
"node_modules/commander/lib/command.js"(exports2) {
|
|
930
930
|
var EventEmitter5 = require("events").EventEmitter;
|
|
931
931
|
var childProcess = require("child_process");
|
|
932
|
-
var
|
|
933
|
-
var
|
|
932
|
+
var path44 = require("path");
|
|
933
|
+
var fs40 = require("fs");
|
|
934
934
|
var process5 = require("process");
|
|
935
935
|
var { Argument: Argument2, humanReadableArgName } = require_argument();
|
|
936
936
|
var { CommanderError: CommanderError2 } = require_error();
|
|
@@ -1753,10 +1753,10 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1753
1753
|
let launchWithNode = false;
|
|
1754
1754
|
const sourceExt = [".js", ".ts", ".tsx", ".mjs", ".cjs"];
|
|
1755
1755
|
function findFile(baseDir, baseName) {
|
|
1756
|
-
const localBin =
|
|
1757
|
-
if (
|
|
1758
|
-
if (sourceExt.includes(
|
|
1759
|
-
const foundExt = sourceExt.find((ext2) =>
|
|
1756
|
+
const localBin = path44.resolve(baseDir, baseName);
|
|
1757
|
+
if (fs40.existsSync(localBin)) return localBin;
|
|
1758
|
+
if (sourceExt.includes(path44.extname(baseName))) return void 0;
|
|
1759
|
+
const foundExt = sourceExt.find((ext2) => fs40.existsSync(`${localBin}${ext2}`));
|
|
1760
1760
|
if (foundExt) return `${localBin}${foundExt}`;
|
|
1761
1761
|
return void 0;
|
|
1762
1762
|
}
|
|
@@ -1767,23 +1767,23 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1767
1767
|
if (this._scriptPath) {
|
|
1768
1768
|
let resolvedScriptPath;
|
|
1769
1769
|
try {
|
|
1770
|
-
resolvedScriptPath =
|
|
1770
|
+
resolvedScriptPath = fs40.realpathSync(this._scriptPath);
|
|
1771
1771
|
} catch (err) {
|
|
1772
1772
|
resolvedScriptPath = this._scriptPath;
|
|
1773
1773
|
}
|
|
1774
|
-
executableDir =
|
|
1774
|
+
executableDir = path44.resolve(path44.dirname(resolvedScriptPath), executableDir);
|
|
1775
1775
|
}
|
|
1776
1776
|
if (executableDir) {
|
|
1777
1777
|
let localFile = findFile(executableDir, executableFile);
|
|
1778
1778
|
if (!localFile && !subcommand._executableFile && this._scriptPath) {
|
|
1779
|
-
const legacyName =
|
|
1779
|
+
const legacyName = path44.basename(this._scriptPath, path44.extname(this._scriptPath));
|
|
1780
1780
|
if (legacyName !== this._name) {
|
|
1781
1781
|
localFile = findFile(executableDir, `${legacyName}-${subcommand._name}`);
|
|
1782
1782
|
}
|
|
1783
1783
|
}
|
|
1784
1784
|
executableFile = localFile || executableFile;
|
|
1785
1785
|
}
|
|
1786
|
-
launchWithNode = sourceExt.includes(
|
|
1786
|
+
launchWithNode = sourceExt.includes(path44.extname(executableFile));
|
|
1787
1787
|
let proc2;
|
|
1788
1788
|
if (process5.platform !== "win32") {
|
|
1789
1789
|
if (launchWithNode) {
|
|
@@ -2566,7 +2566,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2566
2566
|
* @return {Command}
|
|
2567
2567
|
*/
|
|
2568
2568
|
nameFromFilename(filename) {
|
|
2569
|
-
this._name =
|
|
2569
|
+
this._name = path44.basename(filename, path44.extname(filename));
|
|
2570
2570
|
return this;
|
|
2571
2571
|
}
|
|
2572
2572
|
/**
|
|
@@ -2580,9 +2580,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2580
2580
|
* @param {string} [path]
|
|
2581
2581
|
* @return {string|null|Command}
|
|
2582
2582
|
*/
|
|
2583
|
-
executableDir(
|
|
2584
|
-
if (
|
|
2585
|
-
this._executableDir =
|
|
2583
|
+
executableDir(path45) {
|
|
2584
|
+
if (path45 === void 0) return this._executableDir;
|
|
2585
|
+
this._executableDir = path45;
|
|
2586
2586
|
return this;
|
|
2587
2587
|
}
|
|
2588
2588
|
/**
|
|
@@ -3642,15 +3642,15 @@ var require_route = __commonJS({
|
|
|
3642
3642
|
};
|
|
3643
3643
|
}
|
|
3644
3644
|
function wrapConversion(toModel, graph) {
|
|
3645
|
-
const
|
|
3645
|
+
const path44 = [graph[toModel].parent, toModel];
|
|
3646
3646
|
let fn = conversions[graph[toModel].parent][toModel];
|
|
3647
3647
|
let cur = graph[toModel].parent;
|
|
3648
3648
|
while (graph[cur].parent) {
|
|
3649
|
-
|
|
3649
|
+
path44.unshift(graph[cur].parent);
|
|
3650
3650
|
fn = link(conversions[graph[cur].parent][cur], fn);
|
|
3651
3651
|
cur = graph[cur].parent;
|
|
3652
3652
|
}
|
|
3653
|
-
fn.conversion =
|
|
3653
|
+
fn.conversion = path44;
|
|
3654
3654
|
return fn;
|
|
3655
3655
|
}
|
|
3656
3656
|
module2.exports = function(fromModel) {
|
|
@@ -4373,54 +4373,54 @@ var require_polyfills = __commonJS({
|
|
|
4373
4373
|
}
|
|
4374
4374
|
var chdir;
|
|
4375
4375
|
module2.exports = patch;
|
|
4376
|
-
function patch(
|
|
4376
|
+
function patch(fs40) {
|
|
4377
4377
|
if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
|
|
4378
|
-
patchLchmod(
|
|
4379
|
-
}
|
|
4380
|
-
if (!
|
|
4381
|
-
patchLutimes(
|
|
4382
|
-
}
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
if (
|
|
4402
|
-
|
|
4378
|
+
patchLchmod(fs40);
|
|
4379
|
+
}
|
|
4380
|
+
if (!fs40.lutimes) {
|
|
4381
|
+
patchLutimes(fs40);
|
|
4382
|
+
}
|
|
4383
|
+
fs40.chown = chownFix(fs40.chown);
|
|
4384
|
+
fs40.fchown = chownFix(fs40.fchown);
|
|
4385
|
+
fs40.lchown = chownFix(fs40.lchown);
|
|
4386
|
+
fs40.chmod = chmodFix(fs40.chmod);
|
|
4387
|
+
fs40.fchmod = chmodFix(fs40.fchmod);
|
|
4388
|
+
fs40.lchmod = chmodFix(fs40.lchmod);
|
|
4389
|
+
fs40.chownSync = chownFixSync(fs40.chownSync);
|
|
4390
|
+
fs40.fchownSync = chownFixSync(fs40.fchownSync);
|
|
4391
|
+
fs40.lchownSync = chownFixSync(fs40.lchownSync);
|
|
4392
|
+
fs40.chmodSync = chmodFixSync(fs40.chmodSync);
|
|
4393
|
+
fs40.fchmodSync = chmodFixSync(fs40.fchmodSync);
|
|
4394
|
+
fs40.lchmodSync = chmodFixSync(fs40.lchmodSync);
|
|
4395
|
+
fs40.stat = statFix(fs40.stat);
|
|
4396
|
+
fs40.fstat = statFix(fs40.fstat);
|
|
4397
|
+
fs40.lstat = statFix(fs40.lstat);
|
|
4398
|
+
fs40.statSync = statFixSync(fs40.statSync);
|
|
4399
|
+
fs40.fstatSync = statFixSync(fs40.fstatSync);
|
|
4400
|
+
fs40.lstatSync = statFixSync(fs40.lstatSync);
|
|
4401
|
+
if (fs40.chmod && !fs40.lchmod) {
|
|
4402
|
+
fs40.lchmod = function(path44, mode, cb) {
|
|
4403
4403
|
if (cb) process.nextTick(cb);
|
|
4404
4404
|
};
|
|
4405
|
-
|
|
4405
|
+
fs40.lchmodSync = function() {
|
|
4406
4406
|
};
|
|
4407
4407
|
}
|
|
4408
|
-
if (
|
|
4409
|
-
|
|
4408
|
+
if (fs40.chown && !fs40.lchown) {
|
|
4409
|
+
fs40.lchown = function(path44, uid, gid, cb) {
|
|
4410
4410
|
if (cb) process.nextTick(cb);
|
|
4411
4411
|
};
|
|
4412
|
-
|
|
4412
|
+
fs40.lchownSync = function() {
|
|
4413
4413
|
};
|
|
4414
4414
|
}
|
|
4415
4415
|
if (platform === "win32") {
|
|
4416
|
-
|
|
4416
|
+
fs40.rename = typeof fs40.rename !== "function" ? fs40.rename : (function(fs$rename) {
|
|
4417
4417
|
function rename(from3, to, cb) {
|
|
4418
4418
|
var start = Date.now();
|
|
4419
4419
|
var backoff = 0;
|
|
4420
4420
|
fs$rename(from3, to, function CB(er) {
|
|
4421
4421
|
if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
|
|
4422
4422
|
setTimeout(function() {
|
|
4423
|
-
|
|
4423
|
+
fs40.stat(to, function(stater, st) {
|
|
4424
4424
|
if (stater && stater.code === "ENOENT")
|
|
4425
4425
|
fs$rename(from3, to, CB);
|
|
4426
4426
|
else
|
|
@@ -4436,9 +4436,9 @@ var require_polyfills = __commonJS({
|
|
|
4436
4436
|
}
|
|
4437
4437
|
if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
|
|
4438
4438
|
return rename;
|
|
4439
|
-
})(
|
|
4439
|
+
})(fs40.rename);
|
|
4440
4440
|
}
|
|
4441
|
-
|
|
4441
|
+
fs40.read = typeof fs40.read !== "function" ? fs40.read : (function(fs$read) {
|
|
4442
4442
|
function read3(fd, buffer2, offset, length, position, callback_) {
|
|
4443
4443
|
var callback;
|
|
4444
4444
|
if (callback_ && typeof callback_ === "function") {
|
|
@@ -4446,22 +4446,22 @@ var require_polyfills = __commonJS({
|
|
|
4446
4446
|
callback = function(er, _2, __) {
|
|
4447
4447
|
if (er && er.code === "EAGAIN" && eagCounter < 10) {
|
|
4448
4448
|
eagCounter++;
|
|
4449
|
-
return fs$read.call(
|
|
4449
|
+
return fs$read.call(fs40, fd, buffer2, offset, length, position, callback);
|
|
4450
4450
|
}
|
|
4451
4451
|
callback_.apply(this, arguments);
|
|
4452
4452
|
};
|
|
4453
4453
|
}
|
|
4454
|
-
return fs$read.call(
|
|
4454
|
+
return fs$read.call(fs40, fd, buffer2, offset, length, position, callback);
|
|
4455
4455
|
}
|
|
4456
4456
|
if (Object.setPrototypeOf) Object.setPrototypeOf(read3, fs$read);
|
|
4457
4457
|
return read3;
|
|
4458
|
-
})(
|
|
4459
|
-
|
|
4458
|
+
})(fs40.read);
|
|
4459
|
+
fs40.readSync = typeof fs40.readSync !== "function" ? fs40.readSync : /* @__PURE__ */ (function(fs$readSync) {
|
|
4460
4460
|
return function(fd, buffer2, offset, length, position) {
|
|
4461
4461
|
var eagCounter = 0;
|
|
4462
4462
|
while (true) {
|
|
4463
4463
|
try {
|
|
4464
|
-
return fs$readSync.call(
|
|
4464
|
+
return fs$readSync.call(fs40, fd, buffer2, offset, length, position);
|
|
4465
4465
|
} catch (er) {
|
|
4466
4466
|
if (er.code === "EAGAIN" && eagCounter < 10) {
|
|
4467
4467
|
eagCounter++;
|
|
@@ -4471,11 +4471,11 @@ var require_polyfills = __commonJS({
|
|
|
4471
4471
|
}
|
|
4472
4472
|
}
|
|
4473
4473
|
};
|
|
4474
|
-
})(
|
|
4475
|
-
function patchLchmod(
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4474
|
+
})(fs40.readSync);
|
|
4475
|
+
function patchLchmod(fs41) {
|
|
4476
|
+
fs41.lchmod = function(path44, mode, callback) {
|
|
4477
|
+
fs41.open(
|
|
4478
|
+
path44,
|
|
4479
4479
|
constants.O_WRONLY | constants.O_SYMLINK,
|
|
4480
4480
|
mode,
|
|
4481
4481
|
function(err, fd) {
|
|
@@ -4483,80 +4483,80 @@ var require_polyfills = __commonJS({
|
|
|
4483
4483
|
if (callback) callback(err);
|
|
4484
4484
|
return;
|
|
4485
4485
|
}
|
|
4486
|
-
|
|
4487
|
-
|
|
4486
|
+
fs41.fchmod(fd, mode, function(err2) {
|
|
4487
|
+
fs41.close(fd, function(err22) {
|
|
4488
4488
|
if (callback) callback(err2 || err22);
|
|
4489
4489
|
});
|
|
4490
4490
|
});
|
|
4491
4491
|
}
|
|
4492
4492
|
);
|
|
4493
4493
|
};
|
|
4494
|
-
|
|
4495
|
-
var fd =
|
|
4494
|
+
fs41.lchmodSync = function(path44, mode) {
|
|
4495
|
+
var fd = fs41.openSync(path44, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
4496
4496
|
var threw = true;
|
|
4497
4497
|
var ret;
|
|
4498
4498
|
try {
|
|
4499
|
-
ret =
|
|
4499
|
+
ret = fs41.fchmodSync(fd, mode);
|
|
4500
4500
|
threw = false;
|
|
4501
4501
|
} finally {
|
|
4502
4502
|
if (threw) {
|
|
4503
4503
|
try {
|
|
4504
|
-
|
|
4504
|
+
fs41.closeSync(fd);
|
|
4505
4505
|
} catch (er) {
|
|
4506
4506
|
}
|
|
4507
4507
|
} else {
|
|
4508
|
-
|
|
4508
|
+
fs41.closeSync(fd);
|
|
4509
4509
|
}
|
|
4510
4510
|
}
|
|
4511
4511
|
return ret;
|
|
4512
4512
|
};
|
|
4513
4513
|
}
|
|
4514
|
-
function patchLutimes(
|
|
4515
|
-
if (constants.hasOwnProperty("O_SYMLINK") &&
|
|
4516
|
-
|
|
4517
|
-
|
|
4514
|
+
function patchLutimes(fs41) {
|
|
4515
|
+
if (constants.hasOwnProperty("O_SYMLINK") && fs41.futimes) {
|
|
4516
|
+
fs41.lutimes = function(path44, at, mt, cb) {
|
|
4517
|
+
fs41.open(path44, constants.O_SYMLINK, function(er, fd) {
|
|
4518
4518
|
if (er) {
|
|
4519
4519
|
if (cb) cb(er);
|
|
4520
4520
|
return;
|
|
4521
4521
|
}
|
|
4522
|
-
|
|
4523
|
-
|
|
4522
|
+
fs41.futimes(fd, at, mt, function(er2) {
|
|
4523
|
+
fs41.close(fd, function(er22) {
|
|
4524
4524
|
if (cb) cb(er2 || er22);
|
|
4525
4525
|
});
|
|
4526
4526
|
});
|
|
4527
4527
|
});
|
|
4528
4528
|
};
|
|
4529
|
-
|
|
4530
|
-
var fd =
|
|
4529
|
+
fs41.lutimesSync = function(path44, at, mt) {
|
|
4530
|
+
var fd = fs41.openSync(path44, constants.O_SYMLINK);
|
|
4531
4531
|
var ret;
|
|
4532
4532
|
var threw = true;
|
|
4533
4533
|
try {
|
|
4534
|
-
ret =
|
|
4534
|
+
ret = fs41.futimesSync(fd, at, mt);
|
|
4535
4535
|
threw = false;
|
|
4536
4536
|
} finally {
|
|
4537
4537
|
if (threw) {
|
|
4538
4538
|
try {
|
|
4539
|
-
|
|
4539
|
+
fs41.closeSync(fd);
|
|
4540
4540
|
} catch (er) {
|
|
4541
4541
|
}
|
|
4542
4542
|
} else {
|
|
4543
|
-
|
|
4543
|
+
fs41.closeSync(fd);
|
|
4544
4544
|
}
|
|
4545
4545
|
}
|
|
4546
4546
|
return ret;
|
|
4547
4547
|
};
|
|
4548
|
-
} else if (
|
|
4549
|
-
|
|
4548
|
+
} else if (fs41.futimes) {
|
|
4549
|
+
fs41.lutimes = function(_a2, _b, _c3, cb) {
|
|
4550
4550
|
if (cb) process.nextTick(cb);
|
|
4551
4551
|
};
|
|
4552
|
-
|
|
4552
|
+
fs41.lutimesSync = function() {
|
|
4553
4553
|
};
|
|
4554
4554
|
}
|
|
4555
4555
|
}
|
|
4556
4556
|
function chmodFix(orig) {
|
|
4557
4557
|
if (!orig) return orig;
|
|
4558
4558
|
return function(target, mode, cb) {
|
|
4559
|
-
return orig.call(
|
|
4559
|
+
return orig.call(fs40, target, mode, function(er) {
|
|
4560
4560
|
if (chownErOk(er)) er = null;
|
|
4561
4561
|
if (cb) cb.apply(this, arguments);
|
|
4562
4562
|
});
|
|
@@ -4566,7 +4566,7 @@ var require_polyfills = __commonJS({
|
|
|
4566
4566
|
if (!orig) return orig;
|
|
4567
4567
|
return function(target, mode) {
|
|
4568
4568
|
try {
|
|
4569
|
-
return orig.call(
|
|
4569
|
+
return orig.call(fs40, target, mode);
|
|
4570
4570
|
} catch (er) {
|
|
4571
4571
|
if (!chownErOk(er)) throw er;
|
|
4572
4572
|
}
|
|
@@ -4575,7 +4575,7 @@ var require_polyfills = __commonJS({
|
|
|
4575
4575
|
function chownFix(orig) {
|
|
4576
4576
|
if (!orig) return orig;
|
|
4577
4577
|
return function(target, uid, gid, cb) {
|
|
4578
|
-
return orig.call(
|
|
4578
|
+
return orig.call(fs40, target, uid, gid, function(er) {
|
|
4579
4579
|
if (chownErOk(er)) er = null;
|
|
4580
4580
|
if (cb) cb.apply(this, arguments);
|
|
4581
4581
|
});
|
|
@@ -4585,7 +4585,7 @@ var require_polyfills = __commonJS({
|
|
|
4585
4585
|
if (!orig) return orig;
|
|
4586
4586
|
return function(target, uid, gid) {
|
|
4587
4587
|
try {
|
|
4588
|
-
return orig.call(
|
|
4588
|
+
return orig.call(fs40, target, uid, gid);
|
|
4589
4589
|
} catch (er) {
|
|
4590
4590
|
if (!chownErOk(er)) throw er;
|
|
4591
4591
|
}
|
|
@@ -4605,13 +4605,13 @@ var require_polyfills = __commonJS({
|
|
|
4605
4605
|
}
|
|
4606
4606
|
if (cb) cb.apply(this, arguments);
|
|
4607
4607
|
}
|
|
4608
|
-
return options ? orig.call(
|
|
4608
|
+
return options ? orig.call(fs40, target, options, callback) : orig.call(fs40, target, callback);
|
|
4609
4609
|
};
|
|
4610
4610
|
}
|
|
4611
4611
|
function statFixSync(orig) {
|
|
4612
4612
|
if (!orig) return orig;
|
|
4613
4613
|
return function(target, options) {
|
|
4614
|
-
var stats = options ? orig.call(
|
|
4614
|
+
var stats = options ? orig.call(fs40, target, options) : orig.call(fs40, target);
|
|
4615
4615
|
if (stats) {
|
|
4616
4616
|
if (stats.uid < 0) stats.uid += 4294967296;
|
|
4617
4617
|
if (stats.gid < 0) stats.gid += 4294967296;
|
|
@@ -4640,16 +4640,16 @@ var require_legacy_streams = __commonJS({
|
|
|
4640
4640
|
"node_modules/graceful-fs/legacy-streams.js"(exports2, module2) {
|
|
4641
4641
|
var Stream2 = require("stream").Stream;
|
|
4642
4642
|
module2.exports = legacy;
|
|
4643
|
-
function legacy(
|
|
4643
|
+
function legacy(fs40) {
|
|
4644
4644
|
return {
|
|
4645
4645
|
ReadStream,
|
|
4646
4646
|
WriteStream
|
|
4647
4647
|
};
|
|
4648
|
-
function ReadStream(
|
|
4649
|
-
if (!(this instanceof ReadStream)) return new ReadStream(
|
|
4648
|
+
function ReadStream(path44, options) {
|
|
4649
|
+
if (!(this instanceof ReadStream)) return new ReadStream(path44, options);
|
|
4650
4650
|
Stream2.call(this);
|
|
4651
4651
|
var self2 = this;
|
|
4652
|
-
this.path =
|
|
4652
|
+
this.path = path44;
|
|
4653
4653
|
this.fd = null;
|
|
4654
4654
|
this.readable = true;
|
|
4655
4655
|
this.paused = false;
|
|
@@ -4683,7 +4683,7 @@ var require_legacy_streams = __commonJS({
|
|
|
4683
4683
|
});
|
|
4684
4684
|
return;
|
|
4685
4685
|
}
|
|
4686
|
-
|
|
4686
|
+
fs40.open(this.path, this.flags, this.mode, function(err, fd) {
|
|
4687
4687
|
if (err) {
|
|
4688
4688
|
self2.emit("error", err);
|
|
4689
4689
|
self2.readable = false;
|
|
@@ -4694,10 +4694,10 @@ var require_legacy_streams = __commonJS({
|
|
|
4694
4694
|
self2._read();
|
|
4695
4695
|
});
|
|
4696
4696
|
}
|
|
4697
|
-
function WriteStream(
|
|
4698
|
-
if (!(this instanceof WriteStream)) return new WriteStream(
|
|
4697
|
+
function WriteStream(path44, options) {
|
|
4698
|
+
if (!(this instanceof WriteStream)) return new WriteStream(path44, options);
|
|
4699
4699
|
Stream2.call(this);
|
|
4700
|
-
this.path =
|
|
4700
|
+
this.path = path44;
|
|
4701
4701
|
this.fd = null;
|
|
4702
4702
|
this.writable = true;
|
|
4703
4703
|
this.flags = "w";
|
|
@@ -4722,7 +4722,7 @@ var require_legacy_streams = __commonJS({
|
|
|
4722
4722
|
this.busy = false;
|
|
4723
4723
|
this._queue = [];
|
|
4724
4724
|
if (this.fd === null) {
|
|
4725
|
-
this._open =
|
|
4725
|
+
this._open = fs40.open;
|
|
4726
4726
|
this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
|
|
4727
4727
|
this.flush();
|
|
4728
4728
|
}
|
|
@@ -4757,7 +4757,7 @@ var require_clone = __commonJS({
|
|
|
4757
4757
|
// node_modules/graceful-fs/graceful-fs.js
|
|
4758
4758
|
var require_graceful_fs = __commonJS({
|
|
4759
4759
|
"node_modules/graceful-fs/graceful-fs.js"(exports2, module2) {
|
|
4760
|
-
var
|
|
4760
|
+
var fs40 = require("fs");
|
|
4761
4761
|
var polyfills = require_polyfills();
|
|
4762
4762
|
var legacy = require_legacy_streams();
|
|
4763
4763
|
var clone = require_clone();
|
|
@@ -4789,12 +4789,12 @@ var require_graceful_fs = __commonJS({
|
|
|
4789
4789
|
m3 = "GFS4: " + m3.split(/\n/).join("\nGFS4: ");
|
|
4790
4790
|
console.error(m3);
|
|
4791
4791
|
};
|
|
4792
|
-
if (!
|
|
4792
|
+
if (!fs40[gracefulQueue]) {
|
|
4793
4793
|
queue = global[gracefulQueue] || [];
|
|
4794
|
-
publishQueue(
|
|
4795
|
-
|
|
4794
|
+
publishQueue(fs40, queue);
|
|
4795
|
+
fs40.close = (function(fs$close) {
|
|
4796
4796
|
function close3(fd, cb) {
|
|
4797
|
-
return fs$close.call(
|
|
4797
|
+
return fs$close.call(fs40, fd, function(err) {
|
|
4798
4798
|
if (!err) {
|
|
4799
4799
|
resetQueue();
|
|
4800
4800
|
}
|
|
@@ -4806,48 +4806,48 @@ var require_graceful_fs = __commonJS({
|
|
|
4806
4806
|
value: fs$close
|
|
4807
4807
|
});
|
|
4808
4808
|
return close3;
|
|
4809
|
-
})(
|
|
4810
|
-
|
|
4809
|
+
})(fs40.close);
|
|
4810
|
+
fs40.closeSync = (function(fs$closeSync) {
|
|
4811
4811
|
function closeSync(fd) {
|
|
4812
|
-
fs$closeSync.apply(
|
|
4812
|
+
fs$closeSync.apply(fs40, arguments);
|
|
4813
4813
|
resetQueue();
|
|
4814
4814
|
}
|
|
4815
4815
|
Object.defineProperty(closeSync, previousSymbol, {
|
|
4816
4816
|
value: fs$closeSync
|
|
4817
4817
|
});
|
|
4818
4818
|
return closeSync;
|
|
4819
|
-
})(
|
|
4819
|
+
})(fs40.closeSync);
|
|
4820
4820
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
|
|
4821
4821
|
process.on("exit", function() {
|
|
4822
|
-
debug(
|
|
4823
|
-
require("assert").equal(
|
|
4822
|
+
debug(fs40[gracefulQueue]);
|
|
4823
|
+
require("assert").equal(fs40[gracefulQueue].length, 0);
|
|
4824
4824
|
});
|
|
4825
4825
|
}
|
|
4826
4826
|
}
|
|
4827
4827
|
var queue;
|
|
4828
4828
|
if (!global[gracefulQueue]) {
|
|
4829
|
-
publishQueue(global,
|
|
4830
|
-
}
|
|
4831
|
-
module2.exports = patch(clone(
|
|
4832
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !
|
|
4833
|
-
module2.exports = patch(
|
|
4834
|
-
|
|
4835
|
-
}
|
|
4836
|
-
function patch(
|
|
4837
|
-
polyfills(
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
var fs$readFile =
|
|
4842
|
-
|
|
4843
|
-
function readFile(
|
|
4829
|
+
publishQueue(global, fs40[gracefulQueue]);
|
|
4830
|
+
}
|
|
4831
|
+
module2.exports = patch(clone(fs40));
|
|
4832
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs40.__patched) {
|
|
4833
|
+
module2.exports = patch(fs40);
|
|
4834
|
+
fs40.__patched = true;
|
|
4835
|
+
}
|
|
4836
|
+
function patch(fs41) {
|
|
4837
|
+
polyfills(fs41);
|
|
4838
|
+
fs41.gracefulify = patch;
|
|
4839
|
+
fs41.createReadStream = createReadStream3;
|
|
4840
|
+
fs41.createWriteStream = createWriteStream;
|
|
4841
|
+
var fs$readFile = fs41.readFile;
|
|
4842
|
+
fs41.readFile = readFile;
|
|
4843
|
+
function readFile(path44, options, cb) {
|
|
4844
4844
|
if (typeof options === "function")
|
|
4845
4845
|
cb = options, options = null;
|
|
4846
|
-
return go$readFile(
|
|
4847
|
-
function go$readFile(
|
|
4848
|
-
return fs$readFile(
|
|
4846
|
+
return go$readFile(path44, options, cb);
|
|
4847
|
+
function go$readFile(path45, options2, cb2, startTime) {
|
|
4848
|
+
return fs$readFile(path45, options2, function(err) {
|
|
4849
4849
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
4850
|
-
enqueue([go$readFile, [
|
|
4850
|
+
enqueue([go$readFile, [path45, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
4851
4851
|
else {
|
|
4852
4852
|
if (typeof cb2 === "function")
|
|
4853
4853
|
cb2.apply(this, arguments);
|
|
@@ -4855,16 +4855,16 @@ var require_graceful_fs = __commonJS({
|
|
|
4855
4855
|
});
|
|
4856
4856
|
}
|
|
4857
4857
|
}
|
|
4858
|
-
var fs$writeFile =
|
|
4859
|
-
|
|
4860
|
-
function writeFile(
|
|
4858
|
+
var fs$writeFile = fs41.writeFile;
|
|
4859
|
+
fs41.writeFile = writeFile;
|
|
4860
|
+
function writeFile(path44, data2, options, cb) {
|
|
4861
4861
|
if (typeof options === "function")
|
|
4862
4862
|
cb = options, options = null;
|
|
4863
|
-
return go$writeFile(
|
|
4864
|
-
function go$writeFile(
|
|
4865
|
-
return fs$writeFile(
|
|
4863
|
+
return go$writeFile(path44, data2, options, cb);
|
|
4864
|
+
function go$writeFile(path45, data3, options2, cb2, startTime) {
|
|
4865
|
+
return fs$writeFile(path45, data3, options2, function(err) {
|
|
4866
4866
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
4867
|
-
enqueue([go$writeFile, [
|
|
4867
|
+
enqueue([go$writeFile, [path45, data3, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
4868
4868
|
else {
|
|
4869
4869
|
if (typeof cb2 === "function")
|
|
4870
4870
|
cb2.apply(this, arguments);
|
|
@@ -4872,17 +4872,17 @@ var require_graceful_fs = __commonJS({
|
|
|
4872
4872
|
});
|
|
4873
4873
|
}
|
|
4874
4874
|
}
|
|
4875
|
-
var fs$appendFile =
|
|
4875
|
+
var fs$appendFile = fs41.appendFile;
|
|
4876
4876
|
if (fs$appendFile)
|
|
4877
|
-
|
|
4878
|
-
function appendFile(
|
|
4877
|
+
fs41.appendFile = appendFile;
|
|
4878
|
+
function appendFile(path44, data2, options, cb) {
|
|
4879
4879
|
if (typeof options === "function")
|
|
4880
4880
|
cb = options, options = null;
|
|
4881
|
-
return go$appendFile(
|
|
4882
|
-
function go$appendFile(
|
|
4883
|
-
return fs$appendFile(
|
|
4881
|
+
return go$appendFile(path44, data2, options, cb);
|
|
4882
|
+
function go$appendFile(path45, data3, options2, cb2, startTime) {
|
|
4883
|
+
return fs$appendFile(path45, data3, options2, function(err) {
|
|
4884
4884
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
4885
|
-
enqueue([go$appendFile, [
|
|
4885
|
+
enqueue([go$appendFile, [path45, data3, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
4886
4886
|
else {
|
|
4887
4887
|
if (typeof cb2 === "function")
|
|
4888
4888
|
cb2.apply(this, arguments);
|
|
@@ -4890,9 +4890,9 @@ var require_graceful_fs = __commonJS({
|
|
|
4890
4890
|
});
|
|
4891
4891
|
}
|
|
4892
4892
|
}
|
|
4893
|
-
var fs$copyFile =
|
|
4893
|
+
var fs$copyFile = fs41.copyFile;
|
|
4894
4894
|
if (fs$copyFile)
|
|
4895
|
-
|
|
4895
|
+
fs41.copyFile = copyFile;
|
|
4896
4896
|
function copyFile(src, dest, flags, cb) {
|
|
4897
4897
|
if (typeof flags === "function") {
|
|
4898
4898
|
cb = flags;
|
|
@@ -4910,34 +4910,34 @@ var require_graceful_fs = __commonJS({
|
|
|
4910
4910
|
});
|
|
4911
4911
|
}
|
|
4912
4912
|
}
|
|
4913
|
-
var fs$readdir =
|
|
4914
|
-
|
|
4913
|
+
var fs$readdir = fs41.readdir;
|
|
4914
|
+
fs41.readdir = readdir2;
|
|
4915
4915
|
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
4916
|
-
function readdir2(
|
|
4916
|
+
function readdir2(path44, options, cb) {
|
|
4917
4917
|
if (typeof options === "function")
|
|
4918
4918
|
cb = options, options = null;
|
|
4919
|
-
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(
|
|
4920
|
-
return fs$readdir(
|
|
4921
|
-
|
|
4919
|
+
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path45, options2, cb2, startTime) {
|
|
4920
|
+
return fs$readdir(path45, fs$readdirCallback(
|
|
4921
|
+
path45,
|
|
4922
4922
|
options2,
|
|
4923
4923
|
cb2,
|
|
4924
4924
|
startTime
|
|
4925
4925
|
));
|
|
4926
|
-
} : function go$readdir2(
|
|
4927
|
-
return fs$readdir(
|
|
4928
|
-
|
|
4926
|
+
} : function go$readdir2(path45, options2, cb2, startTime) {
|
|
4927
|
+
return fs$readdir(path45, options2, fs$readdirCallback(
|
|
4928
|
+
path45,
|
|
4929
4929
|
options2,
|
|
4930
4930
|
cb2,
|
|
4931
4931
|
startTime
|
|
4932
4932
|
));
|
|
4933
4933
|
};
|
|
4934
|
-
return go$readdir(
|
|
4935
|
-
function fs$readdirCallback(
|
|
4934
|
+
return go$readdir(path44, options, cb);
|
|
4935
|
+
function fs$readdirCallback(path45, options2, cb2, startTime) {
|
|
4936
4936
|
return function(err, files2) {
|
|
4937
4937
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
4938
4938
|
enqueue([
|
|
4939
4939
|
go$readdir,
|
|
4940
|
-
[
|
|
4940
|
+
[path45, options2, cb2],
|
|
4941
4941
|
err,
|
|
4942
4942
|
startTime || Date.now(),
|
|
4943
4943
|
Date.now()
|
|
@@ -4952,21 +4952,21 @@ var require_graceful_fs = __commonJS({
|
|
|
4952
4952
|
}
|
|
4953
4953
|
}
|
|
4954
4954
|
if (process.version.substr(0, 4) === "v0.8") {
|
|
4955
|
-
var legStreams = legacy(
|
|
4955
|
+
var legStreams = legacy(fs41);
|
|
4956
4956
|
ReadStream = legStreams.ReadStream;
|
|
4957
4957
|
WriteStream = legStreams.WriteStream;
|
|
4958
4958
|
}
|
|
4959
|
-
var fs$ReadStream =
|
|
4959
|
+
var fs$ReadStream = fs41.ReadStream;
|
|
4960
4960
|
if (fs$ReadStream) {
|
|
4961
4961
|
ReadStream.prototype = Object.create(fs$ReadStream.prototype);
|
|
4962
4962
|
ReadStream.prototype.open = ReadStream$open;
|
|
4963
4963
|
}
|
|
4964
|
-
var fs$WriteStream =
|
|
4964
|
+
var fs$WriteStream = fs41.WriteStream;
|
|
4965
4965
|
if (fs$WriteStream) {
|
|
4966
4966
|
WriteStream.prototype = Object.create(fs$WriteStream.prototype);
|
|
4967
4967
|
WriteStream.prototype.open = WriteStream$open;
|
|
4968
4968
|
}
|
|
4969
|
-
Object.defineProperty(
|
|
4969
|
+
Object.defineProperty(fs41, "ReadStream", {
|
|
4970
4970
|
get: function() {
|
|
4971
4971
|
return ReadStream;
|
|
4972
4972
|
},
|
|
@@ -4976,7 +4976,7 @@ var require_graceful_fs = __commonJS({
|
|
|
4976
4976
|
enumerable: true,
|
|
4977
4977
|
configurable: true
|
|
4978
4978
|
});
|
|
4979
|
-
Object.defineProperty(
|
|
4979
|
+
Object.defineProperty(fs41, "WriteStream", {
|
|
4980
4980
|
get: function() {
|
|
4981
4981
|
return WriteStream;
|
|
4982
4982
|
},
|
|
@@ -4987,7 +4987,7 @@ var require_graceful_fs = __commonJS({
|
|
|
4987
4987
|
configurable: true
|
|
4988
4988
|
});
|
|
4989
4989
|
var FileReadStream = ReadStream;
|
|
4990
|
-
Object.defineProperty(
|
|
4990
|
+
Object.defineProperty(fs41, "FileReadStream", {
|
|
4991
4991
|
get: function() {
|
|
4992
4992
|
return FileReadStream;
|
|
4993
4993
|
},
|
|
@@ -4998,7 +4998,7 @@ var require_graceful_fs = __commonJS({
|
|
|
4998
4998
|
configurable: true
|
|
4999
4999
|
});
|
|
5000
5000
|
var FileWriteStream = WriteStream;
|
|
5001
|
-
Object.defineProperty(
|
|
5001
|
+
Object.defineProperty(fs41, "FileWriteStream", {
|
|
5002
5002
|
get: function() {
|
|
5003
5003
|
return FileWriteStream;
|
|
5004
5004
|
},
|
|
@@ -5008,7 +5008,7 @@ var require_graceful_fs = __commonJS({
|
|
|
5008
5008
|
enumerable: true,
|
|
5009
5009
|
configurable: true
|
|
5010
5010
|
});
|
|
5011
|
-
function ReadStream(
|
|
5011
|
+
function ReadStream(path44, options) {
|
|
5012
5012
|
if (this instanceof ReadStream)
|
|
5013
5013
|
return fs$ReadStream.apply(this, arguments), this;
|
|
5014
5014
|
else
|
|
@@ -5028,7 +5028,7 @@ var require_graceful_fs = __commonJS({
|
|
|
5028
5028
|
}
|
|
5029
5029
|
});
|
|
5030
5030
|
}
|
|
5031
|
-
function WriteStream(
|
|
5031
|
+
function WriteStream(path44, options) {
|
|
5032
5032
|
if (this instanceof WriteStream)
|
|
5033
5033
|
return fs$WriteStream.apply(this, arguments), this;
|
|
5034
5034
|
else
|
|
@@ -5046,22 +5046,22 @@ var require_graceful_fs = __commonJS({
|
|
|
5046
5046
|
}
|
|
5047
5047
|
});
|
|
5048
5048
|
}
|
|
5049
|
-
function createReadStream3(
|
|
5050
|
-
return new
|
|
5049
|
+
function createReadStream3(path44, options) {
|
|
5050
|
+
return new fs41.ReadStream(path44, options);
|
|
5051
5051
|
}
|
|
5052
|
-
function createWriteStream(
|
|
5053
|
-
return new
|
|
5052
|
+
function createWriteStream(path44, options) {
|
|
5053
|
+
return new fs41.WriteStream(path44, options);
|
|
5054
5054
|
}
|
|
5055
|
-
var fs$open =
|
|
5056
|
-
|
|
5057
|
-
function open3(
|
|
5055
|
+
var fs$open = fs41.open;
|
|
5056
|
+
fs41.open = open3;
|
|
5057
|
+
function open3(path44, flags, mode, cb) {
|
|
5058
5058
|
if (typeof mode === "function")
|
|
5059
5059
|
cb = mode, mode = null;
|
|
5060
|
-
return go$open(
|
|
5061
|
-
function go$open(
|
|
5062
|
-
return fs$open(
|
|
5060
|
+
return go$open(path44, flags, mode, cb);
|
|
5061
|
+
function go$open(path45, flags2, mode2, cb2, startTime) {
|
|
5062
|
+
return fs$open(path45, flags2, mode2, function(err, fd) {
|
|
5063
5063
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
5064
|
-
enqueue([go$open, [
|
|
5064
|
+
enqueue([go$open, [path45, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
5065
5065
|
else {
|
|
5066
5066
|
if (typeof cb2 === "function")
|
|
5067
5067
|
cb2.apply(this, arguments);
|
|
@@ -5069,20 +5069,20 @@ var require_graceful_fs = __commonJS({
|
|
|
5069
5069
|
});
|
|
5070
5070
|
}
|
|
5071
5071
|
}
|
|
5072
|
-
return
|
|
5072
|
+
return fs41;
|
|
5073
5073
|
}
|
|
5074
5074
|
function enqueue(elem) {
|
|
5075
5075
|
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
5076
|
-
|
|
5076
|
+
fs40[gracefulQueue].push(elem);
|
|
5077
5077
|
retry();
|
|
5078
5078
|
}
|
|
5079
5079
|
var retryTimer;
|
|
5080
5080
|
function resetQueue() {
|
|
5081
5081
|
var now = Date.now();
|
|
5082
|
-
for (var i3 = 0; i3 <
|
|
5083
|
-
if (
|
|
5084
|
-
|
|
5085
|
-
|
|
5082
|
+
for (var i3 = 0; i3 < fs40[gracefulQueue].length; ++i3) {
|
|
5083
|
+
if (fs40[gracefulQueue][i3].length > 2) {
|
|
5084
|
+
fs40[gracefulQueue][i3][3] = now;
|
|
5085
|
+
fs40[gracefulQueue][i3][4] = now;
|
|
5086
5086
|
}
|
|
5087
5087
|
}
|
|
5088
5088
|
retry();
|
|
@@ -5090,9 +5090,9 @@ var require_graceful_fs = __commonJS({
|
|
|
5090
5090
|
function retry() {
|
|
5091
5091
|
clearTimeout(retryTimer);
|
|
5092
5092
|
retryTimer = void 0;
|
|
5093
|
-
if (
|
|
5093
|
+
if (fs40[gracefulQueue].length === 0)
|
|
5094
5094
|
return;
|
|
5095
|
-
var elem =
|
|
5095
|
+
var elem = fs40[gracefulQueue].shift();
|
|
5096
5096
|
var fn = elem[0];
|
|
5097
5097
|
var args = elem[1];
|
|
5098
5098
|
var err = elem[2];
|
|
@@ -5114,7 +5114,7 @@ var require_graceful_fs = __commonJS({
|
|
|
5114
5114
|
debug("RETRY", fn.name, args);
|
|
5115
5115
|
fn.apply(null, args.concat([startTime]));
|
|
5116
5116
|
} else {
|
|
5117
|
-
|
|
5117
|
+
fs40[gracefulQueue].push(elem);
|
|
5118
5118
|
}
|
|
5119
5119
|
}
|
|
5120
5120
|
if (retryTimer === void 0) {
|
|
@@ -5129,7 +5129,7 @@ var require_fs = __commonJS({
|
|
|
5129
5129
|
"node_modules/fs-extra/lib/fs/index.js"(exports2) {
|
|
5130
5130
|
"use strict";
|
|
5131
5131
|
var u3 = require_universalify().fromCallback;
|
|
5132
|
-
var
|
|
5132
|
+
var fs40 = require_graceful_fs();
|
|
5133
5133
|
var api = [
|
|
5134
5134
|
"access",
|
|
5135
5135
|
"appendFile",
|
|
@@ -5170,26 +5170,26 @@ var require_fs = __commonJS({
|
|
|
5170
5170
|
"utimes",
|
|
5171
5171
|
"writeFile"
|
|
5172
5172
|
].filter((key) => {
|
|
5173
|
-
return typeof
|
|
5173
|
+
return typeof fs40[key] === "function";
|
|
5174
5174
|
});
|
|
5175
|
-
Object.assign(exports2,
|
|
5175
|
+
Object.assign(exports2, fs40);
|
|
5176
5176
|
api.forEach((method) => {
|
|
5177
|
-
exports2[method] = u3(
|
|
5177
|
+
exports2[method] = u3(fs40[method]);
|
|
5178
5178
|
});
|
|
5179
5179
|
exports2.exists = function(filename, callback) {
|
|
5180
5180
|
if (typeof callback === "function") {
|
|
5181
|
-
return
|
|
5181
|
+
return fs40.exists(filename, callback);
|
|
5182
5182
|
}
|
|
5183
5183
|
return new Promise((resolve) => {
|
|
5184
|
-
return
|
|
5184
|
+
return fs40.exists(filename, resolve);
|
|
5185
5185
|
});
|
|
5186
5186
|
};
|
|
5187
5187
|
exports2.read = function(fd, buffer2, offset, length, position, callback) {
|
|
5188
5188
|
if (typeof callback === "function") {
|
|
5189
|
-
return
|
|
5189
|
+
return fs40.read(fd, buffer2, offset, length, position, callback);
|
|
5190
5190
|
}
|
|
5191
5191
|
return new Promise((resolve, reject) => {
|
|
5192
|
-
|
|
5192
|
+
fs40.read(fd, buffer2, offset, length, position, (err, bytesRead, buffer3) => {
|
|
5193
5193
|
if (err) return reject(err);
|
|
5194
5194
|
resolve({ bytesRead, buffer: buffer3 });
|
|
5195
5195
|
});
|
|
@@ -5197,10 +5197,10 @@ var require_fs = __commonJS({
|
|
|
5197
5197
|
};
|
|
5198
5198
|
exports2.write = function(fd, buffer2, ...args) {
|
|
5199
5199
|
if (typeof args[args.length - 1] === "function") {
|
|
5200
|
-
return
|
|
5200
|
+
return fs40.write(fd, buffer2, ...args);
|
|
5201
5201
|
}
|
|
5202
5202
|
return new Promise((resolve, reject) => {
|
|
5203
|
-
|
|
5203
|
+
fs40.write(fd, buffer2, ...args, (err, bytesWritten, buffer3) => {
|
|
5204
5204
|
if (err) return reject(err);
|
|
5205
5205
|
resolve({ bytesWritten, buffer: buffer3 });
|
|
5206
5206
|
});
|
|
@@ -5208,10 +5208,10 @@ var require_fs = __commonJS({
|
|
|
5208
5208
|
};
|
|
5209
5209
|
exports2.readv = function(fd, buffers, ...args) {
|
|
5210
5210
|
if (typeof args[args.length - 1] === "function") {
|
|
5211
|
-
return
|
|
5211
|
+
return fs40.readv(fd, buffers, ...args);
|
|
5212
5212
|
}
|
|
5213
5213
|
return new Promise((resolve, reject) => {
|
|
5214
|
-
|
|
5214
|
+
fs40.readv(fd, buffers, ...args, (err, bytesRead, buffers2) => {
|
|
5215
5215
|
if (err) return reject(err);
|
|
5216
5216
|
resolve({ bytesRead, buffers: buffers2 });
|
|
5217
5217
|
});
|
|
@@ -5219,17 +5219,17 @@ var require_fs = __commonJS({
|
|
|
5219
5219
|
};
|
|
5220
5220
|
exports2.writev = function(fd, buffers, ...args) {
|
|
5221
5221
|
if (typeof args[args.length - 1] === "function") {
|
|
5222
|
-
return
|
|
5222
|
+
return fs40.writev(fd, buffers, ...args);
|
|
5223
5223
|
}
|
|
5224
5224
|
return new Promise((resolve, reject) => {
|
|
5225
|
-
|
|
5225
|
+
fs40.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {
|
|
5226
5226
|
if (err) return reject(err);
|
|
5227
5227
|
resolve({ bytesWritten, buffers: buffers2 });
|
|
5228
5228
|
});
|
|
5229
5229
|
});
|
|
5230
5230
|
};
|
|
5231
|
-
if (typeof
|
|
5232
|
-
exports2.realpath.native = u3(
|
|
5231
|
+
if (typeof fs40.realpath.native === "function") {
|
|
5232
|
+
exports2.realpath.native = u3(fs40.realpath.native);
|
|
5233
5233
|
} else {
|
|
5234
5234
|
process.emitWarning(
|
|
5235
5235
|
"fs.realpath.native is not a function. Is fs being monkey-patched?",
|
|
@@ -5244,10 +5244,10 @@ var require_fs = __commonJS({
|
|
|
5244
5244
|
var require_utils = __commonJS({
|
|
5245
5245
|
"node_modules/fs-extra/lib/mkdirs/utils.js"(exports2, module2) {
|
|
5246
5246
|
"use strict";
|
|
5247
|
-
var
|
|
5247
|
+
var path44 = require("path");
|
|
5248
5248
|
module2.exports.checkPath = function checkPath(pth) {
|
|
5249
5249
|
if (process.platform === "win32") {
|
|
5250
|
-
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(
|
|
5250
|
+
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path44.parse(pth).root, ""));
|
|
5251
5251
|
if (pathHasInvalidWinCharacters) {
|
|
5252
5252
|
const error2 = new Error(`Path contains invalid characters: ${pth}`);
|
|
5253
5253
|
error2.code = "EINVAL";
|
|
@@ -5262,7 +5262,7 @@ var require_utils = __commonJS({
|
|
|
5262
5262
|
var require_make_dir = __commonJS({
|
|
5263
5263
|
"node_modules/fs-extra/lib/mkdirs/make-dir.js"(exports2, module2) {
|
|
5264
5264
|
"use strict";
|
|
5265
|
-
var
|
|
5265
|
+
var fs40 = require_fs();
|
|
5266
5266
|
var { checkPath } = require_utils();
|
|
5267
5267
|
var getMode = (options) => {
|
|
5268
5268
|
const defaults3 = { mode: 511 };
|
|
@@ -5271,14 +5271,14 @@ var require_make_dir = __commonJS({
|
|
|
5271
5271
|
};
|
|
5272
5272
|
module2.exports.makeDir = async (dir, options) => {
|
|
5273
5273
|
checkPath(dir);
|
|
5274
|
-
return
|
|
5274
|
+
return fs40.mkdir(dir, {
|
|
5275
5275
|
mode: getMode(options),
|
|
5276
5276
|
recursive: true
|
|
5277
5277
|
});
|
|
5278
5278
|
};
|
|
5279
5279
|
module2.exports.makeDirSync = (dir, options) => {
|
|
5280
5280
|
checkPath(dir);
|
|
5281
|
-
return
|
|
5281
|
+
return fs40.mkdirSync(dir, {
|
|
5282
5282
|
mode: getMode(options),
|
|
5283
5283
|
recursive: true
|
|
5284
5284
|
});
|
|
@@ -5310,13 +5310,13 @@ var require_path_exists = __commonJS({
|
|
|
5310
5310
|
"node_modules/fs-extra/lib/path-exists/index.js"(exports2, module2) {
|
|
5311
5311
|
"use strict";
|
|
5312
5312
|
var u3 = require_universalify().fromPromise;
|
|
5313
|
-
var
|
|
5314
|
-
function pathExists3(
|
|
5315
|
-
return
|
|
5313
|
+
var fs40 = require_fs();
|
|
5314
|
+
function pathExists3(path44) {
|
|
5315
|
+
return fs40.access(path44).then(() => true).catch(() => false);
|
|
5316
5316
|
}
|
|
5317
5317
|
module2.exports = {
|
|
5318
5318
|
pathExists: u3(pathExists3),
|
|
5319
|
-
pathExistsSync:
|
|
5319
|
+
pathExistsSync: fs40.existsSync
|
|
5320
5320
|
};
|
|
5321
5321
|
}
|
|
5322
5322
|
});
|
|
@@ -5325,16 +5325,16 @@ var require_path_exists = __commonJS({
|
|
|
5325
5325
|
var require_utimes = __commonJS({
|
|
5326
5326
|
"node_modules/fs-extra/lib/util/utimes.js"(exports2, module2) {
|
|
5327
5327
|
"use strict";
|
|
5328
|
-
var
|
|
5328
|
+
var fs40 = require_fs();
|
|
5329
5329
|
var u3 = require_universalify().fromPromise;
|
|
5330
|
-
async function utimesMillis(
|
|
5331
|
-
const fd = await
|
|
5330
|
+
async function utimesMillis(path44, atime, mtime) {
|
|
5331
|
+
const fd = await fs40.open(path44, "r+");
|
|
5332
5332
|
let closeErr = null;
|
|
5333
5333
|
try {
|
|
5334
|
-
await
|
|
5334
|
+
await fs40.futimes(fd, atime, mtime);
|
|
5335
5335
|
} finally {
|
|
5336
5336
|
try {
|
|
5337
|
-
await
|
|
5337
|
+
await fs40.close(fd);
|
|
5338
5338
|
} catch (e3) {
|
|
5339
5339
|
closeErr = e3;
|
|
5340
5340
|
}
|
|
@@ -5343,10 +5343,10 @@ var require_utimes = __commonJS({
|
|
|
5343
5343
|
throw closeErr;
|
|
5344
5344
|
}
|
|
5345
5345
|
}
|
|
5346
|
-
function utimesMillisSync(
|
|
5347
|
-
const fd =
|
|
5348
|
-
|
|
5349
|
-
return
|
|
5346
|
+
function utimesMillisSync(path44, atime, mtime) {
|
|
5347
|
+
const fd = fs40.openSync(path44, "r+");
|
|
5348
|
+
fs40.futimesSync(fd, atime, mtime);
|
|
5349
|
+
return fs40.closeSync(fd);
|
|
5350
5350
|
}
|
|
5351
5351
|
module2.exports = {
|
|
5352
5352
|
utimesMillis: u3(utimesMillis),
|
|
@@ -5359,11 +5359,11 @@ var require_utimes = __commonJS({
|
|
|
5359
5359
|
var require_stat = __commonJS({
|
|
5360
5360
|
"node_modules/fs-extra/lib/util/stat.js"(exports2, module2) {
|
|
5361
5361
|
"use strict";
|
|
5362
|
-
var
|
|
5363
|
-
var
|
|
5362
|
+
var fs40 = require_fs();
|
|
5363
|
+
var path44 = require("path");
|
|
5364
5364
|
var u3 = require_universalify().fromPromise;
|
|
5365
5365
|
function getStats(src, dest, opts) {
|
|
5366
|
-
const statFunc = opts.dereference ? (file) =>
|
|
5366
|
+
const statFunc = opts.dereference ? (file) => fs40.stat(file, { bigint: true }) : (file) => fs40.lstat(file, { bigint: true });
|
|
5367
5367
|
return Promise.all([
|
|
5368
5368
|
statFunc(src),
|
|
5369
5369
|
statFunc(dest).catch((err) => {
|
|
@@ -5374,7 +5374,7 @@ var require_stat = __commonJS({
|
|
|
5374
5374
|
}
|
|
5375
5375
|
function getStatsSync(src, dest, opts) {
|
|
5376
5376
|
let destStat;
|
|
5377
|
-
const statFunc = opts.dereference ? (file) =>
|
|
5377
|
+
const statFunc = opts.dereference ? (file) => fs40.statSync(file, { bigint: true }) : (file) => fs40.lstatSync(file, { bigint: true });
|
|
5378
5378
|
const srcStat = statFunc(src);
|
|
5379
5379
|
try {
|
|
5380
5380
|
destStat = statFunc(dest);
|
|
@@ -5388,8 +5388,8 @@ var require_stat = __commonJS({
|
|
|
5388
5388
|
const { srcStat, destStat } = await getStats(src, dest, opts);
|
|
5389
5389
|
if (destStat) {
|
|
5390
5390
|
if (areIdentical(srcStat, destStat)) {
|
|
5391
|
-
const srcBaseName =
|
|
5392
|
-
const destBaseName =
|
|
5391
|
+
const srcBaseName = path44.basename(src);
|
|
5392
|
+
const destBaseName = path44.basename(dest);
|
|
5393
5393
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
5394
5394
|
return { srcStat, destStat, isChangingCase: true };
|
|
5395
5395
|
}
|
|
@@ -5411,8 +5411,8 @@ var require_stat = __commonJS({
|
|
|
5411
5411
|
const { srcStat, destStat } = getStatsSync(src, dest, opts);
|
|
5412
5412
|
if (destStat) {
|
|
5413
5413
|
if (areIdentical(srcStat, destStat)) {
|
|
5414
|
-
const srcBaseName =
|
|
5415
|
-
const destBaseName =
|
|
5414
|
+
const srcBaseName = path44.basename(src);
|
|
5415
|
+
const destBaseName = path44.basename(dest);
|
|
5416
5416
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
5417
5417
|
return { srcStat, destStat, isChangingCase: true };
|
|
5418
5418
|
}
|
|
@@ -5431,12 +5431,12 @@ var require_stat = __commonJS({
|
|
|
5431
5431
|
return { srcStat, destStat };
|
|
5432
5432
|
}
|
|
5433
5433
|
async function checkParentPaths(src, srcStat, dest, funcName) {
|
|
5434
|
-
const srcParent =
|
|
5435
|
-
const destParent =
|
|
5436
|
-
if (destParent === srcParent || destParent ===
|
|
5434
|
+
const srcParent = path44.resolve(path44.dirname(src));
|
|
5435
|
+
const destParent = path44.resolve(path44.dirname(dest));
|
|
5436
|
+
if (destParent === srcParent || destParent === path44.parse(destParent).root) return;
|
|
5437
5437
|
let destStat;
|
|
5438
5438
|
try {
|
|
5439
|
-
destStat = await
|
|
5439
|
+
destStat = await fs40.stat(destParent, { bigint: true });
|
|
5440
5440
|
} catch (err) {
|
|
5441
5441
|
if (err.code === "ENOENT") return;
|
|
5442
5442
|
throw err;
|
|
@@ -5447,12 +5447,12 @@ var require_stat = __commonJS({
|
|
|
5447
5447
|
return checkParentPaths(src, srcStat, destParent, funcName);
|
|
5448
5448
|
}
|
|
5449
5449
|
function checkParentPathsSync(src, srcStat, dest, funcName) {
|
|
5450
|
-
const srcParent =
|
|
5451
|
-
const destParent =
|
|
5452
|
-
if (destParent === srcParent || destParent ===
|
|
5450
|
+
const srcParent = path44.resolve(path44.dirname(src));
|
|
5451
|
+
const destParent = path44.resolve(path44.dirname(dest));
|
|
5452
|
+
if (destParent === srcParent || destParent === path44.parse(destParent).root) return;
|
|
5453
5453
|
let destStat;
|
|
5454
5454
|
try {
|
|
5455
|
-
destStat =
|
|
5455
|
+
destStat = fs40.statSync(destParent, { bigint: true });
|
|
5456
5456
|
} catch (err) {
|
|
5457
5457
|
if (err.code === "ENOENT") return;
|
|
5458
5458
|
throw err;
|
|
@@ -5466,8 +5466,8 @@ var require_stat = __commonJS({
|
|
|
5466
5466
|
return destStat.ino !== void 0 && destStat.dev !== void 0 && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
|
|
5467
5467
|
}
|
|
5468
5468
|
function isSrcSubdir(src, dest) {
|
|
5469
|
-
const srcArr =
|
|
5470
|
-
const destArr =
|
|
5469
|
+
const srcArr = path44.resolve(src).split(path44.sep).filter((i3) => i3);
|
|
5470
|
+
const destArr = path44.resolve(dest).split(path44.sep).filter((i3) => i3);
|
|
5471
5471
|
return srcArr.every((cur, i3) => destArr[i3] === cur);
|
|
5472
5472
|
}
|
|
5473
5473
|
function errMsg(src, dest, funcName) {
|
|
@@ -5519,8 +5519,8 @@ var require_async = __commonJS({
|
|
|
5519
5519
|
var require_copy = __commonJS({
|
|
5520
5520
|
"node_modules/fs-extra/lib/copy/copy.js"(exports2, module2) {
|
|
5521
5521
|
"use strict";
|
|
5522
|
-
var
|
|
5523
|
-
var
|
|
5522
|
+
var fs40 = require_fs();
|
|
5523
|
+
var path44 = require("path");
|
|
5524
5524
|
var { mkdirs } = require_mkdirs();
|
|
5525
5525
|
var { pathExists: pathExists3 } = require_path_exists();
|
|
5526
5526
|
var { utimesMillis } = require_utimes();
|
|
@@ -5543,7 +5543,7 @@ var require_copy = __commonJS({
|
|
|
5543
5543
|
await stat3.checkParentPaths(src, srcStat, dest, "copy");
|
|
5544
5544
|
const include2 = await runFilter(src, dest, opts);
|
|
5545
5545
|
if (!include2) return;
|
|
5546
|
-
const destParent =
|
|
5546
|
+
const destParent = path44.dirname(dest);
|
|
5547
5547
|
const dirExists = await pathExists3(destParent);
|
|
5548
5548
|
if (!dirExists) {
|
|
5549
5549
|
await mkdirs(destParent);
|
|
@@ -5555,7 +5555,7 @@ var require_copy = __commonJS({
|
|
|
5555
5555
|
return opts.filter(src, dest);
|
|
5556
5556
|
}
|
|
5557
5557
|
async function getStatsAndPerformCopy(destStat, src, dest, opts) {
|
|
5558
|
-
const statFn = opts.dereference ?
|
|
5558
|
+
const statFn = opts.dereference ? fs40.stat : fs40.lstat;
|
|
5559
5559
|
const srcStat = await statFn(src);
|
|
5560
5560
|
if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts);
|
|
5561
5561
|
if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts);
|
|
@@ -5567,7 +5567,7 @@ var require_copy = __commonJS({
|
|
|
5567
5567
|
async function onFile(srcStat, destStat, src, dest, opts) {
|
|
5568
5568
|
if (!destStat) return copyFile(srcStat, src, dest, opts);
|
|
5569
5569
|
if (opts.overwrite) {
|
|
5570
|
-
await
|
|
5570
|
+
await fs40.unlink(dest);
|
|
5571
5571
|
return copyFile(srcStat, src, dest, opts);
|
|
5572
5572
|
}
|
|
5573
5573
|
if (opts.errorOnExist) {
|
|
@@ -5575,29 +5575,29 @@ var require_copy = __commonJS({
|
|
|
5575
5575
|
}
|
|
5576
5576
|
}
|
|
5577
5577
|
async function copyFile(srcStat, src, dest, opts) {
|
|
5578
|
-
await
|
|
5578
|
+
await fs40.copyFile(src, dest);
|
|
5579
5579
|
if (opts.preserveTimestamps) {
|
|
5580
5580
|
if (fileIsNotWritable(srcStat.mode)) {
|
|
5581
5581
|
await makeFileWritable(dest, srcStat.mode);
|
|
5582
5582
|
}
|
|
5583
|
-
const updatedSrcStat = await
|
|
5583
|
+
const updatedSrcStat = await fs40.stat(src);
|
|
5584
5584
|
await utimesMillis(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
|
|
5585
5585
|
}
|
|
5586
|
-
return
|
|
5586
|
+
return fs40.chmod(dest, srcStat.mode);
|
|
5587
5587
|
}
|
|
5588
5588
|
function fileIsNotWritable(srcMode) {
|
|
5589
5589
|
return (srcMode & 128) === 0;
|
|
5590
5590
|
}
|
|
5591
5591
|
function makeFileWritable(dest, srcMode) {
|
|
5592
|
-
return
|
|
5592
|
+
return fs40.chmod(dest, srcMode | 128);
|
|
5593
5593
|
}
|
|
5594
5594
|
async function onDir(srcStat, destStat, src, dest, opts) {
|
|
5595
5595
|
if (!destStat) {
|
|
5596
|
-
await
|
|
5596
|
+
await fs40.mkdir(dest);
|
|
5597
5597
|
}
|
|
5598
|
-
await asyncIteratorConcurrentProcess(await
|
|
5599
|
-
const srcItem =
|
|
5600
|
-
const destItem =
|
|
5598
|
+
await asyncIteratorConcurrentProcess(await fs40.opendir(src), async (item) => {
|
|
5599
|
+
const srcItem = path44.join(src, item.name);
|
|
5600
|
+
const destItem = path44.join(dest, item.name);
|
|
5601
5601
|
const include2 = await runFilter(srcItem, destItem, opts);
|
|
5602
5602
|
if (include2) {
|
|
5603
5603
|
const { destStat: destStat2 } = await stat3.checkPaths(srcItem, destItem, "copy", opts);
|
|
@@ -5605,26 +5605,26 @@ var require_copy = __commonJS({
|
|
|
5605
5605
|
}
|
|
5606
5606
|
});
|
|
5607
5607
|
if (!destStat) {
|
|
5608
|
-
await
|
|
5608
|
+
await fs40.chmod(dest, srcStat.mode);
|
|
5609
5609
|
}
|
|
5610
5610
|
}
|
|
5611
5611
|
async function onLink(destStat, src, dest, opts) {
|
|
5612
|
-
let resolvedSrc = await
|
|
5612
|
+
let resolvedSrc = await fs40.readlink(src);
|
|
5613
5613
|
if (opts.dereference) {
|
|
5614
|
-
resolvedSrc =
|
|
5614
|
+
resolvedSrc = path44.resolve(process.cwd(), resolvedSrc);
|
|
5615
5615
|
}
|
|
5616
5616
|
if (!destStat) {
|
|
5617
|
-
return
|
|
5617
|
+
return fs40.symlink(resolvedSrc, dest);
|
|
5618
5618
|
}
|
|
5619
5619
|
let resolvedDest = null;
|
|
5620
5620
|
try {
|
|
5621
|
-
resolvedDest = await
|
|
5621
|
+
resolvedDest = await fs40.readlink(dest);
|
|
5622
5622
|
} catch (e3) {
|
|
5623
|
-
if (e3.code === "EINVAL" || e3.code === "UNKNOWN") return
|
|
5623
|
+
if (e3.code === "EINVAL" || e3.code === "UNKNOWN") return fs40.symlink(resolvedSrc, dest);
|
|
5624
5624
|
throw e3;
|
|
5625
5625
|
}
|
|
5626
5626
|
if (opts.dereference) {
|
|
5627
|
-
resolvedDest =
|
|
5627
|
+
resolvedDest = path44.resolve(process.cwd(), resolvedDest);
|
|
5628
5628
|
}
|
|
5629
5629
|
if (stat3.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
5630
5630
|
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
@@ -5632,8 +5632,8 @@ var require_copy = __commonJS({
|
|
|
5632
5632
|
if (stat3.isSrcSubdir(resolvedDest, resolvedSrc)) {
|
|
5633
5633
|
throw new Error(`Cannot overwrite '${resolvedDest}' with '${resolvedSrc}'.`);
|
|
5634
5634
|
}
|
|
5635
|
-
await
|
|
5636
|
-
return
|
|
5635
|
+
await fs40.unlink(dest);
|
|
5636
|
+
return fs40.symlink(resolvedSrc, dest);
|
|
5637
5637
|
}
|
|
5638
5638
|
module2.exports = copy;
|
|
5639
5639
|
}
|
|
@@ -5643,8 +5643,8 @@ var require_copy = __commonJS({
|
|
|
5643
5643
|
var require_copy_sync = __commonJS({
|
|
5644
5644
|
"node_modules/fs-extra/lib/copy/copy-sync.js"(exports2, module2) {
|
|
5645
5645
|
"use strict";
|
|
5646
|
-
var
|
|
5647
|
-
var
|
|
5646
|
+
var fs40 = require_graceful_fs();
|
|
5647
|
+
var path44 = require("path");
|
|
5648
5648
|
var mkdirsSync = require_mkdirs().mkdirsSync;
|
|
5649
5649
|
var utimesMillisSync = require_utimes().utimesMillisSync;
|
|
5650
5650
|
var stat3 = require_stat();
|
|
@@ -5665,12 +5665,12 @@ var require_copy_sync = __commonJS({
|
|
|
5665
5665
|
const { srcStat, destStat } = stat3.checkPathsSync(src, dest, "copy", opts);
|
|
5666
5666
|
stat3.checkParentPathsSync(src, srcStat, dest, "copy");
|
|
5667
5667
|
if (opts.filter && !opts.filter(src, dest)) return;
|
|
5668
|
-
const destParent =
|
|
5669
|
-
if (!
|
|
5668
|
+
const destParent = path44.dirname(dest);
|
|
5669
|
+
if (!fs40.existsSync(destParent)) mkdirsSync(destParent);
|
|
5670
5670
|
return getStats(destStat, src, dest, opts);
|
|
5671
5671
|
}
|
|
5672
5672
|
function getStats(destStat, src, dest, opts) {
|
|
5673
|
-
const statSync = opts.dereference ?
|
|
5673
|
+
const statSync = opts.dereference ? fs40.statSync : fs40.lstatSync;
|
|
5674
5674
|
const srcStat = statSync(src);
|
|
5675
5675
|
if (srcStat.isDirectory()) return onDir(srcStat, destStat, src, dest, opts);
|
|
5676
5676
|
else if (srcStat.isFile() || srcStat.isCharacterDevice() || srcStat.isBlockDevice()) return onFile(srcStat, destStat, src, dest, opts);
|
|
@@ -5685,14 +5685,14 @@ var require_copy_sync = __commonJS({
|
|
|
5685
5685
|
}
|
|
5686
5686
|
function mayCopyFile(srcStat, src, dest, opts) {
|
|
5687
5687
|
if (opts.overwrite) {
|
|
5688
|
-
|
|
5688
|
+
fs40.unlinkSync(dest);
|
|
5689
5689
|
return copyFile(srcStat, src, dest, opts);
|
|
5690
5690
|
} else if (opts.errorOnExist) {
|
|
5691
5691
|
throw new Error(`'${dest}' already exists`);
|
|
5692
5692
|
}
|
|
5693
5693
|
}
|
|
5694
5694
|
function copyFile(srcStat, src, dest, opts) {
|
|
5695
|
-
|
|
5695
|
+
fs40.copyFileSync(src, dest);
|
|
5696
5696
|
if (opts.preserveTimestamps) handleTimestamps(srcStat.mode, src, dest);
|
|
5697
5697
|
return setDestMode(dest, srcStat.mode);
|
|
5698
5698
|
}
|
|
@@ -5707,10 +5707,10 @@ var require_copy_sync = __commonJS({
|
|
|
5707
5707
|
return setDestMode(dest, srcMode | 128);
|
|
5708
5708
|
}
|
|
5709
5709
|
function setDestMode(dest, srcMode) {
|
|
5710
|
-
return
|
|
5710
|
+
return fs40.chmodSync(dest, srcMode);
|
|
5711
5711
|
}
|
|
5712
5712
|
function setDestTimestamps(src, dest) {
|
|
5713
|
-
const updatedSrcStat =
|
|
5713
|
+
const updatedSrcStat = fs40.statSync(src);
|
|
5714
5714
|
return utimesMillisSync(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
|
|
5715
5715
|
}
|
|
5716
5716
|
function onDir(srcStat, destStat, src, dest, opts) {
|
|
@@ -5718,12 +5718,12 @@ var require_copy_sync = __commonJS({
|
|
|
5718
5718
|
return copyDir(src, dest, opts);
|
|
5719
5719
|
}
|
|
5720
5720
|
function mkDirAndCopy(srcMode, src, dest, opts) {
|
|
5721
|
-
|
|
5721
|
+
fs40.mkdirSync(dest);
|
|
5722
5722
|
copyDir(src, dest, opts);
|
|
5723
5723
|
return setDestMode(dest, srcMode);
|
|
5724
5724
|
}
|
|
5725
5725
|
function copyDir(src, dest, opts) {
|
|
5726
|
-
const dir =
|
|
5726
|
+
const dir = fs40.opendirSync(src);
|
|
5727
5727
|
try {
|
|
5728
5728
|
let dirent;
|
|
5729
5729
|
while ((dirent = dir.readSync()) !== null) {
|
|
@@ -5734,29 +5734,29 @@ var require_copy_sync = __commonJS({
|
|
|
5734
5734
|
}
|
|
5735
5735
|
}
|
|
5736
5736
|
function copyDirItem(item, src, dest, opts) {
|
|
5737
|
-
const srcItem =
|
|
5738
|
-
const destItem =
|
|
5737
|
+
const srcItem = path44.join(src, item);
|
|
5738
|
+
const destItem = path44.join(dest, item);
|
|
5739
5739
|
if (opts.filter && !opts.filter(srcItem, destItem)) return;
|
|
5740
5740
|
const { destStat } = stat3.checkPathsSync(srcItem, destItem, "copy", opts);
|
|
5741
5741
|
return getStats(destStat, srcItem, destItem, opts);
|
|
5742
5742
|
}
|
|
5743
5743
|
function onLink(destStat, src, dest, opts) {
|
|
5744
|
-
let resolvedSrc =
|
|
5744
|
+
let resolvedSrc = fs40.readlinkSync(src);
|
|
5745
5745
|
if (opts.dereference) {
|
|
5746
|
-
resolvedSrc =
|
|
5746
|
+
resolvedSrc = path44.resolve(process.cwd(), resolvedSrc);
|
|
5747
5747
|
}
|
|
5748
5748
|
if (!destStat) {
|
|
5749
|
-
return
|
|
5749
|
+
return fs40.symlinkSync(resolvedSrc, dest);
|
|
5750
5750
|
} else {
|
|
5751
5751
|
let resolvedDest;
|
|
5752
5752
|
try {
|
|
5753
|
-
resolvedDest =
|
|
5753
|
+
resolvedDest = fs40.readlinkSync(dest);
|
|
5754
5754
|
} catch (err) {
|
|
5755
|
-
if (err.code === "EINVAL" || err.code === "UNKNOWN") return
|
|
5755
|
+
if (err.code === "EINVAL" || err.code === "UNKNOWN") return fs40.symlinkSync(resolvedSrc, dest);
|
|
5756
5756
|
throw err;
|
|
5757
5757
|
}
|
|
5758
5758
|
if (opts.dereference) {
|
|
5759
|
-
resolvedDest =
|
|
5759
|
+
resolvedDest = path44.resolve(process.cwd(), resolvedDest);
|
|
5760
5760
|
}
|
|
5761
5761
|
if (stat3.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
5762
5762
|
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
@@ -5768,8 +5768,8 @@ var require_copy_sync = __commonJS({
|
|
|
5768
5768
|
}
|
|
5769
5769
|
}
|
|
5770
5770
|
function copyLink(resolvedSrc, dest) {
|
|
5771
|
-
|
|
5772
|
-
return
|
|
5771
|
+
fs40.unlinkSync(dest);
|
|
5772
|
+
return fs40.symlinkSync(resolvedSrc, dest);
|
|
5773
5773
|
}
|
|
5774
5774
|
module2.exports = copySync;
|
|
5775
5775
|
}
|
|
@@ -5791,13 +5791,13 @@ var require_copy2 = __commonJS({
|
|
|
5791
5791
|
var require_remove = __commonJS({
|
|
5792
5792
|
"node_modules/fs-extra/lib/remove/index.js"(exports2, module2) {
|
|
5793
5793
|
"use strict";
|
|
5794
|
-
var
|
|
5794
|
+
var fs40 = require_graceful_fs();
|
|
5795
5795
|
var u3 = require_universalify().fromCallback;
|
|
5796
|
-
function remove(
|
|
5797
|
-
|
|
5796
|
+
function remove(path44, callback) {
|
|
5797
|
+
fs40.rm(path44, { recursive: true, force: true }, callback);
|
|
5798
5798
|
}
|
|
5799
|
-
function removeSync(
|
|
5800
|
-
|
|
5799
|
+
function removeSync(path44) {
|
|
5800
|
+
fs40.rmSync(path44, { recursive: true, force: true });
|
|
5801
5801
|
}
|
|
5802
5802
|
module2.exports = {
|
|
5803
5803
|
remove: u3(remove),
|
|
@@ -5811,28 +5811,28 @@ var require_empty = __commonJS({
|
|
|
5811
5811
|
"node_modules/fs-extra/lib/empty/index.js"(exports2, module2) {
|
|
5812
5812
|
"use strict";
|
|
5813
5813
|
var u3 = require_universalify().fromPromise;
|
|
5814
|
-
var
|
|
5815
|
-
var
|
|
5814
|
+
var fs40 = require_fs();
|
|
5815
|
+
var path44 = require("path");
|
|
5816
5816
|
var mkdir = require_mkdirs();
|
|
5817
5817
|
var remove = require_remove();
|
|
5818
5818
|
var emptyDir = u3(async function emptyDir2(dir) {
|
|
5819
5819
|
let items;
|
|
5820
5820
|
try {
|
|
5821
|
-
items = await
|
|
5821
|
+
items = await fs40.readdir(dir);
|
|
5822
5822
|
} catch {
|
|
5823
5823
|
return mkdir.mkdirs(dir);
|
|
5824
5824
|
}
|
|
5825
|
-
return Promise.all(items.map((item) => remove.remove(
|
|
5825
|
+
return Promise.all(items.map((item) => remove.remove(path44.join(dir, item))));
|
|
5826
5826
|
});
|
|
5827
5827
|
function emptyDirSync(dir) {
|
|
5828
5828
|
let items;
|
|
5829
5829
|
try {
|
|
5830
|
-
items =
|
|
5830
|
+
items = fs40.readdirSync(dir);
|
|
5831
5831
|
} catch {
|
|
5832
5832
|
return mkdir.mkdirsSync(dir);
|
|
5833
5833
|
}
|
|
5834
5834
|
items.forEach((item) => {
|
|
5835
|
-
item =
|
|
5835
|
+
item = path44.join(dir, item);
|
|
5836
5836
|
remove.removeSync(item);
|
|
5837
5837
|
});
|
|
5838
5838
|
}
|
|
@@ -5850,52 +5850,52 @@ var require_file = __commonJS({
|
|
|
5850
5850
|
"node_modules/fs-extra/lib/ensure/file.js"(exports2, module2) {
|
|
5851
5851
|
"use strict";
|
|
5852
5852
|
var u3 = require_universalify().fromPromise;
|
|
5853
|
-
var
|
|
5854
|
-
var
|
|
5853
|
+
var path44 = require("path");
|
|
5854
|
+
var fs40 = require_fs();
|
|
5855
5855
|
var mkdir = require_mkdirs();
|
|
5856
5856
|
async function createFile2(file) {
|
|
5857
5857
|
let stats;
|
|
5858
5858
|
try {
|
|
5859
|
-
stats = await
|
|
5859
|
+
stats = await fs40.stat(file);
|
|
5860
5860
|
} catch {
|
|
5861
5861
|
}
|
|
5862
5862
|
if (stats && stats.isFile()) return;
|
|
5863
|
-
const dir =
|
|
5863
|
+
const dir = path44.dirname(file);
|
|
5864
5864
|
let dirStats = null;
|
|
5865
5865
|
try {
|
|
5866
|
-
dirStats = await
|
|
5866
|
+
dirStats = await fs40.stat(dir);
|
|
5867
5867
|
} catch (err) {
|
|
5868
5868
|
if (err.code === "ENOENT") {
|
|
5869
5869
|
await mkdir.mkdirs(dir);
|
|
5870
|
-
await
|
|
5870
|
+
await fs40.writeFile(file, "");
|
|
5871
5871
|
return;
|
|
5872
5872
|
} else {
|
|
5873
5873
|
throw err;
|
|
5874
5874
|
}
|
|
5875
5875
|
}
|
|
5876
5876
|
if (dirStats.isDirectory()) {
|
|
5877
|
-
await
|
|
5877
|
+
await fs40.writeFile(file, "");
|
|
5878
5878
|
} else {
|
|
5879
|
-
await
|
|
5879
|
+
await fs40.readdir(dir);
|
|
5880
5880
|
}
|
|
5881
5881
|
}
|
|
5882
5882
|
function createFileSync(file) {
|
|
5883
5883
|
let stats;
|
|
5884
5884
|
try {
|
|
5885
|
-
stats =
|
|
5885
|
+
stats = fs40.statSync(file);
|
|
5886
5886
|
} catch {
|
|
5887
5887
|
}
|
|
5888
5888
|
if (stats && stats.isFile()) return;
|
|
5889
|
-
const dir =
|
|
5889
|
+
const dir = path44.dirname(file);
|
|
5890
5890
|
try {
|
|
5891
|
-
if (!
|
|
5892
|
-
|
|
5891
|
+
if (!fs40.statSync(dir).isDirectory()) {
|
|
5892
|
+
fs40.readdirSync(dir);
|
|
5893
5893
|
}
|
|
5894
5894
|
} catch (err) {
|
|
5895
5895
|
if (err && err.code === "ENOENT") mkdir.mkdirsSync(dir);
|
|
5896
5896
|
else throw err;
|
|
5897
5897
|
}
|
|
5898
|
-
|
|
5898
|
+
fs40.writeFileSync(file, "");
|
|
5899
5899
|
}
|
|
5900
5900
|
module2.exports = {
|
|
5901
5901
|
createFile: u3(createFile2),
|
|
@@ -5909,50 +5909,50 @@ var require_link = __commonJS({
|
|
|
5909
5909
|
"node_modules/fs-extra/lib/ensure/link.js"(exports2, module2) {
|
|
5910
5910
|
"use strict";
|
|
5911
5911
|
var u3 = require_universalify().fromPromise;
|
|
5912
|
-
var
|
|
5913
|
-
var
|
|
5912
|
+
var path44 = require("path");
|
|
5913
|
+
var fs40 = require_fs();
|
|
5914
5914
|
var mkdir = require_mkdirs();
|
|
5915
5915
|
var { pathExists: pathExists3 } = require_path_exists();
|
|
5916
5916
|
var { areIdentical } = require_stat();
|
|
5917
5917
|
async function createLink(srcpath, dstpath) {
|
|
5918
5918
|
let dstStat;
|
|
5919
5919
|
try {
|
|
5920
|
-
dstStat = await
|
|
5920
|
+
dstStat = await fs40.lstat(dstpath);
|
|
5921
5921
|
} catch {
|
|
5922
5922
|
}
|
|
5923
5923
|
let srcStat;
|
|
5924
5924
|
try {
|
|
5925
|
-
srcStat = await
|
|
5925
|
+
srcStat = await fs40.lstat(srcpath);
|
|
5926
5926
|
} catch (err) {
|
|
5927
5927
|
err.message = err.message.replace("lstat", "ensureLink");
|
|
5928
5928
|
throw err;
|
|
5929
5929
|
}
|
|
5930
5930
|
if (dstStat && areIdentical(srcStat, dstStat)) return;
|
|
5931
|
-
const dir =
|
|
5931
|
+
const dir = path44.dirname(dstpath);
|
|
5932
5932
|
const dirExists = await pathExists3(dir);
|
|
5933
5933
|
if (!dirExists) {
|
|
5934
5934
|
await mkdir.mkdirs(dir);
|
|
5935
5935
|
}
|
|
5936
|
-
await
|
|
5936
|
+
await fs40.link(srcpath, dstpath);
|
|
5937
5937
|
}
|
|
5938
5938
|
function createLinkSync(srcpath, dstpath) {
|
|
5939
5939
|
let dstStat;
|
|
5940
5940
|
try {
|
|
5941
|
-
dstStat =
|
|
5941
|
+
dstStat = fs40.lstatSync(dstpath);
|
|
5942
5942
|
} catch {
|
|
5943
5943
|
}
|
|
5944
5944
|
try {
|
|
5945
|
-
const srcStat =
|
|
5945
|
+
const srcStat = fs40.lstatSync(srcpath);
|
|
5946
5946
|
if (dstStat && areIdentical(srcStat, dstStat)) return;
|
|
5947
5947
|
} catch (err) {
|
|
5948
5948
|
err.message = err.message.replace("lstat", "ensureLink");
|
|
5949
5949
|
throw err;
|
|
5950
5950
|
}
|
|
5951
|
-
const dir =
|
|
5952
|
-
const dirExists =
|
|
5953
|
-
if (dirExists) return
|
|
5951
|
+
const dir = path44.dirname(dstpath);
|
|
5952
|
+
const dirExists = fs40.existsSync(dir);
|
|
5953
|
+
if (dirExists) return fs40.linkSync(srcpath, dstpath);
|
|
5954
5954
|
mkdir.mkdirsSync(dir);
|
|
5955
|
-
return
|
|
5955
|
+
return fs40.linkSync(srcpath, dstpath);
|
|
5956
5956
|
}
|
|
5957
5957
|
module2.exports = {
|
|
5958
5958
|
createLink: u3(createLink),
|
|
@@ -5965,14 +5965,14 @@ var require_link = __commonJS({
|
|
|
5965
5965
|
var require_symlink_paths = __commonJS({
|
|
5966
5966
|
"node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports2, module2) {
|
|
5967
5967
|
"use strict";
|
|
5968
|
-
var
|
|
5969
|
-
var
|
|
5968
|
+
var path44 = require("path");
|
|
5969
|
+
var fs40 = require_fs();
|
|
5970
5970
|
var { pathExists: pathExists3 } = require_path_exists();
|
|
5971
5971
|
var u3 = require_universalify().fromPromise;
|
|
5972
5972
|
async function symlinkPaths(srcpath, dstpath) {
|
|
5973
|
-
if (
|
|
5973
|
+
if (path44.isAbsolute(srcpath)) {
|
|
5974
5974
|
try {
|
|
5975
|
-
await
|
|
5975
|
+
await fs40.lstat(srcpath);
|
|
5976
5976
|
} catch (err) {
|
|
5977
5977
|
err.message = err.message.replace("lstat", "ensureSymlink");
|
|
5978
5978
|
throw err;
|
|
@@ -5982,8 +5982,8 @@ var require_symlink_paths = __commonJS({
|
|
|
5982
5982
|
toDst: srcpath
|
|
5983
5983
|
};
|
|
5984
5984
|
}
|
|
5985
|
-
const dstdir =
|
|
5986
|
-
const relativeToDst =
|
|
5985
|
+
const dstdir = path44.dirname(dstpath);
|
|
5986
|
+
const relativeToDst = path44.join(dstdir, srcpath);
|
|
5987
5987
|
const exists = await pathExists3(relativeToDst);
|
|
5988
5988
|
if (exists) {
|
|
5989
5989
|
return {
|
|
@@ -5992,39 +5992,39 @@ var require_symlink_paths = __commonJS({
|
|
|
5992
5992
|
};
|
|
5993
5993
|
}
|
|
5994
5994
|
try {
|
|
5995
|
-
await
|
|
5995
|
+
await fs40.lstat(srcpath);
|
|
5996
5996
|
} catch (err) {
|
|
5997
5997
|
err.message = err.message.replace("lstat", "ensureSymlink");
|
|
5998
5998
|
throw err;
|
|
5999
5999
|
}
|
|
6000
6000
|
return {
|
|
6001
6001
|
toCwd: srcpath,
|
|
6002
|
-
toDst:
|
|
6002
|
+
toDst: path44.relative(dstdir, srcpath)
|
|
6003
6003
|
};
|
|
6004
6004
|
}
|
|
6005
6005
|
function symlinkPathsSync(srcpath, dstpath) {
|
|
6006
|
-
if (
|
|
6007
|
-
const exists2 =
|
|
6006
|
+
if (path44.isAbsolute(srcpath)) {
|
|
6007
|
+
const exists2 = fs40.existsSync(srcpath);
|
|
6008
6008
|
if (!exists2) throw new Error("absolute srcpath does not exist");
|
|
6009
6009
|
return {
|
|
6010
6010
|
toCwd: srcpath,
|
|
6011
6011
|
toDst: srcpath
|
|
6012
6012
|
};
|
|
6013
6013
|
}
|
|
6014
|
-
const dstdir =
|
|
6015
|
-
const relativeToDst =
|
|
6016
|
-
const exists =
|
|
6014
|
+
const dstdir = path44.dirname(dstpath);
|
|
6015
|
+
const relativeToDst = path44.join(dstdir, srcpath);
|
|
6016
|
+
const exists = fs40.existsSync(relativeToDst);
|
|
6017
6017
|
if (exists) {
|
|
6018
6018
|
return {
|
|
6019
6019
|
toCwd: relativeToDst,
|
|
6020
6020
|
toDst: srcpath
|
|
6021
6021
|
};
|
|
6022
6022
|
}
|
|
6023
|
-
const srcExists =
|
|
6023
|
+
const srcExists = fs40.existsSync(srcpath);
|
|
6024
6024
|
if (!srcExists) throw new Error("relative srcpath does not exist");
|
|
6025
6025
|
return {
|
|
6026
6026
|
toCwd: srcpath,
|
|
6027
|
-
toDst:
|
|
6027
|
+
toDst: path44.relative(dstdir, srcpath)
|
|
6028
6028
|
};
|
|
6029
6029
|
}
|
|
6030
6030
|
module2.exports = {
|
|
@@ -6038,13 +6038,13 @@ var require_symlink_paths = __commonJS({
|
|
|
6038
6038
|
var require_symlink_type = __commonJS({
|
|
6039
6039
|
"node_modules/fs-extra/lib/ensure/symlink-type.js"(exports2, module2) {
|
|
6040
6040
|
"use strict";
|
|
6041
|
-
var
|
|
6041
|
+
var fs40 = require_fs();
|
|
6042
6042
|
var u3 = require_universalify().fromPromise;
|
|
6043
6043
|
async function symlinkType(srcpath, type) {
|
|
6044
6044
|
if (type) return type;
|
|
6045
6045
|
let stats;
|
|
6046
6046
|
try {
|
|
6047
|
-
stats = await
|
|
6047
|
+
stats = await fs40.lstat(srcpath);
|
|
6048
6048
|
} catch {
|
|
6049
6049
|
return "file";
|
|
6050
6050
|
}
|
|
@@ -6054,7 +6054,7 @@ var require_symlink_type = __commonJS({
|
|
|
6054
6054
|
if (type) return type;
|
|
6055
6055
|
let stats;
|
|
6056
6056
|
try {
|
|
6057
|
-
stats =
|
|
6057
|
+
stats = fs40.lstatSync(srcpath);
|
|
6058
6058
|
} catch {
|
|
6059
6059
|
return "file";
|
|
6060
6060
|
}
|
|
@@ -6072,8 +6072,8 @@ var require_symlink = __commonJS({
|
|
|
6072
6072
|
"node_modules/fs-extra/lib/ensure/symlink.js"(exports2, module2) {
|
|
6073
6073
|
"use strict";
|
|
6074
6074
|
var u3 = require_universalify().fromPromise;
|
|
6075
|
-
var
|
|
6076
|
-
var
|
|
6075
|
+
var path44 = require("path");
|
|
6076
|
+
var fs40 = require_fs();
|
|
6077
6077
|
var { mkdirs, mkdirsSync } = require_mkdirs();
|
|
6078
6078
|
var { symlinkPaths, symlinkPathsSync } = require_symlink_paths();
|
|
6079
6079
|
var { symlinkType, symlinkTypeSync } = require_symlink_type();
|
|
@@ -6082,44 +6082,44 @@ var require_symlink = __commonJS({
|
|
|
6082
6082
|
async function createSymlink(srcpath, dstpath, type) {
|
|
6083
6083
|
let stats;
|
|
6084
6084
|
try {
|
|
6085
|
-
stats = await
|
|
6085
|
+
stats = await fs40.lstat(dstpath);
|
|
6086
6086
|
} catch {
|
|
6087
6087
|
}
|
|
6088
6088
|
if (stats && stats.isSymbolicLink()) {
|
|
6089
6089
|
const [srcStat, dstStat] = await Promise.all([
|
|
6090
|
-
|
|
6091
|
-
|
|
6090
|
+
fs40.stat(srcpath),
|
|
6091
|
+
fs40.stat(dstpath)
|
|
6092
6092
|
]);
|
|
6093
6093
|
if (areIdentical(srcStat, dstStat)) return;
|
|
6094
6094
|
}
|
|
6095
6095
|
const relative = await symlinkPaths(srcpath, dstpath);
|
|
6096
6096
|
srcpath = relative.toDst;
|
|
6097
6097
|
const toType = await symlinkType(relative.toCwd, type);
|
|
6098
|
-
const dir =
|
|
6098
|
+
const dir = path44.dirname(dstpath);
|
|
6099
6099
|
if (!await pathExists3(dir)) {
|
|
6100
6100
|
await mkdirs(dir);
|
|
6101
6101
|
}
|
|
6102
|
-
return
|
|
6102
|
+
return fs40.symlink(srcpath, dstpath, toType);
|
|
6103
6103
|
}
|
|
6104
6104
|
function createSymlinkSync(srcpath, dstpath, type) {
|
|
6105
6105
|
let stats;
|
|
6106
6106
|
try {
|
|
6107
|
-
stats =
|
|
6107
|
+
stats = fs40.lstatSync(dstpath);
|
|
6108
6108
|
} catch {
|
|
6109
6109
|
}
|
|
6110
6110
|
if (stats && stats.isSymbolicLink()) {
|
|
6111
|
-
const srcStat =
|
|
6112
|
-
const dstStat =
|
|
6111
|
+
const srcStat = fs40.statSync(srcpath);
|
|
6112
|
+
const dstStat = fs40.statSync(dstpath);
|
|
6113
6113
|
if (areIdentical(srcStat, dstStat)) return;
|
|
6114
6114
|
}
|
|
6115
6115
|
const relative = symlinkPathsSync(srcpath, dstpath);
|
|
6116
6116
|
srcpath = relative.toDst;
|
|
6117
6117
|
type = symlinkTypeSync(relative.toCwd, type);
|
|
6118
|
-
const dir =
|
|
6119
|
-
const exists =
|
|
6120
|
-
if (exists) return
|
|
6118
|
+
const dir = path44.dirname(dstpath);
|
|
6119
|
+
const exists = fs40.existsSync(dir);
|
|
6120
|
+
if (exists) return fs40.symlinkSync(srcpath, dstpath, type);
|
|
6121
6121
|
mkdirsSync(dir);
|
|
6122
|
-
return
|
|
6122
|
+
return fs40.symlinkSync(srcpath, dstpath, type);
|
|
6123
6123
|
}
|
|
6124
6124
|
module2.exports = {
|
|
6125
6125
|
createSymlink: u3(createSymlink),
|
|
@@ -6186,9 +6186,9 @@ var require_jsonfile = __commonJS({
|
|
|
6186
6186
|
if (typeof options === "string") {
|
|
6187
6187
|
options = { encoding: options };
|
|
6188
6188
|
}
|
|
6189
|
-
const
|
|
6189
|
+
const fs40 = options.fs || _fs;
|
|
6190
6190
|
const shouldThrow = "throws" in options ? options.throws : true;
|
|
6191
|
-
let data2 = await universalify.fromCallback(
|
|
6191
|
+
let data2 = await universalify.fromCallback(fs40.readFile)(file, options);
|
|
6192
6192
|
data2 = stripBom(data2);
|
|
6193
6193
|
let obj;
|
|
6194
6194
|
try {
|
|
@@ -6208,10 +6208,10 @@ var require_jsonfile = __commonJS({
|
|
|
6208
6208
|
if (typeof options === "string") {
|
|
6209
6209
|
options = { encoding: options };
|
|
6210
6210
|
}
|
|
6211
|
-
const
|
|
6211
|
+
const fs40 = options.fs || _fs;
|
|
6212
6212
|
const shouldThrow = "throws" in options ? options.throws : true;
|
|
6213
6213
|
try {
|
|
6214
|
-
let content =
|
|
6214
|
+
let content = fs40.readFileSync(file, options);
|
|
6215
6215
|
content = stripBom(content);
|
|
6216
6216
|
return JSON.parse(content, options.reviver);
|
|
6217
6217
|
} catch (err) {
|
|
@@ -6224,15 +6224,15 @@ var require_jsonfile = __commonJS({
|
|
|
6224
6224
|
}
|
|
6225
6225
|
}
|
|
6226
6226
|
async function _writeFile(file, obj, options = {}) {
|
|
6227
|
-
const
|
|
6227
|
+
const fs40 = options.fs || _fs;
|
|
6228
6228
|
const str = stringify2(obj, options);
|
|
6229
|
-
await universalify.fromCallback(
|
|
6229
|
+
await universalify.fromCallback(fs40.writeFile)(file, str, options);
|
|
6230
6230
|
}
|
|
6231
6231
|
var writeFile = universalify.fromPromise(_writeFile);
|
|
6232
6232
|
function writeFileSync2(file, obj, options = {}) {
|
|
6233
|
-
const
|
|
6233
|
+
const fs40 = options.fs || _fs;
|
|
6234
6234
|
const str = stringify2(obj, options);
|
|
6235
|
-
return
|
|
6235
|
+
return fs40.writeFileSync(file, str, options);
|
|
6236
6236
|
}
|
|
6237
6237
|
module2.exports = {
|
|
6238
6238
|
readFile,
|
|
@@ -6263,23 +6263,23 @@ var require_output_file = __commonJS({
|
|
|
6263
6263
|
"node_modules/fs-extra/lib/output-file/index.js"(exports2, module2) {
|
|
6264
6264
|
"use strict";
|
|
6265
6265
|
var u3 = require_universalify().fromPromise;
|
|
6266
|
-
var
|
|
6267
|
-
var
|
|
6266
|
+
var fs40 = require_fs();
|
|
6267
|
+
var path44 = require("path");
|
|
6268
6268
|
var mkdir = require_mkdirs();
|
|
6269
6269
|
var pathExists3 = require_path_exists().pathExists;
|
|
6270
6270
|
async function outputFile(file, data2, encoding = "utf-8") {
|
|
6271
|
-
const dir =
|
|
6271
|
+
const dir = path44.dirname(file);
|
|
6272
6272
|
if (!await pathExists3(dir)) {
|
|
6273
6273
|
await mkdir.mkdirs(dir);
|
|
6274
6274
|
}
|
|
6275
|
-
return
|
|
6275
|
+
return fs40.writeFile(file, data2, encoding);
|
|
6276
6276
|
}
|
|
6277
6277
|
function outputFileSync(file, ...args) {
|
|
6278
|
-
const dir =
|
|
6279
|
-
if (!
|
|
6278
|
+
const dir = path44.dirname(file);
|
|
6279
|
+
if (!fs40.existsSync(dir)) {
|
|
6280
6280
|
mkdir.mkdirsSync(dir);
|
|
6281
6281
|
}
|
|
6282
|
-
|
|
6282
|
+
fs40.writeFileSync(file, ...args);
|
|
6283
6283
|
}
|
|
6284
6284
|
module2.exports = {
|
|
6285
6285
|
outputFile: u3(outputFile),
|
|
@@ -6338,8 +6338,8 @@ var require_json = __commonJS({
|
|
|
6338
6338
|
var require_move = __commonJS({
|
|
6339
6339
|
"node_modules/fs-extra/lib/move/move.js"(exports2, module2) {
|
|
6340
6340
|
"use strict";
|
|
6341
|
-
var
|
|
6342
|
-
var
|
|
6341
|
+
var fs40 = require_fs();
|
|
6342
|
+
var path44 = require("path");
|
|
6343
6343
|
var { copy } = require_copy2();
|
|
6344
6344
|
var { remove } = require_remove();
|
|
6345
6345
|
var { mkdirp } = require_mkdirs();
|
|
@@ -6349,8 +6349,8 @@ var require_move = __commonJS({
|
|
|
6349
6349
|
const overwrite = opts.overwrite || opts.clobber || false;
|
|
6350
6350
|
const { srcStat, isChangingCase = false } = await stat3.checkPaths(src, dest, "move", opts);
|
|
6351
6351
|
await stat3.checkParentPaths(src, srcStat, dest, "move");
|
|
6352
|
-
const destParent =
|
|
6353
|
-
const parsedParentPath =
|
|
6352
|
+
const destParent = path44.dirname(dest);
|
|
6353
|
+
const parsedParentPath = path44.parse(destParent);
|
|
6354
6354
|
if (parsedParentPath.root !== destParent) {
|
|
6355
6355
|
await mkdirp(destParent);
|
|
6356
6356
|
}
|
|
@@ -6365,7 +6365,7 @@ var require_move = __commonJS({
|
|
|
6365
6365
|
}
|
|
6366
6366
|
}
|
|
6367
6367
|
try {
|
|
6368
|
-
await
|
|
6368
|
+
await fs40.rename(src, dest);
|
|
6369
6369
|
} catch (err) {
|
|
6370
6370
|
if (err.code !== "EXDEV") {
|
|
6371
6371
|
throw err;
|
|
@@ -6390,8 +6390,8 @@ var require_move = __commonJS({
|
|
|
6390
6390
|
var require_move_sync = __commonJS({
|
|
6391
6391
|
"node_modules/fs-extra/lib/move/move-sync.js"(exports2, module2) {
|
|
6392
6392
|
"use strict";
|
|
6393
|
-
var
|
|
6394
|
-
var
|
|
6393
|
+
var fs40 = require_graceful_fs();
|
|
6394
|
+
var path44 = require("path");
|
|
6395
6395
|
var copySync = require_copy2().copySync;
|
|
6396
6396
|
var removeSync = require_remove().removeSync;
|
|
6397
6397
|
var mkdirpSync = require_mkdirs().mkdirpSync;
|
|
@@ -6401,12 +6401,12 @@ var require_move_sync = __commonJS({
|
|
|
6401
6401
|
const overwrite = opts.overwrite || opts.clobber || false;
|
|
6402
6402
|
const { srcStat, isChangingCase = false } = stat3.checkPathsSync(src, dest, "move", opts);
|
|
6403
6403
|
stat3.checkParentPathsSync(src, srcStat, dest, "move");
|
|
6404
|
-
if (!isParentRoot(dest)) mkdirpSync(
|
|
6404
|
+
if (!isParentRoot(dest)) mkdirpSync(path44.dirname(dest));
|
|
6405
6405
|
return doRename(src, dest, overwrite, isChangingCase);
|
|
6406
6406
|
}
|
|
6407
6407
|
function isParentRoot(dest) {
|
|
6408
|
-
const parent =
|
|
6409
|
-
const parsedPath =
|
|
6408
|
+
const parent = path44.dirname(dest);
|
|
6409
|
+
const parsedPath = path44.parse(parent);
|
|
6410
6410
|
return parsedPath.root === parent;
|
|
6411
6411
|
}
|
|
6412
6412
|
function doRename(src, dest, overwrite, isChangingCase) {
|
|
@@ -6415,12 +6415,12 @@ var require_move_sync = __commonJS({
|
|
|
6415
6415
|
removeSync(dest);
|
|
6416
6416
|
return rename(src, dest, overwrite);
|
|
6417
6417
|
}
|
|
6418
|
-
if (
|
|
6418
|
+
if (fs40.existsSync(dest)) throw new Error("dest already exists.");
|
|
6419
6419
|
return rename(src, dest, overwrite);
|
|
6420
6420
|
}
|
|
6421
6421
|
function rename(src, dest, overwrite) {
|
|
6422
6422
|
try {
|
|
6423
|
-
|
|
6423
|
+
fs40.renameSync(src, dest);
|
|
6424
6424
|
} catch (err) {
|
|
6425
6425
|
if (err.code !== "EXDEV") throw err;
|
|
6426
6426
|
return moveAcrossDevice(src, dest, overwrite);
|
|
@@ -27584,10 +27584,10 @@ var require_lib2 = __commonJS({
|
|
|
27584
27584
|
exports2.analyse = analyse;
|
|
27585
27585
|
var detectFile = (filepath, opts = {}) => new Promise((resolve, reject) => {
|
|
27586
27586
|
let fd;
|
|
27587
|
-
const
|
|
27587
|
+
const fs40 = (0, node_1.default)();
|
|
27588
27588
|
const handler = (err, buffer2) => {
|
|
27589
27589
|
if (fd) {
|
|
27590
|
-
|
|
27590
|
+
fs40.closeSync(fd);
|
|
27591
27591
|
}
|
|
27592
27592
|
if (err) {
|
|
27593
27593
|
reject(err);
|
|
@@ -27599,9 +27599,9 @@ var require_lib2 = __commonJS({
|
|
|
27599
27599
|
};
|
|
27600
27600
|
const sampleSize = (opts === null || opts === void 0 ? void 0 : opts.sampleSize) || 0;
|
|
27601
27601
|
if (sampleSize > 0) {
|
|
27602
|
-
fd =
|
|
27602
|
+
fd = fs40.openSync(filepath, "r");
|
|
27603
27603
|
let sample = Buffer.allocUnsafe(sampleSize);
|
|
27604
|
-
|
|
27604
|
+
fs40.read(fd, sample, 0, sampleSize, opts.offset, (err, bytesRead) => {
|
|
27605
27605
|
if (err) {
|
|
27606
27606
|
handler(err, null);
|
|
27607
27607
|
} else {
|
|
@@ -27613,22 +27613,22 @@ var require_lib2 = __commonJS({
|
|
|
27613
27613
|
});
|
|
27614
27614
|
return;
|
|
27615
27615
|
}
|
|
27616
|
-
|
|
27616
|
+
fs40.readFile(filepath, handler);
|
|
27617
27617
|
});
|
|
27618
27618
|
exports2.detectFile = detectFile;
|
|
27619
27619
|
var detectFileSync = (filepath, opts = {}) => {
|
|
27620
|
-
const
|
|
27620
|
+
const fs40 = (0, node_1.default)();
|
|
27621
27621
|
if (opts && opts.sampleSize) {
|
|
27622
|
-
const fd =
|
|
27622
|
+
const fd = fs40.openSync(filepath, "r");
|
|
27623
27623
|
let sample = Buffer.allocUnsafe(opts.sampleSize);
|
|
27624
|
-
const bytesRead =
|
|
27624
|
+
const bytesRead = fs40.readSync(fd, sample, 0, opts.sampleSize, opts.offset);
|
|
27625
27625
|
if (bytesRead < opts.sampleSize) {
|
|
27626
27626
|
sample = sample.subarray(0, bytesRead);
|
|
27627
27627
|
}
|
|
27628
|
-
|
|
27628
|
+
fs40.closeSync(fd);
|
|
27629
27629
|
return (0, exports2.detect)(sample);
|
|
27630
27630
|
}
|
|
27631
|
-
return (0, exports2.detect)(
|
|
27631
|
+
return (0, exports2.detect)(fs40.readFileSync(filepath));
|
|
27632
27632
|
};
|
|
27633
27633
|
exports2.detectFileSync = detectFileSync;
|
|
27634
27634
|
exports2.default = {
|
|
@@ -40392,11 +40392,11 @@ var require_mime_types = __commonJS({
|
|
|
40392
40392
|
}
|
|
40393
40393
|
return exts[0];
|
|
40394
40394
|
}
|
|
40395
|
-
function lookup(
|
|
40396
|
-
if (!
|
|
40395
|
+
function lookup(path44) {
|
|
40396
|
+
if (!path44 || typeof path44 !== "string") {
|
|
40397
40397
|
return false;
|
|
40398
40398
|
}
|
|
40399
|
-
var extension2 = extname3("x." +
|
|
40399
|
+
var extension2 = extname3("x." + path44).toLowerCase().substr(1);
|
|
40400
40400
|
if (!extension2) {
|
|
40401
40401
|
return false;
|
|
40402
40402
|
}
|
|
@@ -41501,11 +41501,11 @@ var require_form_data = __commonJS({
|
|
|
41501
41501
|
"use strict";
|
|
41502
41502
|
var CombinedStream = require_combined_stream();
|
|
41503
41503
|
var util5 = require("util");
|
|
41504
|
-
var
|
|
41504
|
+
var path44 = require("path");
|
|
41505
41505
|
var http5 = require("http");
|
|
41506
41506
|
var https3 = require("https");
|
|
41507
41507
|
var parseUrl3 = require("url").parse;
|
|
41508
|
-
var
|
|
41508
|
+
var fs40 = require("fs");
|
|
41509
41509
|
var Stream2 = require("stream").Stream;
|
|
41510
41510
|
var crypto10 = require("crypto");
|
|
41511
41511
|
var mime = require_mime_types();
|
|
@@ -41572,7 +41572,7 @@ var require_form_data = __commonJS({
|
|
|
41572
41572
|
if (value2.end != void 0 && value2.end != Infinity && value2.start != void 0) {
|
|
41573
41573
|
callback(null, value2.end + 1 - (value2.start ? value2.start : 0));
|
|
41574
41574
|
} else {
|
|
41575
|
-
|
|
41575
|
+
fs40.stat(value2.path, function(err, stat3) {
|
|
41576
41576
|
if (err) {
|
|
41577
41577
|
callback(err);
|
|
41578
41578
|
return;
|
|
@@ -41629,11 +41629,11 @@ var require_form_data = __commonJS({
|
|
|
41629
41629
|
FormData7.prototype._getContentDisposition = function(value2, options) {
|
|
41630
41630
|
var filename;
|
|
41631
41631
|
if (typeof options.filepath === "string") {
|
|
41632
|
-
filename =
|
|
41632
|
+
filename = path44.normalize(options.filepath).replace(/\\/g, "/");
|
|
41633
41633
|
} else if (options.filename || value2 && (value2.name || value2.path)) {
|
|
41634
|
-
filename =
|
|
41634
|
+
filename = path44.basename(options.filename || value2 && (value2.name || value2.path));
|
|
41635
41635
|
} else if (value2 && value2.readable && hasOwn(value2, "httpVersion")) {
|
|
41636
|
-
filename =
|
|
41636
|
+
filename = path44.basename(value2.client._httpMessage.path || "");
|
|
41637
41637
|
}
|
|
41638
41638
|
if (filename) {
|
|
41639
41639
|
return 'filename="' + filename + '"';
|
|
@@ -43119,8 +43119,8 @@ var require_package = __commonJS({
|
|
|
43119
43119
|
// node_modules/dotenv/lib/main.js
|
|
43120
43120
|
var require_main = __commonJS({
|
|
43121
43121
|
"node_modules/dotenv/lib/main.js"(exports2, module2) {
|
|
43122
|
-
var
|
|
43123
|
-
var
|
|
43122
|
+
var fs40 = require("fs");
|
|
43123
|
+
var path44 = require("path");
|
|
43124
43124
|
var os10 = require("os");
|
|
43125
43125
|
var crypto10 = require("crypto");
|
|
43126
43126
|
var packageJson = require_package();
|
|
@@ -43228,7 +43228,7 @@ var require_main = __commonJS({
|
|
|
43228
43228
|
if (options && options.path && options.path.length > 0) {
|
|
43229
43229
|
if (Array.isArray(options.path)) {
|
|
43230
43230
|
for (const filepath of options.path) {
|
|
43231
|
-
if (
|
|
43231
|
+
if (fs40.existsSync(filepath)) {
|
|
43232
43232
|
possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`;
|
|
43233
43233
|
}
|
|
43234
43234
|
}
|
|
@@ -43236,15 +43236,15 @@ var require_main = __commonJS({
|
|
|
43236
43236
|
possibleVaultPath = options.path.endsWith(".vault") ? options.path : `${options.path}.vault`;
|
|
43237
43237
|
}
|
|
43238
43238
|
} else {
|
|
43239
|
-
possibleVaultPath =
|
|
43239
|
+
possibleVaultPath = path44.resolve(process.cwd(), ".env.vault");
|
|
43240
43240
|
}
|
|
43241
|
-
if (
|
|
43241
|
+
if (fs40.existsSync(possibleVaultPath)) {
|
|
43242
43242
|
return possibleVaultPath;
|
|
43243
43243
|
}
|
|
43244
43244
|
return null;
|
|
43245
43245
|
}
|
|
43246
43246
|
function _resolveHome(envPath2) {
|
|
43247
|
-
return envPath2[0] === "~" ?
|
|
43247
|
+
return envPath2[0] === "~" ? path44.join(os10.homedir(), envPath2.slice(1)) : envPath2;
|
|
43248
43248
|
}
|
|
43249
43249
|
function _configVault(options) {
|
|
43250
43250
|
const debug = Boolean(options && options.debug);
|
|
@@ -43261,7 +43261,7 @@ var require_main = __commonJS({
|
|
|
43261
43261
|
return { parsed };
|
|
43262
43262
|
}
|
|
43263
43263
|
function configDotenv(options) {
|
|
43264
|
-
const dotenvPath =
|
|
43264
|
+
const dotenvPath = path44.resolve(process.cwd(), ".env");
|
|
43265
43265
|
let encoding = "utf8";
|
|
43266
43266
|
const debug = Boolean(options && options.debug);
|
|
43267
43267
|
const quiet = options && "quiet" in options ? options.quiet : true;
|
|
@@ -43285,13 +43285,13 @@ var require_main = __commonJS({
|
|
|
43285
43285
|
}
|
|
43286
43286
|
let lastError;
|
|
43287
43287
|
const parsedAll = {};
|
|
43288
|
-
for (const
|
|
43288
|
+
for (const path45 of optionPaths) {
|
|
43289
43289
|
try {
|
|
43290
|
-
const parsed = DotenvModule.parse(
|
|
43290
|
+
const parsed = DotenvModule.parse(fs40.readFileSync(path45, { encoding }));
|
|
43291
43291
|
DotenvModule.populate(parsedAll, parsed, options);
|
|
43292
43292
|
} catch (e3) {
|
|
43293
43293
|
if (debug) {
|
|
43294
|
-
_debug(`Failed to load ${
|
|
43294
|
+
_debug(`Failed to load ${path45} ${e3.message}`);
|
|
43295
43295
|
}
|
|
43296
43296
|
lastError = e3;
|
|
43297
43297
|
}
|
|
@@ -43306,7 +43306,7 @@ var require_main = __commonJS({
|
|
|
43306
43306
|
const shortPaths = [];
|
|
43307
43307
|
for (const filePath of optionPaths) {
|
|
43308
43308
|
try {
|
|
43309
|
-
const relative =
|
|
43309
|
+
const relative = path44.relative(process.cwd(), filePath);
|
|
43310
43310
|
shortPaths.push(relative);
|
|
43311
43311
|
} catch (e3) {
|
|
43312
43312
|
if (debug) {
|
|
@@ -44291,11 +44291,11 @@ var require_file_writer = __commonJS({
|
|
|
44291
44291
|
var FileWriter = (
|
|
44292
44292
|
/** @class */
|
|
44293
44293
|
(function() {
|
|
44294
|
-
function FileWriter2(
|
|
44294
|
+
function FileWriter2(path44, append2, encoding) {
|
|
44295
44295
|
if (encoding === void 0) {
|
|
44296
44296
|
encoding = DEFAULT_ENCODING;
|
|
44297
44297
|
}
|
|
44298
|
-
this.path =
|
|
44298
|
+
this.path = path44;
|
|
44299
44299
|
this.append = append2;
|
|
44300
44300
|
this.encoding = encoding;
|
|
44301
44301
|
}
|
|
@@ -44435,13 +44435,13 @@ var require_csv_writer = __commonJS({
|
|
|
44435
44435
|
var CsvWriter = (
|
|
44436
44436
|
/** @class */
|
|
44437
44437
|
(function() {
|
|
44438
|
-
function CsvWriter2(csvStringifier,
|
|
44438
|
+
function CsvWriter2(csvStringifier, path44, encoding, append2) {
|
|
44439
44439
|
if (append2 === void 0) {
|
|
44440
44440
|
append2 = DEFAULT_INITIAL_APPEND_FLAG;
|
|
44441
44441
|
}
|
|
44442
44442
|
this.csvStringifier = csvStringifier;
|
|
44443
44443
|
this.append = append2;
|
|
44444
|
-
this.fileWriter = new file_writer_1.FileWriter(
|
|
44444
|
+
this.fileWriter = new file_writer_1.FileWriter(path44, this.append, encoding);
|
|
44445
44445
|
}
|
|
44446
44446
|
CsvWriter2.prototype.writeRecords = function(records) {
|
|
44447
44447
|
return __awaiter2(this, void 0, void 0, function() {
|
|
@@ -51405,9 +51405,9 @@ var init_createPaginator = __esm({
|
|
|
51405
51405
|
command = withCommand(command) ?? command;
|
|
51406
51406
|
return await client.send(command, ...args);
|
|
51407
51407
|
};
|
|
51408
|
-
get = (fromObject,
|
|
51408
|
+
get = (fromObject, path44) => {
|
|
51409
51409
|
let cursor2 = fromObject;
|
|
51410
|
-
const pathComponents =
|
|
51410
|
+
const pathComponents = path44.split(".");
|
|
51411
51411
|
for (const step of pathComponents) {
|
|
51412
51412
|
if (!cursor2 || typeof cursor2 !== "object") {
|
|
51413
51413
|
return void 0;
|
|
@@ -52370,12 +52370,12 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
52370
52370
|
const password = request.password ?? "";
|
|
52371
52371
|
auth = `${username}:${password}`;
|
|
52372
52372
|
}
|
|
52373
|
-
let
|
|
52373
|
+
let path44 = request.path;
|
|
52374
52374
|
if (queryString) {
|
|
52375
|
-
|
|
52375
|
+
path44 += `?${queryString}`;
|
|
52376
52376
|
}
|
|
52377
52377
|
if (request.fragment) {
|
|
52378
|
-
|
|
52378
|
+
path44 += `#${request.fragment}`;
|
|
52379
52379
|
}
|
|
52380
52380
|
let hostname = request.hostname ?? "";
|
|
52381
52381
|
if (hostname[0] === "[" && hostname.endsWith("]")) {
|
|
@@ -52387,7 +52387,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
52387
52387
|
headers: request.headers,
|
|
52388
52388
|
host: hostname,
|
|
52389
52389
|
method: request.method,
|
|
52390
|
-
path:
|
|
52390
|
+
path: path44,
|
|
52391
52391
|
port: request.port,
|
|
52392
52392
|
agent,
|
|
52393
52393
|
auth
|
|
@@ -52642,16 +52642,16 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
52642
52642
|
reject(err);
|
|
52643
52643
|
};
|
|
52644
52644
|
const queryString = querystringBuilder.buildQueryString(query || {});
|
|
52645
|
-
let
|
|
52645
|
+
let path44 = request.path;
|
|
52646
52646
|
if (queryString) {
|
|
52647
|
-
|
|
52647
|
+
path44 += `?${queryString}`;
|
|
52648
52648
|
}
|
|
52649
52649
|
if (request.fragment) {
|
|
52650
|
-
|
|
52650
|
+
path44 += `#${request.fragment}`;
|
|
52651
52651
|
}
|
|
52652
52652
|
const req = session.request({
|
|
52653
52653
|
...request.headers,
|
|
52654
|
-
[http22.constants.HTTP2_HEADER_PATH]:
|
|
52654
|
+
[http22.constants.HTTP2_HEADER_PATH]: path44,
|
|
52655
52655
|
[http22.constants.HTTP2_HEADER_METHOD]: method
|
|
52656
52656
|
});
|
|
52657
52657
|
session.ref();
|
|
@@ -52840,13 +52840,13 @@ var require_dist_cjs13 = __commonJS({
|
|
|
52840
52840
|
abortError.name = "AbortError";
|
|
52841
52841
|
return Promise.reject(abortError);
|
|
52842
52842
|
}
|
|
52843
|
-
let
|
|
52843
|
+
let path44 = request.path;
|
|
52844
52844
|
const queryString = querystringBuilder.buildQueryString(request.query || {});
|
|
52845
52845
|
if (queryString) {
|
|
52846
|
-
|
|
52846
|
+
path44 += `?${queryString}`;
|
|
52847
52847
|
}
|
|
52848
52848
|
if (request.fragment) {
|
|
52849
|
-
|
|
52849
|
+
path44 += `#${request.fragment}`;
|
|
52850
52850
|
}
|
|
52851
52851
|
let auth = "";
|
|
52852
52852
|
if (request.username != null || request.password != null) {
|
|
@@ -52855,7 +52855,7 @@ var require_dist_cjs13 = __commonJS({
|
|
|
52855
52855
|
auth = `${username}:${password}@`;
|
|
52856
52856
|
}
|
|
52857
52857
|
const { port, method } = request;
|
|
52858
|
-
const url3 = `${request.protocol}//${auth}${request.hostname}${port ? `:${port}` : ""}${
|
|
52858
|
+
const url3 = `${request.protocol}//${auth}${request.hostname}${port ? `:${port}` : ""}${path44}`;
|
|
52859
52859
|
const body2 = method === "GET" || method === "HEAD" ? void 0 : request.body;
|
|
52860
52860
|
const requestOptions = {
|
|
52861
52861
|
body: body2,
|
|
@@ -54917,13 +54917,13 @@ function __disposeResources(env) {
|
|
|
54917
54917
|
}
|
|
54918
54918
|
return next();
|
|
54919
54919
|
}
|
|
54920
|
-
function __rewriteRelativeImportExtension(
|
|
54921
|
-
if (typeof
|
|
54922
|
-
return
|
|
54920
|
+
function __rewriteRelativeImportExtension(path44, preserveJsx) {
|
|
54921
|
+
if (typeof path44 === "string" && /^\.\.?\//.test(path44)) {
|
|
54922
|
+
return path44.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m3, tsx, d3, ext2, cm) {
|
|
54923
54923
|
return tsx ? preserveJsx ? ".jsx" : ".js" : d3 && (!ext2 || !cm) ? m3 : d3 + ext2 + "." + cm.toLowerCase() + "js";
|
|
54924
54924
|
});
|
|
54925
54925
|
}
|
|
54926
|
-
return
|
|
54926
|
+
return path44;
|
|
54927
54927
|
}
|
|
54928
54928
|
var extendStatics, __assign, __createBinding, __setModuleDefault, ownKeys, _SuppressedError, tslib_es6_default;
|
|
54929
54929
|
var init_tslib_es6 = __esm({
|
|
@@ -55796,11 +55796,11 @@ var init_HttpBindingProtocol = __esm({
|
|
|
55796
55796
|
const opTraits = translateTraits(operationSchema.traits);
|
|
55797
55797
|
if (opTraits.http) {
|
|
55798
55798
|
request.method = opTraits.http[0];
|
|
55799
|
-
const [
|
|
55799
|
+
const [path44, search] = opTraits.http[1].split("?");
|
|
55800
55800
|
if (request.path == "/") {
|
|
55801
|
-
request.path =
|
|
55801
|
+
request.path = path44;
|
|
55802
55802
|
} else {
|
|
55803
|
-
request.path +=
|
|
55803
|
+
request.path += path44;
|
|
55804
55804
|
}
|
|
55805
55805
|
const traitSearchParams = new URLSearchParams(search ?? "");
|
|
55806
55806
|
Object.assign(query, Object.fromEntries(traitSearchParams));
|
|
@@ -56173,8 +56173,8 @@ var init_requestBuilder = __esm({
|
|
|
56173
56173
|
return this;
|
|
56174
56174
|
}
|
|
56175
56175
|
p(memberName, labelValueProvider, uriLabel, isGreedyLabel) {
|
|
56176
|
-
this.resolvePathStack.push((
|
|
56177
|
-
this.path = resolvedPath(
|
|
56176
|
+
this.resolvePathStack.push((path44) => {
|
|
56177
|
+
this.path = resolvedPath(path44, this.input, memberName, labelValueProvider, uriLabel, isGreedyLabel);
|
|
56178
56178
|
});
|
|
56179
56179
|
return this;
|
|
56180
56180
|
}
|
|
@@ -57201,10 +57201,10 @@ ${longDate}
|
|
|
57201
57201
|
${credentialScope}
|
|
57202
57202
|
${utilHexEncoding.toHex(hashedRequest)}`;
|
|
57203
57203
|
}
|
|
57204
|
-
getCanonicalPath({ path:
|
|
57204
|
+
getCanonicalPath({ path: path44 }) {
|
|
57205
57205
|
if (this.uriEscapePath) {
|
|
57206
57206
|
const normalizedPathSegments = [];
|
|
57207
|
-
for (const pathSegment of
|
|
57207
|
+
for (const pathSegment of path44.split("/")) {
|
|
57208
57208
|
if (pathSegment?.length === 0)
|
|
57209
57209
|
continue;
|
|
57210
57210
|
if (pathSegment === ".")
|
|
@@ -57215,11 +57215,11 @@ ${utilHexEncoding.toHex(hashedRequest)}`;
|
|
|
57215
57215
|
normalizedPathSegments.push(pathSegment);
|
|
57216
57216
|
}
|
|
57217
57217
|
}
|
|
57218
|
-
const normalizedPath = `${
|
|
57218
|
+
const normalizedPath = `${path44?.startsWith("/") ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && path44?.endsWith("/") ? "/" : ""}`;
|
|
57219
57219
|
const doubleEncoded = utilUriEscape.escapeUri(normalizedPath);
|
|
57220
57220
|
return doubleEncoded.replace(/%2F/g, "/");
|
|
57221
57221
|
}
|
|
57222
|
-
return
|
|
57222
|
+
return path44;
|
|
57223
57223
|
}
|
|
57224
57224
|
validateResolvedCredentials(credentials) {
|
|
57225
57225
|
if (typeof credentials !== "object" || typeof credentials.accessKeyId !== "string" || typeof credentials.secretAccessKey !== "string") {
|
|
@@ -58480,11 +58480,11 @@ var init_SmithyRpcV2CborProtocol = __esm({
|
|
|
58480
58480
|
}
|
|
58481
58481
|
}
|
|
58482
58482
|
const { service, operation: operation2 } = (0, import_util_middleware5.getSmithyContext)(context3);
|
|
58483
|
-
const
|
|
58483
|
+
const path44 = `/service/${service}/operation/${operation2}`;
|
|
58484
58484
|
if (request.path.endsWith("/")) {
|
|
58485
|
-
request.path +=
|
|
58485
|
+
request.path += path44.slice(1);
|
|
58486
58486
|
} else {
|
|
58487
|
-
request.path +=
|
|
58487
|
+
request.path += path44;
|
|
58488
58488
|
}
|
|
58489
58489
|
return request;
|
|
58490
58490
|
}
|
|
@@ -64515,18 +64515,18 @@ var require_dist_cjs32 = __commonJS({
|
|
|
64515
64515
|
}
|
|
64516
64516
|
};
|
|
64517
64517
|
var booleanEquals = (value1, value2) => value1 === value2;
|
|
64518
|
-
var getAttrPathList = (
|
|
64519
|
-
const parts2 =
|
|
64518
|
+
var getAttrPathList = (path44) => {
|
|
64519
|
+
const parts2 = path44.split(".");
|
|
64520
64520
|
const pathList = [];
|
|
64521
64521
|
for (const part of parts2) {
|
|
64522
64522
|
const squareBracketIndex = part.indexOf("[");
|
|
64523
64523
|
if (squareBracketIndex !== -1) {
|
|
64524
64524
|
if (part.indexOf("]") !== part.length - 1) {
|
|
64525
|
-
throw new EndpointError(`Path: '${
|
|
64525
|
+
throw new EndpointError(`Path: '${path44}' does not end with ']'`);
|
|
64526
64526
|
}
|
|
64527
64527
|
const arrayIndex = part.slice(squareBracketIndex + 1, -1);
|
|
64528
64528
|
if (Number.isNaN(parseInt(arrayIndex))) {
|
|
64529
|
-
throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${
|
|
64529
|
+
throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path44}'`);
|
|
64530
64530
|
}
|
|
64531
64531
|
if (squareBracketIndex !== 0) {
|
|
64532
64532
|
pathList.push(part.slice(0, squareBracketIndex));
|
|
@@ -64538,9 +64538,9 @@ var require_dist_cjs32 = __commonJS({
|
|
|
64538
64538
|
}
|
|
64539
64539
|
return pathList;
|
|
64540
64540
|
};
|
|
64541
|
-
var getAttr = (value2,
|
|
64541
|
+
var getAttr = (value2, path44) => getAttrPathList(path44).reduce((acc, index) => {
|
|
64542
64542
|
if (typeof acc !== "object") {
|
|
64543
|
-
throw new EndpointError(`Index '${index}' in '${
|
|
64543
|
+
throw new EndpointError(`Index '${index}' in '${path44}' not found in '${JSON.stringify(value2)}'`);
|
|
64544
64544
|
} else if (Array.isArray(acc)) {
|
|
64545
64545
|
return acc[parseInt(index)];
|
|
64546
64546
|
}
|
|
@@ -64559,8 +64559,8 @@ var require_dist_cjs32 = __commonJS({
|
|
|
64559
64559
|
return value2;
|
|
64560
64560
|
}
|
|
64561
64561
|
if (typeof value2 === "object" && "hostname" in value2) {
|
|
64562
|
-
const { hostname: hostname2, port, protocol: protocol2 = "", path:
|
|
64563
|
-
const url3 = new URL(`${protocol2}//${hostname2}${port ? `:${port}` : ""}${
|
|
64562
|
+
const { hostname: hostname2, port, protocol: protocol2 = "", path: path44 = "", query = {} } = value2;
|
|
64563
|
+
const url3 = new URL(`${protocol2}//${hostname2}${port ? `:${port}` : ""}${path44}`);
|
|
64564
64564
|
url3.search = Object.entries(query).map(([k3, v6]) => `${k3}=${v6}`).join("&");
|
|
64565
64565
|
return url3;
|
|
64566
64566
|
}
|
|
@@ -65802,14 +65802,14 @@ var require_readFile = __commonJS({
|
|
|
65802
65802
|
var promises_1 = require("node:fs/promises");
|
|
65803
65803
|
exports2.filePromises = {};
|
|
65804
65804
|
exports2.fileIntercept = {};
|
|
65805
|
-
var readFile = (
|
|
65806
|
-
if (exports2.fileIntercept[
|
|
65807
|
-
return exports2.fileIntercept[
|
|
65805
|
+
var readFile = (path44, options) => {
|
|
65806
|
+
if (exports2.fileIntercept[path44] !== void 0) {
|
|
65807
|
+
return exports2.fileIntercept[path44];
|
|
65808
65808
|
}
|
|
65809
|
-
if (!exports2.filePromises[
|
|
65810
|
-
exports2.filePromises[
|
|
65809
|
+
if (!exports2.filePromises[path44] || options?.ignoreCache) {
|
|
65810
|
+
exports2.filePromises[path44] = (0, promises_1.readFile)(path44, "utf8");
|
|
65811
65811
|
}
|
|
65812
|
-
return exports2.filePromises[
|
|
65812
|
+
return exports2.filePromises[path44];
|
|
65813
65813
|
};
|
|
65814
65814
|
exports2.readFile = readFile;
|
|
65815
65815
|
}
|
|
@@ -65822,7 +65822,7 @@ var require_dist_cjs40 = __commonJS({
|
|
|
65822
65822
|
var getHomeDir = require_getHomeDir();
|
|
65823
65823
|
var getSSOTokenFilepath = require_getSSOTokenFilepath();
|
|
65824
65824
|
var getSSOTokenFromFile = require_getSSOTokenFromFile();
|
|
65825
|
-
var
|
|
65825
|
+
var path44 = require("path");
|
|
65826
65826
|
var types2 = require_dist_cjs();
|
|
65827
65827
|
var readFile = require_readFile();
|
|
65828
65828
|
var ENV_PROFILE = "AWS_PROFILE";
|
|
@@ -65844,9 +65844,9 @@ var require_dist_cjs40 = __commonJS({
|
|
|
65844
65844
|
...data2.default && { default: data2.default }
|
|
65845
65845
|
});
|
|
65846
65846
|
var ENV_CONFIG_PATH = "AWS_CONFIG_FILE";
|
|
65847
|
-
var getConfigFilepath = () => process.env[ENV_CONFIG_PATH] ||
|
|
65847
|
+
var getConfigFilepath = () => process.env[ENV_CONFIG_PATH] || path44.join(getHomeDir.getHomeDir(), ".aws", "config");
|
|
65848
65848
|
var ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE";
|
|
65849
|
-
var getCredentialsFilepath = () => process.env[ENV_CREDENTIALS_PATH] ||
|
|
65849
|
+
var getCredentialsFilepath = () => process.env[ENV_CREDENTIALS_PATH] || path44.join(getHomeDir.getHomeDir(), ".aws", "credentials");
|
|
65850
65850
|
var prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/;
|
|
65851
65851
|
var profileNameBlockList = ["__proto__", "profile __proto__"];
|
|
65852
65852
|
var parseIni = (iniData) => {
|
|
@@ -65901,11 +65901,11 @@ var require_dist_cjs40 = __commonJS({
|
|
|
65901
65901
|
const relativeHomeDirPrefix = "~/";
|
|
65902
65902
|
let resolvedFilepath = filepath;
|
|
65903
65903
|
if (filepath.startsWith(relativeHomeDirPrefix)) {
|
|
65904
|
-
resolvedFilepath =
|
|
65904
|
+
resolvedFilepath = path44.join(homeDir, filepath.slice(2));
|
|
65905
65905
|
}
|
|
65906
65906
|
let resolvedConfigFilepath = configFilepath;
|
|
65907
65907
|
if (configFilepath.startsWith(relativeHomeDirPrefix)) {
|
|
65908
|
-
resolvedConfigFilepath =
|
|
65908
|
+
resolvedConfigFilepath = path44.join(homeDir, configFilepath.slice(2));
|
|
65909
65909
|
}
|
|
65910
65910
|
const parsedFiles = await Promise.all([
|
|
65911
65911
|
readFile.readFile(resolvedConfigFilepath, {
|
|
@@ -65944,8 +65944,8 @@ var require_dist_cjs40 = __commonJS({
|
|
|
65944
65944
|
getFileRecord() {
|
|
65945
65945
|
return readFile.fileIntercept;
|
|
65946
65946
|
},
|
|
65947
|
-
interceptFile(
|
|
65948
|
-
readFile.fileIntercept[
|
|
65947
|
+
interceptFile(path45, contents) {
|
|
65948
|
+
readFile.fileIntercept[path45] = Promise.resolve(contents);
|
|
65949
65949
|
},
|
|
65950
65950
|
getTokenRecord() {
|
|
65951
65951
|
return getSSOTokenFromFile.tokenIntercept;
|
|
@@ -66176,8 +66176,8 @@ var require_dist_cjs42 = __commonJS({
|
|
|
66176
66176
|
return endpoint.url.href;
|
|
66177
66177
|
}
|
|
66178
66178
|
if ("hostname" in endpoint) {
|
|
66179
|
-
const { protocol, hostname, port, path:
|
|
66180
|
-
return `${protocol}//${hostname}${port ? ":" + port : ""}${
|
|
66179
|
+
const { protocol, hostname, port, path: path44 } = endpoint;
|
|
66180
|
+
return `${protocol}//${hostname}${port ? ":" + port : ""}${path44}`;
|
|
66181
66181
|
}
|
|
66182
66182
|
}
|
|
66183
66183
|
return endpoint;
|
|
@@ -69494,7 +69494,7 @@ var require_dist_cjs55 = __commonJS({
|
|
|
69494
69494
|
var httpAuthSchemes = (init_httpAuthSchemes2(), __toCommonJS(httpAuthSchemes_exports));
|
|
69495
69495
|
var propertyProvider = require_dist_cjs17();
|
|
69496
69496
|
var sharedIniFileLoader = require_dist_cjs40();
|
|
69497
|
-
var
|
|
69497
|
+
var fs40 = require("fs");
|
|
69498
69498
|
var fromEnvSigningName = ({ logger: logger8, signingName } = {}) => async () => {
|
|
69499
69499
|
logger8?.debug?.("@aws-sdk/token-providers - fromEnvSigningName");
|
|
69500
69500
|
if (!signingName) {
|
|
@@ -69540,7 +69540,7 @@ var require_dist_cjs55 = __commonJS({
|
|
|
69540
69540
|
throw new propertyProvider.TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE}`, false);
|
|
69541
69541
|
}
|
|
69542
69542
|
};
|
|
69543
|
-
var { writeFile } =
|
|
69543
|
+
var { writeFile } = fs40.promises;
|
|
69544
69544
|
var writeSSOTokenToFile = (id, ssoToken) => {
|
|
69545
69545
|
const tokenFilepath = sharedIniFileLoader.getSSOTokenFilepath(id);
|
|
69546
69546
|
const tokenString = JSON.stringify(ssoToken, null, 2);
|
|
@@ -73034,7 +73034,7 @@ var require_dist_cjs65 = __commonJS({
|
|
|
73034
73034
|
var require_dist_cjs66 = __commonJS({
|
|
73035
73035
|
"node_modules/@smithy/hash-stream-node/dist-cjs/index.js"(exports2) {
|
|
73036
73036
|
"use strict";
|
|
73037
|
-
var
|
|
73037
|
+
var fs40 = require("fs");
|
|
73038
73038
|
var utilUtf8 = require_dist_cjs8();
|
|
73039
73039
|
var stream5 = require("stream");
|
|
73040
73040
|
var HashCalculator = class extends stream5.Writable {
|
|
@@ -73057,7 +73057,7 @@ var require_dist_cjs66 = __commonJS({
|
|
|
73057
73057
|
reject(new Error("Unable to calculate hash for non-file streams."));
|
|
73058
73058
|
return;
|
|
73059
73059
|
}
|
|
73060
|
-
const fileStreamTee =
|
|
73060
|
+
const fileStreamTee = fs40.createReadStream(fileStream.path, {
|
|
73061
73061
|
start: fileStream.start,
|
|
73062
73062
|
end: fileStream.end
|
|
73063
73063
|
});
|
|
@@ -87938,14 +87938,14 @@ var require_url_state_machine = __commonJS({
|
|
|
87938
87938
|
return url3.replace(/\u0009|\u000A|\u000D/g, "");
|
|
87939
87939
|
}
|
|
87940
87940
|
function shortenPath(url3) {
|
|
87941
|
-
const
|
|
87942
|
-
if (
|
|
87941
|
+
const path44 = url3.path;
|
|
87942
|
+
if (path44.length === 0) {
|
|
87943
87943
|
return;
|
|
87944
87944
|
}
|
|
87945
|
-
if (url3.scheme === "file" &&
|
|
87945
|
+
if (url3.scheme === "file" && path44.length === 1 && isNormalizedWindowsDriveLetter(path44[0])) {
|
|
87946
87946
|
return;
|
|
87947
87947
|
}
|
|
87948
|
-
|
|
87948
|
+
path44.pop();
|
|
87949
87949
|
}
|
|
87950
87950
|
function includesCredentials(url3) {
|
|
87951
87951
|
return url3.username !== "" || url3.password !== "";
|
|
@@ -96225,10 +96225,10 @@ var require_bignumber = __commonJS({
|
|
|
96225
96225
|
}
|
|
96226
96226
|
return (format3.prefix || "") + str + (format3.suffix || "");
|
|
96227
96227
|
};
|
|
96228
|
-
P.toFraction = function(
|
|
96228
|
+
P.toFraction = function(md2) {
|
|
96229
96229
|
var d3, d0, d1, d22, e3, exp, n3, n03, n1, q3, r3, s3, x3 = this, xc = x3.c;
|
|
96230
|
-
if (
|
|
96231
|
-
n3 = new BigNumber2(
|
|
96230
|
+
if (md2 != null) {
|
|
96231
|
+
n3 = new BigNumber2(md2);
|
|
96232
96232
|
if (!n3.isInteger() && (n3.c || n3.s !== 1) || n3.lt(ONE)) {
|
|
96233
96233
|
throw Error(bignumberError + "Argument " + (n3.isInteger() ? "out of range: " : "not an integer: ") + valueOf(n3));
|
|
96234
96234
|
}
|
|
@@ -96240,7 +96240,7 @@ var require_bignumber = __commonJS({
|
|
|
96240
96240
|
s3 = coeffToString(xc);
|
|
96241
96241
|
e3 = d3.e = s3.length - x3.e - 1;
|
|
96242
96242
|
d3.c[0] = POWS_TEN[(exp = e3 % LOG_BASE) < 0 ? LOG_BASE + exp : exp];
|
|
96243
|
-
|
|
96243
|
+
md2 = !md2 || n3.comparedTo(d3) > 0 ? e3 > 0 ? d3 : n1 : n3;
|
|
96244
96244
|
exp = MAX_EXP;
|
|
96245
96245
|
MAX_EXP = 1 / 0;
|
|
96246
96246
|
n3 = new BigNumber2(s3);
|
|
@@ -96248,7 +96248,7 @@ var require_bignumber = __commonJS({
|
|
|
96248
96248
|
for (; ; ) {
|
|
96249
96249
|
q3 = div(n3, d3, 0, 1);
|
|
96250
96250
|
d22 = d0.plus(q3.times(d1));
|
|
96251
|
-
if (d22.comparedTo(
|
|
96251
|
+
if (d22.comparedTo(md2) == 1) break;
|
|
96252
96252
|
d0 = d1;
|
|
96253
96253
|
d1 = d22;
|
|
96254
96254
|
n1 = n03.plus(q3.times(d22 = n1));
|
|
@@ -96256,7 +96256,7 @@ var require_bignumber = __commonJS({
|
|
|
96256
96256
|
d3 = n3.minus(q3.times(d22 = d3));
|
|
96257
96257
|
n3 = d22;
|
|
96258
96258
|
}
|
|
96259
|
-
d22 = div(
|
|
96259
|
+
d22 = div(md2.minus(d0), d1, 0, 1);
|
|
96260
96260
|
n03 = n03.plus(d22.times(n1));
|
|
96261
96261
|
d0 = d0.plus(d22.times(d1));
|
|
96262
96262
|
n03.s = n1.s = x3.s;
|
|
@@ -99753,12 +99753,12 @@ var require_src5 = __commonJS({
|
|
|
99753
99753
|
var _GoogleToken_requestToken;
|
|
99754
99754
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
99755
99755
|
exports2.GoogleToken = void 0;
|
|
99756
|
-
var
|
|
99756
|
+
var fs40 = require("fs");
|
|
99757
99757
|
var gaxios_1 = require_src2();
|
|
99758
99758
|
var jws = require_jws();
|
|
99759
|
-
var
|
|
99759
|
+
var path44 = require("path");
|
|
99760
99760
|
var util_1 = require("util");
|
|
99761
|
-
var readFile =
|
|
99761
|
+
var readFile = fs40.readFile ? (0, util_1.promisify)(fs40.readFile) : async () => {
|
|
99762
99762
|
throw new ErrorWithCode("use key rather than keyFile.", "MISSING_CREDENTIALS");
|
|
99763
99763
|
};
|
|
99764
99764
|
var GOOGLE_TOKEN_URL = "https://www.googleapis.com/oauth2/v4/token";
|
|
@@ -99844,7 +99844,7 @@ var require_src5 = __commonJS({
|
|
|
99844
99844
|
* @returns an object with privateKey and clientEmail properties
|
|
99845
99845
|
*/
|
|
99846
99846
|
async getCredentials(keyFile) {
|
|
99847
|
-
const ext2 =
|
|
99847
|
+
const ext2 = path44.extname(keyFile);
|
|
99848
99848
|
switch (ext2) {
|
|
99849
99849
|
case ".json": {
|
|
99850
99850
|
const key = await readFile(keyFile, "utf8");
|
|
@@ -101315,12 +101315,12 @@ var require_filesubjecttokensupplier = __commonJS({
|
|
|
101315
101315
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
101316
101316
|
exports2.FileSubjectTokenSupplier = void 0;
|
|
101317
101317
|
var util_1 = require("util");
|
|
101318
|
-
var
|
|
101319
|
-
var readFile = (0, util_1.promisify)((_a2 =
|
|
101318
|
+
var fs40 = require("fs");
|
|
101319
|
+
var readFile = (0, util_1.promisify)((_a2 = fs40.readFile) !== null && _a2 !== void 0 ? _a2 : (() => {
|
|
101320
101320
|
}));
|
|
101321
|
-
var realpath2 = (0, util_1.promisify)((_b =
|
|
101321
|
+
var realpath2 = (0, util_1.promisify)((_b = fs40.realpath) !== null && _b !== void 0 ? _b : (() => {
|
|
101322
101322
|
}));
|
|
101323
|
-
var lstat2 = (0, util_1.promisify)((_c3 =
|
|
101323
|
+
var lstat2 = (0, util_1.promisify)((_c3 = fs40.lstat) !== null && _c3 !== void 0 ? _c3 : (() => {
|
|
101324
101324
|
}));
|
|
101325
101325
|
var FileSubjectTokenSupplier = class {
|
|
101326
101326
|
/**
|
|
@@ -102038,7 +102038,7 @@ var require_pluggable_auth_handler = __commonJS({
|
|
|
102038
102038
|
var pluggable_auth_client_1 = require_pluggable_auth_client();
|
|
102039
102039
|
var executable_response_1 = require_executable_response();
|
|
102040
102040
|
var childProcess = require("child_process");
|
|
102041
|
-
var
|
|
102041
|
+
var fs40 = require("fs");
|
|
102042
102042
|
var PluggableAuthHandler = class _PluggableAuthHandler {
|
|
102043
102043
|
/**
|
|
102044
102044
|
* Instantiates a PluggableAuthHandler instance using the provided
|
|
@@ -102108,14 +102108,14 @@ var require_pluggable_auth_handler = __commonJS({
|
|
|
102108
102108
|
}
|
|
102109
102109
|
let filePath;
|
|
102110
102110
|
try {
|
|
102111
|
-
filePath = await
|
|
102111
|
+
filePath = await fs40.promises.realpath(this.outputFile);
|
|
102112
102112
|
} catch (_a2) {
|
|
102113
102113
|
return void 0;
|
|
102114
102114
|
}
|
|
102115
|
-
if (!(await
|
|
102115
|
+
if (!(await fs40.promises.lstat(filePath)).isFile()) {
|
|
102116
102116
|
return void 0;
|
|
102117
102117
|
}
|
|
102118
|
-
const responseString = await
|
|
102118
|
+
const responseString = await fs40.promises.readFile(filePath, {
|
|
102119
102119
|
encoding: "utf8"
|
|
102120
102120
|
});
|
|
102121
102121
|
if (responseString === "") {
|
|
@@ -102536,10 +102536,10 @@ var require_googleauth = __commonJS({
|
|
|
102536
102536
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
102537
102537
|
exports2.GoogleAuth = exports2.GoogleAuthExceptionMessages = exports2.CLOUD_SDK_CLIENT_ID = void 0;
|
|
102538
102538
|
var child_process_1 = require("child_process");
|
|
102539
|
-
var
|
|
102539
|
+
var fs40 = require("fs");
|
|
102540
102540
|
var gcpMetadata = require_src4();
|
|
102541
102541
|
var os10 = require("os");
|
|
102542
|
-
var
|
|
102542
|
+
var path44 = require("path");
|
|
102543
102543
|
var crypto_1 = require_crypto3();
|
|
102544
102544
|
var transporters_1 = require_transporters();
|
|
102545
102545
|
var computeclient_1 = require_computeclient();
|
|
@@ -102800,12 +102800,12 @@ var require_googleauth = __commonJS({
|
|
|
102800
102800
|
} else {
|
|
102801
102801
|
const home = process.env["HOME"];
|
|
102802
102802
|
if (home) {
|
|
102803
|
-
location =
|
|
102803
|
+
location = path44.join(home, ".config");
|
|
102804
102804
|
}
|
|
102805
102805
|
}
|
|
102806
102806
|
if (location) {
|
|
102807
|
-
location =
|
|
102808
|
-
if (!
|
|
102807
|
+
location = path44.join(location, "gcloud", "application_default_credentials.json");
|
|
102808
|
+
if (!fs40.existsSync(location)) {
|
|
102809
102809
|
location = null;
|
|
102810
102810
|
}
|
|
102811
102811
|
}
|
|
@@ -102826,8 +102826,8 @@ var require_googleauth = __commonJS({
|
|
|
102826
102826
|
throw new Error("The file path is invalid.");
|
|
102827
102827
|
}
|
|
102828
102828
|
try {
|
|
102829
|
-
filePath =
|
|
102830
|
-
if (!
|
|
102829
|
+
filePath = fs40.realpathSync(filePath);
|
|
102830
|
+
if (!fs40.lstatSync(filePath).isFile()) {
|
|
102831
102831
|
throw new Error();
|
|
102832
102832
|
}
|
|
102833
102833
|
} catch (err) {
|
|
@@ -102836,7 +102836,7 @@ var require_googleauth = __commonJS({
|
|
|
102836
102836
|
}
|
|
102837
102837
|
throw err;
|
|
102838
102838
|
}
|
|
102839
|
-
const readStream2 =
|
|
102839
|
+
const readStream2 = fs40.createReadStream(filePath);
|
|
102840
102840
|
return this.fromStream(readStream2, options);
|
|
102841
102841
|
}
|
|
102842
102842
|
/**
|
|
@@ -103222,8 +103222,8 @@ var require_googleauth = __commonJS({
|
|
|
103222
103222
|
if (this.jsonContent) {
|
|
103223
103223
|
return this._cacheClientFromJSON(this.jsonContent, this.clientOptions);
|
|
103224
103224
|
} else if (this.keyFilename) {
|
|
103225
|
-
const filePath =
|
|
103226
|
-
const stream5 =
|
|
103225
|
+
const filePath = path44.resolve(this.keyFilename);
|
|
103226
|
+
const stream5 = fs40.createReadStream(filePath);
|
|
103227
103227
|
return await this.fromStreamAsync(stream5, this.clientOptions);
|
|
103228
103228
|
} else if (this.apiKey) {
|
|
103229
103229
|
const client = await this.fromAPIKey(this.apiKey, this.clientOptions);
|
|
@@ -105767,8 +105767,8 @@ var require_apirequest = __commonJS({
|
|
|
105767
105767
|
}
|
|
105768
105768
|
if (parameters.context._options.rootUrl !== void 0 && options.url !== void 0) {
|
|
105769
105769
|
const originalUrl = new URL(options.url);
|
|
105770
|
-
const
|
|
105771
|
-
options.url = new URL(
|
|
105770
|
+
const path44 = originalUrl.href.substr(originalUrl.origin.length);
|
|
105771
|
+
options.url = new URL(path44, parameters.context._options.rootUrl).href;
|
|
105772
105772
|
}
|
|
105773
105773
|
options.paramsSerializer = (params2) => {
|
|
105774
105774
|
return qs.stringify(params2, { arrayFormat: "repeat" });
|
|
@@ -106089,13 +106089,13 @@ var require_discovery = __commonJS({
|
|
|
106089
106089
|
"use strict";
|
|
106090
106090
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
106091
106091
|
exports2.Discovery = void 0;
|
|
106092
|
-
var
|
|
106092
|
+
var fs40 = require("fs");
|
|
106093
106093
|
var google_auth_library_1 = require_src6();
|
|
106094
106094
|
var resolve = require("url");
|
|
106095
106095
|
var util5 = require("util");
|
|
106096
106096
|
var apirequest_1 = require_apirequest();
|
|
106097
106097
|
var endpoint_1 = require_endpoint();
|
|
106098
|
-
var readFile = util5.promisify(
|
|
106098
|
+
var readFile = util5.promisify(fs40.readFile);
|
|
106099
106099
|
var Discovery = class {
|
|
106100
106100
|
/**
|
|
106101
106101
|
* Discovery for discovering API endpoints
|
|
@@ -653627,22 +653627,22 @@ var require_OneDriveLargeFileUploadTask = __commonJS({
|
|
|
653627
653627
|
function OneDriveLargeFileUploadTask2(client, file, uploadSession, options) {
|
|
653628
653628
|
return _super.call(this, client, file, uploadSession, options) || this;
|
|
653629
653629
|
}
|
|
653630
|
-
OneDriveLargeFileUploadTask2.constructCreateSessionUrl = function(fileName,
|
|
653631
|
-
if (
|
|
653632
|
-
|
|
653630
|
+
OneDriveLargeFileUploadTask2.constructCreateSessionUrl = function(fileName, path44) {
|
|
653631
|
+
if (path44 === void 0) {
|
|
653632
|
+
path44 = OneDriveLargeFileUploadTask2.DEFAULT_UPLOAD_PATH;
|
|
653633
653633
|
}
|
|
653634
653634
|
fileName = fileName.trim();
|
|
653635
|
-
|
|
653636
|
-
if (
|
|
653637
|
-
|
|
653635
|
+
path44 = path44.trim();
|
|
653636
|
+
if (path44 === "") {
|
|
653637
|
+
path44 = "/";
|
|
653638
653638
|
}
|
|
653639
|
-
if (
|
|
653640
|
-
|
|
653639
|
+
if (path44[0] !== "/") {
|
|
653640
|
+
path44 = "/".concat(path44);
|
|
653641
653641
|
}
|
|
653642
|
-
if (
|
|
653643
|
-
|
|
653642
|
+
if (path44[path44.length - 1] !== "/") {
|
|
653643
|
+
path44 = "".concat(path44, "/");
|
|
653644
653644
|
}
|
|
653645
|
-
return "/me/drive/root:".concat(
|
|
653645
|
+
return "/me/drive/root:".concat(path44.split("/").map(function(p3) {
|
|
653646
653646
|
return encodeURIComponent(p3);
|
|
653647
653647
|
}).join("/")).concat(encodeURIComponent(fileName), ":/createUploadSession");
|
|
653648
653648
|
};
|
|
@@ -654149,31 +654149,31 @@ var require_GraphRequest = __commonJS({
|
|
|
654149
654149
|
var GraphRequest = (
|
|
654150
654150
|
/** @class */
|
|
654151
654151
|
(function() {
|
|
654152
|
-
function GraphRequest2(httpClient, config2,
|
|
654152
|
+
function GraphRequest2(httpClient, config2, path44) {
|
|
654153
654153
|
var _this = this;
|
|
654154
|
-
this.parsePath = function(
|
|
654155
|
-
if (
|
|
654156
|
-
|
|
654157
|
-
var endOfHostStrPos =
|
|
654154
|
+
this.parsePath = function(path45) {
|
|
654155
|
+
if (path45.indexOf("https://") !== -1) {
|
|
654156
|
+
path45 = path45.replace("https://", "");
|
|
654157
|
+
var endOfHostStrPos = path45.indexOf("/");
|
|
654158
654158
|
if (endOfHostStrPos !== -1) {
|
|
654159
|
-
_this.urlComponents.host = "https://" +
|
|
654160
|
-
|
|
654159
|
+
_this.urlComponents.host = "https://" + path45.substring(0, endOfHostStrPos);
|
|
654160
|
+
path45 = path45.substring(endOfHostStrPos + 1, path45.length);
|
|
654161
654161
|
}
|
|
654162
|
-
var endOfVersionStrPos =
|
|
654162
|
+
var endOfVersionStrPos = path45.indexOf("/");
|
|
654163
654163
|
if (endOfVersionStrPos !== -1) {
|
|
654164
|
-
_this.urlComponents.version =
|
|
654165
|
-
|
|
654164
|
+
_this.urlComponents.version = path45.substring(0, endOfVersionStrPos);
|
|
654165
|
+
path45 = path45.substring(endOfVersionStrPos + 1, path45.length);
|
|
654166
654166
|
}
|
|
654167
654167
|
}
|
|
654168
|
-
if (
|
|
654169
|
-
|
|
654168
|
+
if (path45.charAt(0) === "/") {
|
|
654169
|
+
path45 = path45.substr(1);
|
|
654170
654170
|
}
|
|
654171
|
-
var queryStrPos =
|
|
654171
|
+
var queryStrPos = path45.indexOf("?");
|
|
654172
654172
|
if (queryStrPos === -1) {
|
|
654173
|
-
_this.urlComponents.path =
|
|
654173
|
+
_this.urlComponents.path = path45;
|
|
654174
654174
|
} else {
|
|
654175
|
-
_this.urlComponents.path =
|
|
654176
|
-
var queryParams =
|
|
654175
|
+
_this.urlComponents.path = path45.substr(0, queryStrPos);
|
|
654176
|
+
var queryParams = path45.substring(queryStrPos + 1, path45.length).split("&");
|
|
654177
654177
|
for (var _i = 0, queryParams_1 = queryParams; _i < queryParams_1.length; _i++) {
|
|
654178
654178
|
var queryParam = queryParams_1[_i];
|
|
654179
654179
|
_this.parseQueryParameter(queryParam);
|
|
@@ -654192,7 +654192,7 @@ var require_GraphRequest = __commonJS({
|
|
|
654192
654192
|
this._headers = {};
|
|
654193
654193
|
this._options = {};
|
|
654194
654194
|
this._middlewareOptions = [];
|
|
654195
|
-
this.parsePath(
|
|
654195
|
+
this.parsePath(path44);
|
|
654196
654196
|
}
|
|
654197
654197
|
GraphRequest2.prototype.addCsvQueryParameter = function(propertyName, propertyValue, additionalProperties) {
|
|
654198
654198
|
this.urlComponents.oDataQueryParams[propertyName] = this.urlComponents.oDataQueryParams[propertyName] ? this.urlComponents.oDataQueryParams[propertyName] + "," : "";
|
|
@@ -654833,8 +654833,8 @@ var require_Client = __commonJS({
|
|
|
654833
654833
|
Client4.initWithMiddleware = function(clientOptions) {
|
|
654834
654834
|
return new Client4(clientOptions);
|
|
654835
654835
|
};
|
|
654836
|
-
Client4.prototype.api = function(
|
|
654837
|
-
return new GraphRequest_1.GraphRequest(this.httpClient, this.config,
|
|
654836
|
+
Client4.prototype.api = function(path44) {
|
|
654837
|
+
return new GraphRequest_1.GraphRequest(this.httpClient, this.config, path44);
|
|
654838
654838
|
};
|
|
654839
654839
|
return Client4;
|
|
654840
654840
|
})()
|
|
@@ -655216,14 +655216,14 @@ var require_yn = __commonJS({
|
|
|
655216
655216
|
var require_create_require = __commonJS({
|
|
655217
655217
|
"node_modules/create-require/create-require.js"(exports2, module2) {
|
|
655218
655218
|
var nativeModule = require("module");
|
|
655219
|
-
var
|
|
655220
|
-
var
|
|
655219
|
+
var path44 = require("path");
|
|
655220
|
+
var fs40 = require("fs");
|
|
655221
655221
|
function createRequire(filename) {
|
|
655222
655222
|
if (!filename) {
|
|
655223
655223
|
filename = process.cwd();
|
|
655224
655224
|
}
|
|
655225
655225
|
if (isDir(filename)) {
|
|
655226
|
-
filename =
|
|
655226
|
+
filename = path44.join(filename, "index.js");
|
|
655227
655227
|
}
|
|
655228
655228
|
if (nativeModule.createRequire) {
|
|
655229
655229
|
return nativeModule.createRequire(filename);
|
|
@@ -655236,13 +655236,13 @@ var require_create_require = __commonJS({
|
|
|
655236
655236
|
function _createRequire(filename) {
|
|
655237
655237
|
const mod = new nativeModule.Module(filename, null);
|
|
655238
655238
|
mod.filename = filename;
|
|
655239
|
-
mod.paths = nativeModule.Module._nodeModulePaths(
|
|
655239
|
+
mod.paths = nativeModule.Module._nodeModulePaths(path44.dirname(filename));
|
|
655240
655240
|
mod._compile("module.exports = require;", filename);
|
|
655241
655241
|
return mod.exports;
|
|
655242
655242
|
}
|
|
655243
|
-
function isDir(
|
|
655243
|
+
function isDir(path45) {
|
|
655244
655244
|
try {
|
|
655245
|
-
const stat3 =
|
|
655245
|
+
const stat3 = fs40.lstatSync(path45);
|
|
655246
655246
|
return stat3.isDirectory();
|
|
655247
655247
|
} catch (e3) {
|
|
655248
655248
|
return false;
|
|
@@ -655258,17 +655258,17 @@ var require_v8_compile_cache = __commonJS({
|
|
|
655258
655258
|
"use strict";
|
|
655259
655259
|
var Module = require("module");
|
|
655260
655260
|
var crypto10 = require("crypto");
|
|
655261
|
-
var
|
|
655262
|
-
var
|
|
655261
|
+
var fs40 = require("fs");
|
|
655262
|
+
var path44 = require("path");
|
|
655263
655263
|
var vm = require("vm");
|
|
655264
655264
|
var os10 = require("os");
|
|
655265
655265
|
var hasOwnProperty2 = Object.prototype.hasOwnProperty;
|
|
655266
655266
|
var FileSystemBlobStore = class {
|
|
655267
655267
|
constructor(directory, prefix2) {
|
|
655268
655268
|
const name = prefix2 ? slashEscape(prefix2 + ".") : "";
|
|
655269
|
-
this._blobFilename =
|
|
655270
|
-
this._mapFilename =
|
|
655271
|
-
this._lockFilename =
|
|
655269
|
+
this._blobFilename = path44.join(directory, name + "BLOB");
|
|
655270
|
+
this._mapFilename = path44.join(directory, name + "MAP");
|
|
655271
|
+
this._lockFilename = path44.join(directory, name + "LOCK");
|
|
655272
655272
|
this._directory = directory;
|
|
655273
655273
|
this._load();
|
|
655274
655274
|
}
|
|
@@ -655320,22 +655320,22 @@ var require_v8_compile_cache = __commonJS({
|
|
|
655320
655320
|
const mapToStore = JSON.stringify(dump[1]);
|
|
655321
655321
|
try {
|
|
655322
655322
|
mkdirpSync(this._directory);
|
|
655323
|
-
|
|
655323
|
+
fs40.writeFileSync(this._lockFilename, "LOCK", { flag: "wx" });
|
|
655324
655324
|
} catch (error2) {
|
|
655325
655325
|
return false;
|
|
655326
655326
|
}
|
|
655327
655327
|
try {
|
|
655328
|
-
|
|
655329
|
-
|
|
655328
|
+
fs40.writeFileSync(this._blobFilename, blobToStore);
|
|
655329
|
+
fs40.writeFileSync(this._mapFilename, mapToStore);
|
|
655330
655330
|
} finally {
|
|
655331
|
-
|
|
655331
|
+
fs40.unlinkSync(this._lockFilename);
|
|
655332
655332
|
}
|
|
655333
655333
|
return true;
|
|
655334
655334
|
}
|
|
655335
655335
|
_load() {
|
|
655336
655336
|
try {
|
|
655337
|
-
this._storedBlob =
|
|
655338
|
-
this._storedMap = JSON.parse(
|
|
655337
|
+
this._storedBlob = fs40.readFileSync(this._blobFilename);
|
|
655338
|
+
this._storedMap = JSON.parse(fs40.readFileSync(this._mapFilename));
|
|
655339
655339
|
} catch (e3) {
|
|
655340
655340
|
this._storedBlob = Buffer.alloc(0);
|
|
655341
655341
|
this._storedMap = {};
|
|
@@ -655399,7 +655399,7 @@ var require_v8_compile_cache = __commonJS({
|
|
|
655399
655399
|
require2.main = process.mainModule;
|
|
655400
655400
|
require2.extensions = Module._extensions;
|
|
655401
655401
|
require2.cache = Module._cache;
|
|
655402
|
-
const dirname =
|
|
655402
|
+
const dirname = path44.dirname(filename);
|
|
655403
655403
|
const compiledWrapper = self2._moduleCompile(filename, content);
|
|
655404
655404
|
const args = [mod.exports, require2, mod, filename, dirname, process, global, Buffer];
|
|
655405
655405
|
return compiledWrapper.apply(mod.exports, args);
|
|
@@ -655456,18 +655456,18 @@ var require_v8_compile_cache = __commonJS({
|
|
|
655456
655456
|
}
|
|
655457
655457
|
};
|
|
655458
655458
|
function mkdirpSync(p_) {
|
|
655459
|
-
_mkdirpSync(
|
|
655459
|
+
_mkdirpSync(path44.resolve(p_), 511);
|
|
655460
655460
|
}
|
|
655461
655461
|
function _mkdirpSync(p3, mode) {
|
|
655462
655462
|
try {
|
|
655463
|
-
|
|
655463
|
+
fs40.mkdirSync(p3, mode);
|
|
655464
655464
|
} catch (err0) {
|
|
655465
655465
|
if (err0.code === "ENOENT") {
|
|
655466
|
-
_mkdirpSync(
|
|
655466
|
+
_mkdirpSync(path44.dirname(p3));
|
|
655467
655467
|
_mkdirpSync(p3);
|
|
655468
655468
|
} else {
|
|
655469
655469
|
try {
|
|
655470
|
-
const stat3 =
|
|
655470
|
+
const stat3 = fs40.statSync(p3);
|
|
655471
655471
|
if (!stat3.isDirectory()) {
|
|
655472
655472
|
throw err0;
|
|
655473
655473
|
}
|
|
@@ -655499,7 +655499,7 @@ var require_v8_compile_cache = __commonJS({
|
|
|
655499
655499
|
}
|
|
655500
655500
|
const dirname = typeof process.getuid === "function" ? "v8-compile-cache-" + process.getuid() : "v8-compile-cache";
|
|
655501
655501
|
const version3 = typeof process.versions.v8 === "string" ? process.versions.v8 : typeof process.versions.chakracore === "string" ? "chakracore-" + process.versions.chakracore : "node-" + process.version;
|
|
655502
|
-
const cacheDir =
|
|
655502
|
+
const cacheDir = path44.join(os10.tmpdir(), dirname, version3);
|
|
655503
655503
|
return cacheDir;
|
|
655504
655504
|
}
|
|
655505
655505
|
function getMainName() {
|
|
@@ -655707,11 +655707,11 @@ var require_ts_internals = __commonJS({
|
|
|
655707
655707
|
}
|
|
655708
655708
|
return { getExtendsConfigPath };
|
|
655709
655709
|
}
|
|
655710
|
-
function isRootedDiskPath(
|
|
655711
|
-
return (0, path_1.isAbsolute)(
|
|
655710
|
+
function isRootedDiskPath(path44) {
|
|
655711
|
+
return (0, path_1.isAbsolute)(path44);
|
|
655712
655712
|
}
|
|
655713
|
-
function combinePaths(
|
|
655714
|
-
return (0, util_1.normalizeSlashes)((0, path_1.resolve)(
|
|
655713
|
+
function combinePaths(path44, ...paths) {
|
|
655714
|
+
return (0, util_1.normalizeSlashes)((0, path_1.resolve)(path44, ...paths.filter((path45) => path45)));
|
|
655715
655715
|
}
|
|
655716
655716
|
function getNormalizedAbsolutePath(fileName, currentDirectory) {
|
|
655717
655717
|
return (0, util_1.normalizeSlashes)(currentDirectory != null ? (0, path_1.resolve)(currentDirectory, fileName) : (0, path_1.resolve)(fileName));
|
|
@@ -655761,12 +655761,12 @@ var require_ts_internals = __commonJS({
|
|
|
655761
655761
|
doubleAsteriskRegexFragment: "(/.+?)?",
|
|
655762
655762
|
replaceWildcardCharacter: (match2) => replaceWildcardCharacter(match2, excludeMatcher.singleAsteriskRegexFragment)
|
|
655763
655763
|
};
|
|
655764
|
-
function getNormalizedPathComponents(
|
|
655765
|
-
return reducePathComponents(getPathComponents(
|
|
655764
|
+
function getNormalizedPathComponents(path44, currentDirectory) {
|
|
655765
|
+
return reducePathComponents(getPathComponents(path44, currentDirectory));
|
|
655766
655766
|
}
|
|
655767
|
-
function getPathComponents(
|
|
655768
|
-
|
|
655769
|
-
return pathComponents(
|
|
655767
|
+
function getPathComponents(path44, currentDirectory = "") {
|
|
655768
|
+
path44 = combinePaths(currentDirectory, path44);
|
|
655769
|
+
return pathComponents(path44, getRootLength(path44));
|
|
655770
655770
|
}
|
|
655771
655771
|
function reducePathComponents(components) {
|
|
655772
655772
|
if (!some(components))
|
|
@@ -655791,64 +655791,64 @@ var require_ts_internals = __commonJS({
|
|
|
655791
655791
|
}
|
|
655792
655792
|
return reduced;
|
|
655793
655793
|
}
|
|
655794
|
-
function getRootLength(
|
|
655795
|
-
const rootLength = getEncodedRootLength(
|
|
655794
|
+
function getRootLength(path44) {
|
|
655795
|
+
const rootLength = getEncodedRootLength(path44);
|
|
655796
655796
|
return rootLength < 0 ? ~rootLength : rootLength;
|
|
655797
655797
|
}
|
|
655798
|
-
function getEncodedRootLength(
|
|
655799
|
-
if (!
|
|
655798
|
+
function getEncodedRootLength(path44) {
|
|
655799
|
+
if (!path44)
|
|
655800
655800
|
return 0;
|
|
655801
|
-
const ch0 =
|
|
655801
|
+
const ch0 = path44.charCodeAt(0);
|
|
655802
655802
|
if (ch0 === 47 || ch0 === 92) {
|
|
655803
|
-
if (
|
|
655803
|
+
if (path44.charCodeAt(1) !== ch0)
|
|
655804
655804
|
return 1;
|
|
655805
|
-
const p1 =
|
|
655805
|
+
const p1 = path44.indexOf(ch0 === 47 ? directorySeparator : altDirectorySeparator, 2);
|
|
655806
655806
|
if (p1 < 0)
|
|
655807
|
-
return
|
|
655807
|
+
return path44.length;
|
|
655808
655808
|
return p1 + 1;
|
|
655809
655809
|
}
|
|
655810
|
-
if (isVolumeCharacter(ch0) &&
|
|
655811
|
-
const ch2 =
|
|
655810
|
+
if (isVolumeCharacter(ch0) && path44.charCodeAt(1) === 58) {
|
|
655811
|
+
const ch2 = path44.charCodeAt(2);
|
|
655812
655812
|
if (ch2 === 47 || ch2 === 92)
|
|
655813
655813
|
return 3;
|
|
655814
|
-
if (
|
|
655814
|
+
if (path44.length === 2)
|
|
655815
655815
|
return 2;
|
|
655816
655816
|
}
|
|
655817
|
-
const schemeEnd =
|
|
655817
|
+
const schemeEnd = path44.indexOf(urlSchemeSeparator);
|
|
655818
655818
|
if (schemeEnd !== -1) {
|
|
655819
655819
|
const authorityStart = schemeEnd + urlSchemeSeparator.length;
|
|
655820
|
-
const authorityEnd =
|
|
655820
|
+
const authorityEnd = path44.indexOf(directorySeparator, authorityStart);
|
|
655821
655821
|
if (authorityEnd !== -1) {
|
|
655822
|
-
const scheme =
|
|
655823
|
-
const authority =
|
|
655824
|
-
if (scheme === "file" && (authority === "" || authority === "localhost") && isVolumeCharacter(
|
|
655825
|
-
const volumeSeparatorEnd = getFileUrlVolumeSeparatorEnd(
|
|
655822
|
+
const scheme = path44.slice(0, schemeEnd);
|
|
655823
|
+
const authority = path44.slice(authorityStart, authorityEnd);
|
|
655824
|
+
if (scheme === "file" && (authority === "" || authority === "localhost") && isVolumeCharacter(path44.charCodeAt(authorityEnd + 1))) {
|
|
655825
|
+
const volumeSeparatorEnd = getFileUrlVolumeSeparatorEnd(path44, authorityEnd + 2);
|
|
655826
655826
|
if (volumeSeparatorEnd !== -1) {
|
|
655827
|
-
if (
|
|
655827
|
+
if (path44.charCodeAt(volumeSeparatorEnd) === 47) {
|
|
655828
655828
|
return ~(volumeSeparatorEnd + 1);
|
|
655829
655829
|
}
|
|
655830
|
-
if (volumeSeparatorEnd ===
|
|
655830
|
+
if (volumeSeparatorEnd === path44.length) {
|
|
655831
655831
|
return ~volumeSeparatorEnd;
|
|
655832
655832
|
}
|
|
655833
655833
|
}
|
|
655834
655834
|
}
|
|
655835
655835
|
return ~(authorityEnd + 1);
|
|
655836
655836
|
}
|
|
655837
|
-
return ~
|
|
655837
|
+
return ~path44.length;
|
|
655838
655838
|
}
|
|
655839
655839
|
return 0;
|
|
655840
655840
|
}
|
|
655841
|
-
function hasTrailingDirectorySeparator(
|
|
655842
|
-
return
|
|
655841
|
+
function hasTrailingDirectorySeparator(path44) {
|
|
655842
|
+
return path44.length > 0 && isAnyDirectorySeparator(path44.charCodeAt(path44.length - 1));
|
|
655843
655843
|
}
|
|
655844
655844
|
function isAnyDirectorySeparator(charCode) {
|
|
655845
655845
|
return charCode === 47 || charCode === 92;
|
|
655846
655846
|
}
|
|
655847
|
-
function removeTrailingDirectorySeparator(
|
|
655848
|
-
if (hasTrailingDirectorySeparator(
|
|
655849
|
-
return
|
|
655847
|
+
function removeTrailingDirectorySeparator(path44) {
|
|
655848
|
+
if (hasTrailingDirectorySeparator(path44)) {
|
|
655849
|
+
return path44.substr(0, path44.length - 1);
|
|
655850
655850
|
}
|
|
655851
|
-
return
|
|
655851
|
+
return path44;
|
|
655852
655852
|
}
|
|
655853
655853
|
var directorySeparator = "/";
|
|
655854
655854
|
var altDirectorySeparator = "\\";
|
|
@@ -655881,9 +655881,9 @@ var require_ts_internals = __commonJS({
|
|
|
655881
655881
|
}
|
|
655882
655882
|
return false;
|
|
655883
655883
|
}
|
|
655884
|
-
function pathComponents(
|
|
655885
|
-
const root =
|
|
655886
|
-
const rest =
|
|
655884
|
+
function pathComponents(path44, rootLength) {
|
|
655885
|
+
const root = path44.substring(0, rootLength);
|
|
655886
|
+
const rest = path44.substring(rootLength).split(directorySeparator);
|
|
655887
655887
|
if (rest.length && !lastOrUndefined(rest))
|
|
655888
655888
|
rest.pop();
|
|
655889
655889
|
return [root, ...rest];
|
|
@@ -656157,7 +656157,7 @@ var require_configuration = __commonJS({
|
|
|
656157
656157
|
const options = filterRecognizedTsConfigTsNodeOptions(config3["ts-node"]).recognized;
|
|
656158
656158
|
if (options.require) {
|
|
656159
656159
|
const tsconfigRelativeResolver = (0, util_1.createProjectLocalResolveHelper)((0, path_1.dirname)(configPath));
|
|
656160
|
-
options.require = options.require.map((
|
|
656160
|
+
options.require = options.require.map((path44) => tsconfigRelativeResolver(path44, false));
|
|
656161
656161
|
}
|
|
656162
656162
|
if (options.scopeDir) {
|
|
656163
656163
|
options.scopeDir = (0, path_1.resolve)(basePath2, options.scopeDir);
|
|
@@ -656309,14 +656309,14 @@ var require_module_type_classifier = __commonJS({
|
|
|
656309
656309
|
}
|
|
656310
656310
|
};
|
|
656311
656311
|
const auto = classifications.package;
|
|
656312
|
-
function classifyModuleNonCached(
|
|
656313
|
-
const matched = matchPatterns(patternTypePairs, (_2) => _2.pattern,
|
|
656312
|
+
function classifyModuleNonCached(path44) {
|
|
656313
|
+
const matched = matchPatterns(patternTypePairs, (_2) => _2.pattern, path44);
|
|
656314
656314
|
if (matched)
|
|
656315
656315
|
return classifications[matched.type];
|
|
656316
656316
|
return auto;
|
|
656317
656317
|
}
|
|
656318
656318
|
const classifyModule = (0, util_1.cachedLookup)(classifyModuleNonCached);
|
|
656319
|
-
function classifyModuleAuto(
|
|
656319
|
+
function classifyModuleAuto(path44) {
|
|
656320
656320
|
return auto;
|
|
656321
656321
|
}
|
|
656322
656322
|
return {
|
|
@@ -656536,12 +656536,12 @@ var require_node_nativemodule = __commonJS({
|
|
|
656536
656536
|
// node_modules/ts-node/dist-raw/node-internalBinding-fs.js
|
|
656537
656537
|
var require_node_internalBinding_fs = __commonJS({
|
|
656538
656538
|
"node_modules/ts-node/dist-raw/node-internalBinding-fs.js"(exports2, module2) {
|
|
656539
|
-
var
|
|
656539
|
+
var fs40 = require("fs");
|
|
656540
656540
|
var { versionGteLt } = require_util4();
|
|
656541
|
-
function internalModuleReadJSON(
|
|
656541
|
+
function internalModuleReadJSON(path44) {
|
|
656542
656542
|
let string;
|
|
656543
656543
|
try {
|
|
656544
|
-
string =
|
|
656544
|
+
string = fs40.readFileSync(path44, "utf8");
|
|
656545
656545
|
} catch (e3) {
|
|
656546
656546
|
if (e3.code === "ENOENT") return [];
|
|
656547
656547
|
throw e3;
|
|
@@ -656549,15 +656549,15 @@ var require_node_internalBinding_fs = __commonJS({
|
|
|
656549
656549
|
const containsKeys = true;
|
|
656550
656550
|
return [string, containsKeys];
|
|
656551
656551
|
}
|
|
656552
|
-
function internalModuleStat(
|
|
656553
|
-
const stat3 =
|
|
656552
|
+
function internalModuleStat(path44) {
|
|
656553
|
+
const stat3 = fs40.statSync(path44, { throwIfNoEntry: false });
|
|
656554
656554
|
if (!stat3) return -1;
|
|
656555
656555
|
if (stat3.isFile()) return 0;
|
|
656556
656556
|
if (stat3.isDirectory()) return 1;
|
|
656557
656557
|
}
|
|
656558
|
-
function internalModuleStatInefficient(
|
|
656558
|
+
function internalModuleStatInefficient(path44) {
|
|
656559
656559
|
try {
|
|
656560
|
-
const stat3 =
|
|
656560
|
+
const stat3 = fs40.statSync(path44);
|
|
656561
656561
|
if (stat3.isFile()) return 0;
|
|
656562
656562
|
if (stat3.isDirectory()) return 1;
|
|
656563
656563
|
} catch (e3) {
|
|
@@ -656865,7 +656865,7 @@ var require_node_internal_modules_cjs_helpers = __commonJS({
|
|
|
656865
656865
|
var require_node_internal_errors = __commonJS({
|
|
656866
656866
|
"node_modules/ts-node/dist-raw/node-internal-errors.js"(exports2) {
|
|
656867
656867
|
"use strict";
|
|
656868
|
-
var
|
|
656868
|
+
var path44 = require("path");
|
|
656869
656869
|
exports2.codes = {
|
|
656870
656870
|
ERR_INPUT_TYPE_NOT_ALLOWED: createErrorCtor(joinArgs("ERR_INPUT_TYPE_NOT_ALLOWED")),
|
|
656871
656871
|
ERR_INVALID_ARG_VALUE: createErrorCtor(joinArgs("ERR_INVALID_ARG_VALUE")),
|
|
@@ -656873,8 +656873,8 @@ var require_node_internal_errors = __commonJS({
|
|
|
656873
656873
|
ERR_INVALID_PACKAGE_CONFIG: createErrorCtor(joinArgs("ERR_INVALID_PACKAGE_CONFIG")),
|
|
656874
656874
|
ERR_INVALID_PACKAGE_TARGET: createErrorCtor(joinArgs("ERR_INVALID_PACKAGE_TARGET")),
|
|
656875
656875
|
ERR_MANIFEST_DEPENDENCY_MISSING: createErrorCtor(joinArgs("ERR_MANIFEST_DEPENDENCY_MISSING")),
|
|
656876
|
-
ERR_MODULE_NOT_FOUND: createErrorCtor((
|
|
656877
|
-
return `Cannot find ${type} '${
|
|
656876
|
+
ERR_MODULE_NOT_FOUND: createErrorCtor((path45, base, type = "package") => {
|
|
656877
|
+
return `Cannot find ${type} '${path45}' imported from ${base}`;
|
|
656878
656878
|
}),
|
|
656879
656879
|
ERR_PACKAGE_IMPORT_NOT_DEFINED: createErrorCtor(joinArgs("ERR_PACKAGE_IMPORT_NOT_DEFINED")),
|
|
656880
656880
|
ERR_PACKAGE_PATH_NOT_EXPORTED: createErrorCtor(joinArgs("ERR_PACKAGE_PATH_NOT_EXPORTED")),
|
|
@@ -656910,11 +656910,11 @@ var require_node_internal_errors = __commonJS({
|
|
|
656910
656910
|
return err;
|
|
656911
656911
|
}
|
|
656912
656912
|
function getErrRequireEsmMessage(filename, parentPath2 = null, packageJsonPath = null) {
|
|
656913
|
-
const ext2 =
|
|
656913
|
+
const ext2 = path44.extname(filename);
|
|
656914
656914
|
let msg = `Must use import to load ES Module: ${filename}`;
|
|
656915
656915
|
if (parentPath2 && packageJsonPath) {
|
|
656916
|
-
const
|
|
656917
|
-
const basename3 =
|
|
656916
|
+
const path45 = require("path");
|
|
656917
|
+
const basename3 = path45.basename(filename) === path45.basename(parentPath2) ? filename : path45.basename(filename);
|
|
656918
656918
|
msg += `
|
|
656919
656919
|
require() of ES modules is not supported.
|
|
656920
656920
|
require() of ${filename} ${parentPath2 ? `from ${parentPath2} ` : ""}is an ES module file as it is a ${ext2} file whose nearest parent package.json contains "type": "module" which defines all ${ext2} files in that package scope as ES modules.
|
|
@@ -656961,9 +656961,9 @@ var require_node_internal_modules_cjs_loader = __commonJS({
|
|
|
656961
656961
|
} = require_node_primordials();
|
|
656962
656962
|
var { NativeModule } = require_node_nativemodule();
|
|
656963
656963
|
var { pathToFileURL, fileURLToPath: fileURLToPath3 } = require("url");
|
|
656964
|
-
var
|
|
656965
|
-
var
|
|
656966
|
-
var { sep: sep2 } =
|
|
656964
|
+
var fs40 = require("fs");
|
|
656965
|
+
var path44 = require("path");
|
|
656966
|
+
var { sep: sep2 } = path44;
|
|
656967
656967
|
var { internalModuleStat } = require_node_internalBinding_fs();
|
|
656968
656968
|
var packageJsonReader = require_node_internal_modules_package_json_reader();
|
|
656969
656969
|
var {
|
|
@@ -656986,7 +656986,7 @@ var require_node_internal_modules_cjs_loader = __commonJS({
|
|
|
656986
656986
|
var isWindows = process.platform === "win32";
|
|
656987
656987
|
var statCache = null;
|
|
656988
656988
|
function stat3(filename) {
|
|
656989
|
-
filename =
|
|
656989
|
+
filename = path44.toNamespacedPath(filename);
|
|
656990
656990
|
if (statCache !== null) {
|
|
656991
656991
|
const result2 = statCache.get(filename);
|
|
656992
656992
|
if (result2 !== void 0) return result2;
|
|
@@ -657000,7 +657000,7 @@ var require_node_internal_modules_cjs_loader = __commonJS({
|
|
|
657000
657000
|
var moduleParentCache = new SafeWeakMap();
|
|
657001
657001
|
var packageJsonCache = new SafeMap();
|
|
657002
657002
|
function readPackage(requestPath) {
|
|
657003
|
-
const jsonPath =
|
|
657003
|
+
const jsonPath = path44.resolve(requestPath, "package.json");
|
|
657004
657004
|
const existing = packageJsonCache.get(jsonPath);
|
|
657005
657005
|
if (existing !== void 0) return existing;
|
|
657006
657006
|
const result = packageJsonReader.read(jsonPath);
|
|
@@ -657054,22 +657054,22 @@ var require_node_internal_modules_cjs_loader = __commonJS({
|
|
|
657054
657054
|
const tmp = readPackage(requestPath);
|
|
657055
657055
|
const pkg = tmp != null ? tmp.main : void 0;
|
|
657056
657056
|
if (!pkg) {
|
|
657057
|
-
return tryExtensions(
|
|
657057
|
+
return tryExtensions(path44.resolve(requestPath, "index"), exts, isMain);
|
|
657058
657058
|
}
|
|
657059
|
-
const filename =
|
|
657060
|
-
let actual = tryReplacementExtensions(filename, isMain) || tryFile(filename, isMain) || tryExtensions(filename, exts, isMain) || tryExtensions(
|
|
657059
|
+
const filename = path44.resolve(requestPath, pkg);
|
|
657060
|
+
let actual = tryReplacementExtensions(filename, isMain) || tryFile(filename, isMain) || tryExtensions(filename, exts, isMain) || tryExtensions(path44.resolve(filename, "index"), exts, isMain);
|
|
657061
657061
|
if (actual === false) {
|
|
657062
|
-
actual = tryExtensions(
|
|
657062
|
+
actual = tryExtensions(path44.resolve(requestPath, "index"), exts, isMain);
|
|
657063
657063
|
if (!actual) {
|
|
657064
657064
|
const err = new Error(
|
|
657065
657065
|
`Cannot find module '${filename}'. Please verify that the package.json has a valid "main" entry`
|
|
657066
657066
|
);
|
|
657067
657067
|
err.code = "MODULE_NOT_FOUND";
|
|
657068
|
-
err.path =
|
|
657068
|
+
err.path = path44.resolve(requestPath, "package.json");
|
|
657069
657069
|
err.requestPath = originalPath;
|
|
657070
657070
|
throw err;
|
|
657071
657071
|
} else {
|
|
657072
|
-
const jsonPath =
|
|
657072
|
+
const jsonPath = path44.resolve(requestPath, "package.json");
|
|
657073
657073
|
process.emitWarning(
|
|
657074
657074
|
`Invalid 'main' field in '${jsonPath}' of '${pkg}'. Please either fix that or report it to the module author`,
|
|
657075
657075
|
"DeprecationWarning",
|
|
@@ -657084,12 +657084,12 @@ var require_node_internal_modules_cjs_loader = __commonJS({
|
|
|
657084
657084
|
const rc = stat3(requestPath);
|
|
657085
657085
|
if (rc !== 0) return;
|
|
657086
657086
|
if (preserveSymlinks && !isMain) {
|
|
657087
|
-
return
|
|
657087
|
+
return path44.resolve(requestPath);
|
|
657088
657088
|
}
|
|
657089
657089
|
return toRealPath(requestPath);
|
|
657090
657090
|
}
|
|
657091
657091
|
function toRealPath(requestPath) {
|
|
657092
|
-
return
|
|
657092
|
+
return fs40.realpathSync(requestPath, {
|
|
657093
657093
|
// [internalFS.realpathCacheKey]: realpathCache
|
|
657094
657094
|
});
|
|
657095
657095
|
}
|
|
@@ -657143,7 +657143,7 @@ var require_node_internal_modules_cjs_loader = __commonJS({
|
|
|
657143
657143
|
return parent.filename;
|
|
657144
657144
|
} else if (parent.id === "<repl>" || parent.id === "internal/preload") {
|
|
657145
657145
|
try {
|
|
657146
|
-
return process.cwd() +
|
|
657146
|
+
return process.cwd() + path44.sep;
|
|
657147
657147
|
} catch {
|
|
657148
657148
|
return false;
|
|
657149
657149
|
}
|
|
@@ -657181,7 +657181,7 @@ var require_node_internal_modules_cjs_loader = __commonJS({
|
|
|
657181
657181
|
const { 1: name, 2: expansion = "" } = StringPrototypeMatch(request, EXPORTS_PATTERN) || [];
|
|
657182
657182
|
if (!name)
|
|
657183
657183
|
return;
|
|
657184
|
-
const pkgPath =
|
|
657184
|
+
const pkgPath = path44.resolve(nmPath, name);
|
|
657185
657185
|
const pkg = readPackage(pkgPath);
|
|
657186
657186
|
if (pkg != null && pkg.exports != null) {
|
|
657187
657187
|
try {
|
|
@@ -657205,7 +657205,7 @@ var require_node_internal_modules_cjs_loader = __commonJS({
|
|
|
657205
657205
|
const Module_pathCache_set = hasModulePathCache ? (cacheKey, value2) => Module._pathCache[cacheKey] = value2 : (cacheKey) => Module_pathCache[cacheKey] = value;
|
|
657206
657206
|
const trailingSlashRegex = /(?:^|\/)\.?\.$/;
|
|
657207
657207
|
const Module_findPath = function _findPath(request, paths, isMain) {
|
|
657208
|
-
const absoluteRequest =
|
|
657208
|
+
const absoluteRequest = path44.isAbsolute(request);
|
|
657209
657209
|
if (absoluteRequest) {
|
|
657210
657210
|
paths = [""];
|
|
657211
657211
|
} else if (!paths || paths.length === 0) {
|
|
@@ -657228,19 +657228,19 @@ var require_node_internal_modules_cjs_loader = __commonJS({
|
|
|
657228
657228
|
if (exportsResolved)
|
|
657229
657229
|
return exportsResolved;
|
|
657230
657230
|
}
|
|
657231
|
-
const _basePath =
|
|
657231
|
+
const _basePath = path44.resolve(curPath, request);
|
|
657232
657232
|
let filename;
|
|
657233
657233
|
const [rc, basePath] = statReplacementExtensions(_basePath);
|
|
657234
657234
|
if (!trailingSlash) {
|
|
657235
657235
|
if (rc === 0) {
|
|
657236
657236
|
if (!isMain) {
|
|
657237
657237
|
if (preserveSymlinks) {
|
|
657238
|
-
filename =
|
|
657238
|
+
filename = path44.resolve(basePath);
|
|
657239
657239
|
} else {
|
|
657240
657240
|
filename = toRealPath(basePath);
|
|
657241
657241
|
}
|
|
657242
657242
|
} else if (preserveSymlinksMain) {
|
|
657243
|
-
filename =
|
|
657243
|
+
filename = path44.resolve(basePath);
|
|
657244
657244
|
} else {
|
|
657245
657245
|
filename = toRealPath(basePath);
|
|
657246
657246
|
}
|
|
@@ -657277,8 +657277,8 @@ var require_node_internal_modules_cjs_loader = __commonJS({
|
|
|
657277
657277
|
const fakeParent = new Module("", null);
|
|
657278
657278
|
paths = [];
|
|
657279
657279
|
for (let i3 = 0; i3 < options.paths.length; i3++) {
|
|
657280
|
-
const
|
|
657281
|
-
fakeParent.paths = Module._nodeModulePaths(
|
|
657280
|
+
const path45 = options.paths[i3];
|
|
657281
|
+
fakeParent.paths = Module._nodeModulePaths(path45);
|
|
657282
657282
|
const lookupPaths = Module._resolveLookupPaths(request, fakeParent);
|
|
657283
657283
|
for (let j3 = 0; j3 < lookupPaths.length; j3++) {
|
|
657284
657284
|
if (!ArrayPrototypeIncludes(paths, lookupPaths[j3]))
|
|
@@ -657351,15 +657351,15 @@ var require_node_internal_modules_cjs_loader = __commonJS({
|
|
|
657351
657351
|
return actual;
|
|
657352
657352
|
const err = createEsmNotFoundErr(
|
|
657353
657353
|
filename,
|
|
657354
|
-
|
|
657354
|
+
path44.resolve(pkgPath, "package.json")
|
|
657355
657355
|
);
|
|
657356
657356
|
throw err;
|
|
657357
657357
|
}
|
|
657358
|
-
function createEsmNotFoundErr(request,
|
|
657358
|
+
function createEsmNotFoundErr(request, path45) {
|
|
657359
657359
|
const err = new Error(`Cannot find module '${request}'`);
|
|
657360
657360
|
err.code = "MODULE_NOT_FOUND";
|
|
657361
|
-
if (
|
|
657362
|
-
err.path =
|
|
657361
|
+
if (path45)
|
|
657362
|
+
err.path = path45;
|
|
657363
657363
|
return err;
|
|
657364
657364
|
}
|
|
657365
657365
|
return {
|
|
@@ -657376,7 +657376,7 @@ var require_node_internal_modules_cjs_loader = __commonJS({
|
|
|
657376
657376
|
if ((ext2 === ".cts" || ext2 === ".cjs") && tsNodeClassification.moduleType === "auto") return;
|
|
657377
657377
|
if (ext2 === ".mts" || ext2 === ".mjs" || tsNodeClassification.moduleType === "esm" || pkg && pkg.data && pkg.data.type === "module") {
|
|
657378
657378
|
const parentPath2 = module3.parent && module3.parent.filename;
|
|
657379
|
-
const packageJsonPath = pkg ?
|
|
657379
|
+
const packageJsonPath = pkg ? path44.resolve(pkg.path, "package.json") : null;
|
|
657380
657380
|
throw createErrRequireEsm(filename, parentPath2, packageJsonPath);
|
|
657381
657381
|
}
|
|
657382
657382
|
}
|
|
@@ -664169,10 +664169,10 @@ var require_base = __commonJS({
|
|
|
664169
664169
|
}
|
|
664170
664170
|
return components;
|
|
664171
664171
|
}
|
|
664172
|
-
function clonePath(
|
|
664172
|
+
function clonePath(path44) {
|
|
664173
664173
|
return {
|
|
664174
|
-
newPos:
|
|
664175
|
-
components:
|
|
664174
|
+
newPos: path44.newPos,
|
|
664175
|
+
components: path44.components.slice(0)
|
|
664176
664176
|
};
|
|
664177
664177
|
}
|
|
664178
664178
|
}
|
|
@@ -665869,8 +665869,8 @@ ${module_1.builtinModules.filter((name) => !name.startsWith("_") && !name.includ
|
|
|
665869
665869
|
}
|
|
665870
665870
|
exports2.createRepl = createRepl;
|
|
665871
665871
|
var EvalState = class {
|
|
665872
|
-
constructor(
|
|
665873
|
-
this.path =
|
|
665872
|
+
constructor(path44) {
|
|
665873
|
+
this.path = path44;
|
|
665874
665874
|
this.input = "";
|
|
665875
665875
|
this.output = "";
|
|
665876
665876
|
this.version = 0;
|
|
@@ -665879,23 +665879,23 @@ ${module_1.builtinModules.filter((name) => !name.startsWith("_") && !name.includ
|
|
|
665879
665879
|
};
|
|
665880
665880
|
exports2.EvalState = EvalState;
|
|
665881
665881
|
function createEvalAwarePartialHost(state4, composeWith) {
|
|
665882
|
-
function readFile(
|
|
665883
|
-
if (
|
|
665882
|
+
function readFile(path44) {
|
|
665883
|
+
if (path44 === state4.path)
|
|
665884
665884
|
return state4.input;
|
|
665885
665885
|
if (composeWith === null || composeWith === void 0 ? void 0 : composeWith.readFile)
|
|
665886
|
-
return composeWith.readFile(
|
|
665886
|
+
return composeWith.readFile(path44);
|
|
665887
665887
|
try {
|
|
665888
|
-
return (0, fs_1.readFileSync)(
|
|
665888
|
+
return (0, fs_1.readFileSync)(path44, "utf8");
|
|
665889
665889
|
} catch (err) {
|
|
665890
665890
|
}
|
|
665891
665891
|
}
|
|
665892
|
-
function fileExists(
|
|
665893
|
-
if (
|
|
665892
|
+
function fileExists(path44) {
|
|
665893
|
+
if (path44 === state4.path)
|
|
665894
665894
|
return true;
|
|
665895
665895
|
if (composeWith === null || composeWith === void 0 ? void 0 : composeWith.fileExists)
|
|
665896
|
-
return composeWith.fileExists(
|
|
665896
|
+
return composeWith.fileExists(path44);
|
|
665897
665897
|
try {
|
|
665898
|
-
const stats = (0, fs_1.statSync)(
|
|
665898
|
+
const stats = (0, fs_1.statSync)(path44);
|
|
665899
665899
|
return stats.isFile() || stats.isFIFO();
|
|
665900
665900
|
} catch (err) {
|
|
665901
665901
|
return false;
|
|
@@ -666750,16 +666750,16 @@ var require_resolve_uri_umd = __commonJS({
|
|
|
666750
666750
|
}
|
|
666751
666751
|
function parseFileUrl(input) {
|
|
666752
666752
|
const match2 = fileRegex.exec(input);
|
|
666753
|
-
const
|
|
666754
|
-
return makeUrl("file:", "", match2[1] || "", "", isAbsolutePath(
|
|
666753
|
+
const path44 = match2[2];
|
|
666754
|
+
return makeUrl("file:", "", match2[1] || "", "", isAbsolutePath(path44) ? path44 : "/" + path44, match2[3] || "", match2[4] || "");
|
|
666755
666755
|
}
|
|
666756
|
-
function makeUrl(scheme, user, host, port,
|
|
666756
|
+
function makeUrl(scheme, user, host, port, path44, query, hash) {
|
|
666757
666757
|
return {
|
|
666758
666758
|
scheme,
|
|
666759
666759
|
user,
|
|
666760
666760
|
host,
|
|
666761
666761
|
port,
|
|
666762
|
-
path:
|
|
666762
|
+
path: path44,
|
|
666763
666763
|
query,
|
|
666764
666764
|
hash,
|
|
666765
666765
|
type: 7
|
|
@@ -666789,11 +666789,11 @@ var require_resolve_uri_umd = __commonJS({
|
|
|
666789
666789
|
url3.type = input ? input.startsWith("?") ? 3 : input.startsWith("#") ? 2 : 4 : 1;
|
|
666790
666790
|
return url3;
|
|
666791
666791
|
}
|
|
666792
|
-
function stripPathFilename(
|
|
666793
|
-
if (
|
|
666794
|
-
return
|
|
666795
|
-
const index =
|
|
666796
|
-
return
|
|
666792
|
+
function stripPathFilename(path44) {
|
|
666793
|
+
if (path44.endsWith("/.."))
|
|
666794
|
+
return path44;
|
|
666795
|
+
const index = path44.lastIndexOf("/");
|
|
666796
|
+
return path44.slice(0, index + 1);
|
|
666797
666797
|
}
|
|
666798
666798
|
function mergePaths(url3, base) {
|
|
666799
666799
|
normalizePath(base, base.type);
|
|
@@ -666831,14 +666831,14 @@ var require_resolve_uri_umd = __commonJS({
|
|
|
666831
666831
|
pieces[pointer++] = piece;
|
|
666832
666832
|
positive++;
|
|
666833
666833
|
}
|
|
666834
|
-
let
|
|
666834
|
+
let path44 = "";
|
|
666835
666835
|
for (let i3 = 1; i3 < pointer; i3++) {
|
|
666836
|
-
|
|
666836
|
+
path44 += "/" + pieces[i3];
|
|
666837
666837
|
}
|
|
666838
|
-
if (!
|
|
666839
|
-
|
|
666838
|
+
if (!path44 || addTrailingSlash && !path44.endsWith("/..")) {
|
|
666839
|
+
path44 += "/";
|
|
666840
666840
|
}
|
|
666841
|
-
url3.path =
|
|
666841
|
+
url3.path = path44;
|
|
666842
666842
|
}
|
|
666843
666843
|
function resolve(input, base) {
|
|
666844
666844
|
if (!input && !base)
|
|
@@ -666879,13 +666879,13 @@ var require_resolve_uri_umd = __commonJS({
|
|
|
666879
666879
|
case 3:
|
|
666880
666880
|
return queryHash;
|
|
666881
666881
|
case 4: {
|
|
666882
|
-
const
|
|
666883
|
-
if (!
|
|
666882
|
+
const path44 = url3.path.slice(1);
|
|
666883
|
+
if (!path44)
|
|
666884
666884
|
return queryHash || ".";
|
|
666885
|
-
if (isRelative(base || input) && !isRelative(
|
|
666886
|
-
return "./" +
|
|
666885
|
+
if (isRelative(base || input) && !isRelative(path44)) {
|
|
666886
|
+
return "./" + path44 + queryHash;
|
|
666887
666887
|
}
|
|
666888
|
-
return
|
|
666888
|
+
return path44 + queryHash;
|
|
666889
666889
|
}
|
|
666890
666890
|
case 5:
|
|
666891
666891
|
return url3.path + queryHash;
|
|
@@ -666914,11 +666914,11 @@ var require_trace_mapping_umd = __commonJS({
|
|
|
666914
666914
|
base += "/";
|
|
666915
666915
|
return resolveUri__default["default"](input, base);
|
|
666916
666916
|
}
|
|
666917
|
-
function stripFilename(
|
|
666918
|
-
if (!
|
|
666917
|
+
function stripFilename(path44) {
|
|
666918
|
+
if (!path44)
|
|
666919
666919
|
return "";
|
|
666920
|
-
const index =
|
|
666921
|
-
return
|
|
666920
|
+
const index = path44.lastIndexOf("/");
|
|
666921
|
+
return path44.slice(0, index + 1);
|
|
666922
666922
|
}
|
|
666923
666923
|
const COLUMN = 0;
|
|
666924
666924
|
const SOURCES_INDEX = 1;
|
|
@@ -667323,14 +667323,14 @@ var require_trace_mapping_umd = __commonJS({
|
|
|
667323
667323
|
var require_source_map_support = __commonJS({
|
|
667324
667324
|
"node_modules/@cspotcode/source-map-support/source-map-support.js"(exports2, module2) {
|
|
667325
667325
|
var { TraceMap, originalPositionFor, AnyMap } = require_trace_mapping_umd();
|
|
667326
|
-
var
|
|
667326
|
+
var path44 = require("path");
|
|
667327
667327
|
var { fileURLToPath: fileURLToPath3, pathToFileURL } = require("url");
|
|
667328
667328
|
var util5 = require("util");
|
|
667329
|
-
var
|
|
667329
|
+
var fs40;
|
|
667330
667330
|
try {
|
|
667331
|
-
|
|
667332
|
-
if (!
|
|
667333
|
-
|
|
667331
|
+
fs40 = require("fs");
|
|
667332
|
+
if (!fs40.existsSync || !fs40.readFileSync) {
|
|
667333
|
+
fs40 = null;
|
|
667334
667334
|
}
|
|
667335
667335
|
} catch (err) {
|
|
667336
667336
|
}
|
|
@@ -667468,27 +667468,27 @@ var require_source_map_support = __commonJS({
|
|
|
667468
667468
|
};
|
|
667469
667469
|
}
|
|
667470
667470
|
var retrieveFile = handlerExec(sharedData.retrieveFileHandlers, sharedData.internalRetrieveFileHandlers);
|
|
667471
|
-
sharedData.internalRetrieveFileHandlers.push(function(
|
|
667472
|
-
|
|
667473
|
-
if (/^file:/.test(
|
|
667474
|
-
|
|
667471
|
+
sharedData.internalRetrieveFileHandlers.push(function(path45) {
|
|
667472
|
+
path45 = path45.trim();
|
|
667473
|
+
if (/^file:/.test(path45)) {
|
|
667474
|
+
path45 = path45.replace(/file:\/\/\/(\w:)?/, function(protocol, drive) {
|
|
667475
667475
|
return drive ? "" : (
|
|
667476
667476
|
// file:///C:/dir/file -> C:/dir/file
|
|
667477
667477
|
"/"
|
|
667478
667478
|
);
|
|
667479
667479
|
});
|
|
667480
667480
|
}
|
|
667481
|
-
const key = getCacheKey(
|
|
667481
|
+
const key = getCacheKey(path45);
|
|
667482
667482
|
if (hasFileContentsCacheFromKey(key)) {
|
|
667483
667483
|
return getFileContentsCacheFromKey(key);
|
|
667484
667484
|
}
|
|
667485
667485
|
var contents = "";
|
|
667486
667486
|
try {
|
|
667487
|
-
if (!
|
|
667487
|
+
if (!fs40) {
|
|
667488
667488
|
var xhr = new XMLHttpRequest();
|
|
667489
667489
|
xhr.open(
|
|
667490
667490
|
"GET",
|
|
667491
|
-
|
|
667491
|
+
path45,
|
|
667492
667492
|
/** async */
|
|
667493
667493
|
false
|
|
667494
667494
|
);
|
|
@@ -667496,12 +667496,12 @@ var require_source_map_support = __commonJS({
|
|
|
667496
667496
|
if (xhr.readyState === 4 && xhr.status === 200) {
|
|
667497
667497
|
contents = xhr.responseText;
|
|
667498
667498
|
}
|
|
667499
|
-
} else if (
|
|
667500
|
-
contents =
|
|
667499
|
+
} else if (fs40.existsSync(path45)) {
|
|
667500
|
+
contents = fs40.readFileSync(path45, "utf8");
|
|
667501
667501
|
}
|
|
667502
667502
|
} catch (er) {
|
|
667503
667503
|
}
|
|
667504
|
-
return setFileContentsCache(
|
|
667504
|
+
return setFileContentsCache(path45, contents);
|
|
667505
667505
|
});
|
|
667506
667506
|
function supportRelativeURL(file, url3) {
|
|
667507
667507
|
if (!file) return url3;
|
|
@@ -667510,12 +667510,12 @@ var require_source_map_support = __commonJS({
|
|
|
667510
667510
|
if (isAbsoluteUrl2(url3) || isSchemeRelativeUrl(url3)) {
|
|
667511
667511
|
return new URL(url3, file).toString();
|
|
667512
667512
|
}
|
|
667513
|
-
if (
|
|
667513
|
+
if (path44.isAbsolute(url3)) {
|
|
667514
667514
|
return new URL(pathToFileURL(url3), file).toString();
|
|
667515
667515
|
}
|
|
667516
667516
|
return new URL(url3.replace(/\\/g, "/"), file).toString();
|
|
667517
667517
|
}
|
|
667518
|
-
if (
|
|
667518
|
+
if (path44.isAbsolute(file)) {
|
|
667519
667519
|
if (isFileUrl(url3)) {
|
|
667520
667520
|
return fileURLToPath3(url3);
|
|
667521
667521
|
}
|
|
@@ -667525,15 +667525,15 @@ var require_source_map_support = __commonJS({
|
|
|
667525
667525
|
if (isAbsoluteUrl2(url3)) {
|
|
667526
667526
|
return url3;
|
|
667527
667527
|
}
|
|
667528
|
-
if (
|
|
667529
|
-
return
|
|
667528
|
+
if (path44.isAbsolute(url3)) {
|
|
667529
|
+
return path44.normalize(url3);
|
|
667530
667530
|
}
|
|
667531
|
-
return
|
|
667531
|
+
return path44.join(file, "..", decodeURI(url3));
|
|
667532
667532
|
}
|
|
667533
667533
|
if (isAbsoluteUrl2(url3) || isSchemeRelativeUrl(url3)) {
|
|
667534
667534
|
return url3;
|
|
667535
667535
|
}
|
|
667536
|
-
return
|
|
667536
|
+
return path44.join(file, "..", url3);
|
|
667537
667537
|
} catch (e3) {
|
|
667538
667538
|
return url3;
|
|
667539
667539
|
}
|
|
@@ -667542,8 +667542,8 @@ var require_source_map_support = __commonJS({
|
|
|
667542
667542
|
try {
|
|
667543
667543
|
if (isAbsoluteUrl2(matchStyleOf) || isSchemeRelativeUrl(matchStyleOf)) {
|
|
667544
667544
|
if (isAbsoluteUrl2(pathOrUrl) || isSchemeRelativeUrl(pathOrUrl)) return pathOrUrl;
|
|
667545
|
-
if (
|
|
667546
|
-
} else if (
|
|
667545
|
+
if (path44.isAbsolute(pathOrUrl)) return pathToFileURL(pathOrUrl).toString();
|
|
667546
|
+
} else if (path44.isAbsolute(matchStyleOf)) {
|
|
667547
667547
|
if (isAbsoluteUrl2(pathOrUrl) || isSchemeRelativeUrl(pathOrUrl)) {
|
|
667548
667548
|
return fileURLToPath3(new URL(pathOrUrl, "file://"));
|
|
667549
667549
|
}
|
|
@@ -667792,7 +667792,7 @@ var require_source_map_support = __commonJS({
|
|
|
667792
667792
|
}
|
|
667793
667793
|
var kIsNodeError = void 0;
|
|
667794
667794
|
try {
|
|
667795
|
-
|
|
667795
|
+
path44.resolve(123);
|
|
667796
667796
|
} catch (e3) {
|
|
667797
667797
|
const symbols = Object.getOwnPropertySymbols(e3);
|
|
667798
667798
|
const symbol = symbols.find(function(s3) {
|
|
@@ -667838,9 +667838,9 @@ var require_source_map_support = __commonJS({
|
|
|
667838
667838
|
var column = +match2[3];
|
|
667839
667839
|
var contents = getFileContentsCache(source);
|
|
667840
667840
|
const sourceAsPath = tryFileURLToPath(source);
|
|
667841
|
-
if (!contents &&
|
|
667841
|
+
if (!contents && fs40 && fs40.existsSync(sourceAsPath)) {
|
|
667842
667842
|
try {
|
|
667843
|
-
contents =
|
|
667843
|
+
contents = fs40.readFileSync(sourceAsPath, "utf8");
|
|
667844
667844
|
} catch (er) {
|
|
667845
667845
|
contents = "";
|
|
667846
667846
|
}
|
|
@@ -668137,27 +668137,27 @@ Update this package.json to use a subpath pattern like "${match2}*".`,
|
|
|
668137
668137
|
const statSupportsThrowIfNoEntry = versionGteLt(process.versions.node, "15.3.0") || versionGteLt(process.versions.node, "14.17.0", "15.0.0");
|
|
668138
668138
|
const tryStatSync = statSupportsThrowIfNoEntry ? tryStatSyncWithoutErrors : tryStatSyncWithErrors;
|
|
668139
668139
|
const statsIfNotFound = new Stats();
|
|
668140
|
-
function tryStatSyncWithoutErrors(
|
|
668141
|
-
const stats = statSync(
|
|
668140
|
+
function tryStatSyncWithoutErrors(path44) {
|
|
668141
|
+
const stats = statSync(path44, { throwIfNoEntry: false });
|
|
668142
668142
|
if (stats != null) return stats;
|
|
668143
668143
|
return statsIfNotFound;
|
|
668144
668144
|
}
|
|
668145
|
-
function tryStatSyncWithErrors(
|
|
668145
|
+
function tryStatSyncWithErrors(path44) {
|
|
668146
668146
|
try {
|
|
668147
|
-
return statSync(
|
|
668147
|
+
return statSync(path44);
|
|
668148
668148
|
} catch {
|
|
668149
668149
|
return statsIfNotFound;
|
|
668150
668150
|
}
|
|
668151
668151
|
}
|
|
668152
|
-
function getPackageConfig(
|
|
668153
|
-
const existing = packageJSONCache.get(
|
|
668152
|
+
function getPackageConfig(path44, specifier, base) {
|
|
668153
|
+
const existing = packageJSONCache.get(path44);
|
|
668154
668154
|
if (existing !== void 0) {
|
|
668155
668155
|
return existing;
|
|
668156
668156
|
}
|
|
668157
|
-
const source = packageJsonReader.read(
|
|
668157
|
+
const source = packageJsonReader.read(path44).string;
|
|
668158
668158
|
if (source === void 0) {
|
|
668159
668159
|
const packageConfig2 = {
|
|
668160
|
-
pjsonPath:
|
|
668160
|
+
pjsonPath: path44,
|
|
668161
668161
|
exists: false,
|
|
668162
668162
|
main: void 0,
|
|
668163
668163
|
name: void 0,
|
|
@@ -668165,7 +668165,7 @@ Update this package.json to use a subpath pattern like "${match2}*".`,
|
|
|
668165
668165
|
exports: void 0,
|
|
668166
668166
|
imports: void 0
|
|
668167
668167
|
};
|
|
668168
|
-
packageJSONCache.set(
|
|
668168
|
+
packageJSONCache.set(path44, packageConfig2);
|
|
668169
668169
|
return packageConfig2;
|
|
668170
668170
|
}
|
|
668171
668171
|
let packageJSON;
|
|
@@ -668173,7 +668173,7 @@ Update this package.json to use a subpath pattern like "${match2}*".`,
|
|
|
668173
668173
|
packageJSON = JSONParse(source);
|
|
668174
668174
|
} catch (error2) {
|
|
668175
668175
|
throw new ERR_INVALID_PACKAGE_CONFIG(
|
|
668176
|
-
|
|
668176
|
+
path44,
|
|
668177
668177
|
(base ? `"${specifier}" from ` : "") + fileURLToPath3(base || specifier),
|
|
668178
668178
|
error2.message
|
|
668179
668179
|
);
|
|
@@ -668185,7 +668185,7 @@ Update this package.json to use a subpath pattern like "${match2}*".`,
|
|
|
668185
668185
|
if (typeof name !== "string") name = void 0;
|
|
668186
668186
|
if (type !== "module" && type !== "commonjs") type = "none";
|
|
668187
668187
|
const packageConfig = {
|
|
668188
|
-
pjsonPath:
|
|
668188
|
+
pjsonPath: path44,
|
|
668189
668189
|
exists: true,
|
|
668190
668190
|
main,
|
|
668191
668191
|
name,
|
|
@@ -668193,7 +668193,7 @@ Update this package.json to use a subpath pattern like "${match2}*".`,
|
|
|
668193
668193
|
exports: exports3,
|
|
668194
668194
|
imports
|
|
668195
668195
|
};
|
|
668196
|
-
packageJSONCache.set(
|
|
668196
|
+
packageJSONCache.set(path44, packageConfig);
|
|
668197
668197
|
return packageConfig;
|
|
668198
668198
|
}
|
|
668199
668199
|
function getPackageScopeConfig(resolved) {
|
|
@@ -668309,10 +668309,10 @@ Update this package.json to use a subpath pattern like "${match2}*".`,
|
|
|
668309
668309
|
fileURLToPath3(base)
|
|
668310
668310
|
);
|
|
668311
668311
|
if (experimentalSpecifierResolution === "node") {
|
|
668312
|
-
const
|
|
668312
|
+
const path45 = fileURLToPath3(resolved);
|
|
668313
668313
|
let file2 = resolveExtensionsWithTryExactName(resolved);
|
|
668314
668314
|
if (file2 !== void 0) return file2;
|
|
668315
|
-
if (!StringPrototypeEndsWith(
|
|
668315
|
+
if (!StringPrototypeEndsWith(path45, "/")) {
|
|
668316
668316
|
file2 = resolveIndex(new URL4(`${resolved}/`));
|
|
668317
668317
|
if (file2 !== void 0) return file2;
|
|
668318
668318
|
} else {
|
|
@@ -668325,15 +668325,15 @@ Update this package.json to use a subpath pattern like "${match2}*".`,
|
|
|
668325
668325
|
);
|
|
668326
668326
|
}
|
|
668327
668327
|
const file = resolveReplacementExtensions(resolved) || resolved;
|
|
668328
|
-
const
|
|
668329
|
-
const stats = tryStatSync(StringPrototypeEndsWith(
|
|
668328
|
+
const path44 = fileURLToPath3(file);
|
|
668329
|
+
const stats = tryStatSync(StringPrototypeEndsWith(path44, "/") ? StringPrototypeSlice(path44, -1) : path44);
|
|
668330
668330
|
if (stats.isDirectory()) {
|
|
668331
|
-
const err = new ERR_UNSUPPORTED_DIR_IMPORT(
|
|
668331
|
+
const err = new ERR_UNSUPPORTED_DIR_IMPORT(path44, fileURLToPath3(base));
|
|
668332
668332
|
err.url = String(resolved);
|
|
668333
668333
|
throw err;
|
|
668334
668334
|
} else if (!stats.isFile()) {
|
|
668335
668335
|
throw new ERR_MODULE_NOT_FOUND(
|
|
668336
|
-
|
|
668336
|
+
path44 || resolved.pathname,
|
|
668337
668337
|
fileURLToPath3(base),
|
|
668338
668338
|
"module"
|
|
668339
668339
|
);
|
|
@@ -669380,15 +669380,15 @@ ${diagnosticText}`);
|
|
|
669380
669380
|
environment: "node",
|
|
669381
669381
|
retrieveFile(pathOrUrl) {
|
|
669382
669382
|
var _a4;
|
|
669383
|
-
let
|
|
669384
|
-
if (experimentalEsmLoader &&
|
|
669383
|
+
let path44 = pathOrUrl;
|
|
669384
|
+
if (experimentalEsmLoader && path44.startsWith("file://")) {
|
|
669385
669385
|
try {
|
|
669386
|
-
|
|
669386
|
+
path44 = (0, url_1.fileURLToPath)(path44);
|
|
669387
669387
|
} catch (e3) {
|
|
669388
669388
|
}
|
|
669389
669389
|
}
|
|
669390
|
-
|
|
669391
|
-
return ((_a4 = outputCache.get(
|
|
669390
|
+
path44 = (0, util_1.normalizeSlashes)(path44);
|
|
669391
|
+
return ((_a4 = outputCache.get(path44)) === null || _a4 === void 0 ? void 0 : _a4.content) || "";
|
|
669392
669392
|
},
|
|
669393
669393
|
redirectConflictingLibrary: true,
|
|
669394
669394
|
onConflictingLibraryRedirect(request, parent, isMain, options2, redirectedRequest) {
|
|
@@ -669414,10 +669414,10 @@ ${diagnosticText}`);
|
|
|
669414
669414
|
if (configDiagnosticList.length)
|
|
669415
669415
|
reportTSError(configDiagnosticList);
|
|
669416
669416
|
const jsxEmitPreserve = config2.options.jsx === ts.JsxEmit.Preserve;
|
|
669417
|
-
function getEmitExtension(
|
|
669418
|
-
const lastDotIndex =
|
|
669417
|
+
function getEmitExtension(path44) {
|
|
669418
|
+
const lastDotIndex = path44.lastIndexOf(".");
|
|
669419
669419
|
if (lastDotIndex >= 0) {
|
|
669420
|
-
const ext2 =
|
|
669420
|
+
const ext2 = path44.slice(lastDotIndex);
|
|
669421
669421
|
switch (ext2) {
|
|
669422
669422
|
case ".js":
|
|
669423
669423
|
case ".ts":
|
|
@@ -669632,14 +669632,14 @@ This is usually the result of a faulty configuration or import. Make sure there
|
|
|
669632
669632
|
const diagnosticList = filterDiagnostics(diagnostics, diagnosticFilters);
|
|
669633
669633
|
if (diagnosticList.length)
|
|
669634
669634
|
reportTSError(diagnosticList);
|
|
669635
|
-
const result = builderProgram.emit(sourceFile, (
|
|
669636
|
-
if (
|
|
669635
|
+
const result = builderProgram.emit(sourceFile, (path44, file, writeByteOrderMark) => {
|
|
669636
|
+
if (path44.endsWith(".map")) {
|
|
669637
669637
|
outMap = file;
|
|
669638
669638
|
} else {
|
|
669639
669639
|
outText = file;
|
|
669640
669640
|
}
|
|
669641
669641
|
if (options.emit)
|
|
669642
|
-
sys.writeFile(
|
|
669642
|
+
sys.writeFile(path44, file, writeByteOrderMark);
|
|
669643
669643
|
}, void 0, void 0, customTransformers);
|
|
669644
669644
|
if (result.emitSkipped) {
|
|
669645
669645
|
return [void 0, void 0, true];
|
|
@@ -669804,8 +669804,8 @@ This is usually the result of a faulty configuration or import. Make sure there
|
|
|
669804
669804
|
function createIgnore(ignoreBaseDir, ignore) {
|
|
669805
669805
|
return (fileName) => {
|
|
669806
669806
|
const relname = (0, path_1.relative)(ignoreBaseDir, fileName);
|
|
669807
|
-
const
|
|
669808
|
-
return ignore.some((x3) => x3.test(
|
|
669807
|
+
const path44 = (0, util_1.normalizeSlashes)(relname);
|
|
669808
|
+
return ignore.some((x3) => x3.test(path44));
|
|
669809
669809
|
};
|
|
669810
669810
|
}
|
|
669811
669811
|
function registerExtensions(preferTsExts, extensions, service, originalJsHandler) {
|
|
@@ -671630,8 +671630,8 @@ var {
|
|
|
671630
671630
|
|
|
671631
671631
|
// apps/cli/cli.ts
|
|
671632
671632
|
var import_chalk27 = __toESM(require_source());
|
|
671633
|
-
var
|
|
671634
|
-
var
|
|
671633
|
+
var import_path38 = __toESM(require("path"));
|
|
671634
|
+
var import_fs_extra36 = __toESM(require_lib());
|
|
671635
671635
|
|
|
671636
671636
|
// apps/cli/utils/operation-logger.ts
|
|
671637
671637
|
var import_fs_extra = __toESM(require_lib());
|
|
@@ -673988,9 +673988,9 @@ var fetchAsyncQuestionProperty = function(question, prop, answers) {
|
|
|
673988
673988
|
|
|
673989
673989
|
// node_modules/inquirer/lib/ui/prompt.js
|
|
673990
673990
|
var _ = {
|
|
673991
|
-
set: (obj,
|
|
673991
|
+
set: (obj, path44 = "", value2) => {
|
|
673992
673992
|
let pointer = obj;
|
|
673993
|
-
|
|
673993
|
+
path44.split(".").forEach((key, index, arr) => {
|
|
673994
673994
|
if (key === "__proto__" || key === "constructor") return;
|
|
673995
673995
|
if (index === arr.length - 1) {
|
|
673996
673996
|
pointer[key] = value2;
|
|
@@ -674000,8 +674000,8 @@ var _ = {
|
|
|
674000
674000
|
pointer = pointer[key];
|
|
674001
674001
|
});
|
|
674002
674002
|
},
|
|
674003
|
-
get: (obj,
|
|
674004
|
-
const travel = (regexp) => String.prototype.split.call(
|
|
674003
|
+
get: (obj, path44 = "", defaultValue) => {
|
|
674004
|
+
const travel = (regexp) => String.prototype.split.call(path44, regexp).filter(Boolean).reduce(
|
|
674005
674005
|
// @ts-expect-error implicit any on res[key]
|
|
674006
674006
|
(res, key) => res !== null && res !== void 0 ? res[key] : res,
|
|
674007
674007
|
obj
|
|
@@ -674880,9 +674880,9 @@ function isVisitable(thing) {
|
|
|
674880
674880
|
function removeBrackets(key) {
|
|
674881
674881
|
return utils_default.endsWith(key, "[]") ? key.slice(0, -2) : key;
|
|
674882
674882
|
}
|
|
674883
|
-
function renderKey(
|
|
674884
|
-
if (!
|
|
674885
|
-
return
|
|
674883
|
+
function renderKey(path44, key, dots) {
|
|
674884
|
+
if (!path44) return key;
|
|
674885
|
+
return path44.concat(key).map(function each(token2, i3) {
|
|
674886
674886
|
token2 = removeBrackets(token2);
|
|
674887
674887
|
return !dots && i3 ? "[" + token2 + "]" : token2;
|
|
674888
674888
|
}).join(dots ? "." : "");
|
|
@@ -674930,9 +674930,9 @@ function toFormData(obj, formData, options) {
|
|
|
674930
674930
|
}
|
|
674931
674931
|
return value2;
|
|
674932
674932
|
}
|
|
674933
|
-
function defaultVisitor(value2, key,
|
|
674933
|
+
function defaultVisitor(value2, key, path44) {
|
|
674934
674934
|
let arr = value2;
|
|
674935
|
-
if (value2 && !
|
|
674935
|
+
if (value2 && !path44 && typeof value2 === "object") {
|
|
674936
674936
|
if (utils_default.endsWith(key, "{}")) {
|
|
674937
674937
|
key = metaTokens ? key : key.slice(0, -2);
|
|
674938
674938
|
value2 = JSON.stringify(value2);
|
|
@@ -674951,7 +674951,7 @@ function toFormData(obj, formData, options) {
|
|
|
674951
674951
|
if (isVisitable(value2)) {
|
|
674952
674952
|
return true;
|
|
674953
674953
|
}
|
|
674954
|
-
formData.append(renderKey(
|
|
674954
|
+
formData.append(renderKey(path44, key, dots), convertValue(value2));
|
|
674955
674955
|
return false;
|
|
674956
674956
|
}
|
|
674957
674957
|
const stack = [];
|
|
@@ -674960,10 +674960,10 @@ function toFormData(obj, formData, options) {
|
|
|
674960
674960
|
convertValue,
|
|
674961
674961
|
isVisitable
|
|
674962
674962
|
});
|
|
674963
|
-
function build(value2,
|
|
674963
|
+
function build(value2, path44) {
|
|
674964
674964
|
if (utils_default.isUndefined(value2)) return;
|
|
674965
674965
|
if (stack.indexOf(value2) !== -1) {
|
|
674966
|
-
throw Error("Circular reference detected in " +
|
|
674966
|
+
throw Error("Circular reference detected in " + path44.join("."));
|
|
674967
674967
|
}
|
|
674968
674968
|
stack.push(value2);
|
|
674969
674969
|
utils_default.forEach(value2, function each(el, key) {
|
|
@@ -674971,11 +674971,11 @@ function toFormData(obj, formData, options) {
|
|
|
674971
674971
|
formData,
|
|
674972
674972
|
el,
|
|
674973
674973
|
utils_default.isString(key) ? key.trim() : key,
|
|
674974
|
-
|
|
674974
|
+
path44,
|
|
674975
674975
|
exposedHelpers
|
|
674976
674976
|
);
|
|
674977
674977
|
if (result === true) {
|
|
674978
|
-
build(el,
|
|
674978
|
+
build(el, path44 ? path44.concat(key) : [key]);
|
|
674979
674979
|
}
|
|
674980
674980
|
});
|
|
674981
674981
|
stack.pop();
|
|
@@ -675187,7 +675187,7 @@ var platform_default = {
|
|
|
675187
675187
|
// node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
675188
675188
|
function toURLEncodedForm(data2, options) {
|
|
675189
675189
|
return toFormData_default(data2, new platform_default.classes.URLSearchParams(), {
|
|
675190
|
-
visitor: function(value2, key,
|
|
675190
|
+
visitor: function(value2, key, path44, helpers) {
|
|
675191
675191
|
if (platform_default.isNode && utils_default.isBuffer(value2)) {
|
|
675192
675192
|
this.append(key, value2.toString("base64"));
|
|
675193
675193
|
return false;
|
|
@@ -675217,11 +675217,11 @@ function arrayToObject(arr) {
|
|
|
675217
675217
|
return obj;
|
|
675218
675218
|
}
|
|
675219
675219
|
function formDataToJSON(formData) {
|
|
675220
|
-
function buildPath(
|
|
675221
|
-
let name =
|
|
675220
|
+
function buildPath(path44, value2, target, index) {
|
|
675221
|
+
let name = path44[index++];
|
|
675222
675222
|
if (name === "__proto__") return true;
|
|
675223
675223
|
const isNumericKey = Number.isFinite(+name);
|
|
675224
|
-
const isLast = index >=
|
|
675224
|
+
const isLast = index >= path44.length;
|
|
675225
675225
|
name = !name && utils_default.isArray(target) ? target.length : name;
|
|
675226
675226
|
if (isLast) {
|
|
675227
675227
|
if (utils_default.hasOwnProp(target, name)) {
|
|
@@ -675234,7 +675234,7 @@ function formDataToJSON(formData) {
|
|
|
675234
675234
|
if (!target[name] || !utils_default.isObject(target[name])) {
|
|
675235
675235
|
target[name] = [];
|
|
675236
675236
|
}
|
|
675237
|
-
const result = buildPath(
|
|
675237
|
+
const result = buildPath(path44, value2, target[name], index);
|
|
675238
675238
|
if (result && utils_default.isArray(target[name])) {
|
|
675239
675239
|
target[name] = arrayToObject(target[name]);
|
|
675240
675240
|
}
|
|
@@ -676556,9 +676556,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config2) {
|
|
|
676556
676556
|
auth = urlUsername + ":" + urlPassword;
|
|
676557
676557
|
}
|
|
676558
676558
|
auth && headers.delete("authorization");
|
|
676559
|
-
let
|
|
676559
|
+
let path44;
|
|
676560
676560
|
try {
|
|
676561
|
-
|
|
676561
|
+
path44 = buildURL(
|
|
676562
676562
|
parsed.pathname + parsed.search,
|
|
676563
676563
|
config2.params,
|
|
676564
676564
|
config2.paramsSerializer
|
|
@@ -676576,7 +676576,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config2) {
|
|
|
676576
676576
|
false
|
|
676577
676577
|
);
|
|
676578
676578
|
const options = {
|
|
676579
|
-
path:
|
|
676579
|
+
path: path44,
|
|
676580
676580
|
method,
|
|
676581
676581
|
headers: headers.toJSON(),
|
|
676582
676582
|
agents: { http: config2.httpAgent, https: config2.httpsAgent },
|
|
@@ -676812,14 +676812,14 @@ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PUR
|
|
|
676812
676812
|
var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
676813
676813
|
// Standard browser envs support document.cookie
|
|
676814
676814
|
{
|
|
676815
|
-
write(name, value2, expires,
|
|
676815
|
+
write(name, value2, expires, path44, domain, secure, sameSite) {
|
|
676816
676816
|
if (typeof document === "undefined") return;
|
|
676817
676817
|
const cookie = [`${name}=${encodeURIComponent(value2)}`];
|
|
676818
676818
|
if (utils_default.isNumber(expires)) {
|
|
676819
676819
|
cookie.push(`expires=${new Date(expires).toUTCString()}`);
|
|
676820
676820
|
}
|
|
676821
|
-
if (utils_default.isString(
|
|
676822
|
-
cookie.push(`path=${
|
|
676821
|
+
if (utils_default.isString(path44)) {
|
|
676822
|
+
cookie.push(`path=${path44}`);
|
|
676823
676823
|
}
|
|
676824
676824
|
if (utils_default.isString(domain)) {
|
|
676825
676825
|
cookie.push(`domain=${domain}`);
|
|
@@ -686501,12 +686501,12 @@ var PathBase = class {
|
|
|
686501
686501
|
/**
|
|
686502
686502
|
* Get the Path object referenced by the string path, resolved from this Path
|
|
686503
686503
|
*/
|
|
686504
|
-
resolve(
|
|
686505
|
-
if (!
|
|
686504
|
+
resolve(path44) {
|
|
686505
|
+
if (!path44) {
|
|
686506
686506
|
return this;
|
|
686507
686507
|
}
|
|
686508
|
-
const rootPath = this.getRootString(
|
|
686509
|
-
const dir =
|
|
686508
|
+
const rootPath = this.getRootString(path44);
|
|
686509
|
+
const dir = path44.substring(rootPath.length);
|
|
686510
686510
|
const dirParts = dir.split(this.splitSep);
|
|
686511
686511
|
const result = rootPath ? this.getRoot(rootPath).#resolveParts(dirParts) : this.#resolveParts(dirParts);
|
|
686512
686512
|
return result;
|
|
@@ -687258,8 +687258,8 @@ var PathWin32 = class _PathWin32 extends PathBase {
|
|
|
687258
687258
|
/**
|
|
687259
687259
|
* @internal
|
|
687260
687260
|
*/
|
|
687261
|
-
getRootString(
|
|
687262
|
-
return import_node_path2.win32.parse(
|
|
687261
|
+
getRootString(path44) {
|
|
687262
|
+
return import_node_path2.win32.parse(path44).root;
|
|
687263
687263
|
}
|
|
687264
687264
|
/**
|
|
687265
687265
|
* @internal
|
|
@@ -687305,8 +687305,8 @@ var PathPosix = class _PathPosix extends PathBase {
|
|
|
687305
687305
|
/**
|
|
687306
687306
|
* @internal
|
|
687307
687307
|
*/
|
|
687308
|
-
getRootString(
|
|
687309
|
-
return
|
|
687308
|
+
getRootString(path44) {
|
|
687309
|
+
return path44.startsWith("/") ? "/" : "";
|
|
687310
687310
|
}
|
|
687311
687311
|
/**
|
|
687312
687312
|
* @internal
|
|
@@ -687355,8 +687355,8 @@ var PathScurryBase = class {
|
|
|
687355
687355
|
*
|
|
687356
687356
|
* @internal
|
|
687357
687357
|
*/
|
|
687358
|
-
constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs:
|
|
687359
|
-
this.#fs = fsFromOption(
|
|
687358
|
+
constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs: fs40 = defaultFS } = {}) {
|
|
687359
|
+
this.#fs = fsFromOption(fs40);
|
|
687360
687360
|
if (cwd instanceof URL || cwd.startsWith("file://")) {
|
|
687361
687361
|
cwd = (0, import_node_url.fileURLToPath)(cwd);
|
|
687362
687362
|
}
|
|
@@ -687395,11 +687395,11 @@ var PathScurryBase = class {
|
|
|
687395
687395
|
/**
|
|
687396
687396
|
* Get the depth of a provided path, string, or the cwd
|
|
687397
687397
|
*/
|
|
687398
|
-
depth(
|
|
687399
|
-
if (typeof
|
|
687400
|
-
|
|
687398
|
+
depth(path44 = this.cwd) {
|
|
687399
|
+
if (typeof path44 === "string") {
|
|
687400
|
+
path44 = this.cwd.resolve(path44);
|
|
687401
687401
|
}
|
|
687402
|
-
return
|
|
687402
|
+
return path44.depth();
|
|
687403
687403
|
}
|
|
687404
687404
|
/**
|
|
687405
687405
|
* Return the cache of child entries. Exposed so subclasses can create
|
|
@@ -687886,9 +687886,9 @@ var PathScurryBase = class {
|
|
|
687886
687886
|
process5();
|
|
687887
687887
|
return results;
|
|
687888
687888
|
}
|
|
687889
|
-
chdir(
|
|
687889
|
+
chdir(path44 = this.cwd) {
|
|
687890
687890
|
const oldCwd = this.cwd;
|
|
687891
|
-
this.cwd = typeof
|
|
687891
|
+
this.cwd = typeof path44 === "string" ? this.cwd.resolve(path44) : path44;
|
|
687892
687892
|
this.cwd[setAsCwd](oldCwd);
|
|
687893
687893
|
}
|
|
687894
687894
|
};
|
|
@@ -687914,8 +687914,8 @@ var PathScurryWin32 = class extends PathScurryBase {
|
|
|
687914
687914
|
/**
|
|
687915
687915
|
* @internal
|
|
687916
687916
|
*/
|
|
687917
|
-
newRoot(
|
|
687918
|
-
return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs:
|
|
687917
|
+
newRoot(fs40) {
|
|
687918
|
+
return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs40 });
|
|
687919
687919
|
}
|
|
687920
687920
|
/**
|
|
687921
687921
|
* Return true if the provided path string is an absolute path
|
|
@@ -687943,8 +687943,8 @@ var PathScurryPosix = class extends PathScurryBase {
|
|
|
687943
687943
|
/**
|
|
687944
687944
|
* @internal
|
|
687945
687945
|
*/
|
|
687946
|
-
newRoot(
|
|
687947
|
-
return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs:
|
|
687946
|
+
newRoot(fs40) {
|
|
687947
|
+
return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs40 });
|
|
687948
687948
|
}
|
|
687949
687949
|
/**
|
|
687950
687950
|
* Return true if the provided path string is an absolute path
|
|
@@ -688244,8 +688244,8 @@ var MatchRecord = class {
|
|
|
688244
688244
|
}
|
|
688245
688245
|
// match, absolute, ifdir
|
|
688246
688246
|
entries() {
|
|
688247
|
-
return [...this.store.entries()].map(([
|
|
688248
|
-
|
|
688247
|
+
return [...this.store.entries()].map(([path44, n3]) => [
|
|
688248
|
+
path44,
|
|
688249
688249
|
!!(n3 & 2),
|
|
688250
688250
|
!!(n3 & 1)
|
|
688251
688251
|
]);
|
|
@@ -688450,9 +688450,9 @@ var GlobUtil = class {
|
|
|
688450
688450
|
signal;
|
|
688451
688451
|
maxDepth;
|
|
688452
688452
|
includeChildMatches;
|
|
688453
|
-
constructor(patterns,
|
|
688453
|
+
constructor(patterns, path44, opts) {
|
|
688454
688454
|
this.patterns = patterns;
|
|
688455
|
-
this.path =
|
|
688455
|
+
this.path = path44;
|
|
688456
688456
|
this.opts = opts;
|
|
688457
688457
|
this.#sep = !opts.posix && opts.platform === "win32" ? "\\" : "/";
|
|
688458
688458
|
this.includeChildMatches = opts.includeChildMatches !== false;
|
|
@@ -688471,11 +688471,11 @@ var GlobUtil = class {
|
|
|
688471
688471
|
});
|
|
688472
688472
|
}
|
|
688473
688473
|
}
|
|
688474
|
-
#ignored(
|
|
688475
|
-
return this.seen.has(
|
|
688474
|
+
#ignored(path44) {
|
|
688475
|
+
return this.seen.has(path44) || !!this.#ignore?.ignored?.(path44);
|
|
688476
688476
|
}
|
|
688477
|
-
#childrenIgnored(
|
|
688478
|
-
return !!this.#ignore?.childrenIgnored?.(
|
|
688477
|
+
#childrenIgnored(path44) {
|
|
688478
|
+
return !!this.#ignore?.childrenIgnored?.(path44);
|
|
688479
688479
|
}
|
|
688480
688480
|
// backpressure mechanism
|
|
688481
688481
|
pause() {
|
|
@@ -688690,8 +688690,8 @@ var GlobUtil = class {
|
|
|
688690
688690
|
};
|
|
688691
688691
|
var GlobWalker = class extends GlobUtil {
|
|
688692
688692
|
matches = /* @__PURE__ */ new Set();
|
|
688693
|
-
constructor(patterns,
|
|
688694
|
-
super(patterns,
|
|
688693
|
+
constructor(patterns, path44, opts) {
|
|
688694
|
+
super(patterns, path44, opts);
|
|
688695
688695
|
}
|
|
688696
688696
|
matchEmit(e3) {
|
|
688697
688697
|
this.matches.add(e3);
|
|
@@ -688728,8 +688728,8 @@ var GlobWalker = class extends GlobUtil {
|
|
|
688728
688728
|
};
|
|
688729
688729
|
var GlobStream = class extends GlobUtil {
|
|
688730
688730
|
results;
|
|
688731
|
-
constructor(patterns,
|
|
688732
|
-
super(patterns,
|
|
688731
|
+
constructor(patterns, path44, opts) {
|
|
688732
|
+
super(patterns, path44, opts);
|
|
688733
688733
|
this.results = new Minipass({
|
|
688734
688734
|
signal: this.signal,
|
|
688735
688735
|
objectMode: true
|
|
@@ -689211,8 +689211,8 @@ var CsvManager = class {
|
|
|
689211
689211
|
/**
|
|
689212
689212
|
* Set nested value in object using dot notation (e.g., "parent.child.key")
|
|
689213
689213
|
*/
|
|
689214
|
-
setNestedValue(obj,
|
|
689215
|
-
const keys =
|
|
689214
|
+
setNestedValue(obj, path44, value2) {
|
|
689215
|
+
const keys = path44.split(".");
|
|
689216
689216
|
let current = obj;
|
|
689217
689217
|
for (let i3 = 0; i3 < keys.length - 1; i3++) {
|
|
689218
689218
|
const key = keys[i3];
|
|
@@ -690711,8 +690711,8 @@ var CsvManager2 = class {
|
|
|
690711
690711
|
/**
|
|
690712
690712
|
* Set nested value in object using dot notation (e.g., "parent.child.key")
|
|
690713
690713
|
*/
|
|
690714
|
-
setNestedValue(obj,
|
|
690715
|
-
const keys =
|
|
690714
|
+
setNestedValue(obj, path44, value2) {
|
|
690715
|
+
const keys = path44.split(".");
|
|
690716
690716
|
let current = obj;
|
|
690717
690717
|
for (let i3 = 0; i3 < keys.length - 1; i3++) {
|
|
690718
690718
|
const key = keys[i3];
|
|
@@ -695710,15 +695710,15 @@ function getRequestUrl(baseUri, operationSpec, operationArguments, fallbackObjec
|
|
|
695710
695710
|
let isAbsolutePath = false;
|
|
695711
695711
|
let requestUrl = replaceAll(baseUri, urlReplacements);
|
|
695712
695712
|
if (operationSpec.path) {
|
|
695713
|
-
let
|
|
695714
|
-
if (operationSpec.path === "/{nextLink}" &&
|
|
695715
|
-
|
|
695713
|
+
let path44 = replaceAll(operationSpec.path, urlReplacements);
|
|
695714
|
+
if (operationSpec.path === "/{nextLink}" && path44.startsWith("/")) {
|
|
695715
|
+
path44 = path44.substring(1);
|
|
695716
695716
|
}
|
|
695717
|
-
if (isAbsoluteUrl(
|
|
695718
|
-
requestUrl =
|
|
695717
|
+
if (isAbsoluteUrl(path44)) {
|
|
695718
|
+
requestUrl = path44;
|
|
695719
695719
|
isAbsolutePath = true;
|
|
695720
695720
|
} else {
|
|
695721
|
-
requestUrl = appendPath(requestUrl,
|
|
695721
|
+
requestUrl = appendPath(requestUrl, path44);
|
|
695722
695722
|
}
|
|
695723
695723
|
}
|
|
695724
695724
|
const { queryParams, sequenceParams } = calculateQueryParameters(operationSpec, operationArguments, fallbackObject);
|
|
@@ -695764,9 +695764,9 @@ function appendPath(url3, pathToAppend) {
|
|
|
695764
695764
|
}
|
|
695765
695765
|
const searchStart = pathToAppend.indexOf("?");
|
|
695766
695766
|
if (searchStart !== -1) {
|
|
695767
|
-
const
|
|
695767
|
+
const path44 = pathToAppend.substring(0, searchStart);
|
|
695768
695768
|
const search = pathToAppend.substring(searchStart + 1);
|
|
695769
|
-
newPath = newPath +
|
|
695769
|
+
newPath = newPath + path44;
|
|
695770
695770
|
if (search) {
|
|
695771
695771
|
parsedUrl.search = parsedUrl.search ? `${parsedUrl.search}&${search}` : search;
|
|
695772
695772
|
}
|
|
@@ -698517,10 +698517,10 @@ var PathStylePorts = [
|
|
|
698517
698517
|
// node_modules/@azure/storage-blob/dist/esm/utils/utils.common.js
|
|
698518
698518
|
function escapeURLPath(url3) {
|
|
698519
698519
|
const urlParsed = new URL(url3);
|
|
698520
|
-
let
|
|
698521
|
-
|
|
698522
|
-
|
|
698523
|
-
urlParsed.pathname =
|
|
698520
|
+
let path44 = urlParsed.pathname;
|
|
698521
|
+
path44 = path44 || "/";
|
|
698522
|
+
path44 = escape3(path44);
|
|
698523
|
+
urlParsed.pathname = path44;
|
|
698524
698524
|
return urlParsed.toString();
|
|
698525
698525
|
}
|
|
698526
698526
|
function getProxyUriFromDevConnString(connectionString) {
|
|
@@ -698605,9 +698605,9 @@ function escape3(text) {
|
|
|
698605
698605
|
}
|
|
698606
698606
|
function appendToURLPath(url3, name) {
|
|
698607
698607
|
const urlParsed = new URL(url3);
|
|
698608
|
-
let
|
|
698609
|
-
|
|
698610
|
-
urlParsed.pathname =
|
|
698608
|
+
let path44 = urlParsed.pathname;
|
|
698609
|
+
path44 = path44 ? path44.endsWith("/") ? `${path44}${name}` : `${path44}/${name}` : name;
|
|
698610
|
+
urlParsed.pathname = path44;
|
|
698611
698611
|
return urlParsed.toString();
|
|
698612
698612
|
}
|
|
698613
698613
|
function setURLParameter(url3, name, value2) {
|
|
@@ -699738,9 +699738,9 @@ var StorageSharedKeyCredentialPolicy = class extends CredentialPolicy {
|
|
|
699738
699738
|
* @param request -
|
|
699739
699739
|
*/
|
|
699740
699740
|
getCanonicalizedResourceString(request) {
|
|
699741
|
-
const
|
|
699741
|
+
const path44 = getURLPath(request.url) || "/";
|
|
699742
699742
|
let canonicalizedResourceString = "";
|
|
699743
|
-
canonicalizedResourceString += `/${this.factory.accountName}${
|
|
699743
|
+
canonicalizedResourceString += `/${this.factory.accountName}${path44}`;
|
|
699744
699744
|
const queries = getURLQueries(request.url);
|
|
699745
699745
|
const lowercaseQueries = {};
|
|
699746
699746
|
if (queries) {
|
|
@@ -700923,9 +700923,9 @@ function storageSharedKeyCredentialPolicy(options) {
|
|
|
700923
700923
|
return canonicalizedHeadersStringToSign;
|
|
700924
700924
|
}
|
|
700925
700925
|
function getCanonicalizedResourceString(request) {
|
|
700926
|
-
const
|
|
700926
|
+
const path44 = getURLPath(request.url) || "/";
|
|
700927
700927
|
let canonicalizedResourceString = "";
|
|
700928
|
-
canonicalizedResourceString += `/${options.accountName}${
|
|
700928
|
+
canonicalizedResourceString += `/${options.accountName}${path44}`;
|
|
700929
700929
|
const queries = getURLQueries(request.url);
|
|
700930
700930
|
const lowercaseQueries = {};
|
|
700931
700931
|
if (queries) {
|
|
@@ -721288,8 +721288,8 @@ var InnerBatchRequest = class {
|
|
|
721288
721288
|
if (this.operationCount >= BATCH_MAX_REQUEST) {
|
|
721289
721289
|
throw new RangeError(`Cannot exceed ${BATCH_MAX_REQUEST} sub requests in a single batch`);
|
|
721290
721290
|
}
|
|
721291
|
-
const
|
|
721292
|
-
if (!
|
|
721291
|
+
const path44 = getURLPath(subRequest.url);
|
|
721292
|
+
if (!path44 || path44 === "") {
|
|
721293
721293
|
throw new RangeError(`Invalid url for sub request: '${subRequest.url}'`);
|
|
721294
721294
|
}
|
|
721295
721295
|
}
|
|
@@ -721352,8 +721352,8 @@ var BlobBatchClient = class {
|
|
|
721352
721352
|
pipeline = newPipeline(credentialOrPipeline, options);
|
|
721353
721353
|
}
|
|
721354
721354
|
const storageClientContext = new StorageContextClient(url3, getCoreClientOptions(pipeline));
|
|
721355
|
-
const
|
|
721356
|
-
if (
|
|
721355
|
+
const path44 = getURLPath(url3);
|
|
721356
|
+
if (path44 && path44 !== "/") {
|
|
721357
721357
|
this.serviceOrContainerContext = storageClientContext.container;
|
|
721358
721358
|
} else {
|
|
721359
721359
|
this.serviceOrContainerContext = storageClientContext.service;
|
|
@@ -730539,8 +730539,8 @@ function truncate(value2, max) {
|
|
|
730539
730539
|
if (!max || value2.length <= max) return value2;
|
|
730540
730540
|
return value2.slice(0, max - 1) + "\u2026";
|
|
730541
730541
|
}
|
|
730542
|
-
function get2(obj,
|
|
730543
|
-
return
|
|
730542
|
+
function get2(obj, path44) {
|
|
730543
|
+
return path44.split(".").reduce((acc, k3) => acc == null ? acc : acc[k3], obj);
|
|
730544
730544
|
}
|
|
730545
730545
|
function printTable(rows, columns) {
|
|
730546
730546
|
if (!rows || rows.length === 0) {
|
|
@@ -734813,6 +734813,212 @@ function sleep(ms) {
|
|
|
734813
734813
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
734814
734814
|
}
|
|
734815
734815
|
|
|
734816
|
+
// apps/cli/cli/handlers/md-handlers.ts
|
|
734817
|
+
var import_fs_extra35 = __toESM(require_lib());
|
|
734818
|
+
var import_path37 = __toESM(require("path"));
|
|
734819
|
+
var mdEndpoint = (id) => `/api/v1/documents/files/${encodeURIComponent(id)}/markdown_editor`;
|
|
734820
|
+
var HEADER_COLUMNS = [
|
|
734821
|
+
{ header: "Line", key: "line" },
|
|
734822
|
+
{ header: "Level", key: "level" },
|
|
734823
|
+
{ header: "Heading", key: "title", maxWidth: 60 }
|
|
734824
|
+
];
|
|
734825
|
+
var SECTION_STATS_COLUMNS = [
|
|
734826
|
+
{ header: "Heading", key: "heading", maxWidth: 40 },
|
|
734827
|
+
{ header: "Level", key: "level" },
|
|
734828
|
+
{ header: "Lines", key: "line_range" },
|
|
734829
|
+
{ header: "Words", key: "word_count" }
|
|
734830
|
+
];
|
|
734831
|
+
async function loadContentOrFail(opts, out, flagContent = "--content", flagFile = "--content-file") {
|
|
734832
|
+
if (opts.content !== void 0 && opts.contentFile !== void 0) {
|
|
734833
|
+
out.fail(new Error(`Pass either ${flagContent} or ${flagFile}, not both`));
|
|
734834
|
+
}
|
|
734835
|
+
if (opts.content !== void 0) return opts.content;
|
|
734836
|
+
if (opts.contentFile !== void 0) {
|
|
734837
|
+
const resolved = import_path37.default.resolve(opts.contentFile);
|
|
734838
|
+
if (!await import_fs_extra35.default.pathExists(resolved)) {
|
|
734839
|
+
out.fail(new Error(`Content file not found: ${opts.contentFile}`));
|
|
734840
|
+
}
|
|
734841
|
+
return await import_fs_extra35.default.readFile(resolved, "utf8");
|
|
734842
|
+
}
|
|
734843
|
+
out.fail(new Error(`${flagContent} <text> or ${flagFile} <path> is required`));
|
|
734844
|
+
return "";
|
|
734845
|
+
}
|
|
734846
|
+
async function postAction(id, body2, out) {
|
|
734847
|
+
const ctx = await buildApiContext(out);
|
|
734848
|
+
try {
|
|
734849
|
+
const res = await ctx.axios.post(mdEndpoint(id), body2);
|
|
734850
|
+
return res.data;
|
|
734851
|
+
} catch (err) {
|
|
734852
|
+
out.fail(err);
|
|
734853
|
+
}
|
|
734854
|
+
}
|
|
734855
|
+
async function handleMdStructure(id, opts) {
|
|
734856
|
+
const out = output(opts);
|
|
734857
|
+
const data2 = await postAction(id, { action: "structure" }, out);
|
|
734858
|
+
if (opts.json) {
|
|
734859
|
+
out.show(data2);
|
|
734860
|
+
return;
|
|
734861
|
+
}
|
|
734862
|
+
const headers = data2?.data?.headers ?? [];
|
|
734863
|
+
out.list(headers, HEADER_COLUMNS);
|
|
734864
|
+
out.note(`${headers.length} headings, ${data2?.data?.total_lines ?? 0} lines, ${data2?.data?.total_length ?? 0} chars`);
|
|
734865
|
+
}
|
|
734866
|
+
async function handleMdStats(id, opts) {
|
|
734867
|
+
const out = output(opts);
|
|
734868
|
+
const data2 = await postAction(id, { action: "stats" }, out);
|
|
734869
|
+
if (opts.json) {
|
|
734870
|
+
out.show(data2);
|
|
734871
|
+
return;
|
|
734872
|
+
}
|
|
734873
|
+
const sections = data2?.data?.sections ?? [];
|
|
734874
|
+
out.list(sections, SECTION_STATS_COLUMNS);
|
|
734875
|
+
}
|
|
734876
|
+
async function handleMdSearch(id, opts) {
|
|
734877
|
+
const out = output(opts);
|
|
734878
|
+
if (!opts.pattern) out.fail(new Error("--pattern <regex> is required"));
|
|
734879
|
+
const body2 = { action: "search", pattern: opts.pattern };
|
|
734880
|
+
if (opts.context !== void 0) body2.context_lines = Number(opts.context);
|
|
734881
|
+
const data2 = await postAction(id, body2, out);
|
|
734882
|
+
if (opts.json) {
|
|
734883
|
+
out.show(data2);
|
|
734884
|
+
return;
|
|
734885
|
+
}
|
|
734886
|
+
const matches = data2?.data?.matches ?? [];
|
|
734887
|
+
for (const m3 of matches) {
|
|
734888
|
+
process.stdout.write(`
|
|
734889
|
+
\u2500\u2500\u2500 line ${m3.line} \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
|
|
734890
|
+
`);
|
|
734891
|
+
if (Array.isArray(m3.context)) {
|
|
734892
|
+
for (const c3 of m3.context) process.stdout.write(`${c3}
|
|
734893
|
+
`);
|
|
734894
|
+
} else {
|
|
734895
|
+
process.stdout.write(`${m3.text ?? ""}
|
|
734896
|
+
`);
|
|
734897
|
+
}
|
|
734898
|
+
}
|
|
734899
|
+
out.note(`${matches.length} match(es)`);
|
|
734900
|
+
}
|
|
734901
|
+
async function handleMdRead(id, opts) {
|
|
734902
|
+
const out = output(opts);
|
|
734903
|
+
const body2 = { action: "read" };
|
|
734904
|
+
if (opts.fromLine !== void 0) body2.from_line = Number(opts.fromLine);
|
|
734905
|
+
if (opts.toLine !== void 0) body2.to_line = Number(opts.toLine);
|
|
734906
|
+
if (opts.offset !== void 0) body2.offset = Number(opts.offset);
|
|
734907
|
+
if (opts.limit !== void 0) body2.limit = Number(opts.limit);
|
|
734908
|
+
const data2 = await postAction(id, body2, out);
|
|
734909
|
+
if (opts.json) {
|
|
734910
|
+
out.show(data2);
|
|
734911
|
+
return;
|
|
734912
|
+
}
|
|
734913
|
+
process.stdout.write((data2?.data?.content ?? "") + (data2?.data?.content?.endsWith("\n") ? "" : "\n"));
|
|
734914
|
+
}
|
|
734915
|
+
async function handleMdReadSection(id, opts) {
|
|
734916
|
+
const out = output(opts);
|
|
734917
|
+
if (!opts.heading) out.fail(new Error("--heading <text> is required"));
|
|
734918
|
+
const body2 = { action: "read_section", heading: opts.heading };
|
|
734919
|
+
if (opts.level !== void 0) body2.level = Number(opts.level);
|
|
734920
|
+
if (opts.index !== void 0) body2.index = Number(opts.index);
|
|
734921
|
+
const data2 = await postAction(id, body2, out);
|
|
734922
|
+
if (opts.json) {
|
|
734923
|
+
out.show(data2);
|
|
734924
|
+
return;
|
|
734925
|
+
}
|
|
734926
|
+
process.stdout.write((data2?.data?.content ?? "") + "\n");
|
|
734927
|
+
}
|
|
734928
|
+
async function handleMdWriteSection(id, opts) {
|
|
734929
|
+
const out = output(opts);
|
|
734930
|
+
if (!opts.heading) out.fail(new Error("--heading <text> is required"));
|
|
734931
|
+
const content = await loadContentOrFail(opts, out);
|
|
734932
|
+
const data2 = await postAction(id, { action: "write_section", heading: opts.heading, content }, out);
|
|
734933
|
+
if (opts.json) {
|
|
734934
|
+
out.show(data2);
|
|
734935
|
+
return;
|
|
734936
|
+
}
|
|
734937
|
+
out.ok(`Section "${opts.heading}" rewritten`, data2?.data);
|
|
734938
|
+
}
|
|
734939
|
+
async function handleMdAppend(id, opts) {
|
|
734940
|
+
const out = output(opts);
|
|
734941
|
+
const content = await loadContentOrFail(opts, out);
|
|
734942
|
+
const data2 = await postAction(id, { action: "append", content }, out);
|
|
734943
|
+
if (opts.json) {
|
|
734944
|
+
out.show(data2);
|
|
734945
|
+
return;
|
|
734946
|
+
}
|
|
734947
|
+
out.ok(`Appended ${content.length} chars`, data2?.data);
|
|
734948
|
+
}
|
|
734949
|
+
async function handleMdInsert(id, opts) {
|
|
734950
|
+
const out = output(opts);
|
|
734951
|
+
if (opts.atLine === void 0 && opts.atOffset === void 0) {
|
|
734952
|
+
out.fail(new Error("--at-line <n> or --at-offset <n> is required"));
|
|
734953
|
+
}
|
|
734954
|
+
const content = await loadContentOrFail(opts, out);
|
|
734955
|
+
const body2 = { action: "insert", content };
|
|
734956
|
+
if (opts.atLine !== void 0) body2.at_line = Number(opts.atLine);
|
|
734957
|
+
if (opts.atOffset !== void 0) body2.at_offset = Number(opts.atOffset);
|
|
734958
|
+
const data2 = await postAction(id, body2, out);
|
|
734959
|
+
if (opts.json) {
|
|
734960
|
+
out.show(data2);
|
|
734961
|
+
return;
|
|
734962
|
+
}
|
|
734963
|
+
out.ok(`Inserted ${content.length} chars`, data2?.data);
|
|
734964
|
+
}
|
|
734965
|
+
async function handleMdDelete(id, opts) {
|
|
734966
|
+
const out = output(opts);
|
|
734967
|
+
const body2 = { action: "delete" };
|
|
734968
|
+
if (opts.fromLine !== void 0) body2.from_line = Number(opts.fromLine);
|
|
734969
|
+
if (opts.toLine !== void 0) body2.to_line = Number(opts.toLine);
|
|
734970
|
+
if (opts.fromOffset !== void 0) body2.from_offset = Number(opts.fromOffset);
|
|
734971
|
+
if (opts.toOffset !== void 0) body2.to_offset = Number(opts.toOffset);
|
|
734972
|
+
if (body2.from_line === void 0 && body2.from_offset === void 0) {
|
|
734973
|
+
out.fail(
|
|
734974
|
+
new Error("--from-line <n> [--to-line <n>] or --from-offset <n> --to-offset <n> is required")
|
|
734975
|
+
);
|
|
734976
|
+
}
|
|
734977
|
+
const data2 = await postAction(id, body2, out);
|
|
734978
|
+
if (opts.json) {
|
|
734979
|
+
out.show(data2);
|
|
734980
|
+
return;
|
|
734981
|
+
}
|
|
734982
|
+
out.ok(`Deleted ${data2?.data?.deleted_length ?? 0} chars`, data2?.data);
|
|
734983
|
+
}
|
|
734984
|
+
async function handleMdReplace(id, opts) {
|
|
734985
|
+
const out = output(opts);
|
|
734986
|
+
if (!opts.find) out.fail(new Error("--find <text> is required"));
|
|
734987
|
+
const replace_with = await loadContentOrFail(
|
|
734988
|
+
{ content: opts.replaceWith, contentFile: opts.replaceWithFile },
|
|
734989
|
+
out,
|
|
734990
|
+
"--replace-with",
|
|
734991
|
+
"--replace-with-file"
|
|
734992
|
+
);
|
|
734993
|
+
const body2 = {
|
|
734994
|
+
action: "replace",
|
|
734995
|
+
find: opts.find,
|
|
734996
|
+
replace_with
|
|
734997
|
+
};
|
|
734998
|
+
if (opts.all) body2.all = true;
|
|
734999
|
+
const data2 = await postAction(id, body2, out);
|
|
735000
|
+
if (opts.json) {
|
|
735001
|
+
out.show(data2);
|
|
735002
|
+
return;
|
|
735003
|
+
}
|
|
735004
|
+
out.ok(`Replaced ${data2?.data?.replaced ?? 0} occurrence(s)`, data2?.data);
|
|
735005
|
+
}
|
|
735006
|
+
async function handleMdSave(id, opts) {
|
|
735007
|
+
const out = output(opts);
|
|
735008
|
+
const body2 = { action: "save" };
|
|
735009
|
+
if (opts.createVersion) body2.create_version = true;
|
|
735010
|
+
if (opts.versionComment !== void 0) body2.version_comment = opts.versionComment;
|
|
735011
|
+
const data2 = await postAction(id, body2, out);
|
|
735012
|
+
if (opts.json) {
|
|
735013
|
+
out.show(data2);
|
|
735014
|
+
return;
|
|
735015
|
+
}
|
|
735016
|
+
out.ok(
|
|
735017
|
+
opts.createVersion ? "Saved with new version" : "Saved",
|
|
735018
|
+
data2?.data
|
|
735019
|
+
);
|
|
735020
|
+
}
|
|
735021
|
+
|
|
734816
735022
|
// apps/cli/cli/handlers/task-handlers.ts
|
|
734817
735023
|
var tasksBase = (pid, tid) => `/api/v1/projects/${encodeURIComponent(pid)}/tickets/${encodeURIComponent(tid)}/tasks`;
|
|
734818
735024
|
var TASK_COLUMNS = [
|
|
@@ -734987,15 +735193,15 @@ async function handleTasksReorder(opts) {
|
|
|
734987
735193
|
// apps/cli/cli.ts
|
|
734988
735194
|
var getVersion = () => {
|
|
734989
735195
|
try {
|
|
734990
|
-
if (true) return "1.
|
|
735196
|
+
if (true) return "1.13.1";
|
|
734991
735197
|
} catch {
|
|
734992
735198
|
}
|
|
734993
735199
|
for (const candidate of [
|
|
734994
|
-
|
|
734995
|
-
|
|
735200
|
+
import_path38.default.join(__dirname, "package.json"),
|
|
735201
|
+
import_path38.default.join(__dirname, "..", "package.json")
|
|
734996
735202
|
]) {
|
|
734997
735203
|
try {
|
|
734998
|
-
return
|
|
735204
|
+
return import_fs_extra36.default.readJsonSync(candidate).version;
|
|
734999
735205
|
} catch {
|
|
735000
735206
|
}
|
|
735001
735207
|
}
|
|
@@ -735404,6 +735610,40 @@ events.command("ls").alias("list").description("One-shot cursor-paginated read o
|
|
|
735404
735610
|
events.command("watch").description("Block until a matching event arrives or the timeout expires (client-side long-poll)").option("--project <id>", "Filter to events touching a specific project").option("--ticket <id>", "Filter to events on a specific ticket").option("--type <a,b,c>", "Comma-separated event types (aliases or full class names)").option("--since <cursor>", "Start watching from this event_id (exclusive)").option("--limit <n>", "Max events per poll (default 100)").option("--timeout <s>", "Give up after this many seconds (default 60, exit 2 on timeout)").option("--poll-interval-ms <ms>", "Delay between polls (default 1000, min 100)").action(async (options) => {
|
|
735405
735611
|
await handleEventsWatch(withGlobals(options));
|
|
735406
735612
|
});
|
|
735613
|
+
var md = program2.command("md").description("Surgical, collab-safe markdown editing (hubdoc-tools#17 / corex#594)");
|
|
735614
|
+
md.command("structure <file-id>").description("Print the outline (headings + line numbers) of a markdown file").action(async (id, options) => {
|
|
735615
|
+
await handleMdStructure(id, withGlobals(options));
|
|
735616
|
+
});
|
|
735617
|
+
md.command("stats <file-id>").description("Print per-section stats (word counts, line ranges, TODOs)").action(async (id, options) => {
|
|
735618
|
+
await handleMdStats(id, withGlobals(options));
|
|
735619
|
+
});
|
|
735620
|
+
md.command("search <file-id>").description("Regex search with context lines around matches").requiredOption("--pattern <regex>", "Regex pattern to find").option("--context <n>", "Lines of context around each match (default 2)").action(async (id, options) => {
|
|
735621
|
+
await handleMdSearch(id, withGlobals(options));
|
|
735622
|
+
});
|
|
735623
|
+
md.command("read <file-id>").description("Read content by line range or character offset").option("--from-line <n>", "1-indexed start line").option("--to-line <n>", "1-indexed end line (inclusive)").option("--offset <n>", "Character offset from start").option("--limit <n>", "Max characters to read (default 10000)").action(async (id, options) => {
|
|
735624
|
+
await handleMdRead(id, withGlobals(options));
|
|
735625
|
+
});
|
|
735626
|
+
md.command("read-section <file-id>").description("Read a section by heading (case-insensitive partial match)").requiredOption("--heading <text>", "Section heading to match").option("--level <n>", "Heading level 1-6 (narrows the match)").option("--index <n>", "1-based index when multiple headings match").action(async (id, options) => {
|
|
735627
|
+
await handleMdReadSection(id, withGlobals(options));
|
|
735628
|
+
});
|
|
735629
|
+
md.command("write-section <file-id>").description("Replace a section body by heading (heading line preserved automatically)").requiredOption("--heading <text>", "Section heading to target").option("--content <text>", "Inline replacement body (mutually exclusive with --content-file)").option("--content-file <path>", "Read the replacement body from a file").action(async (id, options) => {
|
|
735630
|
+
await handleMdWriteSection(id, withGlobals(options));
|
|
735631
|
+
});
|
|
735632
|
+
md.command("append <file-id>").description("Append content at the end of the file").option("--content <text>", "Inline content (mutually exclusive with --content-file)").option("--content-file <path>", "Read the content from a file").action(async (id, options) => {
|
|
735633
|
+
await handleMdAppend(id, withGlobals(options));
|
|
735634
|
+
});
|
|
735635
|
+
md.command("insert <file-id>").description("Insert content at a line or character offset").option("--at-line <n>", "Line number to insert at (1-indexed)").option("--at-offset <n>", "Character offset to insert at").option("--content <text>", "Inline content (mutually exclusive with --content-file)").option("--content-file <path>", "Read the content from a file").action(async (id, options) => {
|
|
735636
|
+
await handleMdInsert(id, withGlobals(options));
|
|
735637
|
+
});
|
|
735638
|
+
md.command("delete <file-id>").description("Delete a range of lines or characters").option("--from-line <n>", "1-indexed start line").option("--to-line <n>", "1-indexed end line (inclusive)").option("--from-offset <n>", "Character offset start").option("--to-offset <n>", "Character offset end").action(async (id, options) => {
|
|
735639
|
+
await handleMdDelete(id, withGlobals(options));
|
|
735640
|
+
});
|
|
735641
|
+
md.command("replace <file-id>").description("Find/replace text (single occurrence by default; --all for global)").requiredOption("--find <text>", "Text to search for").option("--replace-with <text>", "Replacement text (mutually exclusive with --replace-with-file)").option("--replace-with-file <path>", "Read the replacement text from a file").option("--all", "Replace every occurrence (default: only the first)").action(async (id, options) => {
|
|
735642
|
+
await handleMdReplace(id, withGlobals(options));
|
|
735643
|
+
});
|
|
735644
|
+
md.command("save <file-id>").description("Confirm-save the current content, optionally snapshotting a new version").option("--create-version", "Snapshot a new Documents::FileVersion before saving").option("--version-comment <text>", "Comment attached to the created version").action(async (id, options) => {
|
|
735645
|
+
await handleMdSave(id, withGlobals(options));
|
|
735646
|
+
});
|
|
735407
735647
|
program2.parse();
|
|
735408
735648
|
/*! Bundled license information:
|
|
735409
735649
|
|