@coana-tech/cli 14.3.5 → 14.3.7
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 +458 -455
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -8440,14 +8440,14 @@ var require_async_iterator = __commonJS({
|
|
|
8440
8440
|
};
|
|
8441
8441
|
}
|
|
8442
8442
|
function readAndResolve(iter) {
|
|
8443
|
-
var
|
|
8444
|
-
if (
|
|
8443
|
+
var resolve18 = iter[kLastResolve];
|
|
8444
|
+
if (resolve18 !== null) {
|
|
8445
8445
|
var data2 = iter[kStream].read();
|
|
8446
8446
|
if (data2 !== null) {
|
|
8447
8447
|
iter[kLastPromise] = null;
|
|
8448
8448
|
iter[kLastResolve] = null;
|
|
8449
8449
|
iter[kLastReject] = null;
|
|
8450
|
-
|
|
8450
|
+
resolve18(createIterResult(data2, false));
|
|
8451
8451
|
}
|
|
8452
8452
|
}
|
|
8453
8453
|
}
|
|
@@ -8455,13 +8455,13 @@ var require_async_iterator = __commonJS({
|
|
|
8455
8455
|
process.nextTick(readAndResolve, iter);
|
|
8456
8456
|
}
|
|
8457
8457
|
function wrapForNext(lastPromise, iter) {
|
|
8458
|
-
return function(
|
|
8458
|
+
return function(resolve18, reject) {
|
|
8459
8459
|
lastPromise.then(function() {
|
|
8460
8460
|
if (iter[kEnded]) {
|
|
8461
|
-
|
|
8461
|
+
resolve18(createIterResult(void 0, true));
|
|
8462
8462
|
return;
|
|
8463
8463
|
}
|
|
8464
|
-
iter[kHandlePromise](
|
|
8464
|
+
iter[kHandlePromise](resolve18, reject);
|
|
8465
8465
|
}, reject);
|
|
8466
8466
|
};
|
|
8467
8467
|
}
|
|
@@ -8481,12 +8481,12 @@ var require_async_iterator = __commonJS({
|
|
|
8481
8481
|
return Promise.resolve(createIterResult(void 0, true));
|
|
8482
8482
|
}
|
|
8483
8483
|
if (this[kStream].destroyed) {
|
|
8484
|
-
return new Promise(function(
|
|
8484
|
+
return new Promise(function(resolve18, reject) {
|
|
8485
8485
|
process.nextTick(function() {
|
|
8486
8486
|
if (_this[kError]) {
|
|
8487
8487
|
reject(_this[kError]);
|
|
8488
8488
|
} else {
|
|
8489
|
-
|
|
8489
|
+
resolve18(createIterResult(void 0, true));
|
|
8490
8490
|
}
|
|
8491
8491
|
});
|
|
8492
8492
|
});
|
|
@@ -8509,13 +8509,13 @@ var require_async_iterator = __commonJS({
|
|
|
8509
8509
|
return this;
|
|
8510
8510
|
}), _defineProperty(_Object$setPrototypeO, "return", function _return() {
|
|
8511
8511
|
var _this2 = this;
|
|
8512
|
-
return new Promise(function(
|
|
8512
|
+
return new Promise(function(resolve18, reject) {
|
|
8513
8513
|
_this2[kStream].destroy(null, function(err) {
|
|
8514
8514
|
if (err) {
|
|
8515
8515
|
reject(err);
|
|
8516
8516
|
return;
|
|
8517
8517
|
}
|
|
8518
|
-
|
|
8518
|
+
resolve18(createIterResult(void 0, true));
|
|
8519
8519
|
});
|
|
8520
8520
|
});
|
|
8521
8521
|
}), _Object$setPrototypeO), AsyncIteratorPrototype);
|
|
@@ -8537,15 +8537,15 @@ var require_async_iterator = __commonJS({
|
|
|
8537
8537
|
value: stream5._readableState.endEmitted,
|
|
8538
8538
|
writable: true
|
|
8539
8539
|
}), _defineProperty(_Object$create, kHandlePromise, {
|
|
8540
|
-
value: function value(
|
|
8540
|
+
value: function value(resolve18, reject) {
|
|
8541
8541
|
var data2 = iterator[kStream].read();
|
|
8542
8542
|
if (data2) {
|
|
8543
8543
|
iterator[kLastPromise] = null;
|
|
8544
8544
|
iterator[kLastResolve] = null;
|
|
8545
8545
|
iterator[kLastReject] = null;
|
|
8546
|
-
|
|
8546
|
+
resolve18(createIterResult(data2, false));
|
|
8547
8547
|
} else {
|
|
8548
|
-
iterator[kLastResolve] =
|
|
8548
|
+
iterator[kLastResolve] = resolve18;
|
|
8549
8549
|
iterator[kLastReject] = reject;
|
|
8550
8550
|
}
|
|
8551
8551
|
},
|
|
@@ -8564,12 +8564,12 @@ var require_async_iterator = __commonJS({
|
|
|
8564
8564
|
iterator[kError] = err;
|
|
8565
8565
|
return;
|
|
8566
8566
|
}
|
|
8567
|
-
var
|
|
8568
|
-
if (
|
|
8567
|
+
var resolve18 = iterator[kLastResolve];
|
|
8568
|
+
if (resolve18 !== null) {
|
|
8569
8569
|
iterator[kLastPromise] = null;
|
|
8570
8570
|
iterator[kLastResolve] = null;
|
|
8571
8571
|
iterator[kLastReject] = null;
|
|
8572
|
-
|
|
8572
|
+
resolve18(createIterResult(void 0, true));
|
|
8573
8573
|
}
|
|
8574
8574
|
iterator[kEnded] = true;
|
|
8575
8575
|
});
|
|
@@ -8584,7 +8584,7 @@ var require_async_iterator = __commonJS({
|
|
|
8584
8584
|
var require_from = __commonJS({
|
|
8585
8585
|
"../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/from.js"(exports2, module2) {
|
|
8586
8586
|
"use strict";
|
|
8587
|
-
function asyncGeneratorStep(gen,
|
|
8587
|
+
function asyncGeneratorStep(gen, resolve18, reject, _next, _throw, key, arg) {
|
|
8588
8588
|
try {
|
|
8589
8589
|
var info = gen[key](arg);
|
|
8590
8590
|
var value = info.value;
|
|
@@ -8593,7 +8593,7 @@ var require_from = __commonJS({
|
|
|
8593
8593
|
return;
|
|
8594
8594
|
}
|
|
8595
8595
|
if (info.done) {
|
|
8596
|
-
|
|
8596
|
+
resolve18(value);
|
|
8597
8597
|
} else {
|
|
8598
8598
|
Promise.resolve(value).then(_next, _throw);
|
|
8599
8599
|
}
|
|
@@ -8601,13 +8601,13 @@ var require_from = __commonJS({
|
|
|
8601
8601
|
function _asyncToGenerator(fn2) {
|
|
8602
8602
|
return function() {
|
|
8603
8603
|
var self2 = this, args2 = arguments;
|
|
8604
|
-
return new Promise(function(
|
|
8604
|
+
return new Promise(function(resolve18, reject) {
|
|
8605
8605
|
var gen = fn2.apply(self2, args2);
|
|
8606
8606
|
function _next(value) {
|
|
8607
|
-
asyncGeneratorStep(gen,
|
|
8607
|
+
asyncGeneratorStep(gen, resolve18, reject, _next, _throw, "next", value);
|
|
8608
8608
|
}
|
|
8609
8609
|
function _throw(err) {
|
|
8610
|
-
asyncGeneratorStep(gen,
|
|
8610
|
+
asyncGeneratorStep(gen, resolve18, reject, _next, _throw, "throw", err);
|
|
8611
8611
|
}
|
|
8612
8612
|
_next(void 0);
|
|
8613
8613
|
});
|
|
@@ -15858,11 +15858,11 @@ var init_async_mutex = __esm({
|
|
|
15858
15858
|
E_CANCELED = new Error("request for lock canceled");
|
|
15859
15859
|
__awaiter$2 = function(thisArg, _arguments, P, generator) {
|
|
15860
15860
|
function adopt(value) {
|
|
15861
|
-
return value instanceof P ? value : new P(function(
|
|
15862
|
-
|
|
15861
|
+
return value instanceof P ? value : new P(function(resolve18) {
|
|
15862
|
+
resolve18(value);
|
|
15863
15863
|
});
|
|
15864
15864
|
}
|
|
15865
|
-
return new (P || (P = Promise))(function(
|
|
15865
|
+
return new (P || (P = Promise))(function(resolve18, reject) {
|
|
15866
15866
|
function fulfilled(value) {
|
|
15867
15867
|
try {
|
|
15868
15868
|
step(generator.next(value));
|
|
@@ -15878,7 +15878,7 @@ var init_async_mutex = __esm({
|
|
|
15878
15878
|
}
|
|
15879
15879
|
}
|
|
15880
15880
|
function step(result) {
|
|
15881
|
-
result.done ?
|
|
15881
|
+
result.done ? resolve18(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
15882
15882
|
}
|
|
15883
15883
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
15884
15884
|
});
|
|
@@ -15893,8 +15893,8 @@ var init_async_mutex = __esm({
|
|
|
15893
15893
|
acquire(weight = 1, priority = 0) {
|
|
15894
15894
|
if (weight <= 0)
|
|
15895
15895
|
throw new Error(`invalid weight ${weight}: must be positive`);
|
|
15896
|
-
return new Promise((
|
|
15897
|
-
const task = { resolve:
|
|
15896
|
+
return new Promise((resolve18, reject) => {
|
|
15897
|
+
const task = { resolve: resolve18, reject, weight, priority };
|
|
15898
15898
|
const i6 = findIndexFromEnd(this._queue, (other) => priority <= other.priority);
|
|
15899
15899
|
if (i6 === -1 && weight <= this._value) {
|
|
15900
15900
|
this._dispatchItem(task);
|
|
@@ -15919,10 +15919,10 @@ var init_async_mutex = __esm({
|
|
|
15919
15919
|
if (this._couldLockImmediately(weight, priority)) {
|
|
15920
15920
|
return Promise.resolve();
|
|
15921
15921
|
} else {
|
|
15922
|
-
return new Promise((
|
|
15922
|
+
return new Promise((resolve18) => {
|
|
15923
15923
|
if (!this._weightedWaiters[weight - 1])
|
|
15924
15924
|
this._weightedWaiters[weight - 1] = [];
|
|
15925
|
-
insertSorted(this._weightedWaiters[weight - 1], { resolve:
|
|
15925
|
+
insertSorted(this._weightedWaiters[weight - 1], { resolve: resolve18, priority });
|
|
15926
15926
|
});
|
|
15927
15927
|
}
|
|
15928
15928
|
}
|
|
@@ -15993,11 +15993,11 @@ var init_async_mutex = __esm({
|
|
|
15993
15993
|
};
|
|
15994
15994
|
__awaiter$1 = function(thisArg, _arguments, P, generator) {
|
|
15995
15995
|
function adopt(value) {
|
|
15996
|
-
return value instanceof P ? value : new P(function(
|
|
15997
|
-
|
|
15996
|
+
return value instanceof P ? value : new P(function(resolve18) {
|
|
15997
|
+
resolve18(value);
|
|
15998
15998
|
});
|
|
15999
15999
|
}
|
|
16000
|
-
return new (P || (P = Promise))(function(
|
|
16000
|
+
return new (P || (P = Promise))(function(resolve18, reject) {
|
|
16001
16001
|
function fulfilled(value) {
|
|
16002
16002
|
try {
|
|
16003
16003
|
step(generator.next(value));
|
|
@@ -16013,7 +16013,7 @@ var init_async_mutex = __esm({
|
|
|
16013
16013
|
}
|
|
16014
16014
|
}
|
|
16015
16015
|
function step(result) {
|
|
16016
|
-
result.done ?
|
|
16016
|
+
result.done ? resolve18(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
16017
16017
|
}
|
|
16018
16018
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
16019
16019
|
});
|
|
@@ -19187,10 +19187,10 @@ var require_awaitify = __commonJS({
|
|
|
19187
19187
|
if (typeof args2[arity - 1] === "function") {
|
|
19188
19188
|
return asyncFn.apply(this, args2);
|
|
19189
19189
|
}
|
|
19190
|
-
return new Promise((
|
|
19190
|
+
return new Promise((resolve18, reject) => {
|
|
19191
19191
|
args2[arity - 1] = (err, ...cbArgs) => {
|
|
19192
19192
|
if (err) return reject(err);
|
|
19193
|
-
|
|
19193
|
+
resolve18(cbArgs.length > 1 ? cbArgs : cbArgs[0]);
|
|
19194
19194
|
};
|
|
19195
19195
|
asyncFn.apply(this, args2);
|
|
19196
19196
|
});
|
|
@@ -19594,13 +19594,13 @@ var require_diagnostics = __commonJS({
|
|
|
19594
19594
|
if (adapters[i6](namespace2)) return true;
|
|
19595
19595
|
}
|
|
19596
19596
|
if (!async.length) return false;
|
|
19597
|
-
return new Promise(function pinky(
|
|
19597
|
+
return new Promise(function pinky(resolve18) {
|
|
19598
19598
|
Promise.all(
|
|
19599
19599
|
async.map(function prebind(fn2) {
|
|
19600
19600
|
return fn2(namespace2);
|
|
19601
19601
|
})
|
|
19602
19602
|
).then(function resolved(values) {
|
|
19603
|
-
|
|
19603
|
+
resolve18(values.some(Boolean));
|
|
19604
19604
|
});
|
|
19605
19605
|
});
|
|
19606
19606
|
}
|
|
@@ -24124,20 +24124,20 @@ var init_logger_singleton = __esm({
|
|
|
24124
24124
|
* in errors that are swallowed by the 'error' event listener in this function.
|
|
24125
24125
|
*/
|
|
24126
24126
|
async finish() {
|
|
24127
|
-
return new Promise((
|
|
24127
|
+
return new Promise((resolve18) => {
|
|
24128
24128
|
if (this.logger instanceof import_console.Console || this.logger.writableEnded) {
|
|
24129
|
-
|
|
24129
|
+
resolve18();
|
|
24130
24130
|
return;
|
|
24131
24131
|
}
|
|
24132
24132
|
this.logger.on("error", () => {
|
|
24133
24133
|
});
|
|
24134
24134
|
this.logger.end(() => {
|
|
24135
24135
|
if (!this.writeStream || this.writeStream.writableEnded) {
|
|
24136
|
-
|
|
24136
|
+
resolve18();
|
|
24137
24137
|
return;
|
|
24138
24138
|
}
|
|
24139
24139
|
if (!this.writeStream.writableEnded) {
|
|
24140
|
-
this.writeStream.end(
|
|
24140
|
+
this.writeStream.end(resolve18);
|
|
24141
24141
|
}
|
|
24142
24142
|
});
|
|
24143
24143
|
});
|
|
@@ -24334,7 +24334,7 @@ ${stderr}`) ? em.slice(0, -stderr.length - 1) : em}`);
|
|
|
24334
24334
|
logger.info(`stderr: ${stderr}`);
|
|
24335
24335
|
}
|
|
24336
24336
|
async function execNeverFail(cmd, dir, options) {
|
|
24337
|
-
return new Promise((
|
|
24337
|
+
return new Promise((resolve18) => {
|
|
24338
24338
|
let args2;
|
|
24339
24339
|
if (typeof cmd !== "string") [cmd, ...args2] = cmd;
|
|
24340
24340
|
const childProcess = (0, import_child_process.execFile)(
|
|
@@ -24342,7 +24342,7 @@ async function execNeverFail(cmd, dir, options) {
|
|
|
24342
24342
|
args2,
|
|
24343
24343
|
{ ...options, cwd: dir, maxBuffer: 1024 * 1024 * 1024, shell: args2 === void 0 },
|
|
24344
24344
|
(error, stdout, stderr) => {
|
|
24345
|
-
|
|
24345
|
+
resolve18({ error, stdout, stderr });
|
|
24346
24346
|
}
|
|
24347
24347
|
);
|
|
24348
24348
|
if (options?.pipe) {
|
|
@@ -24553,11 +24553,11 @@ function __metadata(metadataKey, metadataValue) {
|
|
|
24553
24553
|
}
|
|
24554
24554
|
function __awaiter(thisArg, _arguments, P, generator) {
|
|
24555
24555
|
function adopt(value) {
|
|
24556
|
-
return value instanceof P ? value : new P(function(
|
|
24557
|
-
|
|
24556
|
+
return value instanceof P ? value : new P(function(resolve18) {
|
|
24557
|
+
resolve18(value);
|
|
24558
24558
|
});
|
|
24559
24559
|
}
|
|
24560
|
-
return new (P || (P = Promise))(function(
|
|
24560
|
+
return new (P || (P = Promise))(function(resolve18, reject) {
|
|
24561
24561
|
function fulfilled(value) {
|
|
24562
24562
|
try {
|
|
24563
24563
|
step(generator.next(value));
|
|
@@ -24573,7 +24573,7 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
24573
24573
|
}
|
|
24574
24574
|
}
|
|
24575
24575
|
function step(result) {
|
|
24576
|
-
result.done ?
|
|
24576
|
+
result.done ? resolve18(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
24577
24577
|
}
|
|
24578
24578
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
24579
24579
|
});
|
|
@@ -24756,14 +24756,14 @@ function __asyncValues(o7) {
|
|
|
24756
24756
|
}, i6);
|
|
24757
24757
|
function verb(n2) {
|
|
24758
24758
|
i6[n2] = o7[n2] && function(v) {
|
|
24759
|
-
return new Promise(function(
|
|
24760
|
-
v = o7[n2](v), settle2(
|
|
24759
|
+
return new Promise(function(resolve18, reject) {
|
|
24760
|
+
v = o7[n2](v), settle2(resolve18, reject, v.done, v.value);
|
|
24761
24761
|
});
|
|
24762
24762
|
};
|
|
24763
24763
|
}
|
|
24764
|
-
function settle2(
|
|
24764
|
+
function settle2(resolve18, reject, d2, v) {
|
|
24765
24765
|
Promise.resolve(v).then(function(v2) {
|
|
24766
|
-
|
|
24766
|
+
resolve18({ value: v2, done: d2 });
|
|
24767
24767
|
}, reject);
|
|
24768
24768
|
}
|
|
24769
24769
|
}
|
|
@@ -24959,8 +24959,8 @@ var require_Semaphore = __commonJS({
|
|
|
24959
24959
|
}
|
|
24960
24960
|
if (weight <= 0)
|
|
24961
24961
|
throw new Error("invalid weight ".concat(weight, ": must be positive"));
|
|
24962
|
-
return new Promise(function(
|
|
24963
|
-
var task = { resolve:
|
|
24962
|
+
return new Promise(function(resolve18, reject) {
|
|
24963
|
+
var task = { resolve: resolve18, reject, weight, priority };
|
|
24964
24964
|
var i6 = findIndexFromEnd2(_this._queue, function(other) {
|
|
24965
24965
|
return priority <= other.priority;
|
|
24966
24966
|
});
|
|
@@ -25020,10 +25020,10 @@ var require_Semaphore = __commonJS({
|
|
|
25020
25020
|
if (this._couldLockImmediately(weight, priority)) {
|
|
25021
25021
|
return Promise.resolve();
|
|
25022
25022
|
} else {
|
|
25023
|
-
return new Promise(function(
|
|
25023
|
+
return new Promise(function(resolve18) {
|
|
25024
25024
|
if (!_this._weightedWaiters[weight - 1])
|
|
25025
25025
|
_this._weightedWaiters[weight - 1] = [];
|
|
25026
|
-
insertSorted2(_this._weightedWaiters[weight - 1], { resolve:
|
|
25026
|
+
insertSorted2(_this._weightedWaiters[weight - 1], { resolve: resolve18, priority });
|
|
25027
25027
|
});
|
|
25028
25028
|
}
|
|
25029
25029
|
};
|
|
@@ -25211,7 +25211,7 @@ var require_withTimeout = __commonJS({
|
|
|
25211
25211
|
if (weight !== void 0 && weight <= 0) {
|
|
25212
25212
|
throw new Error("invalid weight ".concat(weight, ": must be positive"));
|
|
25213
25213
|
}
|
|
25214
|
-
return new Promise(function(
|
|
25214
|
+
return new Promise(function(resolve18, reject) {
|
|
25215
25215
|
return tslib_1.__awaiter(_this, void 0, void 0, function() {
|
|
25216
25216
|
var isTimeout, handle, ticket, release, e_1;
|
|
25217
25217
|
return tslib_1.__generator(this, function(_a2) {
|
|
@@ -25233,7 +25233,7 @@ var require_withTimeout = __commonJS({
|
|
|
25233
25233
|
release();
|
|
25234
25234
|
} else {
|
|
25235
25235
|
clearTimeout(handle);
|
|
25236
|
-
|
|
25236
|
+
resolve18(ticket);
|
|
25237
25237
|
}
|
|
25238
25238
|
return [3, 4];
|
|
25239
25239
|
case 3:
|
|
@@ -25312,13 +25312,13 @@ var require_withTimeout = __commonJS({
|
|
|
25312
25312
|
if (weight !== void 0 && weight <= 0) {
|
|
25313
25313
|
throw new Error("invalid weight ".concat(weight, ": must be positive"));
|
|
25314
25314
|
}
|
|
25315
|
-
return new Promise(function(
|
|
25315
|
+
return new Promise(function(resolve18, reject) {
|
|
25316
25316
|
var handle = setTimeout(function() {
|
|
25317
25317
|
return reject(timeoutError);
|
|
25318
25318
|
}, timeout);
|
|
25319
25319
|
(isSemaphore(sync2) ? sync2.waitForUnlock(weight, priority) : sync2.waitForUnlock(priority)).then(function() {
|
|
25320
25320
|
clearTimeout(handle);
|
|
25321
|
-
|
|
25321
|
+
resolve18();
|
|
25322
25322
|
});
|
|
25323
25323
|
});
|
|
25324
25324
|
},
|
|
@@ -25571,12 +25571,12 @@ ${stderr}`) ? em.slice(0, -stderr.length - 1) : em}`);
|
|
|
25571
25571
|
logger_singleton_1.logger.info(`stderr: ${stderr}`);
|
|
25572
25572
|
}
|
|
25573
25573
|
async function execNeverFail2(cmd, dir, options) {
|
|
25574
|
-
return new Promise((
|
|
25574
|
+
return new Promise((resolve18) => {
|
|
25575
25575
|
let args2;
|
|
25576
25576
|
if (typeof cmd !== "string")
|
|
25577
25577
|
[cmd, ...args2] = cmd;
|
|
25578
25578
|
const childProcess = (0, child_process_1.execFile)(cmd, args2, { ...options, cwd: dir, maxBuffer: 1024 * 1024 * 1024, shell: args2 === void 0 }, (error, stdout, stderr) => {
|
|
25579
|
-
|
|
25579
|
+
resolve18({ error, stdout, stderr });
|
|
25580
25580
|
});
|
|
25581
25581
|
if (options?.pipe) {
|
|
25582
25582
|
childProcess.stdout?.on("data", (data2) => {
|
|
@@ -36570,10 +36570,10 @@ var init_CanceledError = __esm({
|
|
|
36570
36570
|
});
|
|
36571
36571
|
|
|
36572
36572
|
// ../../node_modules/.pnpm/axios@1.7.4/node_modules/axios/lib/core/settle.js
|
|
36573
|
-
function settle(
|
|
36573
|
+
function settle(resolve18, reject, response) {
|
|
36574
36574
|
const validateStatus2 = response.config.validateStatus;
|
|
36575
36575
|
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
36576
|
-
|
|
36576
|
+
resolve18(response);
|
|
36577
36577
|
} else {
|
|
36578
36578
|
reject(new AxiosError_default(
|
|
36579
36579
|
"Request failed with status code " + response.status,
|
|
@@ -37864,8 +37864,8 @@ var require_follow_redirects = __commonJS({
|
|
|
37864
37864
|
}
|
|
37865
37865
|
return parsed;
|
|
37866
37866
|
}
|
|
37867
|
-
function resolveUrl(
|
|
37868
|
-
return useNativeURL ? new URL3(
|
|
37867
|
+
function resolveUrl(relative6, base) {
|
|
37868
|
+
return useNativeURL ? new URL3(relative6, base) : parseUrl(url2.resolve(base, relative6));
|
|
37869
37869
|
}
|
|
37870
37870
|
function validateUrl(input) {
|
|
37871
37871
|
if (/^\[/.test(input.hostname) && !/^\[[:0-9a-f]+\]$/i.test(input.hostname)) {
|
|
@@ -38501,7 +38501,7 @@ var init_http = __esm({
|
|
|
38501
38501
|
};
|
|
38502
38502
|
isHttpAdapterSupported = typeof process !== "undefined" && utils_default.kindOf(process) === "process";
|
|
38503
38503
|
wrapAsync = (asyncExecutor) => {
|
|
38504
|
-
return new Promise((
|
|
38504
|
+
return new Promise((resolve18, reject) => {
|
|
38505
38505
|
let onDone;
|
|
38506
38506
|
let isDone;
|
|
38507
38507
|
const done = (value, isRejected) => {
|
|
@@ -38511,7 +38511,7 @@ var init_http = __esm({
|
|
|
38511
38511
|
};
|
|
38512
38512
|
const _resolve = (value) => {
|
|
38513
38513
|
done(value);
|
|
38514
|
-
|
|
38514
|
+
resolve18(value);
|
|
38515
38515
|
};
|
|
38516
38516
|
const _reject = (reason) => {
|
|
38517
38517
|
done(reason, true);
|
|
@@ -38531,7 +38531,7 @@ var init_http = __esm({
|
|
|
38531
38531
|
};
|
|
38532
38532
|
buildAddressEntry = (address, family) => resolveFamily(utils_default.isObject(address) ? address : { address, family });
|
|
38533
38533
|
http_default = isHttpAdapterSupported && function httpAdapter(config2) {
|
|
38534
|
-
return wrapAsync(async function dispatchHttpRequest(
|
|
38534
|
+
return wrapAsync(async function dispatchHttpRequest(resolve18, reject, onDone) {
|
|
38535
38535
|
let { data: data2, lookup, family } = config2;
|
|
38536
38536
|
const { responseType, responseEncoding } = config2;
|
|
38537
38537
|
const method = config2.method.toUpperCase();
|
|
@@ -38583,7 +38583,7 @@ var init_http = __esm({
|
|
|
38583
38583
|
if (protocol === "data:") {
|
|
38584
38584
|
let convertedData;
|
|
38585
38585
|
if (method !== "GET") {
|
|
38586
|
-
return settle(
|
|
38586
|
+
return settle(resolve18, reject, {
|
|
38587
38587
|
status: 405,
|
|
38588
38588
|
statusText: "method not allowed",
|
|
38589
38589
|
headers: {},
|
|
@@ -38605,7 +38605,7 @@ var init_http = __esm({
|
|
|
38605
38605
|
} else if (responseType === "stream") {
|
|
38606
38606
|
convertedData = import_stream4.default.Readable.from(convertedData);
|
|
38607
38607
|
}
|
|
38608
|
-
return settle(
|
|
38608
|
+
return settle(resolve18, reject, {
|
|
38609
38609
|
data: convertedData,
|
|
38610
38610
|
status: 200,
|
|
38611
38611
|
statusText: "OK",
|
|
@@ -38823,7 +38823,7 @@ var init_http = __esm({
|
|
|
38823
38823
|
};
|
|
38824
38824
|
if (responseType === "stream") {
|
|
38825
38825
|
response.data = responseStream;
|
|
38826
|
-
settle(
|
|
38826
|
+
settle(resolve18, reject, response);
|
|
38827
38827
|
} else {
|
|
38828
38828
|
const responseBuffer = [];
|
|
38829
38829
|
let totalResponseBytes = 0;
|
|
@@ -38871,7 +38871,7 @@ var init_http = __esm({
|
|
|
38871
38871
|
} catch (err) {
|
|
38872
38872
|
return reject(AxiosError_default.from(err, null, config2, response.request, response));
|
|
38873
38873
|
}
|
|
38874
|
-
settle(
|
|
38874
|
+
settle(resolve18, reject, response);
|
|
38875
38875
|
});
|
|
38876
38876
|
}
|
|
38877
38877
|
emitter.once("abort", (err) => {
|
|
@@ -39181,7 +39181,7 @@ var init_xhr = __esm({
|
|
|
39181
39181
|
init_resolveConfig();
|
|
39182
39182
|
isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
|
|
39183
39183
|
xhr_default = isXHRAdapterSupported && function(config2) {
|
|
39184
|
-
return new Promise(function dispatchXhrRequest(
|
|
39184
|
+
return new Promise(function dispatchXhrRequest(resolve18, reject) {
|
|
39185
39185
|
const _config = resolveConfig_default(config2);
|
|
39186
39186
|
let requestData = _config.data;
|
|
39187
39187
|
const requestHeaders = AxiosHeaders_default.from(_config.headers).normalize();
|
|
@@ -39215,7 +39215,7 @@ var init_xhr = __esm({
|
|
|
39215
39215
|
request
|
|
39216
39216
|
};
|
|
39217
39217
|
settle(function _resolve(value) {
|
|
39218
|
-
|
|
39218
|
+
resolve18(value);
|
|
39219
39219
|
done();
|
|
39220
39220
|
}, function _reject(err) {
|
|
39221
39221
|
reject(err);
|
|
@@ -39564,8 +39564,8 @@ var init_fetch = __esm({
|
|
|
39564
39564
|
let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](response, config2);
|
|
39565
39565
|
!isStreamResponse && onFinish();
|
|
39566
39566
|
stopTimeout && stopTimeout();
|
|
39567
|
-
return await new Promise((
|
|
39568
|
-
settle(
|
|
39567
|
+
return await new Promise((resolve18, reject) => {
|
|
39568
|
+
settle(resolve18, reject, {
|
|
39569
39569
|
data: responseData,
|
|
39570
39570
|
headers: AxiosHeaders_default.from(response.headers),
|
|
39571
39571
|
status: response.status,
|
|
@@ -39965,8 +39965,8 @@ var init_CancelToken = __esm({
|
|
|
39965
39965
|
throw new TypeError("executor must be a function.");
|
|
39966
39966
|
}
|
|
39967
39967
|
let resolvePromise;
|
|
39968
|
-
this.promise = new Promise(function promiseExecutor(
|
|
39969
|
-
resolvePromise =
|
|
39968
|
+
this.promise = new Promise(function promiseExecutor(resolve18) {
|
|
39969
|
+
resolvePromise = resolve18;
|
|
39970
39970
|
});
|
|
39971
39971
|
const token = this;
|
|
39972
39972
|
this.promise.then((cancel) => {
|
|
@@ -39979,9 +39979,9 @@ var init_CancelToken = __esm({
|
|
|
39979
39979
|
});
|
|
39980
39980
|
this.promise.then = (onfulfilled) => {
|
|
39981
39981
|
let _resolve;
|
|
39982
|
-
const promise = new Promise((
|
|
39983
|
-
token.subscribe(
|
|
39984
|
-
_resolve =
|
|
39982
|
+
const promise = new Promise((resolve18) => {
|
|
39983
|
+
token.subscribe(resolve18);
|
|
39984
|
+
_resolve = resolve18;
|
|
39985
39985
|
}).then(onfulfilled);
|
|
39986
39986
|
promise.cancel = function reject() {
|
|
39987
39987
|
token.unsubscribe(_resolve);
|
|
@@ -43911,10 +43911,10 @@ var init_esm3 = __esm({
|
|
|
43911
43911
|
* Return a void Promise that resolves once the stream ends.
|
|
43912
43912
|
*/
|
|
43913
43913
|
async promise() {
|
|
43914
|
-
return new Promise((
|
|
43914
|
+
return new Promise((resolve18, reject) => {
|
|
43915
43915
|
this.on(DESTROYED, () => reject(new Error("stream destroyed")));
|
|
43916
43916
|
this.on("error", (er) => reject(er));
|
|
43917
|
-
this.on("end", () =>
|
|
43917
|
+
this.on("end", () => resolve18());
|
|
43918
43918
|
});
|
|
43919
43919
|
}
|
|
43920
43920
|
/**
|
|
@@ -43938,7 +43938,7 @@ var init_esm3 = __esm({
|
|
|
43938
43938
|
return Promise.resolve({ done: false, value: res });
|
|
43939
43939
|
if (this[EOF])
|
|
43940
43940
|
return stop();
|
|
43941
|
-
let
|
|
43941
|
+
let resolve18;
|
|
43942
43942
|
let reject;
|
|
43943
43943
|
const onerr = (er) => {
|
|
43944
43944
|
this.off("data", ondata);
|
|
@@ -43952,19 +43952,19 @@ var init_esm3 = __esm({
|
|
|
43952
43952
|
this.off("end", onend);
|
|
43953
43953
|
this.off(DESTROYED, ondestroy);
|
|
43954
43954
|
this.pause();
|
|
43955
|
-
|
|
43955
|
+
resolve18({ value, done: !!this[EOF] });
|
|
43956
43956
|
};
|
|
43957
43957
|
const onend = () => {
|
|
43958
43958
|
this.off("error", onerr);
|
|
43959
43959
|
this.off("data", ondata);
|
|
43960
43960
|
this.off(DESTROYED, ondestroy);
|
|
43961
43961
|
stop();
|
|
43962
|
-
|
|
43962
|
+
resolve18({ done: true, value: void 0 });
|
|
43963
43963
|
};
|
|
43964
43964
|
const ondestroy = () => onerr(new Error("stream destroyed"));
|
|
43965
43965
|
return new Promise((res2, rej) => {
|
|
43966
43966
|
reject = rej;
|
|
43967
|
-
|
|
43967
|
+
resolve18 = res2;
|
|
43968
43968
|
this.once(DESTROYED, ondestroy);
|
|
43969
43969
|
this.once("error", onerr);
|
|
43970
43970
|
this.once("end", onend);
|
|
@@ -44946,9 +44946,9 @@ var init_esm4 = __esm({
|
|
|
44946
44946
|
if (this.#asyncReaddirInFlight) {
|
|
44947
44947
|
await this.#asyncReaddirInFlight;
|
|
44948
44948
|
} else {
|
|
44949
|
-
let
|
|
44949
|
+
let resolve18 = () => {
|
|
44950
44950
|
};
|
|
44951
|
-
this.#asyncReaddirInFlight = new Promise((res) =>
|
|
44951
|
+
this.#asyncReaddirInFlight = new Promise((res) => resolve18 = res);
|
|
44952
44952
|
try {
|
|
44953
44953
|
for (const e of await this.#fs.promises.readdir(fullpath, {
|
|
44954
44954
|
withFileTypes: true
|
|
@@ -44961,7 +44961,7 @@ var init_esm4 = __esm({
|
|
|
44961
44961
|
children2.provisional = 0;
|
|
44962
44962
|
}
|
|
44963
44963
|
this.#asyncReaddirInFlight = void 0;
|
|
44964
|
-
|
|
44964
|
+
resolve18();
|
|
44965
44965
|
}
|
|
44966
44966
|
return children2.slice(0, children2.provisional);
|
|
44967
44967
|
}
|
|
@@ -46036,10 +46036,10 @@ var init_ignore = __esm({
|
|
|
46036
46036
|
ignored(p3) {
|
|
46037
46037
|
const fullpath = p3.fullpath();
|
|
46038
46038
|
const fullpaths = `${fullpath}/`;
|
|
46039
|
-
const
|
|
46040
|
-
const relatives = `${
|
|
46039
|
+
const relative6 = p3.relative() || ".";
|
|
46040
|
+
const relatives = `${relative6}/`;
|
|
46041
46041
|
for (const m2 of this.relative) {
|
|
46042
|
-
if (m2.match(
|
|
46042
|
+
if (m2.match(relative6) || m2.match(relatives))
|
|
46043
46043
|
return true;
|
|
46044
46044
|
}
|
|
46045
46045
|
for (const m2 of this.absolute) {
|
|
@@ -46050,9 +46050,9 @@ var init_ignore = __esm({
|
|
|
46050
46050
|
}
|
|
46051
46051
|
childrenIgnored(p3) {
|
|
46052
46052
|
const fullpath = p3.fullpath() + "/";
|
|
46053
|
-
const
|
|
46053
|
+
const relative6 = (p3.relative() || ".") + "/";
|
|
46054
46054
|
for (const m2 of this.relativeChildren) {
|
|
46055
|
-
if (m2.match(
|
|
46055
|
+
if (m2.match(relative6))
|
|
46056
46056
|
return true;
|
|
46057
46057
|
}
|
|
46058
46058
|
for (const m2 of this.absoluteChildren) {
|
|
@@ -58034,13 +58034,13 @@ var require_lib3 = __commonJS({
|
|
|
58034
58034
|
};
|
|
58035
58035
|
}
|
|
58036
58036
|
function serializeActiveFile(absoluteName) {
|
|
58037
|
-
return new Promise((
|
|
58037
|
+
return new Promise((resolve18) => {
|
|
58038
58038
|
if (!activeFiles[absoluteName]) {
|
|
58039
58039
|
activeFiles[absoluteName] = [];
|
|
58040
58040
|
}
|
|
58041
|
-
activeFiles[absoluteName].push(
|
|
58041
|
+
activeFiles[absoluteName].push(resolve18);
|
|
58042
58042
|
if (activeFiles[absoluteName].length === 1) {
|
|
58043
|
-
|
|
58043
|
+
resolve18();
|
|
58044
58044
|
}
|
|
58045
58045
|
});
|
|
58046
58046
|
}
|
|
@@ -59312,12 +59312,12 @@ var require_isexe = __commonJS({
|
|
|
59312
59312
|
if (typeof Promise !== "function") {
|
|
59313
59313
|
throw new TypeError("callback not provided");
|
|
59314
59314
|
}
|
|
59315
|
-
return new Promise(function(
|
|
59315
|
+
return new Promise(function(resolve18, reject) {
|
|
59316
59316
|
isexe(path3, options || {}, function(er, is4) {
|
|
59317
59317
|
if (er) {
|
|
59318
59318
|
reject(er);
|
|
59319
59319
|
} else {
|
|
59320
|
-
|
|
59320
|
+
resolve18(is4);
|
|
59321
59321
|
}
|
|
59322
59322
|
});
|
|
59323
59323
|
});
|
|
@@ -59379,27 +59379,27 @@ var require_which = __commonJS({
|
|
|
59379
59379
|
opt = {};
|
|
59380
59380
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
59381
59381
|
const found = [];
|
|
59382
|
-
const step = (i6) => new Promise((
|
|
59382
|
+
const step = (i6) => new Promise((resolve18, reject) => {
|
|
59383
59383
|
if (i6 === pathEnv.length)
|
|
59384
|
-
return opt.all && found.length ?
|
|
59384
|
+
return opt.all && found.length ? resolve18(found) : reject(getNotFoundError(cmd));
|
|
59385
59385
|
const ppRaw = pathEnv[i6];
|
|
59386
59386
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
59387
59387
|
const pCmd = path3.join(pathPart, cmd);
|
|
59388
59388
|
const p3 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
59389
|
-
|
|
59389
|
+
resolve18(subStep(p3, i6, 0));
|
|
59390
59390
|
});
|
|
59391
|
-
const subStep = (p3, i6, ii) => new Promise((
|
|
59391
|
+
const subStep = (p3, i6, ii) => new Promise((resolve18, reject) => {
|
|
59392
59392
|
if (ii === pathExt.length)
|
|
59393
|
-
return
|
|
59393
|
+
return resolve18(step(i6 + 1));
|
|
59394
59394
|
const ext2 = pathExt[ii];
|
|
59395
59395
|
isexe(p3 + ext2, { pathExt: pathExtExe }, (er, is4) => {
|
|
59396
59396
|
if (!er && is4) {
|
|
59397
59397
|
if (opt.all)
|
|
59398
59398
|
found.push(p3 + ext2);
|
|
59399
59399
|
else
|
|
59400
|
-
return
|
|
59400
|
+
return resolve18(p3 + ext2);
|
|
59401
59401
|
}
|
|
59402
|
-
return
|
|
59402
|
+
return resolve18(subStep(p3, i6, ii + 1));
|
|
59403
59403
|
});
|
|
59404
59404
|
});
|
|
59405
59405
|
return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
|
|
@@ -59475,27 +59475,27 @@ var require_which2 = __commonJS({
|
|
|
59475
59475
|
opt = {};
|
|
59476
59476
|
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
59477
59477
|
const found = [];
|
|
59478
|
-
const step = (i6) => new Promise((
|
|
59478
|
+
const step = (i6) => new Promise((resolve18, reject) => {
|
|
59479
59479
|
if (i6 === pathEnv.length)
|
|
59480
|
-
return opt.all && found.length ?
|
|
59480
|
+
return opt.all && found.length ? resolve18(found) : reject(getNotFoundError(cmd));
|
|
59481
59481
|
const ppRaw = pathEnv[i6];
|
|
59482
59482
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
59483
59483
|
const pCmd = path3.join(pathPart, cmd);
|
|
59484
59484
|
const p3 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
59485
|
-
|
|
59485
|
+
resolve18(subStep(p3, i6, 0));
|
|
59486
59486
|
});
|
|
59487
|
-
const subStep = (p3, i6, ii) => new Promise((
|
|
59487
|
+
const subStep = (p3, i6, ii) => new Promise((resolve18, reject) => {
|
|
59488
59488
|
if (ii === pathExt.length)
|
|
59489
|
-
return
|
|
59489
|
+
return resolve18(step(i6 + 1));
|
|
59490
59490
|
const ext2 = pathExt[ii];
|
|
59491
59491
|
isexe(p3 + ext2, { pathExt: pathExtExe }, (er, is4) => {
|
|
59492
59492
|
if (!er && is4) {
|
|
59493
59493
|
if (opt.all)
|
|
59494
59494
|
found.push(p3 + ext2);
|
|
59495
59495
|
else
|
|
59496
|
-
return
|
|
59496
|
+
return resolve18(p3 + ext2);
|
|
59497
59497
|
}
|
|
59498
|
-
return
|
|
59498
|
+
return resolve18(subStep(p3, i6, ii + 1));
|
|
59499
59499
|
});
|
|
59500
59500
|
});
|
|
59501
59501
|
return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
|
|
@@ -60437,7 +60437,7 @@ var require_kill = __commonJS({
|
|
|
60437
60437
|
return spawnedPromise;
|
|
60438
60438
|
}
|
|
60439
60439
|
let timeoutId;
|
|
60440
|
-
const timeoutPromise = new Promise((
|
|
60440
|
+
const timeoutPromise = new Promise((resolve18, reject) => {
|
|
60441
60441
|
timeoutId = setTimeout(() => {
|
|
60442
60442
|
timeoutKill(spawned, killSignal, reject);
|
|
60443
60443
|
}, timeout);
|
|
@@ -60543,7 +60543,7 @@ var require_get_stream = __commonJS({
|
|
|
60543
60543
|
};
|
|
60544
60544
|
const { maxBuffer } = options;
|
|
60545
60545
|
const stream6 = bufferStream(options);
|
|
60546
|
-
await new Promise((
|
|
60546
|
+
await new Promise((resolve18, reject) => {
|
|
60547
60547
|
const rejectPromise = (error) => {
|
|
60548
60548
|
if (error && stream6.getBufferedLength() <= BufferConstants.MAX_LENGTH) {
|
|
60549
60549
|
error.bufferedData = stream6.getBufferedValue();
|
|
@@ -60553,7 +60553,7 @@ var require_get_stream = __commonJS({
|
|
|
60553
60553
|
(async () => {
|
|
60554
60554
|
try {
|
|
60555
60555
|
await streamPipelinePromisified(inputStream, stream6);
|
|
60556
|
-
|
|
60556
|
+
resolve18();
|
|
60557
60557
|
} catch (error) {
|
|
60558
60558
|
rejectPromise(error);
|
|
60559
60559
|
}
|
|
@@ -60710,9 +60710,9 @@ var require_promise = __commonJS({
|
|
|
60710
60710
|
return spawned;
|
|
60711
60711
|
};
|
|
60712
60712
|
var getSpawnedPromise = (spawned) => {
|
|
60713
|
-
return new Promise((
|
|
60713
|
+
return new Promise((resolve18, reject) => {
|
|
60714
60714
|
spawned.on("exit", (exitCode, signal) => {
|
|
60715
|
-
|
|
60715
|
+
resolve18({ exitCode, signal });
|
|
60716
60716
|
});
|
|
60717
60717
|
spawned.on("error", (error) => {
|
|
60718
60718
|
reject(error);
|
|
@@ -63630,9 +63630,9 @@ var require_graceful_git = __commonJS({
|
|
|
63630
63630
|
async function gracefulGit(args2, opts) {
|
|
63631
63631
|
opts = opts || {};
|
|
63632
63632
|
const operation = retry.operation(Object.assign({}, RETRY_OPTIONS, opts));
|
|
63633
|
-
return new Promise((
|
|
63633
|
+
return new Promise((resolve18, reject) => {
|
|
63634
63634
|
operation.attempt((currentAttempt) => {
|
|
63635
|
-
noRetry(args2, opts).then(
|
|
63635
|
+
noRetry(args2, opts).then(resolve18).catch((err) => {
|
|
63636
63636
|
if (operation.retry(err)) {
|
|
63637
63637
|
return;
|
|
63638
63638
|
}
|
|
@@ -65024,7 +65024,7 @@ var require_dist3 = __commonJS({
|
|
|
65024
65024
|
};
|
|
65025
65025
|
var supportedSchemas = /* @__PURE__ */ new Set(["data:", "http:", "https:"]);
|
|
65026
65026
|
async function fetch3(url3, options_) {
|
|
65027
|
-
return new Promise((
|
|
65027
|
+
return new Promise((resolve18, reject) => {
|
|
65028
65028
|
const request = new Request2(url3, options_);
|
|
65029
65029
|
const options = getNodeRequestOptions(request);
|
|
65030
65030
|
if (!supportedSchemas.has(options.protocol)) {
|
|
@@ -65033,7 +65033,7 @@ var require_dist3 = __commonJS({
|
|
|
65033
65033
|
if (options.protocol === "data:") {
|
|
65034
65034
|
const data2 = dataUriToBuffer(request.url);
|
|
65035
65035
|
const response2 = new Response2(data2, { headers: { "Content-Type": data2.typeFull } });
|
|
65036
|
-
|
|
65036
|
+
resolve18(response2);
|
|
65037
65037
|
return;
|
|
65038
65038
|
}
|
|
65039
65039
|
const send = (options.protocol === "https:" ? https2 : http2).request;
|
|
@@ -65122,7 +65122,7 @@ var require_dist3 = __commonJS({
|
|
|
65122
65122
|
requestOptions.body = void 0;
|
|
65123
65123
|
requestOptions.headers.delete("content-length");
|
|
65124
65124
|
}
|
|
65125
|
-
|
|
65125
|
+
resolve18(fetch3(new Request2(locationURL, requestOptions)));
|
|
65126
65126
|
finalize();
|
|
65127
65127
|
return;
|
|
65128
65128
|
}
|
|
@@ -65151,7 +65151,7 @@ var require_dist3 = __commonJS({
|
|
|
65151
65151
|
const codings = headers.get("Content-Encoding");
|
|
65152
65152
|
if (!request.compress || request.method === "HEAD" || codings === null || response_.statusCode === 204 || response_.statusCode === 304) {
|
|
65153
65153
|
response = new Response2(body, responseOptions);
|
|
65154
|
-
|
|
65154
|
+
resolve18(response);
|
|
65155
65155
|
return;
|
|
65156
65156
|
}
|
|
65157
65157
|
const zlibOptions2 = {
|
|
@@ -65163,7 +65163,7 @@ var require_dist3 = __commonJS({
|
|
|
65163
65163
|
reject(error);
|
|
65164
65164
|
});
|
|
65165
65165
|
response = new Response2(body, responseOptions);
|
|
65166
|
-
|
|
65166
|
+
resolve18(response);
|
|
65167
65167
|
return;
|
|
65168
65168
|
}
|
|
65169
65169
|
if (codings === "deflate" || codings === "x-deflate") {
|
|
@@ -65181,7 +65181,7 @@ var require_dist3 = __commonJS({
|
|
|
65181
65181
|
});
|
|
65182
65182
|
}
|
|
65183
65183
|
response = new Response2(body, responseOptions);
|
|
65184
|
-
|
|
65184
|
+
resolve18(response);
|
|
65185
65185
|
});
|
|
65186
65186
|
return;
|
|
65187
65187
|
}
|
|
@@ -65190,11 +65190,11 @@ var require_dist3 = __commonJS({
|
|
|
65190
65190
|
reject(error);
|
|
65191
65191
|
});
|
|
65192
65192
|
response = new Response2(body, responseOptions);
|
|
65193
|
-
|
|
65193
|
+
resolve18(response);
|
|
65194
65194
|
return;
|
|
65195
65195
|
}
|
|
65196
65196
|
response = new Response2(body, responseOptions);
|
|
65197
|
-
|
|
65197
|
+
resolve18(response);
|
|
65198
65198
|
});
|
|
65199
65199
|
writeToStream(request_, request);
|
|
65200
65200
|
});
|
|
@@ -65272,14 +65272,14 @@ var require_fetch = __commonJS({
|
|
|
65272
65272
|
retries: maxRetries
|
|
65273
65273
|
});
|
|
65274
65274
|
try {
|
|
65275
|
-
return await new Promise((
|
|
65275
|
+
return await new Promise((resolve18, reject) => {
|
|
65276
65276
|
op.attempt(async (attempt) => {
|
|
65277
65277
|
try {
|
|
65278
65278
|
const res = await (0, node_fetch_1.default)(url2, opts);
|
|
65279
65279
|
if (res.status >= 500 && res.status < 600 || [408, 409, 420, 429].includes(res.status)) {
|
|
65280
65280
|
throw new ResponseError(res);
|
|
65281
65281
|
} else {
|
|
65282
|
-
|
|
65282
|
+
resolve18(res);
|
|
65283
65283
|
}
|
|
65284
65284
|
} catch (error) {
|
|
65285
65285
|
(0, assert_1.default)(util_1.default.types.isNativeError(error));
|
|
@@ -67554,12 +67554,12 @@ var require_promisify = __commonJS({
|
|
|
67554
67554
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
67555
67555
|
function promisify2(fn2) {
|
|
67556
67556
|
return function(req, opts) {
|
|
67557
|
-
return new Promise((
|
|
67557
|
+
return new Promise((resolve18, reject) => {
|
|
67558
67558
|
fn2.call(this, req, opts, (err, rtn) => {
|
|
67559
67559
|
if (err) {
|
|
67560
67560
|
reject(err);
|
|
67561
67561
|
} else {
|
|
67562
|
-
|
|
67562
|
+
resolve18(rtn);
|
|
67563
67563
|
}
|
|
67564
67564
|
});
|
|
67565
67565
|
});
|
|
@@ -67763,7 +67763,7 @@ var require_parse_proxy_response = __commonJS({
|
|
|
67763
67763
|
var debug_1 = __importDefault2(require_src3());
|
|
67764
67764
|
var debug = debug_1.default("https-proxy-agent:parse-proxy-response");
|
|
67765
67765
|
function parseProxyResponse(socket) {
|
|
67766
|
-
return new Promise((
|
|
67766
|
+
return new Promise((resolve18, reject) => {
|
|
67767
67767
|
let buffersLength = 0;
|
|
67768
67768
|
const buffers = [];
|
|
67769
67769
|
function read() {
|
|
@@ -67803,7 +67803,7 @@ var require_parse_proxy_response = __commonJS({
|
|
|
67803
67803
|
const firstLine = buffered.toString("ascii", 0, buffered.indexOf("\r\n"));
|
|
67804
67804
|
const statusCode = +firstLine.split(" ")[1];
|
|
67805
67805
|
debug("got proxy server response: %o", firstLine);
|
|
67806
|
-
|
|
67806
|
+
resolve18({
|
|
67807
67807
|
statusCode,
|
|
67808
67808
|
buffered
|
|
67809
67809
|
});
|
|
@@ -67824,11 +67824,11 @@ var require_agent2 = __commonJS({
|
|
|
67824
67824
|
"use strict";
|
|
67825
67825
|
var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
67826
67826
|
function adopt(value) {
|
|
67827
|
-
return value instanceof P ? value : new P(function(
|
|
67828
|
-
|
|
67827
|
+
return value instanceof P ? value : new P(function(resolve18) {
|
|
67828
|
+
resolve18(value);
|
|
67829
67829
|
});
|
|
67830
67830
|
}
|
|
67831
|
-
return new (P || (P = Promise))(function(
|
|
67831
|
+
return new (P || (P = Promise))(function(resolve18, reject) {
|
|
67832
67832
|
function fulfilled(value) {
|
|
67833
67833
|
try {
|
|
67834
67834
|
step(generator.next(value));
|
|
@@ -67844,7 +67844,7 @@ var require_agent2 = __commonJS({
|
|
|
67844
67844
|
}
|
|
67845
67845
|
}
|
|
67846
67846
|
function step(result) {
|
|
67847
|
-
result.done ?
|
|
67847
|
+
result.done ? resolve18(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
67848
67848
|
}
|
|
67849
67849
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
67850
67850
|
});
|
|
@@ -67984,7 +67984,7 @@ var require_dist4 = __commonJS({
|
|
|
67984
67984
|
"use strict";
|
|
67985
67985
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
67986
67986
|
function once7(emitter, name, { signal } = {}) {
|
|
67987
|
-
return new Promise((
|
|
67987
|
+
return new Promise((resolve18, reject) => {
|
|
67988
67988
|
function cleanup() {
|
|
67989
67989
|
signal === null || signal === void 0 ? void 0 : signal.removeEventListener("abort", cleanup);
|
|
67990
67990
|
emitter.removeListener(name, onEvent);
|
|
@@ -67992,7 +67992,7 @@ var require_dist4 = __commonJS({
|
|
|
67992
67992
|
}
|
|
67993
67993
|
function onEvent(...args2) {
|
|
67994
67994
|
cleanup();
|
|
67995
|
-
|
|
67995
|
+
resolve18(args2);
|
|
67996
67996
|
}
|
|
67997
67997
|
function onError(err) {
|
|
67998
67998
|
cleanup();
|
|
@@ -68013,11 +68013,11 @@ var require_agent3 = __commonJS({
|
|
|
68013
68013
|
"use strict";
|
|
68014
68014
|
var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
68015
68015
|
function adopt(value) {
|
|
68016
|
-
return value instanceof P ? value : new P(function(
|
|
68017
|
-
|
|
68016
|
+
return value instanceof P ? value : new P(function(resolve18) {
|
|
68017
|
+
resolve18(value);
|
|
68018
68018
|
});
|
|
68019
68019
|
}
|
|
68020
|
-
return new (P || (P = Promise))(function(
|
|
68020
|
+
return new (P || (P = Promise))(function(resolve18, reject) {
|
|
68021
68021
|
function fulfilled(value) {
|
|
68022
68022
|
try {
|
|
68023
68023
|
step(generator.next(value));
|
|
@@ -68033,7 +68033,7 @@ var require_agent3 = __commonJS({
|
|
|
68033
68033
|
}
|
|
68034
68034
|
}
|
|
68035
68035
|
function step(result) {
|
|
68036
|
-
result.done ?
|
|
68036
|
+
result.done ? resolve18(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
68037
68037
|
}
|
|
68038
68038
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
68039
68039
|
});
|
|
@@ -69961,11 +69961,11 @@ var require_socksclient = __commonJS({
|
|
|
69961
69961
|
"use strict";
|
|
69962
69962
|
var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
69963
69963
|
function adopt(value) {
|
|
69964
|
-
return value instanceof P ? value : new P(function(
|
|
69965
|
-
|
|
69964
|
+
return value instanceof P ? value : new P(function(resolve18) {
|
|
69965
|
+
resolve18(value);
|
|
69966
69966
|
});
|
|
69967
69967
|
}
|
|
69968
|
-
return new (P || (P = Promise))(function(
|
|
69968
|
+
return new (P || (P = Promise))(function(resolve18, reject) {
|
|
69969
69969
|
function fulfilled(value) {
|
|
69970
69970
|
try {
|
|
69971
69971
|
step(generator.next(value));
|
|
@@ -69981,7 +69981,7 @@ var require_socksclient = __commonJS({
|
|
|
69981
69981
|
}
|
|
69982
69982
|
}
|
|
69983
69983
|
function step(result) {
|
|
69984
|
-
result.done ?
|
|
69984
|
+
result.done ? resolve18(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
69985
69985
|
}
|
|
69986
69986
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
69987
69987
|
});
|
|
@@ -70015,13 +70015,13 @@ var require_socksclient = __commonJS({
|
|
|
70015
70015
|
* @returns { Promise }
|
|
70016
70016
|
*/
|
|
70017
70017
|
static createConnection(options, callback) {
|
|
70018
|
-
return new Promise((
|
|
70018
|
+
return new Promise((resolve18, reject) => {
|
|
70019
70019
|
try {
|
|
70020
70020
|
(0, helpers_1.validateSocksClientOptions)(options, ["connect"]);
|
|
70021
70021
|
} catch (err) {
|
|
70022
70022
|
if (typeof callback === "function") {
|
|
70023
70023
|
callback(err);
|
|
70024
|
-
return
|
|
70024
|
+
return resolve18(err);
|
|
70025
70025
|
} else {
|
|
70026
70026
|
return reject(err);
|
|
70027
70027
|
}
|
|
@@ -70032,16 +70032,16 @@ var require_socksclient = __commonJS({
|
|
|
70032
70032
|
client.removeAllListeners();
|
|
70033
70033
|
if (typeof callback === "function") {
|
|
70034
70034
|
callback(null, info);
|
|
70035
|
-
|
|
70035
|
+
resolve18(info);
|
|
70036
70036
|
} else {
|
|
70037
|
-
|
|
70037
|
+
resolve18(info);
|
|
70038
70038
|
}
|
|
70039
70039
|
});
|
|
70040
70040
|
client.once("error", (err) => {
|
|
70041
70041
|
client.removeAllListeners();
|
|
70042
70042
|
if (typeof callback === "function") {
|
|
70043
70043
|
callback(err);
|
|
70044
|
-
|
|
70044
|
+
resolve18(err);
|
|
70045
70045
|
} else {
|
|
70046
70046
|
reject(err);
|
|
70047
70047
|
}
|
|
@@ -70058,13 +70058,13 @@ var require_socksclient = __commonJS({
|
|
|
70058
70058
|
* @returns { Promise }
|
|
70059
70059
|
*/
|
|
70060
70060
|
static createConnectionChain(options, callback) {
|
|
70061
|
-
return new Promise((
|
|
70061
|
+
return new Promise((resolve18, reject) => __awaiter2(this, void 0, void 0, function* () {
|
|
70062
70062
|
try {
|
|
70063
70063
|
(0, helpers_1.validateSocksClientChainOptions)(options);
|
|
70064
70064
|
} catch (err) {
|
|
70065
70065
|
if (typeof callback === "function") {
|
|
70066
70066
|
callback(err);
|
|
70067
|
-
return
|
|
70067
|
+
return resolve18(err);
|
|
70068
70068
|
} else {
|
|
70069
70069
|
return reject(err);
|
|
70070
70070
|
}
|
|
@@ -70090,14 +70090,14 @@ var require_socksclient = __commonJS({
|
|
|
70090
70090
|
}
|
|
70091
70091
|
if (typeof callback === "function") {
|
|
70092
70092
|
callback(null, { socket: sock });
|
|
70093
|
-
|
|
70093
|
+
resolve18({ socket: sock });
|
|
70094
70094
|
} else {
|
|
70095
|
-
|
|
70095
|
+
resolve18({ socket: sock });
|
|
70096
70096
|
}
|
|
70097
70097
|
} catch (err) {
|
|
70098
70098
|
if (typeof callback === "function") {
|
|
70099
70099
|
callback(err);
|
|
70100
|
-
|
|
70100
|
+
resolve18(err);
|
|
70101
70101
|
} else {
|
|
70102
70102
|
reject(err);
|
|
70103
70103
|
}
|
|
@@ -70665,11 +70665,11 @@ var require_agent4 = __commonJS({
|
|
|
70665
70665
|
"use strict";
|
|
70666
70666
|
var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
70667
70667
|
function adopt(value) {
|
|
70668
|
-
return value instanceof P ? value : new P(function(
|
|
70669
|
-
|
|
70668
|
+
return value instanceof P ? value : new P(function(resolve18) {
|
|
70669
|
+
resolve18(value);
|
|
70670
70670
|
});
|
|
70671
70671
|
}
|
|
70672
|
-
return new (P || (P = Promise))(function(
|
|
70672
|
+
return new (P || (P = Promise))(function(resolve18, reject) {
|
|
70673
70673
|
function fulfilled(value) {
|
|
70674
70674
|
try {
|
|
70675
70675
|
step(generator.next(value));
|
|
@@ -70685,7 +70685,7 @@ var require_agent4 = __commonJS({
|
|
|
70685
70685
|
}
|
|
70686
70686
|
}
|
|
70687
70687
|
function step(result) {
|
|
70688
|
-
result.done ?
|
|
70688
|
+
result.done ? resolve18(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
70689
70689
|
}
|
|
70690
70690
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
70691
70691
|
});
|
|
@@ -70702,12 +70702,12 @@ var require_agent4 = __commonJS({
|
|
|
70702
70702
|
var socks_1 = require_build();
|
|
70703
70703
|
var debug = debug_1.default("socks-proxy-agent");
|
|
70704
70704
|
function dnsLookup(host) {
|
|
70705
|
-
return new Promise((
|
|
70705
|
+
return new Promise((resolve18, reject) => {
|
|
70706
70706
|
dns_1.default.lookup(host, (err, res) => {
|
|
70707
70707
|
if (err) {
|
|
70708
70708
|
reject(err);
|
|
70709
70709
|
} else {
|
|
70710
|
-
|
|
70710
|
+
resolve18(res);
|
|
70711
70711
|
}
|
|
70712
70712
|
});
|
|
70713
70713
|
});
|
|
@@ -73520,9 +73520,9 @@ var require_write = __commonJS({
|
|
|
73520
73520
|
var lockfileName_1 = require_lockfileName();
|
|
73521
73521
|
var lockfileFormatConverters_1 = require_lockfileFormatConverters();
|
|
73522
73522
|
async function writeFileAtomic(filename, data2) {
|
|
73523
|
-
return new Promise((
|
|
73523
|
+
return new Promise((resolve18, reject) => {
|
|
73524
73524
|
(0, write_file_atomic_1.default)(filename, data2, {}, (err) => {
|
|
73525
|
-
err != null ? reject(err) :
|
|
73525
|
+
err != null ? reject(err) : resolve18();
|
|
73526
73526
|
});
|
|
73527
73527
|
});
|
|
73528
73528
|
}
|
|
@@ -73626,14 +73626,14 @@ var require_existsWantedLockfile = __commonJS({
|
|
|
73626
73626
|
mergeGitBranchLockfiles: false
|
|
73627
73627
|
}) {
|
|
73628
73628
|
const wantedLockfile = await (0, lockfileName_1.getWantedLockfileName)(opts);
|
|
73629
|
-
return new Promise((
|
|
73629
|
+
return new Promise((resolve18, reject) => {
|
|
73630
73630
|
fs_1.default.access(path_1.default.join(pkgPath, wantedLockfile), (err) => {
|
|
73631
73631
|
if (err == null) {
|
|
73632
|
-
|
|
73632
|
+
resolve18(true);
|
|
73633
73633
|
return;
|
|
73634
73634
|
}
|
|
73635
73635
|
if (err.code === "ENOENT") {
|
|
73636
|
-
|
|
73636
|
+
resolve18(false);
|
|
73637
73637
|
return;
|
|
73638
73638
|
}
|
|
73639
73639
|
reject(err);
|
|
@@ -83558,7 +83558,7 @@ var require_lockfile = __commonJS({
|
|
|
83558
83558
|
exports3.default = function(fn2) {
|
|
83559
83559
|
return function() {
|
|
83560
83560
|
var gen = fn2.apply(this, arguments);
|
|
83561
|
-
return new _promise2.default(function(
|
|
83561
|
+
return new _promise2.default(function(resolve18, reject) {
|
|
83562
83562
|
function step(key, arg) {
|
|
83563
83563
|
try {
|
|
83564
83564
|
var info = gen[key](arg);
|
|
@@ -83568,7 +83568,7 @@ var require_lockfile = __commonJS({
|
|
|
83568
83568
|
return;
|
|
83569
83569
|
}
|
|
83570
83570
|
if (info.done) {
|
|
83571
|
-
|
|
83571
|
+
resolve18(value);
|
|
83572
83572
|
} else {
|
|
83573
83573
|
return _promise2.default.resolve(value).then(function(value2) {
|
|
83574
83574
|
step("next", value2);
|
|
@@ -84259,16 +84259,16 @@ var require_lockfile = __commonJS({
|
|
|
84259
84259
|
if (process.platform === "win32") {
|
|
84260
84260
|
yield fsSymlink(src, dest, "junction");
|
|
84261
84261
|
} else {
|
|
84262
|
-
let
|
|
84262
|
+
let relative6;
|
|
84263
84263
|
try {
|
|
84264
|
-
|
|
84264
|
+
relative6 = (_path || _load_path()).default.relative((_fs || _load_fs()).default.realpathSync((_path || _load_path()).default.dirname(dest)), (_fs || _load_fs()).default.realpathSync(src));
|
|
84265
84265
|
} catch (err) {
|
|
84266
84266
|
if (err.code !== "ENOENT") {
|
|
84267
84267
|
throw err;
|
|
84268
84268
|
}
|
|
84269
|
-
|
|
84269
|
+
relative6 = (_path || _load_path()).default.relative((_path || _load_path()).default.dirname(dest), src);
|
|
84270
84270
|
}
|
|
84271
|
-
yield fsSymlink(
|
|
84271
|
+
yield fsSymlink(relative6 || ".", dest);
|
|
84272
84272
|
}
|
|
84273
84273
|
});
|
|
84274
84274
|
return function symlink2(_x24, _x25) {
|
|
@@ -84295,17 +84295,17 @@ var require_lockfile = __commonJS({
|
|
|
84295
84295
|
_ref28 = _i14.value;
|
|
84296
84296
|
}
|
|
84297
84297
|
const name = _ref28;
|
|
84298
|
-
const
|
|
84298
|
+
const relative6 = relativeDir ? (_path || _load_path()).default.join(relativeDir, name) : name;
|
|
84299
84299
|
const loc = (_path || _load_path()).default.join(dir, name);
|
|
84300
84300
|
const stat3 = yield lstat2(loc);
|
|
84301
84301
|
files.push({
|
|
84302
|
-
relative:
|
|
84302
|
+
relative: relative6,
|
|
84303
84303
|
basename: name,
|
|
84304
84304
|
absolute: loc,
|
|
84305
84305
|
mtime: +stat3.mtime
|
|
84306
84306
|
});
|
|
84307
84307
|
if (stat3.isDirectory()) {
|
|
84308
|
-
files = files.concat(yield walk(loc,
|
|
84308
|
+
files = files.concat(yield walk(loc, relative6, ignoreBasenames));
|
|
84309
84309
|
}
|
|
84310
84310
|
}
|
|
84311
84311
|
return files;
|
|
@@ -84536,12 +84536,12 @@ var require_lockfile = __commonJS({
|
|
|
84536
84536
|
return copyBulk([{ src, dest }], reporter);
|
|
84537
84537
|
}
|
|
84538
84538
|
function _readFile(loc, encoding) {
|
|
84539
|
-
return new Promise((
|
|
84539
|
+
return new Promise((resolve18, reject) => {
|
|
84540
84540
|
(_fs || _load_fs()).default.readFile(loc, encoding, function(err, content) {
|
|
84541
84541
|
if (err) {
|
|
84542
84542
|
reject(err);
|
|
84543
84543
|
} else {
|
|
84544
|
-
|
|
84544
|
+
resolve18(content);
|
|
84545
84545
|
}
|
|
84546
84546
|
});
|
|
84547
84547
|
});
|
|
@@ -84774,8 +84774,8 @@ var require_lockfile = __commonJS({
|
|
|
84774
84774
|
return true;
|
|
84775
84775
|
}
|
|
84776
84776
|
function sleep(ms) {
|
|
84777
|
-
return new Promise((
|
|
84778
|
-
setTimeout(
|
|
84777
|
+
return new Promise((resolve18) => {
|
|
84778
|
+
setTimeout(resolve18, ms);
|
|
84779
84779
|
});
|
|
84780
84780
|
}
|
|
84781
84781
|
},
|
|
@@ -85232,13 +85232,13 @@ var require_lockfile = __commonJS({
|
|
|
85232
85232
|
exports3.promisify = promisify2;
|
|
85233
85233
|
exports3.queue = queue;
|
|
85234
85234
|
function wait(delay) {
|
|
85235
|
-
return new Promise((
|
|
85236
|
-
setTimeout(
|
|
85235
|
+
return new Promise((resolve18) => {
|
|
85236
|
+
setTimeout(resolve18, delay);
|
|
85237
85237
|
});
|
|
85238
85238
|
}
|
|
85239
85239
|
function promisify2(fn2, firstData) {
|
|
85240
85240
|
return function(...args2) {
|
|
85241
|
-
return new Promise(function(
|
|
85241
|
+
return new Promise(function(resolve18, reject) {
|
|
85242
85242
|
args2.push(function(err, ...result) {
|
|
85243
85243
|
let res = result;
|
|
85244
85244
|
if (result.length <= 1) {
|
|
@@ -85251,7 +85251,7 @@ var require_lockfile = __commonJS({
|
|
|
85251
85251
|
if (err) {
|
|
85252
85252
|
reject(err);
|
|
85253
85253
|
} else {
|
|
85254
|
-
|
|
85254
|
+
resolve18(res);
|
|
85255
85255
|
}
|
|
85256
85256
|
});
|
|
85257
85257
|
fn2.apply(null, args2);
|
|
@@ -85266,7 +85266,7 @@ var require_lockfile = __commonJS({
|
|
|
85266
85266
|
if (!total) {
|
|
85267
85267
|
return Promise.resolve(results);
|
|
85268
85268
|
}
|
|
85269
|
-
return new Promise((
|
|
85269
|
+
return new Promise((resolve18, reject) => {
|
|
85270
85270
|
for (let i6 = 0; i6 < concurrency; i6++) {
|
|
85271
85271
|
next2();
|
|
85272
85272
|
}
|
|
@@ -85277,7 +85277,7 @@ var require_lockfile = __commonJS({
|
|
|
85277
85277
|
results.push(result);
|
|
85278
85278
|
total--;
|
|
85279
85279
|
if (total === 0) {
|
|
85280
|
-
|
|
85280
|
+
resolve18(results);
|
|
85281
85281
|
} else {
|
|
85282
85282
|
if (arr.length) {
|
|
85283
85283
|
next2();
|
|
@@ -85635,7 +85635,7 @@ var require_lockfile = __commonJS({
|
|
|
85635
85635
|
opts = opts || {};
|
|
85636
85636
|
const P = opts.Promise || Promise;
|
|
85637
85637
|
const istream = integrityStream(opts);
|
|
85638
|
-
return new P((
|
|
85638
|
+
return new P((resolve18, reject) => {
|
|
85639
85639
|
stream5.pipe(istream);
|
|
85640
85640
|
stream5.on("error", reject);
|
|
85641
85641
|
istream.on("error", reject);
|
|
@@ -85643,7 +85643,7 @@ var require_lockfile = __commonJS({
|
|
|
85643
85643
|
istream.on("integrity", (s3) => {
|
|
85644
85644
|
sri = s3;
|
|
85645
85645
|
});
|
|
85646
|
-
istream.on("end", () =>
|
|
85646
|
+
istream.on("end", () => resolve18(sri));
|
|
85647
85647
|
istream.on("data", () => {
|
|
85648
85648
|
});
|
|
85649
85649
|
});
|
|
@@ -85696,7 +85696,7 @@ var require_lockfile = __commonJS({
|
|
|
85696
85696
|
const checker = integrityStream(Object.assign({}, opts, {
|
|
85697
85697
|
integrity: sri
|
|
85698
85698
|
}));
|
|
85699
|
-
return new P((
|
|
85699
|
+
return new P((resolve18, reject) => {
|
|
85700
85700
|
stream5.pipe(checker);
|
|
85701
85701
|
stream5.on("error", reject);
|
|
85702
85702
|
checker.on("error", reject);
|
|
@@ -85704,7 +85704,7 @@ var require_lockfile = __commonJS({
|
|
|
85704
85704
|
checker.on("verified", (s3) => {
|
|
85705
85705
|
sri2 = s3;
|
|
85706
85706
|
});
|
|
85707
|
-
checker.on("end", () =>
|
|
85707
|
+
checker.on("end", () => resolve18(sri2));
|
|
85708
85708
|
checker.on("data", () => {
|
|
85709
85709
|
});
|
|
85710
85710
|
});
|
|
@@ -86445,13 +86445,13 @@ var require_lockfile = __commonJS({
|
|
|
86445
86445
|
"use strict";
|
|
86446
86446
|
var aFunction = __webpack_require__(46);
|
|
86447
86447
|
function PromiseCapability(C) {
|
|
86448
|
-
var
|
|
86448
|
+
var resolve18, reject;
|
|
86449
86449
|
this.promise = new C(function($$resolve, $$reject) {
|
|
86450
|
-
if (
|
|
86451
|
-
|
|
86450
|
+
if (resolve18 !== void 0 || reject !== void 0) throw TypeError("Bad Promise constructor");
|
|
86451
|
+
resolve18 = $$resolve;
|
|
86452
86452
|
reject = $$reject;
|
|
86453
86453
|
});
|
|
86454
|
-
this.resolve = aFunction(
|
|
86454
|
+
this.resolve = aFunction(resolve18);
|
|
86455
86455
|
this.reject = aFunction(reject);
|
|
86456
86456
|
}
|
|
86457
86457
|
module3.exports.f = function(C) {
|
|
@@ -87054,7 +87054,7 @@ var require_lockfile = __commonJS({
|
|
|
87054
87054
|
/***/
|
|
87055
87055
|
function(module3, exports3, __webpack_require__) {
|
|
87056
87056
|
"use strict";
|
|
87057
|
-
function
|
|
87057
|
+
function posix3(path3) {
|
|
87058
87058
|
return path3.charAt(0) === "/";
|
|
87059
87059
|
}
|
|
87060
87060
|
function win322(path3) {
|
|
@@ -87064,8 +87064,8 @@ var require_lockfile = __commonJS({
|
|
|
87064
87064
|
var isUnc = Boolean(device && device.charAt(1) !== ":");
|
|
87065
87065
|
return Boolean(result[2] || isUnc);
|
|
87066
87066
|
}
|
|
87067
|
-
module3.exports = process.platform === "win32" ? win322 :
|
|
87068
|
-
module3.exports.posix =
|
|
87067
|
+
module3.exports = process.platform === "win32" ? win322 : posix3;
|
|
87068
|
+
module3.exports.posix = posix3;
|
|
87069
87069
|
module3.exports.win32 = win322;
|
|
87070
87070
|
},
|
|
87071
87071
|
,
|
|
@@ -87480,9 +87480,9 @@ var require_lockfile = __commonJS({
|
|
|
87480
87480
|
} else {
|
|
87481
87481
|
this.stillActive();
|
|
87482
87482
|
}
|
|
87483
|
-
return new Promise((
|
|
87483
|
+
return new Promise((resolve18, reject) => {
|
|
87484
87484
|
const queue = this.queue[key] = this.queue[key] || [];
|
|
87485
|
-
queue.push({ factory, resolve:
|
|
87485
|
+
queue.push({ factory, resolve: resolve18, reject });
|
|
87486
87486
|
if (!this.running[key]) {
|
|
87487
87487
|
this.shift(key);
|
|
87488
87488
|
}
|
|
@@ -87506,7 +87506,7 @@ var require_lockfile = __commonJS({
|
|
|
87506
87506
|
return;
|
|
87507
87507
|
}
|
|
87508
87508
|
var _queue$shift = queue.shift();
|
|
87509
|
-
const
|
|
87509
|
+
const resolve18 = _queue$shift.resolve, reject = _queue$shift.reject, factory = _queue$shift.factory;
|
|
87510
87510
|
if (!queue.length) {
|
|
87511
87511
|
delete this.queue[key];
|
|
87512
87512
|
}
|
|
@@ -87518,7 +87518,7 @@ var require_lockfile = __commonJS({
|
|
|
87518
87518
|
this.running[key] = true;
|
|
87519
87519
|
this.runningCount++;
|
|
87520
87520
|
factory().then(function(val3) {
|
|
87521
|
-
|
|
87521
|
+
resolve18(val3);
|
|
87522
87522
|
next2();
|
|
87523
87523
|
return null;
|
|
87524
87524
|
}).catch(function(err) {
|
|
@@ -87701,8 +87701,8 @@ var require_lockfile = __commonJS({
|
|
|
87701
87701
|
anObject(C);
|
|
87702
87702
|
if (isObject2(x2) && x2.constructor === C) return x2;
|
|
87703
87703
|
var promiseCapability = newPromiseCapability.f(C);
|
|
87704
|
-
var
|
|
87705
|
-
|
|
87704
|
+
var resolve18 = promiseCapability.resolve;
|
|
87705
|
+
resolve18(x2);
|
|
87706
87706
|
return promiseCapability.promise;
|
|
87707
87707
|
};
|
|
87708
87708
|
},
|
|
@@ -88601,11 +88601,11 @@ ${indent}`);
|
|
|
88601
88601
|
})();
|
|
88602
88602
|
const copyFilePoly = (src, dest, flags, data2) => {
|
|
88603
88603
|
if ((_fs || _load_fs()).default.copyFile) {
|
|
88604
|
-
return new Promise((
|
|
88604
|
+
return new Promise((resolve18, reject) => (_fs || _load_fs()).default.copyFile(src, dest, flags, (err) => {
|
|
88605
88605
|
if (err) {
|
|
88606
88606
|
reject(err);
|
|
88607
88607
|
} else {
|
|
88608
|
-
fixTimes(void 0, dest, data2).then(() =>
|
|
88608
|
+
fixTimes(void 0, dest, data2).then(() => resolve18()).catch((ex) => reject(ex));
|
|
88609
88609
|
}
|
|
88610
88610
|
}));
|
|
88611
88611
|
} else {
|
|
@@ -89514,7 +89514,7 @@ ${indent}`);
|
|
|
89514
89514
|
var i6 = 0;
|
|
89515
89515
|
var run2 = function(reaction) {
|
|
89516
89516
|
var handler = ok ? reaction.ok : reaction.fail;
|
|
89517
|
-
var
|
|
89517
|
+
var resolve18 = reaction.resolve;
|
|
89518
89518
|
var reject = reaction.reject;
|
|
89519
89519
|
var domain = reaction.domain;
|
|
89520
89520
|
var result, then, exited;
|
|
@@ -89536,8 +89536,8 @@ ${indent}`);
|
|
|
89536
89536
|
if (result === reaction.promise) {
|
|
89537
89537
|
reject(TypeError2("Promise-chain cycle"));
|
|
89538
89538
|
} else if (then = isThenable2(result)) {
|
|
89539
|
-
then.call(result,
|
|
89540
|
-
} else
|
|
89539
|
+
then.call(result, resolve18, reject);
|
|
89540
|
+
} else resolve18(result);
|
|
89541
89541
|
} else reject(value);
|
|
89542
89542
|
} catch (e) {
|
|
89543
89543
|
if (domain && !exited) domain.exit();
|
|
@@ -89682,7 +89682,7 @@ ${indent}`);
|
|
|
89682
89682
|
});
|
|
89683
89683
|
$export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, {
|
|
89684
89684
|
// 25.4.4.6 Promise.resolve(x)
|
|
89685
|
-
resolve: function
|
|
89685
|
+
resolve: function resolve18(x2) {
|
|
89686
89686
|
return promiseResolve(LIBRARY && this === Wrapper ? $Promise : this, x2);
|
|
89687
89687
|
}
|
|
89688
89688
|
});
|
|
@@ -89693,7 +89693,7 @@ ${indent}`);
|
|
|
89693
89693
|
all: function all3(iterable) {
|
|
89694
89694
|
var C = this;
|
|
89695
89695
|
var capability = newPromiseCapability(C);
|
|
89696
|
-
var
|
|
89696
|
+
var resolve18 = capability.resolve;
|
|
89697
89697
|
var reject = capability.reject;
|
|
89698
89698
|
var result = perform(function() {
|
|
89699
89699
|
var values = [];
|
|
@@ -89708,10 +89708,10 @@ ${indent}`);
|
|
|
89708
89708
|
if (alreadyCalled) return;
|
|
89709
89709
|
alreadyCalled = true;
|
|
89710
89710
|
values[$index] = value;
|
|
89711
|
-
--remaining ||
|
|
89711
|
+
--remaining || resolve18(values);
|
|
89712
89712
|
}, reject);
|
|
89713
89713
|
});
|
|
89714
|
-
--remaining ||
|
|
89714
|
+
--remaining || resolve18(values);
|
|
89715
89715
|
});
|
|
89716
89716
|
if (result.e) reject(result.v);
|
|
89717
89717
|
return capability.promise;
|
|
@@ -98488,9 +98488,9 @@ var require_parse4 = __commonJS({
|
|
|
98488
98488
|
const idx = prev2.value.lastIndexOf("[");
|
|
98489
98489
|
const pre = prev2.value.slice(0, idx);
|
|
98490
98490
|
const rest2 = prev2.value.slice(idx + 2);
|
|
98491
|
-
const
|
|
98492
|
-
if (
|
|
98493
|
-
prev2.value = pre +
|
|
98491
|
+
const posix3 = POSIX_REGEX_SOURCE[rest2];
|
|
98492
|
+
if (posix3) {
|
|
98493
|
+
prev2.value = pre + posix3;
|
|
98494
98494
|
state.backtrack = true;
|
|
98495
98495
|
advance();
|
|
98496
98496
|
if (!bos.output && tokens.indexOf(prev2) === 1) {
|
|
@@ -99011,7 +99011,7 @@ var require_picomatch = __commonJS({
|
|
|
99011
99011
|
throw new TypeError("Expected pattern to be a non-empty string");
|
|
99012
99012
|
}
|
|
99013
99013
|
const opts = options || {};
|
|
99014
|
-
const
|
|
99014
|
+
const posix3 = utils.isWindows(options);
|
|
99015
99015
|
const regex = isState ? picomatch.compileRe(glob2, options) : picomatch.makeRe(glob2, options, false, true);
|
|
99016
99016
|
const state = regex.state;
|
|
99017
99017
|
delete regex.state;
|
|
@@ -99021,8 +99021,8 @@ var require_picomatch = __commonJS({
|
|
|
99021
99021
|
isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
|
|
99022
99022
|
}
|
|
99023
99023
|
const matcher = (input, returnObject = false) => {
|
|
99024
|
-
const { isMatch: isMatch3, match: match2, output } = picomatch.test(input, regex, options, { glob: glob2, posix:
|
|
99025
|
-
const result = { glob: glob2, state, regex, posix:
|
|
99024
|
+
const { isMatch: isMatch3, match: match2, output } = picomatch.test(input, regex, options, { glob: glob2, posix: posix3 });
|
|
99025
|
+
const result = { glob: glob2, state, regex, posix: posix3, input, output, match: match2, isMatch: isMatch3 };
|
|
99026
99026
|
if (typeof opts.onResult === "function") {
|
|
99027
99027
|
opts.onResult(result);
|
|
99028
99028
|
}
|
|
@@ -99047,7 +99047,7 @@ var require_picomatch = __commonJS({
|
|
|
99047
99047
|
}
|
|
99048
99048
|
return matcher;
|
|
99049
99049
|
};
|
|
99050
|
-
picomatch.test = (input, regex, options, { glob: glob2, posix:
|
|
99050
|
+
picomatch.test = (input, regex, options, { glob: glob2, posix: posix3 } = {}) => {
|
|
99051
99051
|
if (typeof input !== "string") {
|
|
99052
99052
|
throw new TypeError("Expected input to be a string");
|
|
99053
99053
|
}
|
|
@@ -99055,7 +99055,7 @@ var require_picomatch = __commonJS({
|
|
|
99055
99055
|
return { isMatch: false, output: "" };
|
|
99056
99056
|
}
|
|
99057
99057
|
const opts = options || {};
|
|
99058
|
-
const format3 = opts.format || (
|
|
99058
|
+
const format3 = opts.format || (posix3 ? utils.toPosixSlashes : null);
|
|
99059
99059
|
let match2 = input === glob2;
|
|
99060
99060
|
let output = match2 && format3 ? format3(input) : input;
|
|
99061
99061
|
if (match2 === false) {
|
|
@@ -99064,14 +99064,14 @@ var require_picomatch = __commonJS({
|
|
|
99064
99064
|
}
|
|
99065
99065
|
if (match2 === false || opts.capture === true) {
|
|
99066
99066
|
if (opts.matchBase === true || opts.basename === true) {
|
|
99067
|
-
match2 = picomatch.matchBase(input, regex, options,
|
|
99067
|
+
match2 = picomatch.matchBase(input, regex, options, posix3);
|
|
99068
99068
|
} else {
|
|
99069
99069
|
match2 = regex.exec(output);
|
|
99070
99070
|
}
|
|
99071
99071
|
}
|
|
99072
99072
|
return { isMatch: Boolean(match2), match: match2, output };
|
|
99073
99073
|
};
|
|
99074
|
-
picomatch.matchBase = (input, glob2, options,
|
|
99074
|
+
picomatch.matchBase = (input, glob2, options, posix3 = utils.isWindows(options)) => {
|
|
99075
99075
|
const regex = glob2 instanceof RegExp ? glob2 : picomatch.makeRe(glob2, options);
|
|
99076
99076
|
return regex.test(path3.basename(input));
|
|
99077
99077
|
};
|
|
@@ -99256,9 +99256,9 @@ var require_micromatch = __commonJS({
|
|
|
99256
99256
|
return [].concat(patterns).every((p3) => picomatch(p3, options)(str));
|
|
99257
99257
|
};
|
|
99258
99258
|
micromatch.capture = (glob2, input, options) => {
|
|
99259
|
-
let
|
|
99259
|
+
let posix3 = utils.isWindows(options);
|
|
99260
99260
|
let regex = picomatch.makeRe(String(glob2), { ...options, capture: true });
|
|
99261
|
-
let match2 = regex.exec(
|
|
99261
|
+
let match2 = regex.exec(posix3 ? utils.toPosixSlashes(input) : input);
|
|
99262
99262
|
if (match2) {
|
|
99263
99263
|
return match2.slice(1).map((v) => v === void 0 ? "" : v);
|
|
99264
99264
|
}
|
|
@@ -100192,20 +100192,20 @@ var require_logger_singleton = __commonJS({
|
|
|
100192
100192
|
* in errors that are swallowed by the 'error' event listener in this function.
|
|
100193
100193
|
*/
|
|
100194
100194
|
async finish() {
|
|
100195
|
-
return new Promise((
|
|
100195
|
+
return new Promise((resolve18) => {
|
|
100196
100196
|
if (this.logger instanceof console_1.Console || this.logger.writableEnded) {
|
|
100197
|
-
|
|
100197
|
+
resolve18();
|
|
100198
100198
|
return;
|
|
100199
100199
|
}
|
|
100200
100200
|
this.logger.on("error", () => {
|
|
100201
100201
|
});
|
|
100202
100202
|
this.logger.end(() => {
|
|
100203
100203
|
if (!this.writeStream || this.writeStream.writableEnded) {
|
|
100204
|
-
|
|
100204
|
+
resolve18();
|
|
100205
100205
|
return;
|
|
100206
100206
|
}
|
|
100207
100207
|
if (!this.writeStream.writableEnded) {
|
|
100208
|
-
this.writeStream.end(
|
|
100208
|
+
this.writeStream.end(resolve18);
|
|
100209
100209
|
}
|
|
100210
100210
|
});
|
|
100211
100211
|
});
|
|
@@ -106072,7 +106072,7 @@ async function getEcosystemSpecificDockerArgs(ecosystem) {
|
|
|
106072
106072
|
}
|
|
106073
106073
|
return [];
|
|
106074
106074
|
}
|
|
106075
|
-
var import_child_process2, import_fs11, import_promises13, import_lodash7, import_os3, import_path20, import_ecosystem_support2, import_logger_singleton7, pullDockerImage, TMP_DIR_IN_DOCKER, OtherModulesCommunicator, setUpGoModuleCache;
|
|
106075
|
+
var import_child_process2, import_fs11, import_promises13, import_lodash7, import_os3, import_path20, import_ecosystem_support2, import_logger_singleton7, pullDockerImage, TMP_DIR_IN_DOCKER, LOG_PATH_IN_DOCKER, OtherModulesCommunicator, setUpGoModuleCache;
|
|
106076
106076
|
var init_other_modules_communicator = __esm({
|
|
106077
106077
|
"../other-modules-communicator/src/other-modules-communicator.ts"() {
|
|
106078
106078
|
"use strict";
|
|
@@ -106101,6 +106101,7 @@ var init_other_modules_communicator = __esm({
|
|
|
106101
106101
|
return true;
|
|
106102
106102
|
});
|
|
106103
106103
|
TMP_DIR_IN_DOCKER = "/coana-tmp";
|
|
106104
|
+
LOG_PATH_IN_DOCKER = "/coana-log.txt";
|
|
106104
106105
|
OtherModulesCommunicator = class {
|
|
106105
106106
|
constructor(rootWorkingDir, options, apiKey) {
|
|
106106
106107
|
this.rootWorkingDir = rootWorkingDir;
|
|
@@ -106142,12 +106143,12 @@ var init_other_modules_communicator = __esm({
|
|
|
106142
106143
|
return `${_cmdStr()}: (${ecosystem}) ${(0, import_path20.join)(subprojectPath, workspacePath)}`;
|
|
106143
106144
|
}
|
|
106144
106145
|
getProjectPath(subprojectPath) {
|
|
106145
|
-
return this.options.runWithoutDocker ? subprojectPath :
|
|
106146
|
+
return this.options.runWithoutDocker ? subprojectPath : import_path20.posix.resolve("/project", import_path20.posix.relative(this.rootWorkingDir, subprojectPath));
|
|
106146
106147
|
}
|
|
106147
106148
|
// options shared between package-management and reachability-analyzers
|
|
106148
106149
|
commonOptions = (0, import_lodash7.once)(
|
|
106149
106150
|
() => argt`${this.options.debug && "--debug"} ${this.options.silent && "--silent"}
|
|
106150
|
-
--coana-log-path=${this.options.coanaLogPath} --silent-spinner`
|
|
106151
|
+
--coana-log-path=${this.options.runWithoutDocker ? this.options.coanaLogPath : LOG_PATH_IN_DOCKER} --silent-spinner`
|
|
106151
106152
|
);
|
|
106152
106153
|
async runPackageManagerCommand(commandName, packageManagerName, subprojectPath, args2, extraDockerArgs, env) {
|
|
106153
106154
|
const tmpDir = await this.getTmpDirForSubproject(subprojectPath);
|
|
@@ -106188,7 +106189,7 @@ var init_other_modules_communicator = __esm({
|
|
|
106188
106189
|
const tmpDir = await this.getTmpDirForSubproject(subprojectPath);
|
|
106189
106190
|
const outputFileName = `${v4_default()}-${commandName}-output.json`;
|
|
106190
106191
|
const outputFilePathThisProcess = (0, import_path20.join)(tmpDir, outputFileName);
|
|
106191
|
-
const outputFilePathOtherProcess =
|
|
106192
|
+
const outputFilePathOtherProcess = this.options.runWithoutDocker ? outputFilePathThisProcess : import_path20.posix.join(TMP_DIR_IN_DOCKER, outputFileName);
|
|
106192
106193
|
await this.runPackageManagerCommand(
|
|
106193
106194
|
commandName,
|
|
106194
106195
|
packageManagerName,
|
|
@@ -106247,7 +106248,7 @@ var init_other_modules_communicator = __esm({
|
|
|
106247
106248
|
const tmpDir = await this.getTmpDirForSubproject(subprojectPath);
|
|
106248
106249
|
const outputFileName = `${v4_default()}-${commandName}-output.json`;
|
|
106249
106250
|
const outputFilePathThisProcess = (0, import_path20.join)(tmpDir, outputFileName);
|
|
106250
|
-
const outputFilePathOtherProcess =
|
|
106251
|
+
const outputFilePathOtherProcess = this.options.runWithoutDocker ? outputFilePathThisProcess : import_path20.posix.join(TMP_DIR_IN_DOCKER, outputFileName);
|
|
106251
106252
|
await this.runReachabilityAnalyzerCommand(
|
|
106252
106253
|
commandName,
|
|
106253
106254
|
ecosystem,
|
|
@@ -106262,7 +106263,7 @@ var init_other_modules_communicator = __esm({
|
|
|
106262
106263
|
if (!await pullDockerImage(image)) return false;
|
|
106263
106264
|
const envArgs = Object.keys(env).filter((key) => DOCKER_ENV_WHITE_LIST.some((whiteListedKey) => key.includes(whiteListedKey))).flatMap((key) => ["-e", key]);
|
|
106264
106265
|
const cmd = cmdt`docker run --pull=never --rm -v ${this.rootWorkingDir}:/project -v ${tmpDir}:${TMP_DIR_IN_DOCKER}
|
|
106265
|
-
-v=${this.options.coanaLogPath}:${
|
|
106266
|
+
-v=${this.options.coanaLogPath}:${LOG_PATH_IN_DOCKER}
|
|
106266
106267
|
${await getEcosystemSpecificDockerArgs(ecosystem)}
|
|
106267
106268
|
${envArgs} ${image} ${entryPoint} ${commandName} ${args2}`;
|
|
106268
106269
|
return execPipeAndLogOnFailure(cmd, subprojectPath, { env });
|
|
@@ -106274,9 +106275,11 @@ var init_other_modules_communicator = __esm({
|
|
|
106274
106275
|
if (providedOptions)
|
|
106275
106276
|
if (providedOptions.type === "providee") {
|
|
106276
106277
|
const tmpDir = await this.getTmpDirForSubproject(subprojectPath);
|
|
106277
|
-
const
|
|
106278
|
-
|
|
106279
|
-
|
|
106278
|
+
const providerFileName = "provider.json";
|
|
106279
|
+
const providerFileThisProcess = (0, import_path20.join)(tmpDir, providerFileName);
|
|
106280
|
+
const providerFileOtherProcess = this.options.runWithoutDocker ? providerFileThisProcess : import_path20.posix.join(TMP_DIR_IN_DOCKER, providerFileName);
|
|
106281
|
+
await (0, import_promises13.writeFile)(providerFileThisProcess, JSON.stringify(providedOptions.provider));
|
|
106282
|
+
return ["--provider", providerFileOtherProcess];
|
|
106280
106283
|
} else {
|
|
106281
106284
|
return ["--as-provider"];
|
|
106282
106285
|
}
|
|
@@ -106320,8 +106323,8 @@ var init_other_modules_communicator = __esm({
|
|
|
106320
106323
|
async runReachabilityAnalysis(subprojectPath, workspacePath, workspaceData, vulnerabilities, reachabilityAnalysisOptions, otherAnalysisOptions) {
|
|
106321
106324
|
const tmpDir = await this.getTmpDirForSubproject(subprojectPath);
|
|
106322
106325
|
const inputFileName = `${v4_default()}-runReachabilityAnalysis-input.json`;
|
|
106323
|
-
const inputFileOtherProcess = (0, import_path20.join)(this.options.runWithoutDocker ? tmpDir : TMP_DIR_IN_DOCKER, inputFileName);
|
|
106324
106326
|
const inputFileThisProcess = (0, import_path20.join)(tmpDir, inputFileName);
|
|
106327
|
+
const inputFileOtherProcess = this.options.runWithoutDocker ? inputFileThisProcess : import_path20.posix.join(TMP_DIR_IN_DOCKER, inputFileName);
|
|
106325
106328
|
await (0, import_promises13.writeFile)(
|
|
106326
106329
|
inputFileThisProcess,
|
|
106327
106330
|
JSON.stringify({
|
|
@@ -109811,8 +109814,8 @@ var init_esm6 = __esm({
|
|
|
109811
109814
|
}
|
|
109812
109815
|
config2.transformRequest = [(data2) => data2];
|
|
109813
109816
|
await onRetry(currentState.retryCount, error, config2);
|
|
109814
|
-
return new Promise((
|
|
109815
|
-
setTimeout(() =>
|
|
109817
|
+
return new Promise((resolve18) => {
|
|
109818
|
+
setTimeout(() => resolve18(axiosInstance(config2)), delay);
|
|
109816
109819
|
});
|
|
109817
109820
|
}
|
|
109818
109821
|
await handleMaxRetryTimesExceeded(currentState, error);
|
|
@@ -114135,8 +114138,8 @@ var require_util5 = __commonJS({
|
|
|
114135
114138
|
function createDeferredPromise() {
|
|
114136
114139
|
let res;
|
|
114137
114140
|
let rej;
|
|
114138
|
-
const promise = new Promise((
|
|
114139
|
-
res =
|
|
114141
|
+
const promise = new Promise((resolve18, reject) => {
|
|
114142
|
+
res = resolve18;
|
|
114140
114143
|
rej = reject;
|
|
114141
114144
|
});
|
|
114142
114145
|
return { promise, resolve: res, reject: rej };
|
|
@@ -115640,8 +115643,8 @@ Content-Type: ${value.type || "application/octet-stream"}\r
|
|
|
115640
115643
|
});
|
|
115641
115644
|
}
|
|
115642
115645
|
});
|
|
115643
|
-
const busboyResolve = new Promise((
|
|
115644
|
-
busboy.on("finish",
|
|
115646
|
+
const busboyResolve = new Promise((resolve18, reject) => {
|
|
115647
|
+
busboy.on("finish", resolve18);
|
|
115645
115648
|
busboy.on("error", (err) => reject(new TypeError(err)));
|
|
115646
115649
|
});
|
|
115647
115650
|
if (this.body !== null) for await (const chunk of consumeBody(this[kState].body)) busboy.write(chunk);
|
|
@@ -116175,9 +116178,9 @@ var require_dispatcher_base = __commonJS({
|
|
|
116175
116178
|
}
|
|
116176
116179
|
close(callback) {
|
|
116177
116180
|
if (callback === void 0) {
|
|
116178
|
-
return new Promise((
|
|
116181
|
+
return new Promise((resolve18, reject) => {
|
|
116179
116182
|
this.close((err, data2) => {
|
|
116180
|
-
return err ? reject(err) :
|
|
116183
|
+
return err ? reject(err) : resolve18(data2);
|
|
116181
116184
|
});
|
|
116182
116185
|
});
|
|
116183
116186
|
}
|
|
@@ -116215,12 +116218,12 @@ var require_dispatcher_base = __commonJS({
|
|
|
116215
116218
|
err = null;
|
|
116216
116219
|
}
|
|
116217
116220
|
if (callback === void 0) {
|
|
116218
|
-
return new Promise((
|
|
116221
|
+
return new Promise((resolve18, reject) => {
|
|
116219
116222
|
this.destroy(err, (err2, data2) => {
|
|
116220
116223
|
return err2 ? (
|
|
116221
116224
|
/* istanbul ignore next: should never error */
|
|
116222
116225
|
reject(err2)
|
|
116223
|
-
) :
|
|
116226
|
+
) : resolve18(data2);
|
|
116224
116227
|
});
|
|
116225
116228
|
});
|
|
116226
116229
|
}
|
|
@@ -117280,16 +117283,16 @@ var require_client = __commonJS({
|
|
|
117280
117283
|
return this[kNeedDrain] < 2;
|
|
117281
117284
|
}
|
|
117282
117285
|
async [kClose]() {
|
|
117283
|
-
return new Promise((
|
|
117286
|
+
return new Promise((resolve18) => {
|
|
117284
117287
|
if (!this[kSize]) {
|
|
117285
|
-
|
|
117288
|
+
resolve18(null);
|
|
117286
117289
|
} else {
|
|
117287
|
-
this[kClosedResolve] =
|
|
117290
|
+
this[kClosedResolve] = resolve18;
|
|
117288
117291
|
}
|
|
117289
117292
|
});
|
|
117290
117293
|
}
|
|
117291
117294
|
async [kDestroy](err) {
|
|
117292
|
-
return new Promise((
|
|
117295
|
+
return new Promise((resolve18) => {
|
|
117293
117296
|
const requests = this[kQueue].splice(this[kPendingIdx]);
|
|
117294
117297
|
for (let i6 = 0; i6 < requests.length; i6++) {
|
|
117295
117298
|
const request = requests[i6];
|
|
@@ -117300,7 +117303,7 @@ var require_client = __commonJS({
|
|
|
117300
117303
|
this[kClosedResolve]();
|
|
117301
117304
|
this[kClosedResolve] = null;
|
|
117302
117305
|
}
|
|
117303
|
-
|
|
117306
|
+
resolve18();
|
|
117304
117307
|
};
|
|
117305
117308
|
if (this[kHTTP2Session] != null) {
|
|
117306
117309
|
util2.destroy(this[kHTTP2Session], err);
|
|
@@ -117880,7 +117883,7 @@ var require_client = __commonJS({
|
|
|
117880
117883
|
});
|
|
117881
117884
|
}
|
|
117882
117885
|
try {
|
|
117883
|
-
const socket = await new Promise((
|
|
117886
|
+
const socket = await new Promise((resolve18, reject) => {
|
|
117884
117887
|
client[kConnector]({
|
|
117885
117888
|
host,
|
|
117886
117889
|
hostname,
|
|
@@ -117892,7 +117895,7 @@ var require_client = __commonJS({
|
|
|
117892
117895
|
if (err) {
|
|
117893
117896
|
reject(err);
|
|
117894
117897
|
} else {
|
|
117895
|
-
|
|
117898
|
+
resolve18(socket2);
|
|
117896
117899
|
}
|
|
117897
117900
|
});
|
|
117898
117901
|
});
|
|
@@ -118516,12 +118519,12 @@ upgrade: ${upgrade}\r
|
|
|
118516
118519
|
cb();
|
|
118517
118520
|
}
|
|
118518
118521
|
}
|
|
118519
|
-
const waitForDrain = () => new Promise((
|
|
118522
|
+
const waitForDrain = () => new Promise((resolve18, reject) => {
|
|
118520
118523
|
assert2(callback === null);
|
|
118521
118524
|
if (socket[kError]) {
|
|
118522
118525
|
reject(socket[kError]);
|
|
118523
118526
|
} else {
|
|
118524
|
-
callback =
|
|
118527
|
+
callback = resolve18;
|
|
118525
118528
|
}
|
|
118526
118529
|
});
|
|
118527
118530
|
if (client[kHTTPConnVersion] === "h2") {
|
|
@@ -118866,8 +118869,8 @@ var require_pool_base = __commonJS({
|
|
|
118866
118869
|
if (this[kQueue].isEmpty()) {
|
|
118867
118870
|
return Promise.all(this[kClients].map((c2) => c2.close()));
|
|
118868
118871
|
} else {
|
|
118869
|
-
return new Promise((
|
|
118870
|
-
this[kClosedResolve] =
|
|
118872
|
+
return new Promise((resolve18) => {
|
|
118873
|
+
this[kClosedResolve] = resolve18;
|
|
118871
118874
|
});
|
|
118872
118875
|
}
|
|
118873
118876
|
}
|
|
@@ -119437,7 +119440,7 @@ var require_readable2 = __commonJS({
|
|
|
119437
119440
|
if (this.closed) {
|
|
119438
119441
|
return Promise.resolve(null);
|
|
119439
119442
|
}
|
|
119440
|
-
return new Promise((
|
|
119443
|
+
return new Promise((resolve18, reject) => {
|
|
119441
119444
|
const signalListenerCleanup = signal ? util2.addAbortListener(signal, () => {
|
|
119442
119445
|
this.destroy();
|
|
119443
119446
|
}) : noop2;
|
|
@@ -119446,7 +119449,7 @@ var require_readable2 = __commonJS({
|
|
|
119446
119449
|
if (signal && signal.aborted) {
|
|
119447
119450
|
reject(signal.reason || Object.assign(new Error("The operation was aborted"), { name: "AbortError" }));
|
|
119448
119451
|
} else {
|
|
119449
|
-
|
|
119452
|
+
resolve18(null);
|
|
119450
119453
|
}
|
|
119451
119454
|
}).on("error", noop2).on("data", function(chunk) {
|
|
119452
119455
|
limit -= chunk.length;
|
|
@@ -119468,11 +119471,11 @@ var require_readable2 = __commonJS({
|
|
|
119468
119471
|
throw new TypeError("unusable");
|
|
119469
119472
|
}
|
|
119470
119473
|
assert2(!stream5[kConsume]);
|
|
119471
|
-
return new Promise((
|
|
119474
|
+
return new Promise((resolve18, reject) => {
|
|
119472
119475
|
stream5[kConsume] = {
|
|
119473
119476
|
type,
|
|
119474
119477
|
stream: stream5,
|
|
119475
|
-
resolve:
|
|
119478
|
+
resolve: resolve18,
|
|
119476
119479
|
reject,
|
|
119477
119480
|
length: 0,
|
|
119478
119481
|
body: []
|
|
@@ -119507,12 +119510,12 @@ var require_readable2 = __commonJS({
|
|
|
119507
119510
|
}
|
|
119508
119511
|
}
|
|
119509
119512
|
function consumeEnd(consume2) {
|
|
119510
|
-
const { type, body, resolve:
|
|
119513
|
+
const { type, body, resolve: resolve18, stream: stream5, length } = consume2;
|
|
119511
119514
|
try {
|
|
119512
119515
|
if (type === "text") {
|
|
119513
|
-
|
|
119516
|
+
resolve18(toUSVString(Buffer.concat(body)));
|
|
119514
119517
|
} else if (type === "json") {
|
|
119515
|
-
|
|
119518
|
+
resolve18(JSON.parse(Buffer.concat(body)));
|
|
119516
119519
|
} else if (type === "arrayBuffer") {
|
|
119517
119520
|
const dst = new Uint8Array(length);
|
|
119518
119521
|
let pos = 0;
|
|
@@ -119520,12 +119523,12 @@ var require_readable2 = __commonJS({
|
|
|
119520
119523
|
dst.set(buf, pos);
|
|
119521
119524
|
pos += buf.byteLength;
|
|
119522
119525
|
}
|
|
119523
|
-
|
|
119526
|
+
resolve18(dst.buffer);
|
|
119524
119527
|
} else if (type === "blob") {
|
|
119525
119528
|
if (!Blob2) {
|
|
119526
119529
|
Blob2 = require("buffer").Blob;
|
|
119527
119530
|
}
|
|
119528
|
-
|
|
119531
|
+
resolve18(new Blob2(body, { type: stream5[kContentType] }));
|
|
119529
119532
|
}
|
|
119530
119533
|
consumeFinish(consume2);
|
|
119531
119534
|
} catch (err) {
|
|
@@ -119780,9 +119783,9 @@ var require_api_request = __commonJS({
|
|
|
119780
119783
|
};
|
|
119781
119784
|
function request(opts, callback) {
|
|
119782
119785
|
if (callback === void 0) {
|
|
119783
|
-
return new Promise((
|
|
119786
|
+
return new Promise((resolve18, reject) => {
|
|
119784
119787
|
request.call(this, opts, (err, data2) => {
|
|
119785
|
-
return err ? reject(err) :
|
|
119788
|
+
return err ? reject(err) : resolve18(data2);
|
|
119786
119789
|
});
|
|
119787
119790
|
});
|
|
119788
119791
|
}
|
|
@@ -119955,9 +119958,9 @@ var require_api_stream = __commonJS({
|
|
|
119955
119958
|
};
|
|
119956
119959
|
function stream5(opts, factory, callback) {
|
|
119957
119960
|
if (callback === void 0) {
|
|
119958
|
-
return new Promise((
|
|
119961
|
+
return new Promise((resolve18, reject) => {
|
|
119959
119962
|
stream5.call(this, opts, factory, (err, data2) => {
|
|
119960
|
-
return err ? reject(err) :
|
|
119963
|
+
return err ? reject(err) : resolve18(data2);
|
|
119961
119964
|
});
|
|
119962
119965
|
});
|
|
119963
119966
|
}
|
|
@@ -120238,9 +120241,9 @@ var require_api_upgrade = __commonJS({
|
|
|
120238
120241
|
};
|
|
120239
120242
|
function upgrade(opts, callback) {
|
|
120240
120243
|
if (callback === void 0) {
|
|
120241
|
-
return new Promise((
|
|
120244
|
+
return new Promise((resolve18, reject) => {
|
|
120242
120245
|
upgrade.call(this, opts, (err, data2) => {
|
|
120243
|
-
return err ? reject(err) :
|
|
120246
|
+
return err ? reject(err) : resolve18(data2);
|
|
120244
120247
|
});
|
|
120245
120248
|
});
|
|
120246
120249
|
}
|
|
@@ -120329,9 +120332,9 @@ var require_api_connect = __commonJS({
|
|
|
120329
120332
|
};
|
|
120330
120333
|
function connect(opts, callback) {
|
|
120331
120334
|
if (callback === void 0) {
|
|
120332
|
-
return new Promise((
|
|
120335
|
+
return new Promise((resolve18, reject) => {
|
|
120333
120336
|
connect.call(this, opts, (err, data2) => {
|
|
120334
|
-
return err ? reject(err) :
|
|
120337
|
+
return err ? reject(err) : resolve18(data2);
|
|
120335
120338
|
});
|
|
120336
120339
|
});
|
|
120337
120340
|
}
|
|
@@ -123949,7 +123952,7 @@ var require_fetch2 = __commonJS({
|
|
|
123949
123952
|
async function dispatch({ body }) {
|
|
123950
123953
|
const url2 = requestCurrentURL(request);
|
|
123951
123954
|
const agent = fetchParams.controller.dispatcher;
|
|
123952
|
-
return new Promise((
|
|
123955
|
+
return new Promise((resolve18, reject) => agent.dispatch(
|
|
123953
123956
|
{
|
|
123954
123957
|
path: url2.pathname + url2.search,
|
|
123955
123958
|
origin: url2.origin,
|
|
@@ -124025,7 +124028,7 @@ var require_fetch2 = __commonJS({
|
|
|
124025
124028
|
}
|
|
124026
124029
|
}
|
|
124027
124030
|
}
|
|
124028
|
-
|
|
124031
|
+
resolve18({
|
|
124029
124032
|
status,
|
|
124030
124033
|
statusText,
|
|
124031
124034
|
headersList: headers[kHeadersList],
|
|
@@ -124068,7 +124071,7 @@ var require_fetch2 = __commonJS({
|
|
|
124068
124071
|
const val3 = headersList[n2 + 1].toString("latin1");
|
|
124069
124072
|
headers[kHeadersList].append(key, val3);
|
|
124070
124073
|
}
|
|
124071
|
-
|
|
124074
|
+
resolve18({
|
|
124072
124075
|
status,
|
|
124073
124076
|
statusText: STATUS_CODES[status],
|
|
124074
124077
|
headersList: headers[kHeadersList],
|
|
@@ -127436,11 +127439,11 @@ var require_lib19 = __commonJS({
|
|
|
127436
127439
|
};
|
|
127437
127440
|
var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
127438
127441
|
function adopt(value) {
|
|
127439
|
-
return value instanceof P ? value : new P(function(
|
|
127440
|
-
|
|
127442
|
+
return value instanceof P ? value : new P(function(resolve18) {
|
|
127443
|
+
resolve18(value);
|
|
127441
127444
|
});
|
|
127442
127445
|
}
|
|
127443
|
-
return new (P || (P = Promise))(function(
|
|
127446
|
+
return new (P || (P = Promise))(function(resolve18, reject) {
|
|
127444
127447
|
function fulfilled(value) {
|
|
127445
127448
|
try {
|
|
127446
127449
|
step(generator.next(value));
|
|
@@ -127456,7 +127459,7 @@ var require_lib19 = __commonJS({
|
|
|
127456
127459
|
}
|
|
127457
127460
|
}
|
|
127458
127461
|
function step(result) {
|
|
127459
|
-
result.done ?
|
|
127462
|
+
result.done ? resolve18(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
127460
127463
|
}
|
|
127461
127464
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
127462
127465
|
});
|
|
@@ -127542,26 +127545,26 @@ var require_lib19 = __commonJS({
|
|
|
127542
127545
|
}
|
|
127543
127546
|
readBody() {
|
|
127544
127547
|
return __awaiter2(this, void 0, void 0, function* () {
|
|
127545
|
-
return new Promise((
|
|
127548
|
+
return new Promise((resolve18) => __awaiter2(this, void 0, void 0, function* () {
|
|
127546
127549
|
let output = Buffer.alloc(0);
|
|
127547
127550
|
this.message.on("data", (chunk) => {
|
|
127548
127551
|
output = Buffer.concat([output, chunk]);
|
|
127549
127552
|
});
|
|
127550
127553
|
this.message.on("end", () => {
|
|
127551
|
-
|
|
127554
|
+
resolve18(output.toString());
|
|
127552
127555
|
});
|
|
127553
127556
|
}));
|
|
127554
127557
|
});
|
|
127555
127558
|
}
|
|
127556
127559
|
readBodyBuffer() {
|
|
127557
127560
|
return __awaiter2(this, void 0, void 0, function* () {
|
|
127558
|
-
return new Promise((
|
|
127561
|
+
return new Promise((resolve18) => __awaiter2(this, void 0, void 0, function* () {
|
|
127559
127562
|
const chunks = [];
|
|
127560
127563
|
this.message.on("data", (chunk) => {
|
|
127561
127564
|
chunks.push(chunk);
|
|
127562
127565
|
});
|
|
127563
127566
|
this.message.on("end", () => {
|
|
127564
|
-
|
|
127567
|
+
resolve18(Buffer.concat(chunks));
|
|
127565
127568
|
});
|
|
127566
127569
|
}));
|
|
127567
127570
|
});
|
|
@@ -127770,14 +127773,14 @@ var require_lib19 = __commonJS({
|
|
|
127770
127773
|
*/
|
|
127771
127774
|
requestRaw(info, data2) {
|
|
127772
127775
|
return __awaiter2(this, void 0, void 0, function* () {
|
|
127773
|
-
return new Promise((
|
|
127776
|
+
return new Promise((resolve18, reject) => {
|
|
127774
127777
|
function callbackForResult(err, res) {
|
|
127775
127778
|
if (err) {
|
|
127776
127779
|
reject(err);
|
|
127777
127780
|
} else if (!res) {
|
|
127778
127781
|
reject(new Error("Unknown error"));
|
|
127779
127782
|
} else {
|
|
127780
|
-
|
|
127783
|
+
resolve18(res);
|
|
127781
127784
|
}
|
|
127782
127785
|
}
|
|
127783
127786
|
this.requestRawWithCallback(info, data2, callbackForResult);
|
|
@@ -127959,12 +127962,12 @@ var require_lib19 = __commonJS({
|
|
|
127959
127962
|
return __awaiter2(this, void 0, void 0, function* () {
|
|
127960
127963
|
retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber);
|
|
127961
127964
|
const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber);
|
|
127962
|
-
return new Promise((
|
|
127965
|
+
return new Promise((resolve18) => setTimeout(() => resolve18(), ms));
|
|
127963
127966
|
});
|
|
127964
127967
|
}
|
|
127965
127968
|
_processResponse(res, options) {
|
|
127966
127969
|
return __awaiter2(this, void 0, void 0, function* () {
|
|
127967
|
-
return new Promise((
|
|
127970
|
+
return new Promise((resolve18, reject) => __awaiter2(this, void 0, void 0, function* () {
|
|
127968
127971
|
const statusCode = res.message.statusCode || 0;
|
|
127969
127972
|
const response = {
|
|
127970
127973
|
statusCode,
|
|
@@ -127972,7 +127975,7 @@ var require_lib19 = __commonJS({
|
|
|
127972
127975
|
headers: {}
|
|
127973
127976
|
};
|
|
127974
127977
|
if (statusCode === HttpCodes.NotFound) {
|
|
127975
|
-
|
|
127978
|
+
resolve18(response);
|
|
127976
127979
|
}
|
|
127977
127980
|
function dateTimeDeserializer(key, value) {
|
|
127978
127981
|
if (typeof value === "string") {
|
|
@@ -128011,7 +128014,7 @@ var require_lib19 = __commonJS({
|
|
|
128011
128014
|
err.result = response.result;
|
|
128012
128015
|
reject(err);
|
|
128013
128016
|
} else {
|
|
128014
|
-
|
|
128017
|
+
resolve18(response);
|
|
128015
128018
|
}
|
|
128016
128019
|
}));
|
|
128017
128020
|
});
|
|
@@ -128028,11 +128031,11 @@ var require_auth = __commonJS({
|
|
|
128028
128031
|
"use strict";
|
|
128029
128032
|
var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
128030
128033
|
function adopt(value) {
|
|
128031
|
-
return value instanceof P ? value : new P(function(
|
|
128032
|
-
|
|
128034
|
+
return value instanceof P ? value : new P(function(resolve18) {
|
|
128035
|
+
resolve18(value);
|
|
128033
128036
|
});
|
|
128034
128037
|
}
|
|
128035
|
-
return new (P || (P = Promise))(function(
|
|
128038
|
+
return new (P || (P = Promise))(function(resolve18, reject) {
|
|
128036
128039
|
function fulfilled(value) {
|
|
128037
128040
|
try {
|
|
128038
128041
|
step(generator.next(value));
|
|
@@ -128048,7 +128051,7 @@ var require_auth = __commonJS({
|
|
|
128048
128051
|
}
|
|
128049
128052
|
}
|
|
128050
128053
|
function step(result) {
|
|
128051
|
-
result.done ?
|
|
128054
|
+
result.done ? resolve18(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
128052
128055
|
}
|
|
128053
128056
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
128054
128057
|
});
|
|
@@ -128132,11 +128135,11 @@ var require_oidc_utils = __commonJS({
|
|
|
128132
128135
|
"use strict";
|
|
128133
128136
|
var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
128134
128137
|
function adopt(value) {
|
|
128135
|
-
return value instanceof P ? value : new P(function(
|
|
128136
|
-
|
|
128138
|
+
return value instanceof P ? value : new P(function(resolve18) {
|
|
128139
|
+
resolve18(value);
|
|
128137
128140
|
});
|
|
128138
128141
|
}
|
|
128139
|
-
return new (P || (P = Promise))(function(
|
|
128142
|
+
return new (P || (P = Promise))(function(resolve18, reject) {
|
|
128140
128143
|
function fulfilled(value) {
|
|
128141
128144
|
try {
|
|
128142
128145
|
step(generator.next(value));
|
|
@@ -128152,7 +128155,7 @@ var require_oidc_utils = __commonJS({
|
|
|
128152
128155
|
}
|
|
128153
128156
|
}
|
|
128154
128157
|
function step(result) {
|
|
128155
|
-
result.done ?
|
|
128158
|
+
result.done ? resolve18(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
128156
128159
|
}
|
|
128157
128160
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
128158
128161
|
});
|
|
@@ -128230,11 +128233,11 @@ var require_summary = __commonJS({
|
|
|
128230
128233
|
"use strict";
|
|
128231
128234
|
var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
128232
128235
|
function adopt(value) {
|
|
128233
|
-
return value instanceof P ? value : new P(function(
|
|
128234
|
-
|
|
128236
|
+
return value instanceof P ? value : new P(function(resolve18) {
|
|
128237
|
+
resolve18(value);
|
|
128235
128238
|
});
|
|
128236
128239
|
}
|
|
128237
|
-
return new (P || (P = Promise))(function(
|
|
128240
|
+
return new (P || (P = Promise))(function(resolve18, reject) {
|
|
128238
128241
|
function fulfilled(value) {
|
|
128239
128242
|
try {
|
|
128240
128243
|
step(generator.next(value));
|
|
@@ -128250,7 +128253,7 @@ var require_summary = __commonJS({
|
|
|
128250
128253
|
}
|
|
128251
128254
|
}
|
|
128252
128255
|
function step(result) {
|
|
128253
|
-
result.done ?
|
|
128256
|
+
result.done ? resolve18(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
128254
128257
|
}
|
|
128255
128258
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
128256
128259
|
});
|
|
@@ -128592,11 +128595,11 @@ var require_core4 = __commonJS({
|
|
|
128592
128595
|
};
|
|
128593
128596
|
var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
128594
128597
|
function adopt(value) {
|
|
128595
|
-
return value instanceof P ? value : new P(function(
|
|
128596
|
-
|
|
128598
|
+
return value instanceof P ? value : new P(function(resolve18) {
|
|
128599
|
+
resolve18(value);
|
|
128597
128600
|
});
|
|
128598
128601
|
}
|
|
128599
|
-
return new (P || (P = Promise))(function(
|
|
128602
|
+
return new (P || (P = Promise))(function(resolve18, reject) {
|
|
128600
128603
|
function fulfilled(value) {
|
|
128601
128604
|
try {
|
|
128602
128605
|
step(generator.next(value));
|
|
@@ -128612,7 +128615,7 @@ var require_core4 = __commonJS({
|
|
|
128612
128615
|
}
|
|
128613
128616
|
}
|
|
128614
128617
|
function step(result) {
|
|
128615
|
-
result.done ?
|
|
128618
|
+
result.done ? resolve18(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
128616
128619
|
}
|
|
128617
128620
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
128618
128621
|
});
|
|
@@ -129916,7 +129919,7 @@ var require_minimatch = __commonJS({
|
|
|
129916
129919
|
var require_path_is_absolute = __commonJS({
|
|
129917
129920
|
"../../node_modules/.pnpm/path-is-absolute@1.0.1/node_modules/path-is-absolute/index.js"(exports2, module2) {
|
|
129918
129921
|
"use strict";
|
|
129919
|
-
function
|
|
129922
|
+
function posix3(path3) {
|
|
129920
129923
|
return path3.charAt(0) === "/";
|
|
129921
129924
|
}
|
|
129922
129925
|
function win322(path3) {
|
|
@@ -129926,8 +129929,8 @@ var require_path_is_absolute = __commonJS({
|
|
|
129926
129929
|
var isUnc = Boolean(device && device.charAt(1) !== ":");
|
|
129927
129930
|
return Boolean(result[2] || isUnc);
|
|
129928
129931
|
}
|
|
129929
|
-
module2.exports = process.platform === "win32" ? win322 :
|
|
129930
|
-
module2.exports.posix =
|
|
129932
|
+
module2.exports = process.platform === "win32" ? win322 : posix3;
|
|
129933
|
+
module2.exports.posix = posix3;
|
|
129931
129934
|
module2.exports.win32 = win322;
|
|
129932
129935
|
}
|
|
129933
129936
|
});
|
|
@@ -132176,11 +132179,11 @@ var require_utils6 = __commonJS({
|
|
|
132176
132179
|
"use strict";
|
|
132177
132180
|
var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
132178
132181
|
function adopt(value) {
|
|
132179
|
-
return value instanceof P ? value : new P(function(
|
|
132180
|
-
|
|
132182
|
+
return value instanceof P ? value : new P(function(resolve18) {
|
|
132183
|
+
resolve18(value);
|
|
132181
132184
|
});
|
|
132182
132185
|
}
|
|
132183
|
-
return new (P || (P = Promise))(function(
|
|
132186
|
+
return new (P || (P = Promise))(function(resolve18, reject) {
|
|
132184
132187
|
function fulfilled(value) {
|
|
132185
132188
|
try {
|
|
132186
132189
|
step(generator.next(value));
|
|
@@ -132196,7 +132199,7 @@ var require_utils6 = __commonJS({
|
|
|
132196
132199
|
}
|
|
132197
132200
|
}
|
|
132198
132201
|
function step(result) {
|
|
132199
|
-
result.done ?
|
|
132202
|
+
result.done ? resolve18(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
132200
132203
|
}
|
|
132201
132204
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
132202
132205
|
});
|
|
@@ -132406,19 +132409,19 @@ Header Information: ${JSON.stringify(response.message.headers, void 0, 2)}
|
|
|
132406
132409
|
exports2.getProperRetention = getProperRetention;
|
|
132407
132410
|
function sleep(milliseconds) {
|
|
132408
132411
|
return __awaiter2(this, void 0, void 0, function* () {
|
|
132409
|
-
return new Promise((
|
|
132412
|
+
return new Promise((resolve18) => setTimeout(resolve18, milliseconds));
|
|
132410
132413
|
});
|
|
132411
132414
|
}
|
|
132412
132415
|
exports2.sleep = sleep;
|
|
132413
132416
|
function digestForStream(stream5) {
|
|
132414
132417
|
return __awaiter2(this, void 0, void 0, function* () {
|
|
132415
|
-
return new Promise((
|
|
132418
|
+
return new Promise((resolve18, reject) => {
|
|
132416
132419
|
const crc64 = new crc64_1.default();
|
|
132417
132420
|
const md52 = crypto_1.default.createHash("md5");
|
|
132418
132421
|
stream5.on("data", (data2) => {
|
|
132419
132422
|
crc64.update(data2);
|
|
132420
132423
|
md52.update(data2);
|
|
132421
|
-
}).on("end", () =>
|
|
132424
|
+
}).on("end", () => resolve18({
|
|
132422
132425
|
crc64: crc64.digest("base64"),
|
|
132423
132426
|
md5: md52.digest("base64")
|
|
132424
132427
|
})).on("error", reject);
|
|
@@ -132542,11 +132545,11 @@ var require_upload_gzip = __commonJS({
|
|
|
132542
132545
|
};
|
|
132543
132546
|
var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
132544
132547
|
function adopt(value) {
|
|
132545
|
-
return value instanceof P ? value : new P(function(
|
|
132546
|
-
|
|
132548
|
+
return value instanceof P ? value : new P(function(resolve18) {
|
|
132549
|
+
resolve18(value);
|
|
132547
132550
|
});
|
|
132548
132551
|
}
|
|
132549
|
-
return new (P || (P = Promise))(function(
|
|
132552
|
+
return new (P || (P = Promise))(function(resolve18, reject) {
|
|
132550
132553
|
function fulfilled(value) {
|
|
132551
132554
|
try {
|
|
132552
132555
|
step(generator.next(value));
|
|
@@ -132562,7 +132565,7 @@ var require_upload_gzip = __commonJS({
|
|
|
132562
132565
|
}
|
|
132563
132566
|
}
|
|
132564
132567
|
function step(result) {
|
|
132565
|
-
result.done ?
|
|
132568
|
+
result.done ? resolve18(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
132566
132569
|
}
|
|
132567
132570
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
132568
132571
|
});
|
|
@@ -132575,14 +132578,14 @@ var require_upload_gzip = __commonJS({
|
|
|
132575
132578
|
}, i6);
|
|
132576
132579
|
function verb(n2) {
|
|
132577
132580
|
i6[n2] = o7[n2] && function(v) {
|
|
132578
|
-
return new Promise(function(
|
|
132579
|
-
v = o7[n2](v), settle2(
|
|
132581
|
+
return new Promise(function(resolve18, reject) {
|
|
132582
|
+
v = o7[n2](v), settle2(resolve18, reject, v.done, v.value);
|
|
132580
132583
|
});
|
|
132581
132584
|
};
|
|
132582
132585
|
}
|
|
132583
|
-
function settle2(
|
|
132586
|
+
function settle2(resolve18, reject, d2, v) {
|
|
132584
132587
|
Promise.resolve(v).then(function(v2) {
|
|
132585
|
-
|
|
132588
|
+
resolve18({ value: v2, done: d2 });
|
|
132586
132589
|
}, reject);
|
|
132587
132590
|
}
|
|
132588
132591
|
};
|
|
@@ -132623,14 +132626,14 @@ var require_upload_gzip = __commonJS({
|
|
|
132623
132626
|
return Number.MAX_SAFE_INTEGER;
|
|
132624
132627
|
}
|
|
132625
132628
|
}
|
|
132626
|
-
return new Promise((
|
|
132629
|
+
return new Promise((resolve18, reject) => {
|
|
132627
132630
|
const inputStream = fs.createReadStream(originalFilePath);
|
|
132628
132631
|
const gzip = zlib2.createGzip();
|
|
132629
132632
|
const outputStream = fs.createWriteStream(tempFilePath);
|
|
132630
132633
|
inputStream.pipe(gzip).pipe(outputStream);
|
|
132631
132634
|
outputStream.on("finish", () => __awaiter2(this, void 0, void 0, function* () {
|
|
132632
132635
|
const size = (yield stat2(tempFilePath)).size;
|
|
132633
|
-
|
|
132636
|
+
resolve18(size);
|
|
132634
132637
|
}));
|
|
132635
132638
|
outputStream.on("error", (error) => {
|
|
132636
132639
|
console.log(error);
|
|
@@ -132642,7 +132645,7 @@ var require_upload_gzip = __commonJS({
|
|
|
132642
132645
|
exports2.createGZipFileOnDisk = createGZipFileOnDisk;
|
|
132643
132646
|
function createGZipFileInBuffer(originalFilePath) {
|
|
132644
132647
|
return __awaiter2(this, void 0, void 0, function* () {
|
|
132645
|
-
return new Promise((
|
|
132648
|
+
return new Promise((resolve18) => __awaiter2(this, void 0, void 0, function* () {
|
|
132646
132649
|
var _a2, e_1, _b, _c;
|
|
132647
132650
|
const inputStream = fs.createReadStream(originalFilePath);
|
|
132648
132651
|
const gzip = zlib2.createGzip();
|
|
@@ -132668,7 +132671,7 @@ var require_upload_gzip = __commonJS({
|
|
|
132668
132671
|
if (e_1) throw e_1.error;
|
|
132669
132672
|
}
|
|
132670
132673
|
}
|
|
132671
|
-
|
|
132674
|
+
resolve18(Buffer.concat(chunks));
|
|
132672
132675
|
}));
|
|
132673
132676
|
});
|
|
132674
132677
|
}
|
|
@@ -132709,11 +132712,11 @@ var require_requestUtils = __commonJS({
|
|
|
132709
132712
|
};
|
|
132710
132713
|
var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
132711
132714
|
function adopt(value) {
|
|
132712
|
-
return value instanceof P ? value : new P(function(
|
|
132713
|
-
|
|
132715
|
+
return value instanceof P ? value : new P(function(resolve18) {
|
|
132716
|
+
resolve18(value);
|
|
132714
132717
|
});
|
|
132715
132718
|
}
|
|
132716
|
-
return new (P || (P = Promise))(function(
|
|
132719
|
+
return new (P || (P = Promise))(function(resolve18, reject) {
|
|
132717
132720
|
function fulfilled(value) {
|
|
132718
132721
|
try {
|
|
132719
132722
|
step(generator.next(value));
|
|
@@ -132729,7 +132732,7 @@ var require_requestUtils = __commonJS({
|
|
|
132729
132732
|
}
|
|
132730
132733
|
}
|
|
132731
132734
|
function step(result) {
|
|
132732
|
-
result.done ?
|
|
132735
|
+
result.done ? resolve18(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
132733
132736
|
}
|
|
132734
132737
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
132735
132738
|
});
|
|
@@ -132826,11 +132829,11 @@ var require_upload_http_client = __commonJS({
|
|
|
132826
132829
|
};
|
|
132827
132830
|
var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
132828
132831
|
function adopt(value) {
|
|
132829
|
-
return value instanceof P ? value : new P(function(
|
|
132830
|
-
|
|
132832
|
+
return value instanceof P ? value : new P(function(resolve18) {
|
|
132833
|
+
resolve18(value);
|
|
132831
132834
|
});
|
|
132832
132835
|
}
|
|
132833
|
-
return new (P || (P = Promise))(function(
|
|
132836
|
+
return new (P || (P = Promise))(function(resolve18, reject) {
|
|
132834
132837
|
function fulfilled(value) {
|
|
132835
132838
|
try {
|
|
132836
132839
|
step(generator.next(value));
|
|
@@ -132846,7 +132849,7 @@ var require_upload_http_client = __commonJS({
|
|
|
132846
132849
|
}
|
|
132847
132850
|
}
|
|
132848
132851
|
function step(result) {
|
|
132849
|
-
result.done ?
|
|
132852
|
+
result.done ? resolve18(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
132850
132853
|
}
|
|
132851
132854
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
132852
132855
|
});
|
|
@@ -133218,11 +133221,11 @@ var require_download_http_client = __commonJS({
|
|
|
133218
133221
|
};
|
|
133219
133222
|
var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
133220
133223
|
function adopt(value) {
|
|
133221
|
-
return value instanceof P ? value : new P(function(
|
|
133222
|
-
|
|
133224
|
+
return value instanceof P ? value : new P(function(resolve18) {
|
|
133225
|
+
resolve18(value);
|
|
133223
133226
|
});
|
|
133224
133227
|
}
|
|
133225
|
-
return new (P || (P = Promise))(function(
|
|
133228
|
+
return new (P || (P = Promise))(function(resolve18, reject) {
|
|
133226
133229
|
function fulfilled(value) {
|
|
133227
133230
|
try {
|
|
133228
133231
|
step(generator.next(value));
|
|
@@ -133238,7 +133241,7 @@ var require_download_http_client = __commonJS({
|
|
|
133238
133241
|
}
|
|
133239
133242
|
}
|
|
133240
133243
|
function step(result) {
|
|
133241
|
-
result.done ?
|
|
133244
|
+
result.done ? resolve18(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
133242
133245
|
}
|
|
133243
133246
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
133244
133247
|
});
|
|
@@ -133371,10 +133374,10 @@ var require_download_http_client = __commonJS({
|
|
|
133371
133374
|
};
|
|
133372
133375
|
const resetDestinationStream = (fileDownloadPath) => __awaiter2(this, void 0, void 0, function* () {
|
|
133373
133376
|
destinationStream.close();
|
|
133374
|
-
yield new Promise((
|
|
133375
|
-
destinationStream.on("close",
|
|
133377
|
+
yield new Promise((resolve18) => {
|
|
133378
|
+
destinationStream.on("close", resolve18);
|
|
133376
133379
|
if (destinationStream.writableFinished) {
|
|
133377
|
-
|
|
133380
|
+
resolve18();
|
|
133378
133381
|
}
|
|
133379
133382
|
});
|
|
133380
133383
|
yield (0, utils_1.rmFile)(fileDownloadPath);
|
|
@@ -133423,7 +133426,7 @@ var require_download_http_client = __commonJS({
|
|
|
133423
133426
|
*/
|
|
133424
133427
|
pipeResponseToFile(response, destinationStream, isGzip) {
|
|
133425
133428
|
return __awaiter2(this, void 0, void 0, function* () {
|
|
133426
|
-
yield new Promise((
|
|
133429
|
+
yield new Promise((resolve18, reject) => {
|
|
133427
133430
|
if (isGzip) {
|
|
133428
133431
|
const gunzip = zlib2.createGunzip();
|
|
133429
133432
|
response.message.on("error", (error) => {
|
|
@@ -133436,7 +133439,7 @@ var require_download_http_client = __commonJS({
|
|
|
133436
133439
|
destinationStream.close();
|
|
133437
133440
|
reject(error);
|
|
133438
133441
|
}).pipe(destinationStream).on("close", () => {
|
|
133439
|
-
|
|
133442
|
+
resolve18();
|
|
133440
133443
|
}).on("error", (error) => {
|
|
133441
133444
|
core.info(`An error occurred while writing a downloaded file to ${destinationStream.path}`);
|
|
133442
133445
|
reject(error);
|
|
@@ -133447,7 +133450,7 @@ var require_download_http_client = __commonJS({
|
|
|
133447
133450
|
destinationStream.close();
|
|
133448
133451
|
reject(error);
|
|
133449
133452
|
}).pipe(destinationStream).on("close", () => {
|
|
133450
|
-
|
|
133453
|
+
resolve18();
|
|
133451
133454
|
}).on("error", (error) => {
|
|
133452
133455
|
core.info(`An error occurred while writing a downloaded file to ${destinationStream.path}`);
|
|
133453
133456
|
reject(error);
|
|
@@ -133561,11 +133564,11 @@ var require_artifact_client = __commonJS({
|
|
|
133561
133564
|
};
|
|
133562
133565
|
var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
133563
133566
|
function adopt(value) {
|
|
133564
|
-
return value instanceof P ? value : new P(function(
|
|
133565
|
-
|
|
133567
|
+
return value instanceof P ? value : new P(function(resolve18) {
|
|
133568
|
+
resolve18(value);
|
|
133566
133569
|
});
|
|
133567
133570
|
}
|
|
133568
|
-
return new (P || (P = Promise))(function(
|
|
133571
|
+
return new (P || (P = Promise))(function(resolve18, reject) {
|
|
133569
133572
|
function fulfilled(value) {
|
|
133570
133573
|
try {
|
|
133571
133574
|
step(generator.next(value));
|
|
@@ -133581,7 +133584,7 @@ var require_artifact_client = __commonJS({
|
|
|
133581
133584
|
}
|
|
133582
133585
|
}
|
|
133583
133586
|
function step(result) {
|
|
133584
|
-
result.done ?
|
|
133587
|
+
result.done ? resolve18(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
133585
133588
|
}
|
|
133586
133589
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
133587
133590
|
});
|
|
@@ -135070,11 +135073,11 @@ var require_utils7 = __commonJS({
|
|
|
135070
135073
|
};
|
|
135071
135074
|
var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
135072
135075
|
function adopt(value) {
|
|
135073
|
-
return value instanceof P ? value : new P(function(
|
|
135074
|
-
|
|
135076
|
+
return value instanceof P ? value : new P(function(resolve18) {
|
|
135077
|
+
resolve18(value);
|
|
135075
135078
|
});
|
|
135076
135079
|
}
|
|
135077
|
-
return new (P || (P = Promise))(function(
|
|
135080
|
+
return new (P || (P = Promise))(function(resolve18, reject) {
|
|
135078
135081
|
function fulfilled(value) {
|
|
135079
135082
|
try {
|
|
135080
135083
|
step(generator.next(value));
|
|
@@ -135090,7 +135093,7 @@ var require_utils7 = __commonJS({
|
|
|
135090
135093
|
}
|
|
135091
135094
|
}
|
|
135092
135095
|
function step(result) {
|
|
135093
|
-
result.done ?
|
|
135096
|
+
result.done ? resolve18(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
135094
135097
|
}
|
|
135095
135098
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
135096
135099
|
});
|
|
@@ -140251,9 +140254,9 @@ var require_micromatch2 = __commonJS({
|
|
|
140251
140254
|
return [].concat(patterns).every((p3) => picomatch(p3, options)(str));
|
|
140252
140255
|
};
|
|
140253
140256
|
micromatch.capture = (glob2, input, options) => {
|
|
140254
|
-
let
|
|
140257
|
+
let posix3 = utils.isWindows(options);
|
|
140255
140258
|
let regex = picomatch.makeRe(String(glob2), { ...options, capture: true });
|
|
140256
|
-
let match2 = regex.exec(
|
|
140259
|
+
let match2 = regex.exec(posix3 ? utils.toPosixSlashes(input) : input);
|
|
140257
140260
|
if (match2) {
|
|
140258
140261
|
return match2.slice(1).map((v) => v === void 0 ? "" : v);
|
|
140259
140262
|
}
|
|
@@ -140688,14 +140691,14 @@ var init_promise_queue = __esm({
|
|
|
140688
140691
|
this.runNextTask();
|
|
140689
140692
|
}
|
|
140690
140693
|
async onIdle() {
|
|
140691
|
-
return new Promise((
|
|
140694
|
+
return new Promise((resolve18, reject) => {
|
|
140692
140695
|
if (this.error) {
|
|
140693
140696
|
reject(this.error);
|
|
140694
140697
|
this.error = null;
|
|
140695
140698
|
} else if (this.queue.length === 0 && this.activeTasks === 0) {
|
|
140696
|
-
|
|
140699
|
+
resolve18();
|
|
140697
140700
|
} else {
|
|
140698
|
-
this.idleResolver =
|
|
140701
|
+
this.idleResolver = resolve18;
|
|
140699
140702
|
this.idleRejector = reject;
|
|
140700
140703
|
}
|
|
140701
140704
|
});
|
|
@@ -153830,7 +153833,7 @@ var require_utils10 = __commonJS({
|
|
|
153830
153833
|
}
|
|
153831
153834
|
exports2.matchesParentDomain = matchesParentDomain;
|
|
153832
153835
|
async function request(uri, options = {}) {
|
|
153833
|
-
return new Promise((
|
|
153836
|
+
return new Promise((resolve18, reject) => {
|
|
153834
153837
|
const requestOptions = {
|
|
153835
153838
|
method: "GET",
|
|
153836
153839
|
timeout: 1e4,
|
|
@@ -153846,12 +153849,12 @@ var require_utils10 = __commonJS({
|
|
|
153846
153849
|
});
|
|
153847
153850
|
res.once("end", () => {
|
|
153848
153851
|
if (options.json === false) {
|
|
153849
|
-
|
|
153852
|
+
resolve18(data2);
|
|
153850
153853
|
return;
|
|
153851
153854
|
}
|
|
153852
153855
|
try {
|
|
153853
153856
|
const parsed = JSON.parse(data2);
|
|
153854
|
-
|
|
153857
|
+
resolve18(parsed);
|
|
153855
153858
|
} catch {
|
|
153856
153859
|
reject(new error_1.MongoRuntimeError(`Invalid JSON response: "${data2}"`));
|
|
153857
153860
|
}
|
|
@@ -159509,11 +159512,11 @@ var require_drop = __commonJS({
|
|
|
159509
159512
|
})().then((result) => callback(void 0, result), (err) => callback(err));
|
|
159510
159513
|
}
|
|
159511
159514
|
executeWithoutEncryptedFieldsCheck(server, session) {
|
|
159512
|
-
return new Promise((
|
|
159515
|
+
return new Promise((resolve18, reject) => {
|
|
159513
159516
|
super.executeCommand(server, session, { drop: this.name }, (err, result) => {
|
|
159514
159517
|
if (err)
|
|
159515
159518
|
return reject(err);
|
|
159516
|
-
|
|
159519
|
+
resolve18(!!result.ok);
|
|
159517
159520
|
});
|
|
159518
159521
|
});
|
|
159519
159522
|
}
|
|
@@ -160973,7 +160976,7 @@ var require_create_collection = __commonJS({
|
|
|
160973
160976
|
})().then((coll) => callback(void 0, coll), (err) => callback(err));
|
|
160974
160977
|
}
|
|
160975
160978
|
executeWithoutEncryptedFieldsCheck(server, session) {
|
|
160976
|
-
return new Promise((
|
|
160979
|
+
return new Promise((resolve18, reject) => {
|
|
160977
160980
|
const db = this.db;
|
|
160978
160981
|
const name = this.name;
|
|
160979
160982
|
const options = this.options;
|
|
@@ -160981,7 +160984,7 @@ var require_create_collection = __commonJS({
|
|
|
160981
160984
|
if (err) {
|
|
160982
160985
|
return reject(err);
|
|
160983
160986
|
}
|
|
160984
|
-
|
|
160987
|
+
resolve18(new collection_1.Collection(db, name, options));
|
|
160985
160988
|
};
|
|
160986
160989
|
const cmd = { create: name };
|
|
160987
160990
|
for (const n2 in options) {
|
|
@@ -172978,7 +172981,7 @@ var require_mongo_client = __commonJS({
|
|
|
172978
172981
|
}
|
|
172979
172982
|
const topology = this.topology;
|
|
172980
172983
|
this.topology = void 0;
|
|
172981
|
-
await new Promise((
|
|
172984
|
+
await new Promise((resolve18, reject) => {
|
|
172982
172985
|
topology.close({ force }, (error) => {
|
|
172983
172986
|
if (error)
|
|
172984
172987
|
return reject(error);
|
|
@@ -172987,10 +172990,10 @@ var require_mongo_client = __commonJS({
|
|
|
172987
172990
|
return encrypter.close(this, force, (error2) => {
|
|
172988
172991
|
if (error2)
|
|
172989
172992
|
return reject(error2);
|
|
172990
|
-
|
|
172993
|
+
resolve18();
|
|
172991
172994
|
});
|
|
172992
172995
|
}
|
|
172993
|
-
|
|
172996
|
+
resolve18();
|
|
172994
172997
|
});
|
|
172995
172998
|
});
|
|
172996
172999
|
}
|
|
@@ -176164,10 +176167,10 @@ function compareDocumentPosition(nodeA, nodeB) {
|
|
|
176164
176167
|
function uniqueSort(nodes) {
|
|
176165
176168
|
nodes = nodes.filter((node, i6, arr) => !arr.includes(node, i6 + 1));
|
|
176166
176169
|
nodes.sort((a2, b) => {
|
|
176167
|
-
const
|
|
176168
|
-
if (
|
|
176170
|
+
const relative6 = compareDocumentPosition(a2, b);
|
|
176171
|
+
if (relative6 & DocumentPosition.PRECEDING) {
|
|
176169
176172
|
return -1;
|
|
176170
|
-
} else if (
|
|
176173
|
+
} else if (relative6 & DocumentPosition.FOLLOWING) {
|
|
176171
176174
|
return 1;
|
|
176172
176175
|
}
|
|
176173
176176
|
return 0;
|
|
@@ -191769,7 +191772,7 @@ var require_lib24 = __commonJS({
|
|
|
191769
191772
|
let accum = [];
|
|
191770
191773
|
let accumBytes = 0;
|
|
191771
191774
|
let abort = false;
|
|
191772
|
-
return new Body.Promise(function(
|
|
191775
|
+
return new Body.Promise(function(resolve18, reject) {
|
|
191773
191776
|
let resTimeout;
|
|
191774
191777
|
if (_this4.timeout) {
|
|
191775
191778
|
resTimeout = setTimeout(function() {
|
|
@@ -191803,7 +191806,7 @@ var require_lib24 = __commonJS({
|
|
|
191803
191806
|
}
|
|
191804
191807
|
clearTimeout(resTimeout);
|
|
191805
191808
|
try {
|
|
191806
|
-
|
|
191809
|
+
resolve18(Buffer.concat(accum, accumBytes));
|
|
191807
191810
|
} catch (err) {
|
|
191808
191811
|
reject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err.message}`, "system", err));
|
|
191809
191812
|
}
|
|
@@ -192478,7 +192481,7 @@ var require_lib24 = __commonJS({
|
|
|
192478
192481
|
throw new Error("native promise missing, set fetch.Promise to your favorite alternative");
|
|
192479
192482
|
}
|
|
192480
192483
|
Body.Promise = fetch3.Promise;
|
|
192481
|
-
return new fetch3.Promise(function(
|
|
192484
|
+
return new fetch3.Promise(function(resolve18, reject) {
|
|
192482
192485
|
const request = new Request2(url2, opts);
|
|
192483
192486
|
const options = getNodeRequestOptions(request);
|
|
192484
192487
|
const send = (options.protocol === "https:" ? https2 : http2).request;
|
|
@@ -192611,7 +192614,7 @@ var require_lib24 = __commonJS({
|
|
|
192611
192614
|
requestOpts.body = void 0;
|
|
192612
192615
|
requestOpts.headers.delete("content-length");
|
|
192613
192616
|
}
|
|
192614
|
-
|
|
192617
|
+
resolve18(fetch3(new Request2(locationURL, requestOpts)));
|
|
192615
192618
|
finalize();
|
|
192616
192619
|
return;
|
|
192617
192620
|
}
|
|
@@ -192632,7 +192635,7 @@ var require_lib24 = __commonJS({
|
|
|
192632
192635
|
const codings = headers.get("Content-Encoding");
|
|
192633
192636
|
if (!request.compress || request.method === "HEAD" || codings === null || res.statusCode === 204 || res.statusCode === 304) {
|
|
192634
192637
|
response = new Response2(body, response_options);
|
|
192635
|
-
|
|
192638
|
+
resolve18(response);
|
|
192636
192639
|
return;
|
|
192637
192640
|
}
|
|
192638
192641
|
const zlibOptions2 = {
|
|
@@ -192642,7 +192645,7 @@ var require_lib24 = __commonJS({
|
|
|
192642
192645
|
if (codings == "gzip" || codings == "x-gzip") {
|
|
192643
192646
|
body = body.pipe(zlib2.createGunzip(zlibOptions2));
|
|
192644
192647
|
response = new Response2(body, response_options);
|
|
192645
|
-
|
|
192648
|
+
resolve18(response);
|
|
192646
192649
|
return;
|
|
192647
192650
|
}
|
|
192648
192651
|
if (codings == "deflate" || codings == "x-deflate") {
|
|
@@ -192654,12 +192657,12 @@ var require_lib24 = __commonJS({
|
|
|
192654
192657
|
body = body.pipe(zlib2.createInflateRaw());
|
|
192655
192658
|
}
|
|
192656
192659
|
response = new Response2(body, response_options);
|
|
192657
|
-
|
|
192660
|
+
resolve18(response);
|
|
192658
192661
|
});
|
|
192659
192662
|
raw.on("end", function() {
|
|
192660
192663
|
if (!response) {
|
|
192661
192664
|
response = new Response2(body, response_options);
|
|
192662
|
-
|
|
192665
|
+
resolve18(response);
|
|
192663
192666
|
}
|
|
192664
192667
|
});
|
|
192665
192668
|
return;
|
|
@@ -192667,11 +192670,11 @@ var require_lib24 = __commonJS({
|
|
|
192667
192670
|
if (codings == "br" && typeof zlib2.createBrotliDecompress === "function") {
|
|
192668
192671
|
body = body.pipe(zlib2.createBrotliDecompress());
|
|
192669
192672
|
response = new Response2(body, response_options);
|
|
192670
|
-
|
|
192673
|
+
resolve18(response);
|
|
192671
192674
|
return;
|
|
192672
192675
|
}
|
|
192673
192676
|
response = new Response2(body, response_options);
|
|
192674
|
-
|
|
192677
|
+
resolve18(response);
|
|
192675
192678
|
});
|
|
192676
192679
|
writeToStream(req, request);
|
|
192677
192680
|
});
|
|
@@ -194846,8 +194849,8 @@ var require_light = __commonJS({
|
|
|
194846
194849
|
return this.Promise.resolve();
|
|
194847
194850
|
}
|
|
194848
194851
|
yieldLoop(t3 = 0) {
|
|
194849
|
-
return new this.Promise(function(
|
|
194850
|
-
return setTimeout(
|
|
194852
|
+
return new this.Promise(function(resolve18, reject) {
|
|
194853
|
+
return setTimeout(resolve18, t3);
|
|
194851
194854
|
});
|
|
194852
194855
|
}
|
|
194853
194856
|
computePenalty() {
|
|
@@ -195058,15 +195061,15 @@ var require_light = __commonJS({
|
|
|
195058
195061
|
return this._queue.length === 0;
|
|
195059
195062
|
}
|
|
195060
195063
|
async _tryToRun() {
|
|
195061
|
-
var args2, cb, error, reject,
|
|
195064
|
+
var args2, cb, error, reject, resolve18, returned, task;
|
|
195062
195065
|
if (this._running < 1 && this._queue.length > 0) {
|
|
195063
195066
|
this._running++;
|
|
195064
|
-
({ task, args: args2, resolve:
|
|
195067
|
+
({ task, args: args2, resolve: resolve18, reject } = this._queue.shift());
|
|
195065
195068
|
cb = await async function() {
|
|
195066
195069
|
try {
|
|
195067
195070
|
returned = await task(...args2);
|
|
195068
195071
|
return function() {
|
|
195069
|
-
return
|
|
195072
|
+
return resolve18(returned);
|
|
195070
195073
|
};
|
|
195071
195074
|
} catch (error1) {
|
|
195072
195075
|
error = error1;
|
|
@@ -195081,13 +195084,13 @@ var require_light = __commonJS({
|
|
|
195081
195084
|
}
|
|
195082
195085
|
}
|
|
195083
195086
|
schedule(task, ...args2) {
|
|
195084
|
-
var promise, reject,
|
|
195085
|
-
|
|
195087
|
+
var promise, reject, resolve18;
|
|
195088
|
+
resolve18 = reject = null;
|
|
195086
195089
|
promise = new this.Promise(function(_resolve, _reject) {
|
|
195087
|
-
|
|
195090
|
+
resolve18 = _resolve;
|
|
195088
195091
|
return reject = _reject;
|
|
195089
195092
|
});
|
|
195090
|
-
this._queue.push({ task, args: args2, resolve:
|
|
195093
|
+
this._queue.push({ task, args: args2, resolve: resolve18, reject });
|
|
195091
195094
|
this._tryToRun();
|
|
195092
195095
|
return promise;
|
|
195093
195096
|
}
|
|
@@ -195488,14 +195491,14 @@ var require_light = __commonJS({
|
|
|
195488
195491
|
counts = this._states.counts;
|
|
195489
195492
|
return counts[0] + counts[1] + counts[2] + counts[3] === at;
|
|
195490
195493
|
};
|
|
195491
|
-
return new this.Promise((
|
|
195494
|
+
return new this.Promise((resolve18, reject) => {
|
|
195492
195495
|
if (finished()) {
|
|
195493
|
-
return
|
|
195496
|
+
return resolve18();
|
|
195494
195497
|
} else {
|
|
195495
195498
|
return this.on("done", () => {
|
|
195496
195499
|
if (finished()) {
|
|
195497
195500
|
this.removeAllListeners("done");
|
|
195498
|
-
return
|
|
195501
|
+
return resolve18();
|
|
195499
195502
|
}
|
|
195500
195503
|
});
|
|
195501
195504
|
}
|
|
@@ -195588,9 +195591,9 @@ var require_light = __commonJS({
|
|
|
195588
195591
|
options = parser$5.load(options, this.jobDefaults);
|
|
195589
195592
|
}
|
|
195590
195593
|
task = (...args3) => {
|
|
195591
|
-
return new this.Promise(function(
|
|
195594
|
+
return new this.Promise(function(resolve18, reject) {
|
|
195592
195595
|
return fn2(...args3, function(...args4) {
|
|
195593
|
-
return (args4[0] != null ? reject :
|
|
195596
|
+
return (args4[0] != null ? reject : resolve18)(args4);
|
|
195594
195597
|
});
|
|
195595
195598
|
});
|
|
195596
195599
|
};
|
|
@@ -196335,7 +196338,7 @@ var require_dist_node23 = __commonJS({
|
|
|
196335
196338
|
return newScope === currentScope ? authentication : false;
|
|
196336
196339
|
}
|
|
196337
196340
|
async function wait(seconds) {
|
|
196338
|
-
await new Promise((
|
|
196341
|
+
await new Promise((resolve18) => setTimeout(resolve18, seconds * 1e3));
|
|
196339
196342
|
}
|
|
196340
196343
|
async function waitForAccessToken(request2, clientId, clientType, verification) {
|
|
196341
196344
|
try {
|
|
@@ -198836,7 +198839,7 @@ var require_dist_node27 = __commonJS({
|
|
|
198836
198839
|
++retries;
|
|
198837
198840
|
const awaitTime = retries * 1e3;
|
|
198838
198841
|
state.log.warn(`[@octokit/auth-app] Retrying after 401 response to account for token replication delay (retry: ${retries}, wait: ${awaitTime / 1e3}s)`);
|
|
198839
|
-
await new Promise((
|
|
198842
|
+
await new Promise((resolve18) => setTimeout(resolve18, awaitTime));
|
|
198840
198843
|
return sendRequestWithRetries(state, request2, options, createdAt, retries);
|
|
198841
198844
|
}
|
|
198842
198845
|
}
|
|
@@ -199560,9 +199563,9 @@ var require_dist_node29 = __commonJS({
|
|
|
199560
199563
|
headers
|
|
199561
199564
|
} = request;
|
|
199562
199565
|
async function text3() {
|
|
199563
|
-
const text4 = await new Promise((
|
|
199566
|
+
const text4 = await new Promise((resolve18, reject) => {
|
|
199564
199567
|
let bodyChunks = [];
|
|
199565
|
-
request.on("error", reject).on("data", (chunk) => bodyChunks.push(chunk)).on("end", () =>
|
|
199568
|
+
request.on("error", reject).on("data", (chunk) => bodyChunks.push(chunk)).on("end", () => resolve18(Buffer.concat(bodyChunks).toString()));
|
|
199566
199569
|
});
|
|
199567
199570
|
return text4;
|
|
199568
199571
|
}
|
|
@@ -200105,7 +200108,7 @@ var require_dist_node31 = __commonJS({
|
|
|
200105
200108
|
}
|
|
200106
200109
|
return Promise.resolve(request.body);
|
|
200107
200110
|
}
|
|
200108
|
-
return new Promise((
|
|
200111
|
+
return new Promise((resolve18, reject) => {
|
|
200109
200112
|
let data2 = "";
|
|
200110
200113
|
request.setEncoding("utf8");
|
|
200111
200114
|
request.on("error", (error) => reject(new AggregateError([error])));
|
|
@@ -200113,7 +200116,7 @@ var require_dist_node31 = __commonJS({
|
|
|
200113
200116
|
request.on("end", () => {
|
|
200114
200117
|
try {
|
|
200115
200118
|
JSON.parse(data2);
|
|
200116
|
-
|
|
200119
|
+
resolve18(data2);
|
|
200117
200120
|
} catch (error) {
|
|
200118
200121
|
error.message = "Invalid JSON";
|
|
200119
200122
|
error.status = 400;
|
|
@@ -200778,11 +200781,11 @@ var require_p_finally = __commonJS({
|
|
|
200778
200781
|
onFinally = onFinally || (() => {
|
|
200779
200782
|
});
|
|
200780
200783
|
return promise.then(
|
|
200781
|
-
(val3) => new Promise((
|
|
200782
|
-
|
|
200784
|
+
(val3) => new Promise((resolve18) => {
|
|
200785
|
+
resolve18(onFinally());
|
|
200783
200786
|
}).then(() => val3),
|
|
200784
|
-
(err) => new Promise((
|
|
200785
|
-
|
|
200787
|
+
(err) => new Promise((resolve18) => {
|
|
200788
|
+
resolve18(onFinally());
|
|
200786
200789
|
}).then(() => {
|
|
200787
200790
|
throw err;
|
|
200788
200791
|
})
|
|
@@ -200802,18 +200805,18 @@ var require_p_timeout = __commonJS({
|
|
|
200802
200805
|
this.name = "TimeoutError";
|
|
200803
200806
|
}
|
|
200804
200807
|
};
|
|
200805
|
-
var pTimeout = (promise, milliseconds, fallback) => new Promise((
|
|
200808
|
+
var pTimeout = (promise, milliseconds, fallback) => new Promise((resolve18, reject) => {
|
|
200806
200809
|
if (typeof milliseconds !== "number" || milliseconds < 0) {
|
|
200807
200810
|
throw new TypeError("Expected `milliseconds` to be a positive number");
|
|
200808
200811
|
}
|
|
200809
200812
|
if (milliseconds === Infinity) {
|
|
200810
|
-
|
|
200813
|
+
resolve18(promise);
|
|
200811
200814
|
return;
|
|
200812
200815
|
}
|
|
200813
200816
|
const timer = setTimeout(() => {
|
|
200814
200817
|
if (typeof fallback === "function") {
|
|
200815
200818
|
try {
|
|
200816
|
-
|
|
200819
|
+
resolve18(fallback());
|
|
200817
200820
|
} catch (error) {
|
|
200818
200821
|
reject(error);
|
|
200819
200822
|
}
|
|
@@ -200828,7 +200831,7 @@ var require_p_timeout = __commonJS({
|
|
|
200828
200831
|
}, milliseconds);
|
|
200829
200832
|
pFinally(
|
|
200830
200833
|
// eslint-disable-next-line promise/prefer-await-to-then
|
|
200831
|
-
promise.then(
|
|
200834
|
+
promise.then(resolve18, reject),
|
|
200832
200835
|
() => {
|
|
200833
200836
|
clearTimeout(timer);
|
|
200834
200837
|
}
|
|
@@ -201046,7 +201049,7 @@ var require_dist13 = __commonJS({
|
|
|
201046
201049
|
Adds a sync or async task to the queue. Always returns a promise.
|
|
201047
201050
|
*/
|
|
201048
201051
|
async add(fn2, options = {}) {
|
|
201049
|
-
return new Promise((
|
|
201052
|
+
return new Promise((resolve18, reject) => {
|
|
201050
201053
|
const run2 = async () => {
|
|
201051
201054
|
this._pendingCount++;
|
|
201052
201055
|
this._intervalCount++;
|
|
@@ -201057,7 +201060,7 @@ var require_dist13 = __commonJS({
|
|
|
201057
201060
|
}
|
|
201058
201061
|
return void 0;
|
|
201059
201062
|
});
|
|
201060
|
-
|
|
201063
|
+
resolve18(await operation);
|
|
201061
201064
|
} catch (error) {
|
|
201062
201065
|
reject(error);
|
|
201063
201066
|
}
|
|
@@ -201108,11 +201111,11 @@ var require_dist13 = __commonJS({
|
|
|
201108
201111
|
if (this._queue.size === 0) {
|
|
201109
201112
|
return;
|
|
201110
201113
|
}
|
|
201111
|
-
return new Promise((
|
|
201114
|
+
return new Promise((resolve18) => {
|
|
201112
201115
|
const existingResolve = this._resolveEmpty;
|
|
201113
201116
|
this._resolveEmpty = () => {
|
|
201114
201117
|
existingResolve();
|
|
201115
|
-
|
|
201118
|
+
resolve18();
|
|
201116
201119
|
};
|
|
201117
201120
|
});
|
|
201118
201121
|
}
|
|
@@ -201125,11 +201128,11 @@ var require_dist13 = __commonJS({
|
|
|
201125
201128
|
if (this._pendingCount === 0 && this._queue.size === 0) {
|
|
201126
201129
|
return;
|
|
201127
201130
|
}
|
|
201128
|
-
return new Promise((
|
|
201131
|
+
return new Promise((resolve18) => {
|
|
201129
201132
|
const existingResolve = this._resolveIdle;
|
|
201130
201133
|
this._resolveIdle = () => {
|
|
201131
201134
|
existingResolve();
|
|
201132
|
-
|
|
201135
|
+
resolve18();
|
|
201133
201136
|
};
|
|
201134
201137
|
});
|
|
201135
201138
|
}
|
|
@@ -201209,7 +201212,7 @@ var require_p_retry = __commonJS({
|
|
|
201209
201212
|
return error;
|
|
201210
201213
|
};
|
|
201211
201214
|
var isNetworkError2 = (errorMessage) => networkErrorMsgs.includes(errorMessage);
|
|
201212
|
-
var pRetry = (input, options) => new Promise((
|
|
201215
|
+
var pRetry = (input, options) => new Promise((resolve18, reject) => {
|
|
201213
201216
|
options = {
|
|
201214
201217
|
onFailedAttempt: () => {
|
|
201215
201218
|
},
|
|
@@ -201219,7 +201222,7 @@ var require_p_retry = __commonJS({
|
|
|
201219
201222
|
const operation = retry.operation(options);
|
|
201220
201223
|
operation.attempt(async (attemptNumber) => {
|
|
201221
201224
|
try {
|
|
201222
|
-
|
|
201225
|
+
resolve18(await input(attemptNumber));
|
|
201223
201226
|
} catch (error) {
|
|
201224
201227
|
if (!(error instanceof Error)) {
|
|
201225
201228
|
reject(new TypeError(`Non-error was thrown: "${error}". You should only throw errors.`));
|
|
@@ -202439,10 +202442,10 @@ var require_axios = __commonJS({
|
|
|
202439
202442
|
utils$1.inherits(CanceledError3, AxiosError3, {
|
|
202440
202443
|
__CANCEL__: true
|
|
202441
202444
|
});
|
|
202442
|
-
function settle2(
|
|
202445
|
+
function settle2(resolve18, reject, response) {
|
|
202443
202446
|
const validateStatus2 = response.config.validateStatus;
|
|
202444
202447
|
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
202445
|
-
|
|
202448
|
+
resolve18(response);
|
|
202446
202449
|
} else {
|
|
202447
202450
|
reject(new AxiosError3(
|
|
202448
202451
|
"Request failed with status code " + response.status,
|
|
@@ -202890,7 +202893,7 @@ var require_axios = __commonJS({
|
|
|
202890
202893
|
}
|
|
202891
202894
|
var isHttpAdapterSupported2 = typeof process !== "undefined" && utils$1.kindOf(process) === "process";
|
|
202892
202895
|
var wrapAsync2 = (asyncExecutor) => {
|
|
202893
|
-
return new Promise((
|
|
202896
|
+
return new Promise((resolve18, reject) => {
|
|
202894
202897
|
let onDone;
|
|
202895
202898
|
let isDone;
|
|
202896
202899
|
const done = (value, isRejected) => {
|
|
@@ -202900,7 +202903,7 @@ var require_axios = __commonJS({
|
|
|
202900
202903
|
};
|
|
202901
202904
|
const _resolve = (value) => {
|
|
202902
202905
|
done(value);
|
|
202903
|
-
|
|
202906
|
+
resolve18(value);
|
|
202904
202907
|
};
|
|
202905
202908
|
const _reject = (reason) => {
|
|
202906
202909
|
done(reason, true);
|
|
@@ -202920,7 +202923,7 @@ var require_axios = __commonJS({
|
|
|
202920
202923
|
};
|
|
202921
202924
|
var buildAddressEntry2 = (address, family) => resolveFamily2(utils$1.isObject(address) ? address : { address, family });
|
|
202922
202925
|
var httpAdapter2 = isHttpAdapterSupported2 && function httpAdapter3(config2) {
|
|
202923
|
-
return wrapAsync2(async function dispatchHttpRequest(
|
|
202926
|
+
return wrapAsync2(async function dispatchHttpRequest(resolve18, reject, onDone) {
|
|
202924
202927
|
let { data: data2, lookup, family } = config2;
|
|
202925
202928
|
const { responseType, responseEncoding } = config2;
|
|
202926
202929
|
const method = config2.method.toUpperCase();
|
|
@@ -202972,7 +202975,7 @@ var require_axios = __commonJS({
|
|
|
202972
202975
|
if (protocol === "data:") {
|
|
202973
202976
|
let convertedData;
|
|
202974
202977
|
if (method !== "GET") {
|
|
202975
|
-
return settle2(
|
|
202978
|
+
return settle2(resolve18, reject, {
|
|
202976
202979
|
status: 405,
|
|
202977
202980
|
statusText: "method not allowed",
|
|
202978
202981
|
headers: {},
|
|
@@ -202994,7 +202997,7 @@ var require_axios = __commonJS({
|
|
|
202994
202997
|
} else if (responseType === "stream") {
|
|
202995
202998
|
convertedData = stream__default["default"].Readable.from(convertedData);
|
|
202996
202999
|
}
|
|
202997
|
-
return settle2(
|
|
203000
|
+
return settle2(resolve18, reject, {
|
|
202998
203001
|
data: convertedData,
|
|
202999
203002
|
status: 200,
|
|
203000
203003
|
statusText: "OK",
|
|
@@ -203212,7 +203215,7 @@ var require_axios = __commonJS({
|
|
|
203212
203215
|
};
|
|
203213
203216
|
if (responseType === "stream") {
|
|
203214
203217
|
response.data = responseStream;
|
|
203215
|
-
settle2(
|
|
203218
|
+
settle2(resolve18, reject, response);
|
|
203216
203219
|
} else {
|
|
203217
203220
|
const responseBuffer = [];
|
|
203218
203221
|
let totalResponseBytes = 0;
|
|
@@ -203260,7 +203263,7 @@ var require_axios = __commonJS({
|
|
|
203260
203263
|
} catch (err) {
|
|
203261
203264
|
return reject(AxiosError3.from(err, null, config2, response.request, response));
|
|
203262
203265
|
}
|
|
203263
|
-
settle2(
|
|
203266
|
+
settle2(resolve18, reject, response);
|
|
203264
203267
|
});
|
|
203265
203268
|
}
|
|
203266
203269
|
emitter.once("abort", (err) => {
|
|
@@ -203509,7 +203512,7 @@ var require_axios = __commonJS({
|
|
|
203509
203512
|
};
|
|
203510
203513
|
var isXHRAdapterSupported2 = typeof XMLHttpRequest !== "undefined";
|
|
203511
203514
|
var xhrAdapter = isXHRAdapterSupported2 && function(config2) {
|
|
203512
|
-
return new Promise(function dispatchXhrRequest(
|
|
203515
|
+
return new Promise(function dispatchXhrRequest(resolve18, reject) {
|
|
203513
203516
|
const _config = resolveConfig(config2);
|
|
203514
203517
|
let requestData = _config.data;
|
|
203515
203518
|
const requestHeaders = AxiosHeaders$1.from(_config.headers).normalize();
|
|
@@ -203543,7 +203546,7 @@ var require_axios = __commonJS({
|
|
|
203543
203546
|
request
|
|
203544
203547
|
};
|
|
203545
203548
|
settle2(function _resolve(value) {
|
|
203546
|
-
|
|
203549
|
+
resolve18(value);
|
|
203547
203550
|
done();
|
|
203548
203551
|
}, function _reject(err) {
|
|
203549
203552
|
reject(err);
|
|
@@ -203860,8 +203863,8 @@ var require_axios = __commonJS({
|
|
|
203860
203863
|
let responseData = await resolvers2[utils$1.findKey(resolvers2, responseType) || "text"](response, config2);
|
|
203861
203864
|
!isStreamResponse && onFinish();
|
|
203862
203865
|
stopTimeout && stopTimeout();
|
|
203863
|
-
return await new Promise((
|
|
203864
|
-
settle2(
|
|
203866
|
+
return await new Promise((resolve18, reject) => {
|
|
203867
|
+
settle2(resolve18, reject, {
|
|
203865
203868
|
data: responseData,
|
|
203866
203869
|
headers: AxiosHeaders$1.from(response.headers),
|
|
203867
203870
|
status: response.status,
|
|
@@ -204201,8 +204204,8 @@ var require_axios = __commonJS({
|
|
|
204201
204204
|
throw new TypeError("executor must be a function.");
|
|
204202
204205
|
}
|
|
204203
204206
|
let resolvePromise;
|
|
204204
|
-
this.promise = new Promise(function promiseExecutor(
|
|
204205
|
-
resolvePromise =
|
|
204207
|
+
this.promise = new Promise(function promiseExecutor(resolve18) {
|
|
204208
|
+
resolvePromise = resolve18;
|
|
204206
204209
|
});
|
|
204207
204210
|
const token = this;
|
|
204208
204211
|
this.promise.then((cancel) => {
|
|
@@ -204215,9 +204218,9 @@ var require_axios = __commonJS({
|
|
|
204215
204218
|
});
|
|
204216
204219
|
this.promise.then = (onfulfilled) => {
|
|
204217
204220
|
let _resolve;
|
|
204218
|
-
const promise = new Promise((
|
|
204219
|
-
token.subscribe(
|
|
204220
|
-
_resolve =
|
|
204221
|
+
const promise = new Promise((resolve18) => {
|
|
204222
|
+
token.subscribe(resolve18);
|
|
204223
|
+
_resolve = resolve18;
|
|
204221
204224
|
}).then(onfulfilled);
|
|
204222
204225
|
promise.cancel = function reject() {
|
|
204223
204226
|
token.unsubscribe(_resolve);
|
|
@@ -205893,8 +205896,8 @@ var require_helpers2 = __commonJS({
|
|
|
205893
205896
|
"use strict";
|
|
205894
205897
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
205895
205898
|
function delay(ms) {
|
|
205896
|
-
return new Promise((
|
|
205897
|
-
setTimeout(
|
|
205899
|
+
return new Promise((resolve18) => {
|
|
205900
|
+
setTimeout(resolve18, ms);
|
|
205898
205901
|
});
|
|
205899
205902
|
}
|
|
205900
205903
|
exports2.default = delay;
|
|
@@ -205981,7 +205984,7 @@ var require_file_upload = __commonJS({
|
|
|
205981
205984
|
exports2.getFileDataLength = getFileDataLength;
|
|
205982
205985
|
async function getFileDataAsStream(readable) {
|
|
205983
205986
|
const chunks = [];
|
|
205984
|
-
return new Promise((
|
|
205987
|
+
return new Promise((resolve18, reject) => {
|
|
205985
205988
|
readable.on("readable", () => {
|
|
205986
205989
|
let chunk;
|
|
205987
205990
|
while ((chunk = readable.read()) !== null) {
|
|
@@ -205991,7 +205994,7 @@ var require_file_upload = __commonJS({
|
|
|
205991
205994
|
readable.on("end", () => {
|
|
205992
205995
|
if (chunks.length > 0) {
|
|
205993
205996
|
const content = Buffer.concat(chunks);
|
|
205994
|
-
|
|
205997
|
+
resolve18(content);
|
|
205995
205998
|
} else {
|
|
205996
205999
|
reject(Error("No data in supplied file"));
|
|
205997
206000
|
}
|
|
@@ -206202,14 +206205,14 @@ var require_WebClient = __commonJS({
|
|
|
206202
206205
|
}, i6);
|
|
206203
206206
|
function verb(n2) {
|
|
206204
206207
|
i6[n2] = o7[n2] && function(v) {
|
|
206205
|
-
return new Promise(function(
|
|
206206
|
-
v = o7[n2](v), settle2(
|
|
206208
|
+
return new Promise(function(resolve18, reject) {
|
|
206209
|
+
v = o7[n2](v), settle2(resolve18, reject, v.done, v.value);
|
|
206207
206210
|
});
|
|
206208
206211
|
};
|
|
206209
206212
|
}
|
|
206210
|
-
function settle2(
|
|
206213
|
+
function settle2(resolve18, reject, d2, v) {
|
|
206211
206214
|
Promise.resolve(v).then(function(v2) {
|
|
206212
|
-
|
|
206215
|
+
resolve18({ value: v2, done: d2 });
|
|
206213
206216
|
}, reject);
|
|
206214
206217
|
}
|
|
206215
206218
|
};
|
|
@@ -206614,12 +206617,12 @@ var require_WebClient = __commonJS({
|
|
|
206614
206617
|
const isGzipResponse = response.headers["content-type"] === "application/gzip";
|
|
206615
206618
|
if (isGzipResponse) {
|
|
206616
206619
|
try {
|
|
206617
|
-
const unzippedData = await new Promise((
|
|
206620
|
+
const unzippedData = await new Promise((resolve18, reject) => {
|
|
206618
206621
|
zlib_1.default.unzip(data2, (err, buf) => {
|
|
206619
206622
|
if (err) {
|
|
206620
206623
|
return reject(err);
|
|
206621
206624
|
}
|
|
206622
|
-
return
|
|
206625
|
+
return resolve18(buf.toString().split("\n"));
|
|
206623
206626
|
});
|
|
206624
206627
|
}).then((res) => res).catch((err) => {
|
|
206625
206628
|
throw err;
|
|
@@ -206948,7 +206951,7 @@ async function computeAdvisoryDB() {
|
|
|
206948
206951
|
throw new Error("GITHUB_TOKEN env variable is not set");
|
|
206949
206952
|
}
|
|
206950
206953
|
const octokit = new import_octokit.Octokit({ auth: githubToken });
|
|
206951
|
-
const delay = async (ms) => new Promise((
|
|
206954
|
+
const delay = async (ms) => new Promise((resolve18) => setTimeout(resolve18, ms));
|
|
206952
206955
|
const vulnerabilityDB = {};
|
|
206953
206956
|
let hasNextPage = true;
|
|
206954
206957
|
let cursor;
|
|
@@ -207875,7 +207878,7 @@ var require_version = __commonJS({
|
|
|
207875
207878
|
"use strict";
|
|
207876
207879
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
207877
207880
|
exports2.version = void 0;
|
|
207878
|
-
exports2.version = "14.3.
|
|
207881
|
+
exports2.version = "14.3.7";
|
|
207879
207882
|
}
|
|
207880
207883
|
});
|
|
207881
207884
|
|
|
@@ -208276,7 +208279,7 @@ var require_cli_core = __commonJS({
|
|
|
208276
208279
|
} catch (e) {
|
|
208277
208280
|
logger_singleton_1.logger.error(`Scanning for vulnerabilities failed for subproject ${subprojectPath} in workspace ${workspacePath}`);
|
|
208278
208281
|
logger_singleton_1.logger.error(JSON.stringify(dependencyTree, null, 2));
|
|
208279
|
-
await new Promise((
|
|
208282
|
+
await new Promise((resolve18) => setTimeout(resolve18, 1e4));
|
|
208280
208283
|
throw e;
|
|
208281
208284
|
} finally {
|
|
208282
208285
|
this.sendProgress("SCAN_FOR_VULNERABILITIES", false, subprojectPath, workspacePath);
|