@sentry/craft 3.4.0 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/craft +888 -577
- package/package.json +1 -1
package/dist/craft
CHANGED
|
@@ -5606,8 +5606,8 @@ var init_envelope3 = __esm({
|
|
|
5606
5606
|
|
|
5607
5607
|
// node_modules/.pnpm/@sentry+core@11.8.0/node_modules/@sentry/core/build/esm/utils/syncpromise.js
|
|
5608
5608
|
function resolvedSyncPromise(value) {
|
|
5609
|
-
return new SyncPromise((
|
|
5610
|
-
|
|
5609
|
+
return new SyncPromise((resolve11) => {
|
|
5610
|
+
resolve11(value);
|
|
5611
5611
|
});
|
|
5612
5612
|
}
|
|
5613
5613
|
function rejectedSyncPromise(reason) {
|
|
@@ -5631,15 +5631,15 @@ var init_syncpromise = __esm({
|
|
|
5631
5631
|
}
|
|
5632
5632
|
/** @inheritdoc */
|
|
5633
5633
|
then(onfulfilled, onrejected) {
|
|
5634
|
-
return new _SyncPromise((
|
|
5634
|
+
return new _SyncPromise((resolve11, reject) => {
|
|
5635
5635
|
this._handlers.push([
|
|
5636
5636
|
false,
|
|
5637
5637
|
(result) => {
|
|
5638
5638
|
if (!onfulfilled) {
|
|
5639
|
-
|
|
5639
|
+
resolve11(result);
|
|
5640
5640
|
} else {
|
|
5641
5641
|
try {
|
|
5642
|
-
|
|
5642
|
+
resolve11(onfulfilled(result));
|
|
5643
5643
|
} catch (e5) {
|
|
5644
5644
|
reject(e5);
|
|
5645
5645
|
}
|
|
@@ -5650,7 +5650,7 @@ var init_syncpromise = __esm({
|
|
|
5650
5650
|
reject(reason);
|
|
5651
5651
|
} else {
|
|
5652
5652
|
try {
|
|
5653
|
-
|
|
5653
|
+
resolve11(onrejected(reason));
|
|
5654
5654
|
} catch (e5) {
|
|
5655
5655
|
reject(e5);
|
|
5656
5656
|
}
|
|
@@ -5666,7 +5666,7 @@ var init_syncpromise = __esm({
|
|
|
5666
5666
|
}
|
|
5667
5667
|
/** @inheritdoc */
|
|
5668
5668
|
finally(onfinally) {
|
|
5669
|
-
return new _SyncPromise((
|
|
5669
|
+
return new _SyncPromise((resolve11, reject) => {
|
|
5670
5670
|
let val;
|
|
5671
5671
|
let isRejected;
|
|
5672
5672
|
return this.then(
|
|
@@ -5689,7 +5689,7 @@ var init_syncpromise = __esm({
|
|
|
5689
5689
|
reject(val);
|
|
5690
5690
|
return;
|
|
5691
5691
|
}
|
|
5692
|
-
|
|
5692
|
+
resolve11(val);
|
|
5693
5693
|
});
|
|
5694
5694
|
});
|
|
5695
5695
|
}
|
|
@@ -5720,21 +5720,21 @@ var init_syncpromise = __esm({
|
|
|
5720
5720
|
return;
|
|
5721
5721
|
}
|
|
5722
5722
|
if (isThenable(value)) {
|
|
5723
|
-
void value.then(
|
|
5723
|
+
void value.then(resolve11, reject);
|
|
5724
5724
|
return;
|
|
5725
5725
|
}
|
|
5726
5726
|
this._state = state2;
|
|
5727
5727
|
this._value = value;
|
|
5728
5728
|
this._executeHandlers();
|
|
5729
5729
|
};
|
|
5730
|
-
const
|
|
5730
|
+
const resolve11 = (value) => {
|
|
5731
5731
|
setResult(STATE_RESOLVED, value);
|
|
5732
5732
|
};
|
|
5733
5733
|
const reject = (reason) => {
|
|
5734
5734
|
setResult(STATE_REJECTED, reason);
|
|
5735
5735
|
};
|
|
5736
5736
|
try {
|
|
5737
|
-
executor(
|
|
5737
|
+
executor(resolve11, reject);
|
|
5738
5738
|
} catch (e5) {
|
|
5739
5739
|
reject(e5);
|
|
5740
5740
|
}
|
|
@@ -6471,7 +6471,7 @@ function makePromiseBuffer(limit = 100) {
|
|
|
6471
6471
|
}
|
|
6472
6472
|
const promises3 = [
|
|
6473
6473
|
drainPromise,
|
|
6474
|
-
new Promise((
|
|
6474
|
+
new Promise((resolve11) => safeUnref(setTimeout(() => resolve11(false), timeout)))
|
|
6475
6475
|
];
|
|
6476
6476
|
return Promise.race(promises3);
|
|
6477
6477
|
}
|
|
@@ -7400,7 +7400,7 @@ var init_client = __esm({
|
|
|
7400
7400
|
async _isClientDoneProcessing(timeout) {
|
|
7401
7401
|
let ticked = 0;
|
|
7402
7402
|
while (!timeout || ticked < timeout) {
|
|
7403
|
-
await new Promise((
|
|
7403
|
+
await new Promise((resolve11) => setTimeout(resolve11, 1));
|
|
7404
7404
|
if (!this._numProcessing) {
|
|
7405
7405
|
return true;
|
|
7406
7406
|
}
|
|
@@ -24738,17 +24738,17 @@ function startProducerSpan(topic, message) {
|
|
|
24738
24738
|
return span;
|
|
24739
24739
|
}
|
|
24740
24740
|
function applyErrorToSpans(spans, reason) {
|
|
24741
|
-
let
|
|
24741
|
+
let errorMessage2;
|
|
24742
24742
|
let errorType = ERROR_TYPE_VALUE_OTHER;
|
|
24743
24743
|
if (typeof reason === "string" || reason === void 0) {
|
|
24744
|
-
|
|
24744
|
+
errorMessage2 = reason;
|
|
24745
24745
|
} else if (isObjectLike(reason) && Object.prototype.hasOwnProperty.call(reason, "message")) {
|
|
24746
|
-
|
|
24746
|
+
errorMessage2 = reason.message;
|
|
24747
24747
|
errorType = reason.constructor.name;
|
|
24748
24748
|
}
|
|
24749
24749
|
spans.forEach((span) => {
|
|
24750
24750
|
span.setAttribute(Ps, errorType);
|
|
24751
|
-
span.setStatus({ code: SPAN_STATUS_ERROR, message:
|
|
24751
|
+
span.setStatus({ code: SPAN_STATUS_ERROR, message: errorMessage2 });
|
|
24752
24752
|
});
|
|
24753
24753
|
}
|
|
24754
24754
|
function endSpansOnPromise(spans, promise) {
|
|
@@ -31307,13 +31307,13 @@ async function getDarwinInfo() {
|
|
|
31307
31307
|
version: `10.${Number(os.release().split(".")[0]) - 4}`
|
|
31308
31308
|
};
|
|
31309
31309
|
try {
|
|
31310
|
-
const output = await new Promise((
|
|
31310
|
+
const output = await new Promise((resolve11, reject) => {
|
|
31311
31311
|
(0, import_node_child_process.execFile)("/usr/bin/sw_vers", (error3, stdout) => {
|
|
31312
31312
|
if (error3) {
|
|
31313
31313
|
reject(error3);
|
|
31314
31314
|
return;
|
|
31315
31315
|
}
|
|
31316
|
-
|
|
31316
|
+
resolve11(stdout);
|
|
31317
31317
|
});
|
|
31318
31318
|
});
|
|
31319
31319
|
darwinInfo.name = matchFirst(/^ProductName:\s+(.*)$/m, output);
|
|
@@ -31585,14 +31585,14 @@ function makeLineReaderRanges(lines, linecontext) {
|
|
|
31585
31585
|
return out;
|
|
31586
31586
|
}
|
|
31587
31587
|
function getContextLinesFromFile(path20, ranges, output) {
|
|
31588
|
-
return new Promise((
|
|
31588
|
+
return new Promise((resolve11, _reject) => {
|
|
31589
31589
|
const stream2 = (0, import_node_fs2.createReadStream)(path20);
|
|
31590
31590
|
const lineReaded = (0, import_node_readline.createInterface)({
|
|
31591
31591
|
input: stream2
|
|
31592
31592
|
});
|
|
31593
31593
|
function destroyStreamAndResolve() {
|
|
31594
31594
|
stream2.destroy();
|
|
31595
|
-
|
|
31595
|
+
resolve11();
|
|
31596
31596
|
}
|
|
31597
31597
|
let lineNumber = 0;
|
|
31598
31598
|
let currentRangeIndex = 0;
|
|
@@ -32501,7 +32501,7 @@ function debugLog(...args) {
|
|
|
32501
32501
|
debug.log("[https-proxy-agent:parse-proxy-response]", ...args);
|
|
32502
32502
|
}
|
|
32503
32503
|
function parseProxyResponse(socket) {
|
|
32504
|
-
return new Promise((
|
|
32504
|
+
return new Promise((resolve11, reject) => {
|
|
32505
32505
|
let buffersLength = 0;
|
|
32506
32506
|
const buffers = [];
|
|
32507
32507
|
function read() {
|
|
@@ -32564,7 +32564,7 @@ function parseProxyResponse(socket) {
|
|
|
32564
32564
|
}
|
|
32565
32565
|
debugLog("got proxy server response: %o %o", firstLine, headers);
|
|
32566
32566
|
cleanup();
|
|
32567
|
-
|
|
32567
|
+
resolve11({
|
|
32568
32568
|
connect: {
|
|
32569
32569
|
statusCode,
|
|
32570
32570
|
statusText,
|
|
@@ -32745,7 +32745,7 @@ function applyNoProxyOption(transportUrlSegments, proxy) {
|
|
|
32745
32745
|
function createRequestExecutor(options, httpModule, agent) {
|
|
32746
32746
|
const { hostname: hostname3, pathname, port, protocol, search } = new URL(options.url);
|
|
32747
32747
|
return function makeRequest(request3) {
|
|
32748
|
-
const sendRequest = (canRetry) => new Promise((
|
|
32748
|
+
const sendRequest = (canRetry) => new Promise((resolve11, reject) => {
|
|
32749
32749
|
suppressTracing(() => {
|
|
32750
32750
|
let body = streamFromBody(request3.body);
|
|
32751
32751
|
const headers = { ...options.headers };
|
|
@@ -32774,7 +32774,7 @@ function createRequestExecutor(options, httpModule, agent) {
|
|
|
32774
32774
|
res.setEncoding("utf8");
|
|
32775
32775
|
const retryAfterHeader = res.headers["retry-after"] ?? null;
|
|
32776
32776
|
const rateLimitsHeader = res.headers["x-sentry-rate-limits"] ?? null;
|
|
32777
|
-
|
|
32777
|
+
resolve11({
|
|
32778
32778
|
statusCode: res.statusCode,
|
|
32779
32779
|
headers: {
|
|
32780
32780
|
"retry-after": retryAfterHeader,
|
|
@@ -32785,7 +32785,7 @@ function createRequestExecutor(options, httpModule, agent) {
|
|
|
32785
32785
|
);
|
|
32786
32786
|
req.on("error", (error3) => {
|
|
32787
32787
|
if (canRetry && req.reusedSocket && error3.code === "ECONNRESET") {
|
|
32788
|
-
|
|
32788
|
+
resolve11(sendRequest(false));
|
|
32789
32789
|
} else {
|
|
32790
32790
|
reject(error3);
|
|
32791
32791
|
}
|
|
@@ -36714,13 +36714,13 @@ function setupVercelKeepAlive(client) {
|
|
|
36714
36714
|
});
|
|
36715
36715
|
}
|
|
36716
36716
|
function waitForRequestEnd(client, response, rootSpan, timeout) {
|
|
36717
|
-
return new Promise((
|
|
36717
|
+
return new Promise((resolve11) => {
|
|
36718
36718
|
let responseClosed = false;
|
|
36719
36719
|
let rootSpanEnded = !rootSpan?.isRecording();
|
|
36720
36720
|
const done = () => {
|
|
36721
36721
|
clearTimeout(timer);
|
|
36722
36722
|
unsubscribe();
|
|
36723
|
-
|
|
36723
|
+
resolve11();
|
|
36724
36724
|
};
|
|
36725
36725
|
const doneIfRequestEnded = () => {
|
|
36726
36726
|
if (responseClosed && rootSpanEnded) {
|
|
@@ -41250,10 +41250,10 @@ var init_esm10 = __esm({
|
|
|
41250
41250
|
* Return a void Promise that resolves once the stream ends.
|
|
41251
41251
|
*/
|
|
41252
41252
|
async promise() {
|
|
41253
|
-
return new Promise((
|
|
41253
|
+
return new Promise((resolve11, reject) => {
|
|
41254
41254
|
this.on(DESTROYED, () => reject(new Error("stream destroyed")));
|
|
41255
41255
|
this.on("error", (er3) => reject(er3));
|
|
41256
|
-
this.on("end", () =>
|
|
41256
|
+
this.on("end", () => resolve11());
|
|
41257
41257
|
});
|
|
41258
41258
|
}
|
|
41259
41259
|
/**
|
|
@@ -41277,7 +41277,7 @@ var init_esm10 = __esm({
|
|
|
41277
41277
|
return Promise.resolve({ done: false, value: res });
|
|
41278
41278
|
if (this[EOF])
|
|
41279
41279
|
return stop();
|
|
41280
|
-
let
|
|
41280
|
+
let resolve11;
|
|
41281
41281
|
let reject;
|
|
41282
41282
|
const onerr = (er3) => {
|
|
41283
41283
|
this.off("data", ondata);
|
|
@@ -41291,19 +41291,19 @@ var init_esm10 = __esm({
|
|
|
41291
41291
|
this.off("end", onend);
|
|
41292
41292
|
this.off(DESTROYED, ondestroy);
|
|
41293
41293
|
this.pause();
|
|
41294
|
-
|
|
41294
|
+
resolve11({ value, done: !!this[EOF] });
|
|
41295
41295
|
};
|
|
41296
41296
|
const onend = () => {
|
|
41297
41297
|
this.off("error", onerr);
|
|
41298
41298
|
this.off("data", ondata);
|
|
41299
41299
|
this.off(DESTROYED, ondestroy);
|
|
41300
41300
|
stop();
|
|
41301
|
-
|
|
41301
|
+
resolve11({ done: true, value: void 0 });
|
|
41302
41302
|
};
|
|
41303
41303
|
const ondestroy = () => onerr(new Error("stream destroyed"));
|
|
41304
41304
|
return new Promise((res2, rej) => {
|
|
41305
41305
|
reject = rej;
|
|
41306
|
-
|
|
41306
|
+
resolve11 = res2;
|
|
41307
41307
|
this.once(DESTROYED, ondestroy);
|
|
41308
41308
|
this.once("error", onerr);
|
|
41309
41309
|
this.once("end", onend);
|
|
@@ -42292,9 +42292,9 @@ var init_esm11 = __esm({
|
|
|
42292
42292
|
if (this.#asyncReaddirInFlight) {
|
|
42293
42293
|
await this.#asyncReaddirInFlight;
|
|
42294
42294
|
} else {
|
|
42295
|
-
let
|
|
42295
|
+
let resolve11 = () => {
|
|
42296
42296
|
};
|
|
42297
|
-
this.#asyncReaddirInFlight = new Promise((res) =>
|
|
42297
|
+
this.#asyncReaddirInFlight = new Promise((res) => resolve11 = res);
|
|
42298
42298
|
try {
|
|
42299
42299
|
for (const e5 of await this.#fs.promises.readdir(fullpath, {
|
|
42300
42300
|
withFileTypes: true
|
|
@@ -42307,7 +42307,7 @@ var init_esm11 = __esm({
|
|
|
42307
42307
|
children.provisional = 0;
|
|
42308
42308
|
}
|
|
42309
42309
|
this.#asyncReaddirInFlight = void 0;
|
|
42310
|
-
|
|
42310
|
+
resolve11();
|
|
42311
42311
|
}
|
|
42312
42312
|
return children.slice(0, children.provisional);
|
|
42313
42313
|
}
|
|
@@ -44051,10 +44051,10 @@ var init_esm12 = __esm({
|
|
|
44051
44051
|
* Return a void Promise that resolves once the stream ends.
|
|
44052
44052
|
*/
|
|
44053
44053
|
async promise() {
|
|
44054
|
-
return new Promise((
|
|
44054
|
+
return new Promise((resolve11, reject) => {
|
|
44055
44055
|
this.on(DESTROYED2, () => reject(new Error("stream destroyed")));
|
|
44056
44056
|
this.on("error", (er3) => reject(er3));
|
|
44057
|
-
this.on("end", () =>
|
|
44057
|
+
this.on("end", () => resolve11());
|
|
44058
44058
|
});
|
|
44059
44059
|
}
|
|
44060
44060
|
/**
|
|
@@ -44078,7 +44078,7 @@ var init_esm12 = __esm({
|
|
|
44078
44078
|
return Promise.resolve({ done: false, value: res });
|
|
44079
44079
|
if (this[EOF2])
|
|
44080
44080
|
return stop();
|
|
44081
|
-
let
|
|
44081
|
+
let resolve11;
|
|
44082
44082
|
let reject;
|
|
44083
44083
|
const onerr = (er3) => {
|
|
44084
44084
|
this.off("data", ondata);
|
|
@@ -44092,19 +44092,19 @@ var init_esm12 = __esm({
|
|
|
44092
44092
|
this.off("end", onend);
|
|
44093
44093
|
this.off(DESTROYED2, ondestroy);
|
|
44094
44094
|
this.pause();
|
|
44095
|
-
|
|
44095
|
+
resolve11({ value, done: !!this[EOF2] });
|
|
44096
44096
|
};
|
|
44097
44097
|
const onend = () => {
|
|
44098
44098
|
this.off("error", onerr);
|
|
44099
44099
|
this.off("data", ondata);
|
|
44100
44100
|
this.off(DESTROYED2, ondestroy);
|
|
44101
44101
|
stop();
|
|
44102
|
-
|
|
44102
|
+
resolve11({ done: true, value: void 0 });
|
|
44103
44103
|
};
|
|
44104
44104
|
const ondestroy = () => onerr(new Error("stream destroyed"));
|
|
44105
44105
|
return new Promise((res2, rej) => {
|
|
44106
44106
|
reject = rej;
|
|
44107
|
-
|
|
44107
|
+
resolve11 = res2;
|
|
44108
44108
|
this.once(DESTROYED2, ondestroy);
|
|
44109
44109
|
this.once("error", onerr);
|
|
44110
44110
|
this.once("end", onend);
|
|
@@ -55574,7 +55574,7 @@ var require_text = __commonJS({
|
|
|
55574
55574
|
"node_modules/.pnpm/prompts@2.4.1/node_modules/prompts/dist/elements/text.js"(exports2, module2) {
|
|
55575
55575
|
"use strict";
|
|
55576
55576
|
init_import_meta_url();
|
|
55577
|
-
function asyncGeneratorStep(gen,
|
|
55577
|
+
function asyncGeneratorStep(gen, resolve11, reject, _next, _throw, key, arg) {
|
|
55578
55578
|
try {
|
|
55579
55579
|
var info = gen[key](arg);
|
|
55580
55580
|
var value = info.value;
|
|
@@ -55583,7 +55583,7 @@ var require_text = __commonJS({
|
|
|
55583
55583
|
return;
|
|
55584
55584
|
}
|
|
55585
55585
|
if (info.done) {
|
|
55586
|
-
|
|
55586
|
+
resolve11(value);
|
|
55587
55587
|
} else {
|
|
55588
55588
|
Promise.resolve(value).then(_next, _throw);
|
|
55589
55589
|
}
|
|
@@ -55591,13 +55591,13 @@ var require_text = __commonJS({
|
|
|
55591
55591
|
function _asyncToGenerator(fn2) {
|
|
55592
55592
|
return function() {
|
|
55593
55593
|
var self2 = this, args = arguments;
|
|
55594
|
-
return new Promise(function(
|
|
55594
|
+
return new Promise(function(resolve11, reject) {
|
|
55595
55595
|
var gen = fn2.apply(self2, args);
|
|
55596
55596
|
function _next(value) {
|
|
55597
|
-
asyncGeneratorStep(gen,
|
|
55597
|
+
asyncGeneratorStep(gen, resolve11, reject, _next, _throw, "next", value);
|
|
55598
55598
|
}
|
|
55599
55599
|
function _throw(err) {
|
|
55600
|
-
asyncGeneratorStep(gen,
|
|
55600
|
+
asyncGeneratorStep(gen, resolve11, reject, _next, _throw, "throw", err);
|
|
55601
55601
|
}
|
|
55602
55602
|
_next(void 0);
|
|
55603
55603
|
});
|
|
@@ -56326,7 +56326,7 @@ var require_date = __commonJS({
|
|
|
56326
56326
|
"node_modules/.pnpm/prompts@2.4.1/node_modules/prompts/dist/elements/date.js"(exports2, module2) {
|
|
56327
56327
|
"use strict";
|
|
56328
56328
|
init_import_meta_url();
|
|
56329
|
-
function asyncGeneratorStep(gen,
|
|
56329
|
+
function asyncGeneratorStep(gen, resolve11, reject, _next, _throw, key, arg) {
|
|
56330
56330
|
try {
|
|
56331
56331
|
var info = gen[key](arg);
|
|
56332
56332
|
var value = info.value;
|
|
@@ -56335,7 +56335,7 @@ var require_date = __commonJS({
|
|
|
56335
56335
|
return;
|
|
56336
56336
|
}
|
|
56337
56337
|
if (info.done) {
|
|
56338
|
-
|
|
56338
|
+
resolve11(value);
|
|
56339
56339
|
} else {
|
|
56340
56340
|
Promise.resolve(value).then(_next, _throw);
|
|
56341
56341
|
}
|
|
@@ -56343,13 +56343,13 @@ var require_date = __commonJS({
|
|
|
56343
56343
|
function _asyncToGenerator(fn2) {
|
|
56344
56344
|
return function() {
|
|
56345
56345
|
var self2 = this, args = arguments;
|
|
56346
|
-
return new Promise(function(
|
|
56346
|
+
return new Promise(function(resolve11, reject) {
|
|
56347
56347
|
var gen = fn2.apply(self2, args);
|
|
56348
56348
|
function _next(value) {
|
|
56349
|
-
asyncGeneratorStep(gen,
|
|
56349
|
+
asyncGeneratorStep(gen, resolve11, reject, _next, _throw, "next", value);
|
|
56350
56350
|
}
|
|
56351
56351
|
function _throw(err) {
|
|
56352
|
-
asyncGeneratorStep(gen,
|
|
56352
|
+
asyncGeneratorStep(gen, resolve11, reject, _next, _throw, "throw", err);
|
|
56353
56353
|
}
|
|
56354
56354
|
_next(void 0);
|
|
56355
56355
|
});
|
|
@@ -56553,7 +56553,7 @@ var require_number = __commonJS({
|
|
|
56553
56553
|
"node_modules/.pnpm/prompts@2.4.1/node_modules/prompts/dist/elements/number.js"(exports2, module2) {
|
|
56554
56554
|
"use strict";
|
|
56555
56555
|
init_import_meta_url();
|
|
56556
|
-
function asyncGeneratorStep(gen,
|
|
56556
|
+
function asyncGeneratorStep(gen, resolve11, reject, _next, _throw, key, arg) {
|
|
56557
56557
|
try {
|
|
56558
56558
|
var info = gen[key](arg);
|
|
56559
56559
|
var value = info.value;
|
|
@@ -56562,7 +56562,7 @@ var require_number = __commonJS({
|
|
|
56562
56562
|
return;
|
|
56563
56563
|
}
|
|
56564
56564
|
if (info.done) {
|
|
56565
|
-
|
|
56565
|
+
resolve11(value);
|
|
56566
56566
|
} else {
|
|
56567
56567
|
Promise.resolve(value).then(_next, _throw);
|
|
56568
56568
|
}
|
|
@@ -56570,13 +56570,13 @@ var require_number = __commonJS({
|
|
|
56570
56570
|
function _asyncToGenerator(fn2) {
|
|
56571
56571
|
return function() {
|
|
56572
56572
|
var self2 = this, args = arguments;
|
|
56573
|
-
return new Promise(function(
|
|
56573
|
+
return new Promise(function(resolve11, reject) {
|
|
56574
56574
|
var gen = fn2.apply(self2, args);
|
|
56575
56575
|
function _next(value) {
|
|
56576
|
-
asyncGeneratorStep(gen,
|
|
56576
|
+
asyncGeneratorStep(gen, resolve11, reject, _next, _throw, "next", value);
|
|
56577
56577
|
}
|
|
56578
56578
|
function _throw(err) {
|
|
56579
|
-
asyncGeneratorStep(gen,
|
|
56579
|
+
asyncGeneratorStep(gen, resolve11, reject, _next, _throw, "throw", err);
|
|
56580
56580
|
}
|
|
56581
56581
|
_next(void 0);
|
|
56582
56582
|
});
|
|
@@ -57001,7 +57001,7 @@ var require_autocomplete = __commonJS({
|
|
|
57001
57001
|
"node_modules/.pnpm/prompts@2.4.1/node_modules/prompts/dist/elements/autocomplete.js"(exports2, module2) {
|
|
57002
57002
|
"use strict";
|
|
57003
57003
|
init_import_meta_url();
|
|
57004
|
-
function asyncGeneratorStep(gen,
|
|
57004
|
+
function asyncGeneratorStep(gen, resolve11, reject, _next, _throw, key, arg) {
|
|
57005
57005
|
try {
|
|
57006
57006
|
var info = gen[key](arg);
|
|
57007
57007
|
var value = info.value;
|
|
@@ -57010,7 +57010,7 @@ var require_autocomplete = __commonJS({
|
|
|
57010
57010
|
return;
|
|
57011
57011
|
}
|
|
57012
57012
|
if (info.done) {
|
|
57013
|
-
|
|
57013
|
+
resolve11(value);
|
|
57014
57014
|
} else {
|
|
57015
57015
|
Promise.resolve(value).then(_next, _throw);
|
|
57016
57016
|
}
|
|
@@ -57018,13 +57018,13 @@ var require_autocomplete = __commonJS({
|
|
|
57018
57018
|
function _asyncToGenerator(fn2) {
|
|
57019
57019
|
return function() {
|
|
57020
57020
|
var self2 = this, args = arguments;
|
|
57021
|
-
return new Promise(function(
|
|
57021
|
+
return new Promise(function(resolve11, reject) {
|
|
57022
57022
|
var gen = fn2.apply(self2, args);
|
|
57023
57023
|
function _next(value) {
|
|
57024
|
-
asyncGeneratorStep(gen,
|
|
57024
|
+
asyncGeneratorStep(gen, resolve11, reject, _next, _throw, "next", value);
|
|
57025
57025
|
}
|
|
57026
57026
|
function _throw(err) {
|
|
57027
|
-
asyncGeneratorStep(gen,
|
|
57027
|
+
asyncGeneratorStep(gen, resolve11, reject, _next, _throw, "throw", err);
|
|
57028
57028
|
}
|
|
57029
57029
|
_next(void 0);
|
|
57030
57030
|
});
|
|
@@ -57658,7 +57658,7 @@ var require_dist4 = __commonJS({
|
|
|
57658
57658
|
for (var i5 = 0, arr2 = new Array(len); i5 < len; i5++) arr2[i5] = arr[i5];
|
|
57659
57659
|
return arr2;
|
|
57660
57660
|
}
|
|
57661
|
-
function asyncGeneratorStep(gen,
|
|
57661
|
+
function asyncGeneratorStep(gen, resolve11, reject, _next, _throw, key, arg) {
|
|
57662
57662
|
try {
|
|
57663
57663
|
var info = gen[key](arg);
|
|
57664
57664
|
var value = info.value;
|
|
@@ -57667,7 +57667,7 @@ var require_dist4 = __commonJS({
|
|
|
57667
57667
|
return;
|
|
57668
57668
|
}
|
|
57669
57669
|
if (info.done) {
|
|
57670
|
-
|
|
57670
|
+
resolve11(value);
|
|
57671
57671
|
} else {
|
|
57672
57672
|
Promise.resolve(value).then(_next, _throw);
|
|
57673
57673
|
}
|
|
@@ -57675,13 +57675,13 @@ var require_dist4 = __commonJS({
|
|
|
57675
57675
|
function _asyncToGenerator(fn2) {
|
|
57676
57676
|
return function() {
|
|
57677
57677
|
var self2 = this, args = arguments;
|
|
57678
|
-
return new Promise(function(
|
|
57678
|
+
return new Promise(function(resolve11, reject) {
|
|
57679
57679
|
var gen = fn2.apply(self2, args);
|
|
57680
57680
|
function _next(value) {
|
|
57681
|
-
asyncGeneratorStep(gen,
|
|
57681
|
+
asyncGeneratorStep(gen, resolve11, reject, _next, _throw, "next", value);
|
|
57682
57682
|
}
|
|
57683
57683
|
function _throw(err) {
|
|
57684
|
-
asyncGeneratorStep(gen,
|
|
57684
|
+
asyncGeneratorStep(gen, resolve11, reject, _next, _throw, "throw", err);
|
|
57685
57685
|
}
|
|
57686
57686
|
_next(void 0);
|
|
57687
57687
|
});
|
|
@@ -64511,7 +64511,7 @@ var require_lib9 = __commonJS({
|
|
|
64511
64511
|
let accum = [];
|
|
64512
64512
|
let accumBytes = 0;
|
|
64513
64513
|
let abort = false;
|
|
64514
|
-
return new Body.Promise(function(
|
|
64514
|
+
return new Body.Promise(function(resolve11, reject) {
|
|
64515
64515
|
let resTimeout;
|
|
64516
64516
|
if (_this4.timeout) {
|
|
64517
64517
|
resTimeout = setTimeout(function() {
|
|
@@ -64545,7 +64545,7 @@ var require_lib9 = __commonJS({
|
|
|
64545
64545
|
}
|
|
64546
64546
|
clearTimeout(resTimeout);
|
|
64547
64547
|
try {
|
|
64548
|
-
|
|
64548
|
+
resolve11(Buffer.concat(accum, accumBytes));
|
|
64549
64549
|
} catch (err) {
|
|
64550
64550
|
reject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err.message}`, "system", err));
|
|
64551
64551
|
}
|
|
@@ -65220,7 +65220,7 @@ var require_lib9 = __commonJS({
|
|
|
65220
65220
|
throw new Error("native promise missing, set fetch.Promise to your favorite alternative");
|
|
65221
65221
|
}
|
|
65222
65222
|
Body.Promise = fetch5.Promise;
|
|
65223
|
-
return new fetch5.Promise(function(
|
|
65223
|
+
return new fetch5.Promise(function(resolve11, reject) {
|
|
65224
65224
|
const request3 = new Request2(url3, opts);
|
|
65225
65225
|
const options = getNodeRequestOptions(request3);
|
|
65226
65226
|
const send = (options.protocol === "https:" ? https2 : http5).request;
|
|
@@ -65353,7 +65353,7 @@ var require_lib9 = __commonJS({
|
|
|
65353
65353
|
requestOpts.body = void 0;
|
|
65354
65354
|
requestOpts.headers.delete("content-length");
|
|
65355
65355
|
}
|
|
65356
|
-
|
|
65356
|
+
resolve11(fetch5(new Request2(locationURL, requestOpts)));
|
|
65357
65357
|
finalize();
|
|
65358
65358
|
return;
|
|
65359
65359
|
}
|
|
@@ -65374,7 +65374,7 @@ var require_lib9 = __commonJS({
|
|
|
65374
65374
|
const codings = headers.get("Content-Encoding");
|
|
65375
65375
|
if (!request3.compress || request3.method === "HEAD" || codings === null || res.statusCode === 204 || res.statusCode === 304) {
|
|
65376
65376
|
response = new Response(body, response_options);
|
|
65377
|
-
|
|
65377
|
+
resolve11(response);
|
|
65378
65378
|
return;
|
|
65379
65379
|
}
|
|
65380
65380
|
const zlibOptions = {
|
|
@@ -65384,7 +65384,7 @@ var require_lib9 = __commonJS({
|
|
|
65384
65384
|
if (codings == "gzip" || codings == "x-gzip") {
|
|
65385
65385
|
body = body.pipe(zlib2.createGunzip(zlibOptions));
|
|
65386
65386
|
response = new Response(body, response_options);
|
|
65387
|
-
|
|
65387
|
+
resolve11(response);
|
|
65388
65388
|
return;
|
|
65389
65389
|
}
|
|
65390
65390
|
if (codings == "deflate" || codings == "x-deflate") {
|
|
@@ -65396,12 +65396,12 @@ var require_lib9 = __commonJS({
|
|
|
65396
65396
|
body = body.pipe(zlib2.createInflateRaw());
|
|
65397
65397
|
}
|
|
65398
65398
|
response = new Response(body, response_options);
|
|
65399
|
-
|
|
65399
|
+
resolve11(response);
|
|
65400
65400
|
});
|
|
65401
65401
|
raw.on("end", function() {
|
|
65402
65402
|
if (!response) {
|
|
65403
65403
|
response = new Response(body, response_options);
|
|
65404
|
-
|
|
65404
|
+
resolve11(response);
|
|
65405
65405
|
}
|
|
65406
65406
|
});
|
|
65407
65407
|
return;
|
|
@@ -65409,11 +65409,11 @@ var require_lib9 = __commonJS({
|
|
|
65409
65409
|
if (codings == "br" && typeof zlib2.createBrotliDecompress === "function") {
|
|
65410
65410
|
body = body.pipe(zlib2.createBrotliDecompress());
|
|
65411
65411
|
response = new Response(body, response_options);
|
|
65412
|
-
|
|
65412
|
+
resolve11(response);
|
|
65413
65413
|
return;
|
|
65414
65414
|
}
|
|
65415
65415
|
response = new Response(body, response_options);
|
|
65416
|
-
|
|
65416
|
+
resolve11(response);
|
|
65417
65417
|
});
|
|
65418
65418
|
writeToStream(req, request3);
|
|
65419
65419
|
});
|
|
@@ -65547,20 +65547,20 @@ function pLimit(concurrency) {
|
|
|
65547
65547
|
activeCount--;
|
|
65548
65548
|
resumeNext();
|
|
65549
65549
|
};
|
|
65550
|
-
const run = async (function_,
|
|
65550
|
+
const run = async (function_, resolve11, arguments_) => {
|
|
65551
65551
|
const result = (async () => function_(...arguments_))();
|
|
65552
|
-
|
|
65552
|
+
resolve11(result);
|
|
65553
65553
|
try {
|
|
65554
65554
|
await result;
|
|
65555
65555
|
} catch {
|
|
65556
65556
|
}
|
|
65557
65557
|
next();
|
|
65558
65558
|
};
|
|
65559
|
-
const enqueue = (function_,
|
|
65559
|
+
const enqueue = (function_, resolve11, arguments_) => {
|
|
65560
65560
|
new Promise((internalResolve) => {
|
|
65561
65561
|
queue.enqueue(internalResolve);
|
|
65562
65562
|
}).then(
|
|
65563
|
-
run.bind(void 0, function_,
|
|
65563
|
+
run.bind(void 0, function_, resolve11, arguments_)
|
|
65564
65564
|
);
|
|
65565
65565
|
(async () => {
|
|
65566
65566
|
await Promise.resolve();
|
|
@@ -65569,8 +65569,8 @@ function pLimit(concurrency) {
|
|
|
65569
65569
|
}
|
|
65570
65570
|
})();
|
|
65571
65571
|
};
|
|
65572
|
-
const generator = (function_, ...arguments_) => new Promise((
|
|
65573
|
-
enqueue(function_,
|
|
65572
|
+
const generator = (function_, ...arguments_) => new Promise((resolve11) => {
|
|
65573
|
+
enqueue(function_, resolve11, arguments_);
|
|
65574
65574
|
});
|
|
65575
65575
|
Object.defineProperties(generator, {
|
|
65576
65576
|
activeCount: {
|
|
@@ -69408,10 +69408,10 @@ var require_node_stream_zip = __commonJS({
|
|
|
69408
69408
|
const zip = new StreamZip3(config);
|
|
69409
69409
|
zip.on("entry", (entry) => this.emit("entry", entry));
|
|
69410
69410
|
zip.on("extract", (entry, outPath) => this.emit("extract", entry, outPath));
|
|
69411
|
-
this[propZip] = new Promise((
|
|
69411
|
+
this[propZip] = new Promise((resolve11, reject) => {
|
|
69412
69412
|
zip.on("ready", () => {
|
|
69413
69413
|
zip.removeListener("error", reject);
|
|
69414
|
-
|
|
69414
|
+
resolve11(zip);
|
|
69415
69415
|
});
|
|
69416
69416
|
zip.on("error", reject);
|
|
69417
69417
|
});
|
|
@@ -69432,23 +69432,23 @@ var require_node_stream_zip = __commonJS({
|
|
|
69432
69432
|
}
|
|
69433
69433
|
async stream(entry) {
|
|
69434
69434
|
const zip = await this[propZip];
|
|
69435
|
-
return new Promise((
|
|
69435
|
+
return new Promise((resolve11, reject) => {
|
|
69436
69436
|
zip.stream(entry, (err, stm) => {
|
|
69437
69437
|
if (err) {
|
|
69438
69438
|
reject(err);
|
|
69439
69439
|
} else {
|
|
69440
|
-
|
|
69440
|
+
resolve11(stm);
|
|
69441
69441
|
}
|
|
69442
69442
|
});
|
|
69443
69443
|
});
|
|
69444
69444
|
}
|
|
69445
69445
|
async entryData(entry) {
|
|
69446
69446
|
const stm = await this.stream(entry);
|
|
69447
|
-
return new Promise((
|
|
69447
|
+
return new Promise((resolve11, reject) => {
|
|
69448
69448
|
const data2 = [];
|
|
69449
69449
|
stm.on("data", (chunk) => data2.push(chunk));
|
|
69450
69450
|
stm.on("end", () => {
|
|
69451
|
-
|
|
69451
|
+
resolve11(Buffer.concat(data2));
|
|
69452
69452
|
});
|
|
69453
69453
|
stm.on("error", (err) => {
|
|
69454
69454
|
stm.removeAllListeners("end");
|
|
@@ -69458,24 +69458,24 @@ var require_node_stream_zip = __commonJS({
|
|
|
69458
69458
|
}
|
|
69459
69459
|
async extract(entry, outPath) {
|
|
69460
69460
|
const zip = await this[propZip];
|
|
69461
|
-
return new Promise((
|
|
69461
|
+
return new Promise((resolve11, reject) => {
|
|
69462
69462
|
zip.extract(entry, outPath, (err, res) => {
|
|
69463
69463
|
if (err) {
|
|
69464
69464
|
reject(err);
|
|
69465
69465
|
} else {
|
|
69466
|
-
|
|
69466
|
+
resolve11(res);
|
|
69467
69467
|
}
|
|
69468
69468
|
});
|
|
69469
69469
|
});
|
|
69470
69470
|
}
|
|
69471
69471
|
async close() {
|
|
69472
69472
|
const zip = await this[propZip];
|
|
69473
|
-
return new Promise((
|
|
69473
|
+
return new Promise((resolve11, reject) => {
|
|
69474
69474
|
zip.close((err) => {
|
|
69475
69475
|
if (err) {
|
|
69476
69476
|
reject(err);
|
|
69477
69477
|
} else {
|
|
69478
|
-
|
|
69478
|
+
resolve11();
|
|
69479
69479
|
}
|
|
69480
69480
|
});
|
|
69481
69481
|
});
|
|
@@ -69964,12 +69964,12 @@ async function spawnProcess(command15, args = [], options = {}, spawnProcessOpti
|
|
|
69964
69964
|
logger.info("[dry-run] Not spawning process:", `${command15} ${argsString}`);
|
|
69965
69965
|
return void 0;
|
|
69966
69966
|
}
|
|
69967
|
-
return new Promise((
|
|
69967
|
+
return new Promise((resolve11, reject) => {
|
|
69968
69968
|
const stdoutChunks = [];
|
|
69969
69969
|
let stdout = "";
|
|
69970
69970
|
let stderr = "";
|
|
69971
69971
|
let child;
|
|
69972
|
-
const succeed = () => setTimeout(() =>
|
|
69972
|
+
const succeed = () => setTimeout(() => resolve11(Buffer.concat(stdoutChunks)), 0);
|
|
69973
69973
|
const fail = (e5) => reject(processError(e5.code, command15, args, options, stdout, stderr));
|
|
69974
69974
|
try {
|
|
69975
69975
|
logger.trace("Spawning process:", `${command15} ${argsString}`);
|
|
@@ -70023,9 +70023,9 @@ async function calculateChecksum(filePath, options) {
|
|
|
70023
70023
|
logger.debug(`Calculating "${algorithm}" hashsum for file: ${filePath}`);
|
|
70024
70024
|
const stream2 = fs4.createReadStream(filePath);
|
|
70025
70025
|
const hash = (0, import_crypto2.createHash)(algorithm);
|
|
70026
|
-
return new Promise((
|
|
70026
|
+
return new Promise((resolve11, reject) => {
|
|
70027
70027
|
stream2.on("data", (data2) => hash.update(data2));
|
|
70028
|
-
stream2.on("end", () =>
|
|
70028
|
+
stream2.on("end", () => resolve11(formatDigest(hash, format7)));
|
|
70029
70029
|
stream2.on("error", reject);
|
|
70030
70030
|
});
|
|
70031
70031
|
}
|
|
@@ -74721,8 +74721,8 @@ var require_light = __commonJS({
|
|
|
74721
74721
|
return this.Promise.resolve();
|
|
74722
74722
|
}
|
|
74723
74723
|
yieldLoop(t6 = 0) {
|
|
74724
|
-
return new this.Promise(function(
|
|
74725
|
-
return setTimeout(
|
|
74724
|
+
return new this.Promise(function(resolve11, reject) {
|
|
74725
|
+
return setTimeout(resolve11, t6);
|
|
74726
74726
|
});
|
|
74727
74727
|
}
|
|
74728
74728
|
computePenalty() {
|
|
@@ -74933,15 +74933,15 @@ var require_light = __commonJS({
|
|
|
74933
74933
|
return this._queue.length === 0;
|
|
74934
74934
|
}
|
|
74935
74935
|
async _tryToRun() {
|
|
74936
|
-
var args, cb, error3, reject,
|
|
74936
|
+
var args, cb, error3, reject, resolve11, returned, task;
|
|
74937
74937
|
if (this._running < 1 && this._queue.length > 0) {
|
|
74938
74938
|
this._running++;
|
|
74939
|
-
({ task, args, resolve:
|
|
74939
|
+
({ task, args, resolve: resolve11, reject } = this._queue.shift());
|
|
74940
74940
|
cb = await (async function() {
|
|
74941
74941
|
try {
|
|
74942
74942
|
returned = await task(...args);
|
|
74943
74943
|
return function() {
|
|
74944
|
-
return
|
|
74944
|
+
return resolve11(returned);
|
|
74945
74945
|
};
|
|
74946
74946
|
} catch (error1) {
|
|
74947
74947
|
error3 = error1;
|
|
@@ -74956,13 +74956,13 @@ var require_light = __commonJS({
|
|
|
74956
74956
|
}
|
|
74957
74957
|
}
|
|
74958
74958
|
schedule(task, ...args) {
|
|
74959
|
-
var promise, reject,
|
|
74960
|
-
|
|
74959
|
+
var promise, reject, resolve11;
|
|
74960
|
+
resolve11 = reject = null;
|
|
74961
74961
|
promise = new this.Promise(function(_resolve, _reject) {
|
|
74962
|
-
|
|
74962
|
+
resolve11 = _resolve;
|
|
74963
74963
|
return reject = _reject;
|
|
74964
74964
|
});
|
|
74965
|
-
this._queue.push({ task, args, resolve:
|
|
74965
|
+
this._queue.push({ task, args, resolve: resolve11, reject });
|
|
74966
74966
|
this._tryToRun();
|
|
74967
74967
|
return promise;
|
|
74968
74968
|
}
|
|
@@ -75363,14 +75363,14 @@ var require_light = __commonJS({
|
|
|
75363
75363
|
counts = this._states.counts;
|
|
75364
75364
|
return counts[0] + counts[1] + counts[2] + counts[3] === at4;
|
|
75365
75365
|
};
|
|
75366
|
-
return new this.Promise((
|
|
75366
|
+
return new this.Promise((resolve11, reject) => {
|
|
75367
75367
|
if (finished()) {
|
|
75368
|
-
return
|
|
75368
|
+
return resolve11();
|
|
75369
75369
|
} else {
|
|
75370
75370
|
return this.on("done", () => {
|
|
75371
75371
|
if (finished()) {
|
|
75372
75372
|
this.removeAllListeners("done");
|
|
75373
|
-
return
|
|
75373
|
+
return resolve11();
|
|
75374
75374
|
}
|
|
75375
75375
|
});
|
|
75376
75376
|
}
|
|
@@ -75463,9 +75463,9 @@ var require_light = __commonJS({
|
|
|
75463
75463
|
options = parser$5.load(options, this.jobDefaults);
|
|
75464
75464
|
}
|
|
75465
75465
|
task = (...args2) => {
|
|
75466
|
-
return new this.Promise(function(
|
|
75466
|
+
return new this.Promise(function(resolve11, reject) {
|
|
75467
75467
|
return fn2(...args2, function(...args3) {
|
|
75468
|
-
return (args3[0] != null ? reject :
|
|
75468
|
+
return (args3[0] != null ? reject : resolve11)(args3);
|
|
75469
75469
|
});
|
|
75470
75470
|
});
|
|
75471
75471
|
};
|
|
@@ -76660,7 +76660,7 @@ async function forEachChained(array2, iteratee, thisArg) {
|
|
|
76660
76660
|
);
|
|
76661
76661
|
}
|
|
76662
76662
|
async function sleep(ms4) {
|
|
76663
|
-
return new Promise((
|
|
76663
|
+
return new Promise((resolve11) => setTimeout(resolve11, ms4));
|
|
76664
76664
|
}
|
|
76665
76665
|
async function withRetry(fn2, maxRetries = 3, onRetry) {
|
|
76666
76666
|
if (!onRetry) {
|
|
@@ -77638,7 +77638,7 @@ var init_github = __esm({
|
|
|
77638
77638
|
);
|
|
77639
77639
|
}
|
|
77640
77640
|
await new Promise(
|
|
77641
|
-
(
|
|
77641
|
+
(resolve11, reject) => response.body.pipe(fs6.createWriteStream(tempFilepath)).on("finish", () => resolve11()).on("error", reject)
|
|
77642
77642
|
);
|
|
77643
77643
|
return tempFilepath;
|
|
77644
77644
|
},
|
|
@@ -78324,8 +78324,8 @@ var require_retry = __commonJS({
|
|
|
78324
78324
|
}
|
|
78325
78325
|
const delay = getNextRetryDelay(config);
|
|
78326
78326
|
err.config.retryConfig.currentRetryAttempt += 1;
|
|
78327
|
-
const backoff = config.retryBackoff ? config.retryBackoff(err, delay) : new Promise((
|
|
78328
|
-
setTimeout(
|
|
78327
|
+
const backoff = config.retryBackoff ? config.retryBackoff(err, delay) : new Promise((resolve11) => {
|
|
78328
|
+
setTimeout(resolve11, delay);
|
|
78329
78329
|
});
|
|
78330
78330
|
if (config.onRetryAttempt) {
|
|
78331
78331
|
config.onRetryAttempt(err);
|
|
@@ -78982,8 +78982,8 @@ var require_helpers = __commonJS({
|
|
|
78982
78982
|
function req(url3, opts = {}) {
|
|
78983
78983
|
const href = typeof url3 === "string" ? url3 : url3.href;
|
|
78984
78984
|
const req2 = (href.startsWith("https:") ? https2 : http5).request(url3, opts);
|
|
78985
|
-
const promise = new Promise((
|
|
78986
|
-
req2.once("response",
|
|
78985
|
+
const promise = new Promise((resolve11, reject) => {
|
|
78986
|
+
req2.once("response", resolve11).once("error", reject).end();
|
|
78987
78987
|
});
|
|
78988
78988
|
req2.then = promise.then.bind(promise);
|
|
78989
78989
|
return req2;
|
|
@@ -79162,7 +79162,7 @@ var require_parse_proxy_response = __commonJS({
|
|
|
79162
79162
|
var debug_1 = __importDefault2(require_src());
|
|
79163
79163
|
var debug4 = (0, debug_1.default)("https-proxy-agent:parse-proxy-response");
|
|
79164
79164
|
function parseProxyResponse2(socket) {
|
|
79165
|
-
return new Promise((
|
|
79165
|
+
return new Promise((resolve11, reject) => {
|
|
79166
79166
|
let buffersLength = 0;
|
|
79167
79167
|
const buffers = [];
|
|
79168
79168
|
function read() {
|
|
@@ -79228,7 +79228,7 @@ var require_parse_proxy_response = __commonJS({
|
|
|
79228
79228
|
}
|
|
79229
79229
|
debug4("got proxy server response: %o %o", firstLine, headers);
|
|
79230
79230
|
cleanup();
|
|
79231
|
-
|
|
79231
|
+
resolve11({
|
|
79232
79232
|
connect: {
|
|
79233
79233
|
statusCode,
|
|
79234
79234
|
statusText,
|
|
@@ -79531,11 +79531,11 @@ var require_gaxios = __commonJS({
|
|
|
79531
79531
|
if (!opts.validateStatus(translatedResponse.status)) {
|
|
79532
79532
|
if (opts.responseType === "stream") {
|
|
79533
79533
|
let response = "";
|
|
79534
|
-
await new Promise((
|
|
79534
|
+
await new Promise((resolve11) => {
|
|
79535
79535
|
(translatedResponse === null || translatedResponse === void 0 ? void 0 : translatedResponse.data).on("data", (chunk) => {
|
|
79536
79536
|
response += chunk;
|
|
79537
79537
|
});
|
|
79538
|
-
(translatedResponse === null || translatedResponse === void 0 ? void 0 : translatedResponse.data).on("end",
|
|
79538
|
+
(translatedResponse === null || translatedResponse === void 0 ? void 0 : translatedResponse.data).on("end", resolve11);
|
|
79539
79539
|
});
|
|
79540
79540
|
translatedResponse.data = response;
|
|
79541
79541
|
}
|
|
@@ -85062,7 +85062,7 @@ var require_jwtaccess = __commonJS({
|
|
|
85062
85062
|
}
|
|
85063
85063
|
}
|
|
85064
85064
|
fromStreamAsync(inputStream) {
|
|
85065
|
-
return new Promise((
|
|
85065
|
+
return new Promise((resolve11, reject) => {
|
|
85066
85066
|
if (!inputStream) {
|
|
85067
85067
|
reject(new Error("Must pass in a stream containing the service account auth settings."));
|
|
85068
85068
|
}
|
|
@@ -85071,7 +85071,7 @@ var require_jwtaccess = __commonJS({
|
|
|
85071
85071
|
try {
|
|
85072
85072
|
const data2 = JSON.parse(s8);
|
|
85073
85073
|
this.fromJSON(data2);
|
|
85074
|
-
|
|
85074
|
+
resolve11();
|
|
85075
85075
|
} catch (err) {
|
|
85076
85076
|
reject(err);
|
|
85077
85077
|
}
|
|
@@ -85291,7 +85291,7 @@ var require_jwtclient = __commonJS({
|
|
|
85291
85291
|
}
|
|
85292
85292
|
}
|
|
85293
85293
|
fromStreamAsync(inputStream) {
|
|
85294
|
-
return new Promise((
|
|
85294
|
+
return new Promise((resolve11, reject) => {
|
|
85295
85295
|
if (!inputStream) {
|
|
85296
85296
|
throw new Error("Must pass in a stream containing the service account auth settings.");
|
|
85297
85297
|
}
|
|
@@ -85300,7 +85300,7 @@ var require_jwtclient = __commonJS({
|
|
|
85300
85300
|
try {
|
|
85301
85301
|
const data2 = JSON.parse(s8);
|
|
85302
85302
|
this.fromJSON(data2);
|
|
85303
|
-
|
|
85303
|
+
resolve11();
|
|
85304
85304
|
} catch (e5) {
|
|
85305
85305
|
reject(e5);
|
|
85306
85306
|
}
|
|
@@ -85421,7 +85421,7 @@ var require_refreshclient = __commonJS({
|
|
|
85421
85421
|
}
|
|
85422
85422
|
}
|
|
85423
85423
|
async fromStreamAsync(inputStream) {
|
|
85424
|
-
return new Promise((
|
|
85424
|
+
return new Promise((resolve11, reject) => {
|
|
85425
85425
|
if (!inputStream) {
|
|
85426
85426
|
return reject(new Error("Must pass in a stream containing the user refresh token."));
|
|
85427
85427
|
}
|
|
@@ -85430,7 +85430,7 @@ var require_refreshclient = __commonJS({
|
|
|
85430
85430
|
try {
|
|
85431
85431
|
const data2 = JSON.parse(s8);
|
|
85432
85432
|
this.fromJSON(data2);
|
|
85433
|
-
return
|
|
85433
|
+
return resolve11();
|
|
85434
85434
|
} catch (err) {
|
|
85435
85435
|
return reject(err);
|
|
85436
85436
|
}
|
|
@@ -87003,7 +87003,7 @@ var require_pluggable_auth_handler = __commonJS({
|
|
|
87003
87003
|
* @return A promise that resolves with the executable response.
|
|
87004
87004
|
*/
|
|
87005
87005
|
retrieveResponseFromExecutable(envMap) {
|
|
87006
|
-
return new Promise((
|
|
87006
|
+
return new Promise((resolve11, reject) => {
|
|
87007
87007
|
const child = childProcess.spawn(this.commandComponents[0], this.commandComponents.slice(1), {
|
|
87008
87008
|
env: { ...process.env, ...Object.fromEntries(envMap) }
|
|
87009
87009
|
});
|
|
@@ -87025,7 +87025,7 @@ var require_pluggable_auth_handler = __commonJS({
|
|
|
87025
87025
|
try {
|
|
87026
87026
|
const responseJson = JSON.parse(output);
|
|
87027
87027
|
const response = new executable_response_1.ExecutableResponse(responseJson);
|
|
87028
|
-
return
|
|
87028
|
+
return resolve11(response);
|
|
87029
87029
|
} catch (error3) {
|
|
87030
87030
|
if (error3 instanceof executable_response_1.ExecutableResponseError) {
|
|
87031
87031
|
return reject(error3);
|
|
@@ -87879,7 +87879,7 @@ var require_googleauth = __commonJS({
|
|
|
87879
87879
|
}
|
|
87880
87880
|
}
|
|
87881
87881
|
fromStreamAsync(inputStream, options) {
|
|
87882
|
-
return new Promise((
|
|
87882
|
+
return new Promise((resolve11, reject) => {
|
|
87883
87883
|
if (!inputStream) {
|
|
87884
87884
|
throw new Error("Must pass in a stream containing the Google auth settings.");
|
|
87885
87885
|
}
|
|
@@ -87889,7 +87889,7 @@ var require_googleauth = __commonJS({
|
|
|
87889
87889
|
try {
|
|
87890
87890
|
const data2 = JSON.parse(chunks.join(""));
|
|
87891
87891
|
const r6 = this._cacheClientFromJSON(data2, options);
|
|
87892
|
-
return
|
|
87892
|
+
return resolve11(r6);
|
|
87893
87893
|
} catch (err) {
|
|
87894
87894
|
if (!this.keyFilename)
|
|
87895
87895
|
throw err;
|
|
@@ -87899,7 +87899,7 @@ var require_googleauth = __commonJS({
|
|
|
87899
87899
|
});
|
|
87900
87900
|
this.cachedCredential = client;
|
|
87901
87901
|
this.setGapicJWTValues(client);
|
|
87902
|
-
return
|
|
87902
|
+
return resolve11(client);
|
|
87903
87903
|
}
|
|
87904
87904
|
} catch (err) {
|
|
87905
87905
|
return reject(err);
|
|
@@ -87935,17 +87935,17 @@ var require_googleauth = __commonJS({
|
|
|
87935
87935
|
* Run the Google Cloud SDK command that prints the default project ID
|
|
87936
87936
|
*/
|
|
87937
87937
|
async getDefaultServiceProjectId() {
|
|
87938
|
-
return new Promise((
|
|
87938
|
+
return new Promise((resolve11) => {
|
|
87939
87939
|
(0, child_process_1.exec)("gcloud config config-helper --format json", (err, stdout) => {
|
|
87940
87940
|
if (!err && stdout) {
|
|
87941
87941
|
try {
|
|
87942
87942
|
const projectId = JSON.parse(stdout).configuration.properties.core.project;
|
|
87943
|
-
|
|
87943
|
+
resolve11(projectId);
|
|
87944
87944
|
return;
|
|
87945
87945
|
} catch (e5) {
|
|
87946
87946
|
}
|
|
87947
87947
|
}
|
|
87948
|
-
|
|
87948
|
+
resolve11(null);
|
|
87949
87949
|
});
|
|
87950
87950
|
});
|
|
87951
87951
|
}
|
|
@@ -89018,7 +89018,7 @@ var require_dist7 = __commonJS({
|
|
|
89018
89018
|
init_import_meta_url();
|
|
89019
89019
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
89020
89020
|
function once2(emitter, name, { signal } = {}) {
|
|
89021
|
-
return new Promise((
|
|
89021
|
+
return new Promise((resolve11, reject) => {
|
|
89022
89022
|
function cleanup() {
|
|
89023
89023
|
signal === null || signal === void 0 ? void 0 : signal.removeEventListener("abort", onAbort);
|
|
89024
89024
|
emitter.removeListener(name, onEvent);
|
|
@@ -89026,7 +89026,7 @@ var require_dist7 = __commonJS({
|
|
|
89026
89026
|
}
|
|
89027
89027
|
function onEvent(...args) {
|
|
89028
89028
|
cleanup();
|
|
89029
|
-
|
|
89029
|
+
resolve11(args);
|
|
89030
89030
|
}
|
|
89031
89031
|
function onError2(err) {
|
|
89032
89032
|
cleanup();
|
|
@@ -89059,12 +89059,12 @@ var require_promisify = __commonJS({
|
|
|
89059
89059
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
89060
89060
|
function promisify5(fn2) {
|
|
89061
89061
|
return function(req, opts) {
|
|
89062
|
-
return new Promise((
|
|
89062
|
+
return new Promise((resolve11, reject) => {
|
|
89063
89063
|
fn2.call(this, req, opts, (err, rtn) => {
|
|
89064
89064
|
if (err) {
|
|
89065
89065
|
reject(err);
|
|
89066
89066
|
} else {
|
|
89067
|
-
|
|
89067
|
+
resolve11(rtn);
|
|
89068
89068
|
}
|
|
89069
89069
|
});
|
|
89070
89070
|
});
|
|
@@ -89265,11 +89265,11 @@ var require_agent = __commonJS({
|
|
|
89265
89265
|
init_import_meta_url();
|
|
89266
89266
|
var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P6, generator) {
|
|
89267
89267
|
function adopt(value) {
|
|
89268
|
-
return value instanceof P6 ? value : new P6(function(
|
|
89269
|
-
|
|
89268
|
+
return value instanceof P6 ? value : new P6(function(resolve11) {
|
|
89269
|
+
resolve11(value);
|
|
89270
89270
|
});
|
|
89271
89271
|
}
|
|
89272
|
-
return new (P6 || (P6 = Promise))(function(
|
|
89272
|
+
return new (P6 || (P6 = Promise))(function(resolve11, reject) {
|
|
89273
89273
|
function fulfilled(value) {
|
|
89274
89274
|
try {
|
|
89275
89275
|
step(generator.next(value));
|
|
@@ -89285,7 +89285,7 @@ var require_agent = __commonJS({
|
|
|
89285
89285
|
}
|
|
89286
89286
|
}
|
|
89287
89287
|
function step(result) {
|
|
89288
|
-
result.done ?
|
|
89288
|
+
result.done ? resolve11(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
89289
89289
|
}
|
|
89290
89290
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
89291
89291
|
});
|
|
@@ -89427,7 +89427,7 @@ var require_parse_proxy_response2 = __commonJS({
|
|
|
89427
89427
|
var debug_1 = __importDefault2(require_src());
|
|
89428
89428
|
var debug4 = debug_1.default("https-proxy-agent:parse-proxy-response");
|
|
89429
89429
|
function parseProxyResponse2(socket) {
|
|
89430
|
-
return new Promise((
|
|
89430
|
+
return new Promise((resolve11, reject) => {
|
|
89431
89431
|
let buffersLength = 0;
|
|
89432
89432
|
const buffers = [];
|
|
89433
89433
|
function read() {
|
|
@@ -89467,7 +89467,7 @@ var require_parse_proxy_response2 = __commonJS({
|
|
|
89467
89467
|
const firstLine = buffered.toString("ascii", 0, buffered.indexOf("\r\n"));
|
|
89468
89468
|
const statusCode = +firstLine.split(" ")[1];
|
|
89469
89469
|
debug4("got proxy server response: %o", firstLine);
|
|
89470
|
-
|
|
89470
|
+
resolve11({
|
|
89471
89471
|
statusCode,
|
|
89472
89472
|
buffered
|
|
89473
89473
|
});
|
|
@@ -89489,11 +89489,11 @@ var require_agent2 = __commonJS({
|
|
|
89489
89489
|
init_import_meta_url();
|
|
89490
89490
|
var __awaiter2 = exports2 && exports2.__awaiter || function(thisArg, _arguments, P6, generator) {
|
|
89491
89491
|
function adopt(value) {
|
|
89492
|
-
return value instanceof P6 ? value : new P6(function(
|
|
89493
|
-
|
|
89492
|
+
return value instanceof P6 ? value : new P6(function(resolve11) {
|
|
89493
|
+
resolve11(value);
|
|
89494
89494
|
});
|
|
89495
89495
|
}
|
|
89496
|
-
return new (P6 || (P6 = Promise))(function(
|
|
89496
|
+
return new (P6 || (P6 = Promise))(function(resolve11, reject) {
|
|
89497
89497
|
function fulfilled(value) {
|
|
89498
89498
|
try {
|
|
89499
89499
|
step(generator.next(value));
|
|
@@ -89509,7 +89509,7 @@ var require_agent2 = __commonJS({
|
|
|
89509
89509
|
}
|
|
89510
89510
|
}
|
|
89511
89511
|
function step(result) {
|
|
89512
|
-
result.done ?
|
|
89512
|
+
result.done ? resolve11(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
89513
89513
|
}
|
|
89514
89514
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
89515
89515
|
});
|
|
@@ -91822,14 +91822,14 @@ var require_async_iterator = __commonJS({
|
|
|
91822
91822
|
};
|
|
91823
91823
|
}
|
|
91824
91824
|
function readAndResolve(iter) {
|
|
91825
|
-
var
|
|
91826
|
-
if (
|
|
91825
|
+
var resolve11 = iter[kLastResolve];
|
|
91826
|
+
if (resolve11 !== null) {
|
|
91827
91827
|
var data2 = iter[kStream].read();
|
|
91828
91828
|
if (data2 !== null) {
|
|
91829
91829
|
iter[kLastPromise] = null;
|
|
91830
91830
|
iter[kLastResolve] = null;
|
|
91831
91831
|
iter[kLastReject] = null;
|
|
91832
|
-
|
|
91832
|
+
resolve11(createIterResult(data2, false));
|
|
91833
91833
|
}
|
|
91834
91834
|
}
|
|
91835
91835
|
}
|
|
@@ -91837,13 +91837,13 @@ var require_async_iterator = __commonJS({
|
|
|
91837
91837
|
process.nextTick(readAndResolve, iter);
|
|
91838
91838
|
}
|
|
91839
91839
|
function wrapForNext(lastPromise, iter) {
|
|
91840
|
-
return function(
|
|
91840
|
+
return function(resolve11, reject) {
|
|
91841
91841
|
lastPromise.then(function() {
|
|
91842
91842
|
if (iter[kEnded]) {
|
|
91843
|
-
|
|
91843
|
+
resolve11(createIterResult(void 0, true));
|
|
91844
91844
|
return;
|
|
91845
91845
|
}
|
|
91846
|
-
iter[kHandlePromise](
|
|
91846
|
+
iter[kHandlePromise](resolve11, reject);
|
|
91847
91847
|
}, reject);
|
|
91848
91848
|
};
|
|
91849
91849
|
}
|
|
@@ -91863,12 +91863,12 @@ var require_async_iterator = __commonJS({
|
|
|
91863
91863
|
return Promise.resolve(createIterResult(void 0, true));
|
|
91864
91864
|
}
|
|
91865
91865
|
if (this[kStream].destroyed) {
|
|
91866
|
-
return new Promise(function(
|
|
91866
|
+
return new Promise(function(resolve11, reject) {
|
|
91867
91867
|
process.nextTick(function() {
|
|
91868
91868
|
if (_this[kError]) {
|
|
91869
91869
|
reject(_this[kError]);
|
|
91870
91870
|
} else {
|
|
91871
|
-
|
|
91871
|
+
resolve11(createIterResult(void 0, true));
|
|
91872
91872
|
}
|
|
91873
91873
|
});
|
|
91874
91874
|
});
|
|
@@ -91891,13 +91891,13 @@ var require_async_iterator = __commonJS({
|
|
|
91891
91891
|
return this;
|
|
91892
91892
|
}), _defineProperty(_Object$setPrototypeO, "return", function _return() {
|
|
91893
91893
|
var _this2 = this;
|
|
91894
|
-
return new Promise(function(
|
|
91894
|
+
return new Promise(function(resolve11, reject) {
|
|
91895
91895
|
_this2[kStream].destroy(null, function(err) {
|
|
91896
91896
|
if (err) {
|
|
91897
91897
|
reject(err);
|
|
91898
91898
|
return;
|
|
91899
91899
|
}
|
|
91900
|
-
|
|
91900
|
+
resolve11(createIterResult(void 0, true));
|
|
91901
91901
|
});
|
|
91902
91902
|
});
|
|
91903
91903
|
}), _Object$setPrototypeO), AsyncIteratorPrototype);
|
|
@@ -91919,15 +91919,15 @@ var require_async_iterator = __commonJS({
|
|
|
91919
91919
|
value: stream2._readableState.endEmitted,
|
|
91920
91920
|
writable: true
|
|
91921
91921
|
}), _defineProperty(_Object$create, kHandlePromise, {
|
|
91922
|
-
value: function value(
|
|
91922
|
+
value: function value(resolve11, reject) {
|
|
91923
91923
|
var data2 = iterator2[kStream].read();
|
|
91924
91924
|
if (data2) {
|
|
91925
91925
|
iterator2[kLastPromise] = null;
|
|
91926
91926
|
iterator2[kLastResolve] = null;
|
|
91927
91927
|
iterator2[kLastReject] = null;
|
|
91928
|
-
|
|
91928
|
+
resolve11(createIterResult(data2, false));
|
|
91929
91929
|
} else {
|
|
91930
|
-
iterator2[kLastResolve] =
|
|
91930
|
+
iterator2[kLastResolve] = resolve11;
|
|
91931
91931
|
iterator2[kLastReject] = reject;
|
|
91932
91932
|
}
|
|
91933
91933
|
},
|
|
@@ -91946,12 +91946,12 @@ var require_async_iterator = __commonJS({
|
|
|
91946
91946
|
iterator2[kError] = err;
|
|
91947
91947
|
return;
|
|
91948
91948
|
}
|
|
91949
|
-
var
|
|
91950
|
-
if (
|
|
91949
|
+
var resolve11 = iterator2[kLastResolve];
|
|
91950
|
+
if (resolve11 !== null) {
|
|
91951
91951
|
iterator2[kLastPromise] = null;
|
|
91952
91952
|
iterator2[kLastResolve] = null;
|
|
91953
91953
|
iterator2[kLastReject] = null;
|
|
91954
|
-
|
|
91954
|
+
resolve11(createIterResult(void 0, true));
|
|
91955
91955
|
}
|
|
91956
91956
|
iterator2[kEnded] = true;
|
|
91957
91957
|
});
|
|
@@ -91967,7 +91967,7 @@ var require_from = __commonJS({
|
|
|
91967
91967
|
"node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/from.js"(exports2, module2) {
|
|
91968
91968
|
"use strict";
|
|
91969
91969
|
init_import_meta_url();
|
|
91970
|
-
function asyncGeneratorStep(gen,
|
|
91970
|
+
function asyncGeneratorStep(gen, resolve11, reject, _next, _throw, key, arg) {
|
|
91971
91971
|
try {
|
|
91972
91972
|
var info = gen[key](arg);
|
|
91973
91973
|
var value = info.value;
|
|
@@ -91976,7 +91976,7 @@ var require_from = __commonJS({
|
|
|
91976
91976
|
return;
|
|
91977
91977
|
}
|
|
91978
91978
|
if (info.done) {
|
|
91979
|
-
|
|
91979
|
+
resolve11(value);
|
|
91980
91980
|
} else {
|
|
91981
91981
|
Promise.resolve(value).then(_next, _throw);
|
|
91982
91982
|
}
|
|
@@ -91984,13 +91984,13 @@ var require_from = __commonJS({
|
|
|
91984
91984
|
function _asyncToGenerator(fn2) {
|
|
91985
91985
|
return function() {
|
|
91986
91986
|
var self2 = this, args = arguments;
|
|
91987
|
-
return new Promise(function(
|
|
91987
|
+
return new Promise(function(resolve11, reject) {
|
|
91988
91988
|
var gen = fn2.apply(self2, args);
|
|
91989
91989
|
function _next(value) {
|
|
91990
|
-
asyncGeneratorStep(gen,
|
|
91990
|
+
asyncGeneratorStep(gen, resolve11, reject, _next, _throw, "next", value);
|
|
91991
91991
|
}
|
|
91992
91992
|
function _throw(err) {
|
|
91993
|
-
asyncGeneratorStep(gen,
|
|
91993
|
+
asyncGeneratorStep(gen, resolve11, reject, _next, _throw, "throw", err);
|
|
91994
91994
|
}
|
|
91995
91995
|
_next(void 0);
|
|
91996
91996
|
});
|
|
@@ -94186,7 +94186,7 @@ var require_src12 = __commonJS({
|
|
|
94186
94186
|
if (this && this.Promise) {
|
|
94187
94187
|
PromiseCtor = this.Promise;
|
|
94188
94188
|
}
|
|
94189
|
-
return new PromiseCtor((
|
|
94189
|
+
return new PromiseCtor((resolve11, reject) => {
|
|
94190
94190
|
args.push((...args2) => {
|
|
94191
94191
|
const callbackArgs = slice.call(args2);
|
|
94192
94192
|
const err = callbackArgs.shift();
|
|
@@ -94194,9 +94194,9 @@ var require_src12 = __commonJS({
|
|
|
94194
94194
|
return reject(err);
|
|
94195
94195
|
}
|
|
94196
94196
|
if (options.singular && callbackArgs.length === 1) {
|
|
94197
|
-
|
|
94197
|
+
resolve11(callbackArgs[0]);
|
|
94198
94198
|
} else {
|
|
94199
|
-
|
|
94199
|
+
resolve11(callbackArgs);
|
|
94200
94200
|
}
|
|
94201
94201
|
});
|
|
94202
94202
|
originalMethod.apply(this, args);
|
|
@@ -94726,11 +94726,11 @@ var require_src13 = __commonJS({
|
|
|
94726
94726
|
}
|
|
94727
94727
|
const results = new Array();
|
|
94728
94728
|
let otherArgs = [];
|
|
94729
|
-
const promise = new Promise((
|
|
94729
|
+
const promise = new Promise((resolve11, reject) => {
|
|
94730
94730
|
const stream2 = paginator3.runAsStream_(parsedArguments, originalMethod);
|
|
94731
94731
|
stream2.on("error", reject).on("data", (data2) => results.push(data2)).on("end", () => {
|
|
94732
94732
|
otherArgs = stream2._otherArgs || [];
|
|
94733
|
-
|
|
94733
|
+
resolve11(results);
|
|
94734
94734
|
});
|
|
94735
94735
|
});
|
|
94736
94736
|
if (!callback) {
|
|
@@ -94926,18 +94926,18 @@ var require_p_limit = __commonJS({
|
|
|
94926
94926
|
queue.dequeue()();
|
|
94927
94927
|
}
|
|
94928
94928
|
};
|
|
94929
|
-
const run = async (fn2,
|
|
94929
|
+
const run = async (fn2, resolve11, ...args) => {
|
|
94930
94930
|
activeCount++;
|
|
94931
94931
|
const result = (async () => fn2(...args))();
|
|
94932
|
-
|
|
94932
|
+
resolve11(result);
|
|
94933
94933
|
try {
|
|
94934
94934
|
await result;
|
|
94935
94935
|
} catch {
|
|
94936
94936
|
}
|
|
94937
94937
|
next();
|
|
94938
94938
|
};
|
|
94939
|
-
const enqueue = (fn2,
|
|
94940
|
-
queue.enqueue(run.bind(null, fn2,
|
|
94939
|
+
const enqueue = (fn2, resolve11, ...args) => {
|
|
94940
|
+
queue.enqueue(run.bind(null, fn2, resolve11, ...args));
|
|
94941
94941
|
(async () => {
|
|
94942
94942
|
await Promise.resolve();
|
|
94943
94943
|
if (activeCount < concurrency && queue.size > 0) {
|
|
@@ -94945,8 +94945,8 @@ var require_p_limit = __commonJS({
|
|
|
94945
94945
|
}
|
|
94946
94946
|
})();
|
|
94947
94947
|
};
|
|
94948
|
-
const generator = (fn2, ...args) => new Promise((
|
|
94949
|
-
enqueue(fn2,
|
|
94948
|
+
const generator = (fn2, ...args) => new Promise((resolve11) => {
|
|
94949
|
+
enqueue(fn2, resolve11, ...args);
|
|
94950
94950
|
});
|
|
94951
94951
|
Object.defineProperties(generator, {
|
|
94952
94952
|
activeCount: {
|
|
@@ -95204,7 +95204,7 @@ var require_lib10 = __commonJS({
|
|
|
95204
95204
|
init_import_meta_url();
|
|
95205
95205
|
var retrier = require_retry3();
|
|
95206
95206
|
function retry2(fn2, opts) {
|
|
95207
|
-
function run(
|
|
95207
|
+
function run(resolve11, reject) {
|
|
95208
95208
|
var options = opts || {};
|
|
95209
95209
|
var op3;
|
|
95210
95210
|
if (!("randomize" in options)) {
|
|
@@ -95233,7 +95233,7 @@ var require_lib10 = __commonJS({
|
|
|
95233
95233
|
onError2(err, num2);
|
|
95234
95234
|
return;
|
|
95235
95235
|
}
|
|
95236
|
-
Promise.resolve(val).then(
|
|
95236
|
+
Promise.resolve(val).then(resolve11).catch(function catchIt(err) {
|
|
95237
95237
|
onError2(err, num2);
|
|
95238
95238
|
});
|
|
95239
95239
|
}
|
|
@@ -96643,22 +96643,22 @@ var init_resumable_upload = __esm({
|
|
|
96643
96643
|
* @returns If there will be more chunks to read in the future
|
|
96644
96644
|
*/
|
|
96645
96645
|
async waitForNextChunk() {
|
|
96646
|
-
const willBeMoreChunks = await new Promise((
|
|
96646
|
+
const willBeMoreChunks = await new Promise((resolve11) => {
|
|
96647
96647
|
if (this.writeBuffers.length) {
|
|
96648
|
-
return
|
|
96648
|
+
return resolve11(true);
|
|
96649
96649
|
}
|
|
96650
96650
|
if (this.upstreamEnded) {
|
|
96651
|
-
return
|
|
96651
|
+
return resolve11(false);
|
|
96652
96652
|
}
|
|
96653
96653
|
const wroteToChunkBufferCallback = () => {
|
|
96654
96654
|
removeListeners();
|
|
96655
|
-
return
|
|
96655
|
+
return resolve11(true);
|
|
96656
96656
|
};
|
|
96657
96657
|
const upstreamFinishedCallback = () => {
|
|
96658
96658
|
removeListeners();
|
|
96659
96659
|
if (this.writeBuffers.length)
|
|
96660
|
-
return
|
|
96661
|
-
return
|
|
96660
|
+
return resolve11(true);
|
|
96661
|
+
return resolve11(false);
|
|
96662
96662
|
};
|
|
96663
96663
|
const removeListeners = () => {
|
|
96664
96664
|
this.removeListener("wroteToChunkBuffer", wroteToChunkBufferCallback);
|
|
@@ -97726,14 +97726,14 @@ var init_crc32c = __esm({
|
|
|
97726
97726
|
}
|
|
97727
97727
|
static async fromFile(file) {
|
|
97728
97728
|
const crc32c = new _CRC32C();
|
|
97729
|
-
await new Promise((
|
|
97729
|
+
await new Promise((resolve11, reject) => {
|
|
97730
97730
|
(0, import_fs10.createReadStream)(file).on("data", (d9) => {
|
|
97731
97731
|
if (typeof d9 === "string") {
|
|
97732
97732
|
crc32c.update(Buffer.from(d9));
|
|
97733
97733
|
} else {
|
|
97734
97734
|
crc32c.update(d9);
|
|
97735
97735
|
}
|
|
97736
|
-
}).on("end", () =>
|
|
97736
|
+
}).on("end", () => resolve11()).on("error", reject);
|
|
97737
97737
|
});
|
|
97738
97738
|
return crc32c;
|
|
97739
97739
|
}
|
|
@@ -99292,8 +99292,8 @@ var init_file = __esm({
|
|
|
99292
99292
|
}
|
|
99293
99293
|
if (!fileWriteStreamMetadataReceived) {
|
|
99294
99294
|
try {
|
|
99295
|
-
await new Promise((
|
|
99296
|
-
fileWriteStream.once("metadata",
|
|
99295
|
+
await new Promise((resolve11, reject) => {
|
|
99296
|
+
fileWriteStream.once("metadata", resolve11);
|
|
99297
99297
|
fileWriteStream.once("error", reject);
|
|
99298
99298
|
});
|
|
99299
99299
|
} catch (e6) {
|
|
@@ -100875,7 +100875,7 @@ var init_file = __esm({
|
|
|
100875
100875
|
maxRetries = 0;
|
|
100876
100876
|
}
|
|
100877
100877
|
const returnValue = (0, import_async_retry2.default)(async (bail) => {
|
|
100878
|
-
return new Promise((
|
|
100878
|
+
return new Promise((resolve11, reject) => {
|
|
100879
100879
|
if (maxRetries === 0) {
|
|
100880
100880
|
this.storage.retryOptions.autoRetry = false;
|
|
100881
100881
|
}
|
|
@@ -100890,7 +100890,7 @@ var init_file = __esm({
|
|
|
100890
100890
|
return bail(err);
|
|
100891
100891
|
};
|
|
100892
100892
|
if (typeof data2 === "string" || Buffer.isBuffer(data2) || data2 instanceof Uint8Array) {
|
|
100893
|
-
writable.on("error", handleError).on("finish", () =>
|
|
100893
|
+
writable.on("error", handleError).on("finish", () => resolve11()).end(data2);
|
|
100894
100894
|
} else {
|
|
100895
100895
|
(0, import_stream5.pipeline)(data2, writable, (err) => {
|
|
100896
100896
|
if (err) {
|
|
@@ -100899,7 +100899,7 @@ var init_file = __esm({
|
|
|
100899
100899
|
}
|
|
100900
100900
|
handleError(err);
|
|
100901
100901
|
} else {
|
|
100902
|
-
|
|
100902
|
+
resolve11();
|
|
100903
100903
|
}
|
|
100904
100904
|
});
|
|
100905
100905
|
}
|
|
@@ -104652,7 +104652,7 @@ var init_bucket = __esm({
|
|
|
104652
104652
|
var _a6, _b2;
|
|
104653
104653
|
const upload2 = (numberOfRetries) => {
|
|
104654
104654
|
const returnValue = (0, import_async_retry3.default)(async (bail) => {
|
|
104655
|
-
await new Promise((
|
|
104655
|
+
await new Promise((resolve11, reject) => {
|
|
104656
104656
|
var _a7, _b3;
|
|
104657
104657
|
if (numberOfRetries === 0 && ((_b3 = (_a7 = newFile === null || newFile === void 0 ? void 0 : newFile.storage) === null || _a7 === void 0 ? void 0 : _a7.retryOptions) === null || _b3 === void 0 ? void 0 : _b3.autoRetry)) {
|
|
104658
104658
|
newFile.storage.retryOptions.autoRetry = false;
|
|
@@ -104668,7 +104668,7 @@ var init_bucket = __esm({
|
|
|
104668
104668
|
return bail(err);
|
|
104669
104669
|
}
|
|
104670
104670
|
}).on("finish", () => {
|
|
104671
|
-
return
|
|
104671
|
+
return resolve11();
|
|
104672
104672
|
});
|
|
104673
104673
|
});
|
|
104674
104674
|
}, {
|
|
@@ -115561,10 +115561,10 @@ var require_async = __commonJS({
|
|
|
115561
115561
|
if (typeof args[arity - 1] === "function") {
|
|
115562
115562
|
return asyncFn.apply(this, args);
|
|
115563
115563
|
}
|
|
115564
|
-
return new Promise((
|
|
115564
|
+
return new Promise((resolve11, reject2) => {
|
|
115565
115565
|
args[arity - 1] = (err, ...cbArgs) => {
|
|
115566
115566
|
if (err) return reject2(err);
|
|
115567
|
-
|
|
115567
|
+
resolve11(cbArgs.length > 1 ? cbArgs : cbArgs[0]);
|
|
115568
115568
|
};
|
|
115569
115569
|
asyncFn.apply(this, args);
|
|
115570
115570
|
});
|
|
@@ -115810,13 +115810,13 @@ var require_async = __commonJS({
|
|
|
115810
115810
|
var applyEachSeries = applyEach(mapSeries$1);
|
|
115811
115811
|
const PROMISE_SYMBOL = /* @__PURE__ */ Symbol("promiseCallback");
|
|
115812
115812
|
function promiseCallback() {
|
|
115813
|
-
let
|
|
115813
|
+
let resolve11, reject2;
|
|
115814
115814
|
function callback(err, ...args) {
|
|
115815
115815
|
if (err) return reject2(err);
|
|
115816
|
-
|
|
115816
|
+
resolve11(args.length > 1 ? args : args[0]);
|
|
115817
115817
|
}
|
|
115818
115818
|
callback[PROMISE_SYMBOL] = new Promise((res, rej) => {
|
|
115819
|
-
|
|
115819
|
+
resolve11 = res, reject2 = rej;
|
|
115820
115820
|
});
|
|
115821
115821
|
return callback;
|
|
115822
115822
|
}
|
|
@@ -116140,8 +116140,8 @@ var require_async = __commonJS({
|
|
|
116140
116140
|
});
|
|
116141
116141
|
}
|
|
116142
116142
|
if (rejectOnError || !callback) {
|
|
116143
|
-
return new Promise((
|
|
116144
|
-
res =
|
|
116143
|
+
return new Promise((resolve11, reject2) => {
|
|
116144
|
+
res = resolve11;
|
|
116145
116145
|
rej = reject2;
|
|
116146
116146
|
});
|
|
116147
116147
|
}
|
|
@@ -116180,10 +116180,10 @@ var require_async = __commonJS({
|
|
|
116180
116180
|
}
|
|
116181
116181
|
const eventMethod = (name) => (handler15) => {
|
|
116182
116182
|
if (!handler15) {
|
|
116183
|
-
return new Promise((
|
|
116183
|
+
return new Promise((resolve11, reject2) => {
|
|
116184
116184
|
once3(name, (err, data2) => {
|
|
116185
116185
|
if (err) return reject2(err);
|
|
116186
|
-
|
|
116186
|
+
resolve11(data2);
|
|
116187
116187
|
});
|
|
116188
116188
|
});
|
|
116189
116189
|
}
|
|
@@ -120443,13 +120443,13 @@ function abortable(promise, signal) {
|
|
|
120443
120443
|
});
|
|
120444
120444
|
return Promise.reject(new Error("Summary aborted"));
|
|
120445
120445
|
}
|
|
120446
|
-
return new Promise((
|
|
120446
|
+
return new Promise((resolve11, reject) => {
|
|
120447
120447
|
const abort = () => {
|
|
120448
120448
|
signal.removeEventListener("abort", abort);
|
|
120449
120449
|
reject(new Error("Summary aborted"));
|
|
120450
120450
|
};
|
|
120451
120451
|
signal.addEventListener("abort", abort, { once: true });
|
|
120452
|
-
promise.then(
|
|
120452
|
+
promise.then(resolve11, reject).finally(() => signal.removeEventListener("abort", abort));
|
|
120453
120453
|
});
|
|
120454
120454
|
}
|
|
120455
120455
|
function resolveAiSummaryLlm(config) {
|
|
@@ -127784,7 +127784,7 @@ var require_headStream = __commonJS({
|
|
|
127784
127784
|
if ((0, stream_type_check_1.isReadableStream)(stream2)) {
|
|
127785
127785
|
return (0, headStream_browser_1.headStream)(stream2, bytes);
|
|
127786
127786
|
}
|
|
127787
|
-
return new Promise((
|
|
127787
|
+
return new Promise((resolve11, reject) => {
|
|
127788
127788
|
const collector = new Collector();
|
|
127789
127789
|
collector.limit = bytes;
|
|
127790
127790
|
stream2.pipe(collector);
|
|
@@ -127795,7 +127795,7 @@ var require_headStream = __commonJS({
|
|
|
127795
127795
|
collector.on("error", reject);
|
|
127796
127796
|
collector.on("finish", function() {
|
|
127797
127797
|
const bytes2 = new Uint8Array(Buffer.concat(this.buffers));
|
|
127798
|
-
|
|
127798
|
+
resolve11(bytes2);
|
|
127799
127799
|
});
|
|
127800
127800
|
});
|
|
127801
127801
|
};
|
|
@@ -127986,21 +127986,21 @@ var require_dist_cjs14 = __commonJS({
|
|
|
127986
127986
|
let sendBody = true;
|
|
127987
127987
|
if (!externalAgent && expect === "100-continue") {
|
|
127988
127988
|
sendBody = await Promise.race([
|
|
127989
|
-
new Promise((
|
|
127990
|
-
timeoutId = Number(timing.setTimeout(() =>
|
|
127989
|
+
new Promise((resolve11) => {
|
|
127990
|
+
timeoutId = Number(timing.setTimeout(() => resolve11(true), Math.max(MIN_WAIT_TIME, maxContinueTimeoutMs)));
|
|
127991
127991
|
}),
|
|
127992
|
-
new Promise((
|
|
127992
|
+
new Promise((resolve11) => {
|
|
127993
127993
|
httpRequest.on("continue", () => {
|
|
127994
127994
|
timing.clearTimeout(timeoutId);
|
|
127995
|
-
|
|
127995
|
+
resolve11(true);
|
|
127996
127996
|
});
|
|
127997
127997
|
httpRequest.on("response", () => {
|
|
127998
127998
|
timing.clearTimeout(timeoutId);
|
|
127999
|
-
|
|
127999
|
+
resolve11(false);
|
|
128000
128000
|
});
|
|
128001
128001
|
httpRequest.on("error", () => {
|
|
128002
128002
|
timing.clearTimeout(timeoutId);
|
|
128003
|
-
|
|
128003
|
+
resolve11(false);
|
|
128004
128004
|
});
|
|
128005
128005
|
})
|
|
128006
128006
|
]);
|
|
@@ -128066,13 +128066,13 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
128066
128066
|
return socketWarningTimestamp;
|
|
128067
128067
|
}
|
|
128068
128068
|
constructor(options) {
|
|
128069
|
-
this.configProvider = new Promise((
|
|
128069
|
+
this.configProvider = new Promise((resolve11, reject) => {
|
|
128070
128070
|
if (typeof options === "function") {
|
|
128071
128071
|
options().then((_options) => {
|
|
128072
|
-
|
|
128072
|
+
resolve11(this.resolveDefaultConfig(_options));
|
|
128073
128073
|
}).catch(reject);
|
|
128074
128074
|
} else {
|
|
128075
|
-
|
|
128075
|
+
resolve11(this.resolveDefaultConfig(options));
|
|
128076
128076
|
}
|
|
128077
128077
|
});
|
|
128078
128078
|
}
|
|
@@ -128115,7 +128115,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
128115
128115
|
const config = this.config;
|
|
128116
128116
|
let writeRequestBodyPromise = void 0;
|
|
128117
128117
|
const timeouts = [];
|
|
128118
|
-
const
|
|
128118
|
+
const resolve11 = async (arg) => {
|
|
128119
128119
|
await writeRequestBodyPromise;
|
|
128120
128120
|
timeouts.forEach(timing.clearTimeout);
|
|
128121
128121
|
_resolve(arg);
|
|
@@ -128181,7 +128181,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
128181
128181
|
headers: getTransformedHeaders(res.headers),
|
|
128182
128182
|
body: res
|
|
128183
128183
|
});
|
|
128184
|
-
|
|
128184
|
+
resolve11({ response: httpResponse });
|
|
128185
128185
|
});
|
|
128186
128186
|
req.on("error", (err) => {
|
|
128187
128187
|
if (NODEJS_TIMEOUT_ERROR_CODES.includes(err.code)) {
|
|
@@ -128361,13 +128361,13 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
128361
128361
|
return new _NodeHttp2Handler(instanceOrOptions);
|
|
128362
128362
|
}
|
|
128363
128363
|
constructor(options) {
|
|
128364
|
-
this.configProvider = new Promise((
|
|
128364
|
+
this.configProvider = new Promise((resolve11, reject) => {
|
|
128365
128365
|
if (typeof options === "function") {
|
|
128366
128366
|
options().then((opts) => {
|
|
128367
|
-
|
|
128367
|
+
resolve11(opts || {});
|
|
128368
128368
|
}).catch(reject);
|
|
128369
128369
|
} else {
|
|
128370
|
-
|
|
128370
|
+
resolve11(options || {});
|
|
128371
128371
|
}
|
|
128372
128372
|
});
|
|
128373
128373
|
}
|
|
@@ -128387,7 +128387,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
128387
128387
|
return new Promise((_resolve, _reject) => {
|
|
128388
128388
|
let fulfilled = false;
|
|
128389
128389
|
let writeRequestBodyPromise = void 0;
|
|
128390
|
-
const
|
|
128390
|
+
const resolve11 = async (arg) => {
|
|
128391
128391
|
await writeRequestBodyPromise;
|
|
128392
128392
|
_resolve(arg);
|
|
128393
128393
|
};
|
|
@@ -128443,7 +128443,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
128443
128443
|
body: req
|
|
128444
128444
|
});
|
|
128445
128445
|
fulfilled = true;
|
|
128446
|
-
|
|
128446
|
+
resolve11({ response: httpResponse });
|
|
128447
128447
|
if (disableConcurrentStreams) {
|
|
128448
128448
|
session.close();
|
|
128449
128449
|
this.connectionManager.deleteSession(authority, session);
|
|
@@ -128520,7 +128520,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
128520
128520
|
if (isReadableStreamInstance(stream3)) {
|
|
128521
128521
|
return collectReadableStream(stream3);
|
|
128522
128522
|
}
|
|
128523
|
-
return new Promise((
|
|
128523
|
+
return new Promise((resolve11, reject) => {
|
|
128524
128524
|
const collector = new Collector();
|
|
128525
128525
|
stream3.pipe(collector);
|
|
128526
128526
|
stream3.on("error", (err) => {
|
|
@@ -128530,7 +128530,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
128530
128530
|
collector.on("error", reject);
|
|
128531
128531
|
collector.on("finish", function() {
|
|
128532
128532
|
const bytes = new Uint8Array(Buffer.concat(this.bufferedBytes));
|
|
128533
|
-
|
|
128533
|
+
resolve11(bytes);
|
|
128534
128534
|
});
|
|
128535
128535
|
});
|
|
128536
128536
|
};
|
|
@@ -128575,7 +128575,7 @@ var require_dist_cjs15 = __commonJS({
|
|
|
128575
128575
|
return new Request(url3, requestOptions);
|
|
128576
128576
|
}
|
|
128577
128577
|
function requestTimeout(timeoutInMs = 0) {
|
|
128578
|
-
return new Promise((
|
|
128578
|
+
return new Promise((resolve11, reject) => {
|
|
128579
128579
|
if (timeoutInMs) {
|
|
128580
128580
|
setTimeout(() => {
|
|
128581
128581
|
const timeoutError = new Error(`Request did not complete within ${timeoutInMs} ms`);
|
|
@@ -128693,7 +128693,7 @@ var require_dist_cjs15 = __commonJS({
|
|
|
128693
128693
|
requestTimeout(requestTimeoutInMs)
|
|
128694
128694
|
];
|
|
128695
128695
|
if (abortSignal) {
|
|
128696
|
-
raceOfPromises.push(new Promise((
|
|
128696
|
+
raceOfPromises.push(new Promise((resolve11, reject) => {
|
|
128697
128697
|
const onAbort = () => {
|
|
128698
128698
|
const abortError = new Error("Request aborted");
|
|
128699
128699
|
abortError.name = "AbortError";
|
|
@@ -128757,7 +128757,7 @@ var require_dist_cjs15 = __commonJS({
|
|
|
128757
128757
|
return collected;
|
|
128758
128758
|
}
|
|
128759
128759
|
function readToBase64(blob) {
|
|
128760
|
-
return new Promise((
|
|
128760
|
+
return new Promise((resolve11, reject) => {
|
|
128761
128761
|
const reader = new FileReader();
|
|
128762
128762
|
reader.onloadend = () => {
|
|
128763
128763
|
if (reader.readyState !== 2) {
|
|
@@ -128766,7 +128766,7 @@ var require_dist_cjs15 = __commonJS({
|
|
|
128766
128766
|
const result = reader.result ?? "";
|
|
128767
128767
|
const commaIndex = result.indexOf(",");
|
|
128768
128768
|
const dataOffset = commaIndex > -1 ? commaIndex + 1 : result.length;
|
|
128769
|
-
|
|
128769
|
+
resolve11(result.substring(dataOffset));
|
|
128770
128770
|
};
|
|
128771
128771
|
reader.onabort = () => reject(new Error("Read aborted"));
|
|
128772
128772
|
reader.onerror = () => reject(reader.error);
|
|
@@ -130443,11 +130443,11 @@ function __metadata(metadataKey, metadataValue) {
|
|
|
130443
130443
|
}
|
|
130444
130444
|
function __awaiter(thisArg, _arguments, P6, generator) {
|
|
130445
130445
|
function adopt(value) {
|
|
130446
|
-
return value instanceof P6 ? value : new P6(function(
|
|
130447
|
-
|
|
130446
|
+
return value instanceof P6 ? value : new P6(function(resolve11) {
|
|
130447
|
+
resolve11(value);
|
|
130448
130448
|
});
|
|
130449
130449
|
}
|
|
130450
|
-
return new (P6 || (P6 = Promise))(function(
|
|
130450
|
+
return new (P6 || (P6 = Promise))(function(resolve11, reject) {
|
|
130451
130451
|
function fulfilled(value) {
|
|
130452
130452
|
try {
|
|
130453
130453
|
step(generator.next(value));
|
|
@@ -130463,7 +130463,7 @@ function __awaiter(thisArg, _arguments, P6, generator) {
|
|
|
130463
130463
|
}
|
|
130464
130464
|
}
|
|
130465
130465
|
function step(result) {
|
|
130466
|
-
result.done ?
|
|
130466
|
+
result.done ? resolve11(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
130467
130467
|
}
|
|
130468
130468
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
130469
130469
|
});
|
|
@@ -130654,14 +130654,14 @@ function __asyncValues(o6) {
|
|
|
130654
130654
|
}, i5);
|
|
130655
130655
|
function verb(n5) {
|
|
130656
130656
|
i5[n5] = o6[n5] && function(v12) {
|
|
130657
|
-
return new Promise(function(
|
|
130658
|
-
v12 = o6[n5](v12), settle(
|
|
130657
|
+
return new Promise(function(resolve11, reject) {
|
|
130658
|
+
v12 = o6[n5](v12), settle(resolve11, reject, v12.done, v12.value);
|
|
130659
130659
|
});
|
|
130660
130660
|
};
|
|
130661
130661
|
}
|
|
130662
|
-
function settle(
|
|
130662
|
+
function settle(resolve11, reject, d9, v12) {
|
|
130663
130663
|
Promise.resolve(v12).then(function(v13) {
|
|
130664
|
-
|
|
130664
|
+
resolve11({ value: v13, done: d9 });
|
|
130665
130665
|
}, reject);
|
|
130666
130666
|
}
|
|
130667
130667
|
}
|
|
@@ -141576,7 +141576,7 @@ var require_dist_cjs37 = __commonJS({
|
|
|
141576
141576
|
this.refillTokenBucket();
|
|
141577
141577
|
if (amount > this.currentCapacity) {
|
|
141578
141578
|
const delay = (amount - this.currentCapacity) / this.fillRate * 1e3;
|
|
141579
|
-
await new Promise((
|
|
141579
|
+
await new Promise((resolve11) => _DefaultRateLimiter.setTimeoutFn(resolve11, delay));
|
|
141580
141580
|
}
|
|
141581
141581
|
this.currentCapacity = this.currentCapacity - amount;
|
|
141582
141582
|
}
|
|
@@ -141913,7 +141913,7 @@ var require_dist_cjs38 = __commonJS({
|
|
|
141913
141913
|
const delayFromResponse = getDelayFromRetryAfterHeader(err.$response);
|
|
141914
141914
|
const delay = Math.max(delayFromResponse || 0, delayFromDecider);
|
|
141915
141915
|
totalDelay += delay;
|
|
141916
|
-
await new Promise((
|
|
141916
|
+
await new Promise((resolve11) => setTimeout(resolve11, delay));
|
|
141917
141917
|
continue;
|
|
141918
141918
|
}
|
|
141919
141919
|
if (!err.$metadata) {
|
|
@@ -142071,7 +142071,7 @@ var require_dist_cjs38 = __commonJS({
|
|
|
142071
142071
|
attempts = retryToken.getRetryCount();
|
|
142072
142072
|
const delay = retryToken.getRetryDelay();
|
|
142073
142073
|
totalRetryDelay += delay;
|
|
142074
|
-
await new Promise((
|
|
142074
|
+
await new Promise((resolve11) => setTimeout(resolve11, delay));
|
|
142075
142075
|
}
|
|
142076
142076
|
}
|
|
142077
142077
|
} else {
|
|
@@ -142371,7 +142371,7 @@ var require_dist_cjs40 = __commonJS({
|
|
|
142371
142371
|
var nodeConfigProvider = require_dist_cjs34();
|
|
142372
142372
|
var urlParser = require_dist_cjs21();
|
|
142373
142373
|
function httpRequest(options) {
|
|
142374
|
-
return new Promise((
|
|
142374
|
+
return new Promise((resolve11, reject) => {
|
|
142375
142375
|
const req = http5.request({
|
|
142376
142376
|
method: "GET",
|
|
142377
142377
|
...options,
|
|
@@ -142396,7 +142396,7 @@ var require_dist_cjs40 = __commonJS({
|
|
|
142396
142396
|
chunks.push(chunk);
|
|
142397
142397
|
});
|
|
142398
142398
|
res.on("end", () => {
|
|
142399
|
-
|
|
142399
|
+
resolve11(buffer.Buffer.concat(chunks));
|
|
142400
142400
|
req.destroy();
|
|
142401
142401
|
});
|
|
142402
142402
|
});
|
|
@@ -142819,7 +142819,7 @@ var require_retry_wrapper = __commonJS({
|
|
|
142819
142819
|
try {
|
|
142820
142820
|
return await toRetry();
|
|
142821
142821
|
} catch (e5) {
|
|
142822
|
-
await new Promise((
|
|
142822
|
+
await new Promise((resolve11) => setTimeout(resolve11, delayMs));
|
|
142823
142823
|
}
|
|
142824
142824
|
}
|
|
142825
142825
|
return await toRetry();
|
|
@@ -148928,7 +148928,7 @@ var require_dist_cjs60 = __commonJS({
|
|
|
148928
148928
|
streamEnded = true;
|
|
148929
148929
|
});
|
|
148930
148930
|
while (!generationEnded) {
|
|
148931
|
-
const value = await new Promise((
|
|
148931
|
+
const value = await new Promise((resolve11) => setTimeout(() => resolve11(records.shift()), 0));
|
|
148932
148932
|
if (value) {
|
|
148933
148933
|
yield value;
|
|
148934
148934
|
}
|
|
@@ -149560,7 +149560,7 @@ var require_dist_cjs62 = __commonJS({
|
|
|
149560
149560
|
};
|
|
149561
149561
|
};
|
|
149562
149562
|
var sleep2 = (seconds) => {
|
|
149563
|
-
return new Promise((
|
|
149563
|
+
return new Promise((resolve11) => setTimeout(resolve11, seconds * 1e3));
|
|
149564
149564
|
};
|
|
149565
149565
|
var waiterServiceDefaults = {
|
|
149566
149566
|
minDelay: 2,
|
|
@@ -149666,8 +149666,8 @@ var require_dist_cjs62 = __commonJS({
|
|
|
149666
149666
|
};
|
|
149667
149667
|
var abortTimeout = (abortSignal) => {
|
|
149668
149668
|
let onAbort;
|
|
149669
|
-
const promise = new Promise((
|
|
149670
|
-
onAbort = () =>
|
|
149669
|
+
const promise = new Promise((resolve11) => {
|
|
149670
|
+
onAbort = () => resolve11({ state: exports2.WaiterState.ABORTED });
|
|
149671
149671
|
if (typeof abortSignal.addEventListener === "function") {
|
|
149672
149672
|
abortSignal.addEventListener("abort", onAbort);
|
|
149673
149673
|
} else {
|
|
@@ -157716,8 +157716,311 @@ Error:
|
|
|
157716
157716
|
}
|
|
157717
157717
|
});
|
|
157718
157718
|
|
|
157719
|
+
// src/targets/mcpRegistry.ts
|
|
157720
|
+
function withoutSchema(server) {
|
|
157721
|
+
const copy = { ...server };
|
|
157722
|
+
delete copy.$schema;
|
|
157723
|
+
return copy;
|
|
157724
|
+
}
|
|
157725
|
+
function errorMessage(err) {
|
|
157726
|
+
return err instanceof Error ? err.message : String(err);
|
|
157727
|
+
}
|
|
157728
|
+
var import_fs23, import_path19, import_util23, DEFAULT_REGISTRY_URL, DEFAULT_MANIFEST, GITHUB_TOKEN_ENV_VAR, OFFICIAL_META_KEY, REQUEST_TIMEOUT_MS, LISTING_ATTEMPTS, LISTING_RETRY_DELAY_MS, McpRegistryTarget;
|
|
157729
|
+
var init_mcpRegistry = __esm({
|
|
157730
|
+
"src/targets/mcpRegistry.ts"() {
|
|
157731
|
+
"use strict";
|
|
157732
|
+
init_import_meta_url();
|
|
157733
|
+
import_fs23 = require("fs");
|
|
157734
|
+
import_path19 = require("path");
|
|
157735
|
+
import_util23 = require("util");
|
|
157736
|
+
init_config2();
|
|
157737
|
+
init_async();
|
|
157738
|
+
init_dryRun();
|
|
157739
|
+
init_errors2();
|
|
157740
|
+
init_helpers();
|
|
157741
|
+
init_base5();
|
|
157742
|
+
DEFAULT_REGISTRY_URL = "https://registry.modelcontextprotocol.io";
|
|
157743
|
+
DEFAULT_MANIFEST = "server.json";
|
|
157744
|
+
GITHUB_TOKEN_ENV_VAR = "MCP_GITHUB_TOKEN";
|
|
157745
|
+
OFFICIAL_META_KEY = "io.modelcontextprotocol.registry/official";
|
|
157746
|
+
REQUEST_TIMEOUT_MS = 3e4;
|
|
157747
|
+
LISTING_ATTEMPTS = 6;
|
|
157748
|
+
LISTING_RETRY_DELAY_MS = 5e3;
|
|
157749
|
+
McpRegistryTarget = class extends BaseTarget {
|
|
157750
|
+
/** Target name */
|
|
157751
|
+
name = "mcp-registry";
|
|
157752
|
+
/** Target options */
|
|
157753
|
+
mcpRegistryConfig;
|
|
157754
|
+
constructor(config, artifactProvider, githubRepo) {
|
|
157755
|
+
super(config, artifactProvider, githubRepo);
|
|
157756
|
+
this.mcpRegistryConfig = this.getMcpRegistryConfig();
|
|
157757
|
+
}
|
|
157758
|
+
/**
|
|
157759
|
+
* Extracts, validates and returns the "mcp-registry" target options.
|
|
157760
|
+
*/
|
|
157761
|
+
getMcpRegistryConfig() {
|
|
157762
|
+
const config = this.config;
|
|
157763
|
+
const registryUrl = config.registryUrl ?? DEFAULT_REGISTRY_URL;
|
|
157764
|
+
let parsed;
|
|
157765
|
+
try {
|
|
157766
|
+
parsed = new URL(registryUrl);
|
|
157767
|
+
} catch {
|
|
157768
|
+
throw new ConfigurationError(
|
|
157769
|
+
`[mcp-registry] Invalid registryUrl "${registryUrl}"`
|
|
157770
|
+
);
|
|
157771
|
+
}
|
|
157772
|
+
if (parsed.protocol !== "https:" && parsed.protocol !== "http:") {
|
|
157773
|
+
throw new ConfigurationError(
|
|
157774
|
+
`[mcp-registry] registryUrl must be an http(s) URL (got "${registryUrl}")`
|
|
157775
|
+
);
|
|
157776
|
+
}
|
|
157777
|
+
const root = getConfigFileDir() || process.cwd();
|
|
157778
|
+
return {
|
|
157779
|
+
manifestPath: (0, import_path19.resolve)(root, config.manifest ?? DEFAULT_MANIFEST),
|
|
157780
|
+
registryUrl: registryUrl.replace(/\/+$/, "")
|
|
157781
|
+
};
|
|
157782
|
+
}
|
|
157783
|
+
/**
|
|
157784
|
+
* Publishes the manifest at `version`, or verifies the existing listing.
|
|
157785
|
+
*
|
|
157786
|
+
* @param version New version to be released
|
|
157787
|
+
* @param _revision Git commit SHA to be published
|
|
157788
|
+
*/
|
|
157789
|
+
async publish(version2, _revision) {
|
|
157790
|
+
const manifest = this.loadManifest(version2);
|
|
157791
|
+
const label = `${manifest.name}@${version2}`;
|
|
157792
|
+
const existing = await this.getListing(manifest.name, version2);
|
|
157793
|
+
if (existing) {
|
|
157794
|
+
this.verifyListing(
|
|
157795
|
+
existing,
|
|
157796
|
+
manifest,
|
|
157797
|
+
`The MCP Registry already lists ${label}, but the listing differs from ${this.mcpRegistryConfig.manifestPath}. Registry versions are immutable, so release a new version instead.`
|
|
157798
|
+
);
|
|
157799
|
+
this.logger.info(`${label} is already listed in the MCP Registry`);
|
|
157800
|
+
return;
|
|
157801
|
+
}
|
|
157802
|
+
if (isDryRun()) {
|
|
157803
|
+
logDryRun(`publish ${label} to ${this.mcpRegistryConfig.registryUrl}`);
|
|
157804
|
+
return;
|
|
157805
|
+
}
|
|
157806
|
+
const token = await this.getRegistryToken();
|
|
157807
|
+
this.logger.info(`Publishing ${label} to the MCP Registry...`);
|
|
157808
|
+
await this.publishManifest(manifest, token);
|
|
157809
|
+
const listing = await this.waitForListing(manifest.name, version2);
|
|
157810
|
+
this.verifyListing(
|
|
157811
|
+
listing,
|
|
157812
|
+
manifest,
|
|
157813
|
+
`The MCP Registry listing for ${label} does not match the published manifest.`
|
|
157814
|
+
);
|
|
157815
|
+
this.logger.info(`Published ${label} to the MCP Registry`);
|
|
157816
|
+
}
|
|
157817
|
+
/**
|
|
157818
|
+
* Reads the manifest and sets `version` and every `packages[].version` to
|
|
157819
|
+
* the release version. The file on disk is not changed.
|
|
157820
|
+
*/
|
|
157821
|
+
loadManifest(version2) {
|
|
157822
|
+
const { manifestPath } = this.mcpRegistryConfig;
|
|
157823
|
+
let manifest;
|
|
157824
|
+
try {
|
|
157825
|
+
manifest = JSON.parse((0, import_fs23.readFileSync)(manifestPath, "utf-8"));
|
|
157826
|
+
} catch (err) {
|
|
157827
|
+
throw new ConfigurationError(
|
|
157828
|
+
`[mcp-registry] Cannot read manifest ${manifestPath}: ${errorMessage(err)}`
|
|
157829
|
+
);
|
|
157830
|
+
}
|
|
157831
|
+
if (typeof manifest?.name !== "string" || !manifest.name) {
|
|
157832
|
+
throw new ConfigurationError(
|
|
157833
|
+
`[mcp-registry] Manifest ${manifestPath} has no "name"`
|
|
157834
|
+
);
|
|
157835
|
+
}
|
|
157836
|
+
manifest.version = version2;
|
|
157837
|
+
for (const pkg of manifest.packages ?? []) {
|
|
157838
|
+
pkg.version = version2;
|
|
157839
|
+
}
|
|
157840
|
+
return manifest;
|
|
157841
|
+
}
|
|
157842
|
+
listingUrl(name, version2) {
|
|
157843
|
+
return `${this.mcpRegistryConfig.registryUrl}/v0.1/servers/${encodeURIComponent(name)}/versions/${encodeURIComponent(version2)}`;
|
|
157844
|
+
}
|
|
157845
|
+
/**
|
|
157846
|
+
* Returns the registry listing for `name@version`, or undefined when that
|
|
157847
|
+
* version is not listed.
|
|
157848
|
+
*/
|
|
157849
|
+
async getListing(name, version2) {
|
|
157850
|
+
const response = await fetch(this.listingUrl(name, version2), {
|
|
157851
|
+
headers: { Accept: "application/json" },
|
|
157852
|
+
signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS)
|
|
157853
|
+
});
|
|
157854
|
+
if (response.status === 404) {
|
|
157855
|
+
return void 0;
|
|
157856
|
+
}
|
|
157857
|
+
if (!response.ok) {
|
|
157858
|
+
throw new Error(
|
|
157859
|
+
`MCP Registry lookup for ${name}@${version2} failed: HTTP ${response.status}`
|
|
157860
|
+
);
|
|
157861
|
+
}
|
|
157862
|
+
return await response.json();
|
|
157863
|
+
}
|
|
157864
|
+
async waitForListing(name, version2) {
|
|
157865
|
+
const listing = await this.pollJson(
|
|
157866
|
+
this.listingUrl(name, version2),
|
|
157867
|
+
`MCP Registry listing for ${name}@${version2}`,
|
|
157868
|
+
LISTING_ATTEMPTS,
|
|
157869
|
+
LISTING_RETRY_DELAY_MS
|
|
157870
|
+
);
|
|
157871
|
+
if (!listing) {
|
|
157872
|
+
throw new Error(
|
|
157873
|
+
`Published ${name}@${version2}, but the MCP Registry does not list it`
|
|
157874
|
+
);
|
|
157875
|
+
}
|
|
157876
|
+
return listing;
|
|
157877
|
+
}
|
|
157878
|
+
/**
|
|
157879
|
+
* Checks that the listing equals the manifest (ignoring `$schema`) and is
|
|
157880
|
+
* active. Throws `mismatchMessage` when the content differs.
|
|
157881
|
+
*/
|
|
157882
|
+
verifyListing(listing, manifest, mismatchMessage) {
|
|
157883
|
+
if (!(0, import_util23.isDeepStrictEqual)(
|
|
157884
|
+
withoutSchema(listing.server ?? {}),
|
|
157885
|
+
withoutSchema(manifest)
|
|
157886
|
+
)) {
|
|
157887
|
+
throw new Error(mismatchMessage);
|
|
157888
|
+
}
|
|
157889
|
+
const status = listing._meta?.[OFFICIAL_META_KEY]?.status;
|
|
157890
|
+
if (status !== "active") {
|
|
157891
|
+
throw new Error(
|
|
157892
|
+
`MCP Registry listing for ${manifest.name}@${manifest.version} has status "${status ?? "unknown"}", expected "active"`
|
|
157893
|
+
);
|
|
157894
|
+
}
|
|
157895
|
+
}
|
|
157896
|
+
/**
|
|
157897
|
+
* GETs `url` until it returns JSON. Retries 404, 5xx and network errors up
|
|
157898
|
+
* to `attempts` times and returns undefined if they never resolve. Other
|
|
157899
|
+
* HTTP errors throw immediately.
|
|
157900
|
+
*/
|
|
157901
|
+
async pollJson(url3, label, attempts, delayMs) {
|
|
157902
|
+
for (let attempt = 1; ; attempt++) {
|
|
157903
|
+
let reason;
|
|
157904
|
+
let response;
|
|
157905
|
+
try {
|
|
157906
|
+
response = await fetch(url3, {
|
|
157907
|
+
headers: { Accept: "application/json" },
|
|
157908
|
+
signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS)
|
|
157909
|
+
});
|
|
157910
|
+
reason = `HTTP ${response.status}`;
|
|
157911
|
+
} catch (err) {
|
|
157912
|
+
reason = errorMessage(err);
|
|
157913
|
+
}
|
|
157914
|
+
if (response?.ok) {
|
|
157915
|
+
return response.json();
|
|
157916
|
+
}
|
|
157917
|
+
if (response && response.status !== 404 && response.status < 500) {
|
|
157918
|
+
throw new Error(`Fetching ${label} failed: ${reason}`);
|
|
157919
|
+
}
|
|
157920
|
+
if (attempt >= attempts) {
|
|
157921
|
+
return void 0;
|
|
157922
|
+
}
|
|
157923
|
+
this.logger.info(
|
|
157924
|
+
`${label} is not available yet (${reason}), retrying in ${delayMs / 1e3}s (${attempt}/${attempts})`
|
|
157925
|
+
);
|
|
157926
|
+
await sleep(delayMs);
|
|
157927
|
+
}
|
|
157928
|
+
}
|
|
157929
|
+
/**
|
|
157930
|
+
* Gets a registry token. Uses GitHub Actions OIDC when the job has
|
|
157931
|
+
* `id-token: write`, otherwise exchanges `MCP_GITHUB_TOKEN`.
|
|
157932
|
+
*/
|
|
157933
|
+
async getRegistryToken() {
|
|
157934
|
+
const requestUrl = process.env.ACTIONS_ID_TOKEN_REQUEST_URL;
|
|
157935
|
+
const requestToken = process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;
|
|
157936
|
+
if (requestUrl && requestToken) {
|
|
157937
|
+
this.logger.debug("Authenticating with GitHub Actions OIDC");
|
|
157938
|
+
const oidcToken = await this.getGitHubOidcToken(requestUrl, requestToken);
|
|
157939
|
+
return this.exchangeToken("github-oidc", { oidc_token: oidcToken });
|
|
157940
|
+
}
|
|
157941
|
+
const githubToken = process.env[GITHUB_TOKEN_ENV_VAR];
|
|
157942
|
+
if (githubToken) {
|
|
157943
|
+
this.logger.debug(`Authenticating with ${GITHUB_TOKEN_ENV_VAR}`);
|
|
157944
|
+
return this.exchangeToken("github-at", { github_token: githubToken });
|
|
157945
|
+
}
|
|
157946
|
+
throw new ConfigurationError(
|
|
157947
|
+
`[mcp-registry] No credentials: run in GitHub Actions with "id-token: write" permission, or set ${GITHUB_TOKEN_ENV_VAR}`
|
|
157948
|
+
);
|
|
157949
|
+
}
|
|
157950
|
+
/**
|
|
157951
|
+
* Requests a GitHub Actions OIDC token. Its audience is the registry origin,
|
|
157952
|
+
* which the registry checks (same as `mcp-publisher login github-oidc`).
|
|
157953
|
+
*/
|
|
157954
|
+
async getGitHubOidcToken(requestUrl, requestToken) {
|
|
157955
|
+
const url3 = new URL(requestUrl);
|
|
157956
|
+
url3.searchParams.set(
|
|
157957
|
+
"audience",
|
|
157958
|
+
new URL(this.mcpRegistryConfig.registryUrl).origin
|
|
157959
|
+
);
|
|
157960
|
+
const response = await fetch(url3, {
|
|
157961
|
+
headers: {
|
|
157962
|
+
Accept: "application/json",
|
|
157963
|
+
Authorization: `Bearer ${requestToken}`
|
|
157964
|
+
},
|
|
157965
|
+
signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS)
|
|
157966
|
+
});
|
|
157967
|
+
if (!response.ok) {
|
|
157968
|
+
throw new Error(
|
|
157969
|
+
`GitHub OIDC token request failed: HTTP ${response.status}`
|
|
157970
|
+
);
|
|
157971
|
+
}
|
|
157972
|
+
const { value } = await response.json();
|
|
157973
|
+
if (!value) {
|
|
157974
|
+
throw new Error("GitHub OIDC token response has no token");
|
|
157975
|
+
}
|
|
157976
|
+
return value;
|
|
157977
|
+
}
|
|
157978
|
+
/** Exchanges a GitHub credential for a short-lived registry token */
|
|
157979
|
+
async exchangeToken(method, body) {
|
|
157980
|
+
const response = await this.postJson(
|
|
157981
|
+
`/v0/auth/${method}`,
|
|
157982
|
+
body,
|
|
157983
|
+
`${method} token exchange`
|
|
157984
|
+
);
|
|
157985
|
+
const { registry_token: token } = await response.json();
|
|
157986
|
+
if (!token) {
|
|
157987
|
+
throw new Error(
|
|
157988
|
+
`MCP Registry ${method} token exchange returned no token`
|
|
157989
|
+
);
|
|
157990
|
+
}
|
|
157991
|
+
return token;
|
|
157992
|
+
}
|
|
157993
|
+
async publishManifest(manifest, token) {
|
|
157994
|
+
await this.postJson("/v0/publish", manifest, "publish", token);
|
|
157995
|
+
}
|
|
157996
|
+
/** POSTs JSON to the registry and throws on a non-2xx response */
|
|
157997
|
+
async postJson(path20, body, action, token) {
|
|
157998
|
+
const response = await fetch(
|
|
157999
|
+
`${this.mcpRegistryConfig.registryUrl}${path20}`,
|
|
158000
|
+
{
|
|
158001
|
+
method: "POST",
|
|
158002
|
+
headers: {
|
|
158003
|
+
Accept: "application/json",
|
|
158004
|
+
"Content-Type": "application/json",
|
|
158005
|
+
...token ? { Authorization: `Bearer ${token}` } : {}
|
|
158006
|
+
},
|
|
158007
|
+
body: JSON.stringify(body),
|
|
158008
|
+
signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS)
|
|
158009
|
+
}
|
|
158010
|
+
);
|
|
158011
|
+
if (!response.ok) {
|
|
158012
|
+
throw new Error(
|
|
158013
|
+
`MCP Registry ${action} failed: HTTP ${response.status}: ` + await response.text()
|
|
158014
|
+
);
|
|
158015
|
+
}
|
|
158016
|
+
return response;
|
|
158017
|
+
}
|
|
158018
|
+
};
|
|
158019
|
+
}
|
|
158020
|
+
});
|
|
158021
|
+
|
|
157719
158022
|
// src/targets/symbolCollector.ts
|
|
157720
|
-
var
|
|
158023
|
+
var import_fs24, import_path20, DEFAULT_SYM_COLLECTOR_SERVER_ENDPOINT, SYM_COLLECTOR_BIN_NAME, SymbolCollector;
|
|
157721
158024
|
var init_symbolCollector = __esm({
|
|
157722
158025
|
"src/targets/symbolCollector.ts"() {
|
|
157723
158026
|
"use strict";
|
|
@@ -157725,9 +158028,9 @@ var init_symbolCollector = __esm({
|
|
|
157725
158028
|
init_errors2();
|
|
157726
158029
|
init_base5();
|
|
157727
158030
|
init_files();
|
|
157728
|
-
|
|
158031
|
+
import_fs24 = require("fs");
|
|
157729
158032
|
init_system();
|
|
157730
|
-
|
|
158033
|
+
import_path20 = require("path");
|
|
157731
158034
|
DEFAULT_SYM_COLLECTOR_SERVER_ENDPOINT = "https://symbol-collector.services.sentry.io/";
|
|
157732
158035
|
SYM_COLLECTOR_BIN_NAME = "SymbolCollector.Console";
|
|
157733
158036
|
SymbolCollector = class extends BaseTarget {
|
|
@@ -157773,8 +158076,8 @@ var init_symbolCollector = __esm({
|
|
|
157773
158076
|
this.logger.debug("Downloading artifacts...");
|
|
157774
158077
|
await Promise.all(
|
|
157775
158078
|
artifacts.map(async (artifact, index) => {
|
|
157776
|
-
const subdirPath = (0,
|
|
157777
|
-
await
|
|
158079
|
+
const subdirPath = (0, import_path20.join)(dir, String(index));
|
|
158080
|
+
await import_fs24.promises.mkdir(subdirPath);
|
|
157778
158081
|
await this.artifactProvider.downloadArtifact(artifact, subdirPath);
|
|
157779
158082
|
})
|
|
157780
158083
|
);
|
|
@@ -157804,14 +158107,14 @@ var init_symbolCollector = __esm({
|
|
|
157804
158107
|
});
|
|
157805
158108
|
|
|
157806
158109
|
// src/targets/pubDev.ts
|
|
157807
|
-
var
|
|
158110
|
+
var import_fs25, import_os2, import_path21, targetSecrets3, PubDevTarget;
|
|
157808
158111
|
var init_pubDev = __esm({
|
|
157809
158112
|
"src/targets/pubDev.ts"() {
|
|
157810
158113
|
"use strict";
|
|
157811
158114
|
init_import_meta_url();
|
|
157812
|
-
|
|
158115
|
+
import_fs25 = require("fs");
|
|
157813
158116
|
import_os2 = require("os");
|
|
157814
|
-
|
|
158117
|
+
import_path21 = require("path");
|
|
157815
158118
|
init_js_yaml();
|
|
157816
158119
|
init_git();
|
|
157817
158120
|
init_base5();
|
|
@@ -157842,11 +158145,11 @@ var init_pubDev = __esm({
|
|
|
157842
158145
|
* @throws Error if file cannot be updated
|
|
157843
158146
|
*/
|
|
157844
158147
|
static async bumpVersion(rootDir, newVersion) {
|
|
157845
|
-
const pubspecPath = (0,
|
|
157846
|
-
if (!(0,
|
|
158148
|
+
const pubspecPath = (0, import_path21.join)(rootDir, "pubspec.yaml");
|
|
158149
|
+
if (!(0, import_fs25.existsSync)(pubspecPath)) {
|
|
157847
158150
|
return false;
|
|
157848
158151
|
}
|
|
157849
|
-
const content = (0,
|
|
158152
|
+
const content = (0, import_fs25.readFileSync)(pubspecPath, "utf-8");
|
|
157850
158153
|
const pubspec = load(content);
|
|
157851
158154
|
if (!pubspec || typeof pubspec !== "object") {
|
|
157852
158155
|
logger.debug("pubspec.yaml is not a valid YAML object");
|
|
@@ -157854,7 +158157,7 @@ var init_pubDev = __esm({
|
|
|
157854
158157
|
}
|
|
157855
158158
|
pubspec.version = newVersion;
|
|
157856
158159
|
logger.debug(`Updating version in ${pubspecPath} to ${newVersion}`);
|
|
157857
|
-
(0,
|
|
158160
|
+
(0, import_fs25.writeFileSync)(pubspecPath, dump2(pubspec));
|
|
157858
158161
|
return true;
|
|
157859
158162
|
}
|
|
157860
158163
|
constructor(config, artifactProvider, githubRepo) {
|
|
@@ -157941,11 +158244,11 @@ var init_pubDev = __esm({
|
|
|
157941
158244
|
// Expiration date is required, but irrelevant
|
|
157942
158245
|
};
|
|
157943
158246
|
try {
|
|
157944
|
-
await
|
|
158247
|
+
await import_fs25.promises.access(credentialsFilePath, import_fs25.constants.F_OK);
|
|
157945
158248
|
this.logger.warn("Credentials file already exists. Skipping creation.");
|
|
157946
158249
|
} catch {
|
|
157947
|
-
await
|
|
157948
|
-
await
|
|
158250
|
+
await import_fs25.promises.mkdir((0, import_path21.dirname)(credentialsFilePath), { recursive: true });
|
|
158251
|
+
await import_fs25.promises.writeFile(credentialsFilePath, JSON.stringify(content));
|
|
157949
158252
|
this.logger.info("Credentials file created.");
|
|
157950
158253
|
}
|
|
157951
158254
|
}
|
|
@@ -158004,7 +158307,7 @@ var init_pubDev = __esm({
|
|
|
158004
158307
|
this.pubDevConfig.dartCliPath,
|
|
158005
158308
|
args,
|
|
158006
158309
|
{
|
|
158007
|
-
cwd: (0,
|
|
158310
|
+
cwd: (0, import_path21.join)(directory, pkg)
|
|
158008
158311
|
},
|
|
158009
158312
|
// Dart stops the process and asks user to go to provided url for authorization.
|
|
158010
158313
|
// We want the stdout to be visible just in case something goes wrong, otherwise
|
|
@@ -158016,24 +158319,24 @@ var init_pubDev = __esm({
|
|
|
158016
158319
|
);
|
|
158017
158320
|
}
|
|
158018
158321
|
async removeDependencyOverrides(directory, pkg) {
|
|
158019
|
-
const pubSpecPath = (0,
|
|
158020
|
-
const pubSpecContent = await
|
|
158322
|
+
const pubSpecPath = (0, import_path21.join)(directory, pkg, "pubspec.yaml");
|
|
158323
|
+
const pubSpecContent = await import_fs25.promises.readFile(pubSpecPath, "utf8");
|
|
158021
158324
|
const pubSpecYaml = load(pubSpecContent);
|
|
158022
158325
|
delete pubSpecYaml.dependency_overrides;
|
|
158023
|
-
await
|
|
158326
|
+
await import_fs25.promises.writeFile(pubSpecPath, dump2(pubSpecYaml));
|
|
158024
158327
|
}
|
|
158025
158328
|
};
|
|
158026
158329
|
}
|
|
158027
158330
|
});
|
|
158028
158331
|
|
|
158029
158332
|
// src/targets/hex.ts
|
|
158030
|
-
var
|
|
158333
|
+
var import_fs26, import_path22, DEFAULT_MIX_BIN, MIX_BIN, HexTarget;
|
|
158031
158334
|
var init_hex = __esm({
|
|
158032
158335
|
"src/targets/hex.ts"() {
|
|
158033
158336
|
"use strict";
|
|
158034
158337
|
init_import_meta_url();
|
|
158035
|
-
|
|
158036
|
-
|
|
158338
|
+
import_fs26 = require("fs");
|
|
158339
|
+
import_path22 = require("path");
|
|
158037
158340
|
init_git();
|
|
158038
158341
|
init_base5();
|
|
158039
158342
|
init_files();
|
|
@@ -158056,11 +158359,11 @@ var init_hex = __esm({
|
|
|
158056
158359
|
* @throws Error if file cannot be updated
|
|
158057
158360
|
*/
|
|
158058
158361
|
static async bumpVersion(rootDir, newVersion) {
|
|
158059
|
-
const mixExsPath = (0,
|
|
158060
|
-
if (!(0,
|
|
158362
|
+
const mixExsPath = (0, import_path22.join)(rootDir, "mix.exs");
|
|
158363
|
+
if (!(0, import_fs26.existsSync)(mixExsPath)) {
|
|
158061
158364
|
return false;
|
|
158062
158365
|
}
|
|
158063
|
-
const content = (0,
|
|
158366
|
+
const content = (0, import_fs26.readFileSync)(mixExsPath, "utf-8");
|
|
158064
158367
|
const versionPatterns = [
|
|
158065
158368
|
/^(\s*version:\s*["'])([^"']+)(["'])/m,
|
|
158066
158369
|
/^(\s*@version\s+["'])([^"']+)(["'])/m
|
|
@@ -158082,7 +158385,7 @@ var init_hex = __esm({
|
|
|
158082
158385
|
return true;
|
|
158083
158386
|
}
|
|
158084
158387
|
logger.debug(`Updating version in ${mixExsPath} to ${newVersion}`);
|
|
158085
|
-
(0,
|
|
158388
|
+
(0, import_fs26.writeFileSync)(mixExsPath, newContent);
|
|
158086
158389
|
return true;
|
|
158087
158390
|
}
|
|
158088
158391
|
constructor(config, artifactProvider, githubRepo) {
|
|
@@ -158314,12 +158617,12 @@ var init_commitOnGitRepository = __esm({
|
|
|
158314
158617
|
});
|
|
158315
158618
|
|
|
158316
158619
|
// src/targets/powershell.ts
|
|
158317
|
-
var
|
|
158620
|
+
var import_path23, POWERSHELL_BIN, DEFAULT_POWERSHELL_REPOSITORY, PowerShellTarget;
|
|
158318
158621
|
var init_powershell = __esm({
|
|
158319
158622
|
"src/targets/powershell.ts"() {
|
|
158320
158623
|
"use strict";
|
|
158321
158624
|
init_import_meta_url();
|
|
158322
|
-
|
|
158625
|
+
import_path23 = require("path");
|
|
158323
158626
|
init_errors2();
|
|
158324
158627
|
init_files();
|
|
158325
158628
|
init_helpers();
|
|
@@ -158423,7 +158726,7 @@ var init_powershell = __esm({
|
|
|
158423
158726
|
const zipPath = await this.artifactProvider.downloadArtifact(artifact);
|
|
158424
158727
|
this.logger.info(`Extracting artifact "${artifact.filename}"`);
|
|
158425
158728
|
await withTempDir(async (dir) => {
|
|
158426
|
-
const moduleDir = (0,
|
|
158729
|
+
const moduleDir = (0, import_path23.join)(dir, this.psConfig.module);
|
|
158427
158730
|
await extractZipArchive(zipPath, moduleDir);
|
|
158428
158731
|
await this.publishModule(moduleDir);
|
|
158429
158732
|
});
|
|
@@ -158453,10 +158756,10 @@ var require_universalify = __commonJS({
|
|
|
158453
158756
|
return Object.defineProperty(function() {
|
|
158454
158757
|
if (typeof arguments[arguments.length - 1] === "function") fn2.apply(this, arguments);
|
|
158455
158758
|
else {
|
|
158456
|
-
return new Promise((
|
|
158759
|
+
return new Promise((resolve11, reject) => {
|
|
158457
158760
|
arguments[arguments.length] = (err, res) => {
|
|
158458
158761
|
if (err) return reject(err);
|
|
158459
|
-
|
|
158762
|
+
resolve11(res);
|
|
158460
158763
|
};
|
|
158461
158764
|
arguments.length++;
|
|
158462
158765
|
fn2.apply(this, arguments);
|
|
@@ -159311,18 +159614,18 @@ var require_fs = __commonJS({
|
|
|
159311
159614
|
if (typeof callback === "function") {
|
|
159312
159615
|
return fs16.exists(filename, callback);
|
|
159313
159616
|
}
|
|
159314
|
-
return new Promise((
|
|
159315
|
-
return fs16.exists(filename,
|
|
159617
|
+
return new Promise((resolve11) => {
|
|
159618
|
+
return fs16.exists(filename, resolve11);
|
|
159316
159619
|
});
|
|
159317
159620
|
};
|
|
159318
159621
|
exports2.read = function(fd, buffer, offset, length, position, callback) {
|
|
159319
159622
|
if (typeof callback === "function") {
|
|
159320
159623
|
return fs16.read(fd, buffer, offset, length, position, callback);
|
|
159321
159624
|
}
|
|
159322
|
-
return new Promise((
|
|
159625
|
+
return new Promise((resolve11, reject) => {
|
|
159323
159626
|
fs16.read(fd, buffer, offset, length, position, (err, bytesRead, buffer2) => {
|
|
159324
159627
|
if (err) return reject(err);
|
|
159325
|
-
|
|
159628
|
+
resolve11({ bytesRead, buffer: buffer2 });
|
|
159326
159629
|
});
|
|
159327
159630
|
});
|
|
159328
159631
|
};
|
|
@@ -159330,10 +159633,10 @@ var require_fs = __commonJS({
|
|
|
159330
159633
|
if (typeof args[args.length - 1] === "function") {
|
|
159331
159634
|
return fs16.write(fd, buffer, ...args);
|
|
159332
159635
|
}
|
|
159333
|
-
return new Promise((
|
|
159636
|
+
return new Promise((resolve11, reject) => {
|
|
159334
159637
|
fs16.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {
|
|
159335
159638
|
if (err) return reject(err);
|
|
159336
|
-
|
|
159639
|
+
resolve11({ bytesWritten, buffer: buffer2 });
|
|
159337
159640
|
});
|
|
159338
159641
|
});
|
|
159339
159642
|
};
|
|
@@ -160767,7 +161070,7 @@ var require_jsonfile = __commonJS({
|
|
|
160767
161070
|
callback(null, obj);
|
|
160768
161071
|
});
|
|
160769
161072
|
}
|
|
160770
|
-
function
|
|
161073
|
+
function readFileSync22(file, options) {
|
|
160771
161074
|
options = options || {};
|
|
160772
161075
|
if (typeof options === "string") {
|
|
160773
161076
|
options = { encoding: options };
|
|
@@ -160833,7 +161136,7 @@ var require_jsonfile = __commonJS({
|
|
|
160833
161136
|
}
|
|
160834
161137
|
var jsonfile = {
|
|
160835
161138
|
readFile: readFile7,
|
|
160836
|
-
readFileSync:
|
|
161139
|
+
readFileSync: readFileSync22,
|
|
160837
161140
|
writeFile: writeFile5,
|
|
160838
161141
|
writeFileSync: writeFileSync9
|
|
160839
161142
|
};
|
|
@@ -161260,12 +161563,12 @@ var require_lib12 = __commonJS({
|
|
|
161260
161563
|
if (token !== void 0) {
|
|
161261
161564
|
return token;
|
|
161262
161565
|
}
|
|
161263
|
-
return new Promise((
|
|
161566
|
+
return new Promise((resolve11, reject) => {
|
|
161264
161567
|
if (this.pauseFn && !this.paused) {
|
|
161265
161568
|
this.paused = true;
|
|
161266
161569
|
this.pauseFn();
|
|
161267
161570
|
}
|
|
161268
|
-
this.waiting.push({ resolve:
|
|
161571
|
+
this.waiting.push({ resolve: resolve11, reject });
|
|
161269
161572
|
});
|
|
161270
161573
|
}
|
|
161271
161574
|
release(token) {
|
|
@@ -167697,8 +168000,8 @@ var require_universalify2 = __commonJS({
|
|
|
167697
168000
|
return Object.defineProperty(function(...args) {
|
|
167698
168001
|
if (typeof args[args.length - 1] === "function") fn2.apply(this, args);
|
|
167699
168002
|
else {
|
|
167700
|
-
return new Promise((
|
|
167701
|
-
args.push((err, res) => err != null ? reject(err) :
|
|
168003
|
+
return new Promise((resolve11, reject) => {
|
|
168004
|
+
args.push((err, res) => err != null ? reject(err) : resolve11(res));
|
|
167702
168005
|
fn2.apply(this, args);
|
|
167703
168006
|
});
|
|
167704
168007
|
}
|
|
@@ -167770,18 +168073,18 @@ var require_fs2 = __commonJS({
|
|
|
167770
168073
|
if (typeof callback === "function") {
|
|
167771
168074
|
return fs16.exists(filename, callback);
|
|
167772
168075
|
}
|
|
167773
|
-
return new Promise((
|
|
167774
|
-
return fs16.exists(filename,
|
|
168076
|
+
return new Promise((resolve11) => {
|
|
168077
|
+
return fs16.exists(filename, resolve11);
|
|
167775
168078
|
});
|
|
167776
168079
|
};
|
|
167777
168080
|
exports2.read = function(fd, buffer, offset, length, position, callback) {
|
|
167778
168081
|
if (typeof callback === "function") {
|
|
167779
168082
|
return fs16.read(fd, buffer, offset, length, position, callback);
|
|
167780
168083
|
}
|
|
167781
|
-
return new Promise((
|
|
168084
|
+
return new Promise((resolve11, reject) => {
|
|
167782
168085
|
fs16.read(fd, buffer, offset, length, position, (err, bytesRead, buffer2) => {
|
|
167783
168086
|
if (err) return reject(err);
|
|
167784
|
-
|
|
168087
|
+
resolve11({ bytesRead, buffer: buffer2 });
|
|
167785
168088
|
});
|
|
167786
168089
|
});
|
|
167787
168090
|
};
|
|
@@ -167789,10 +168092,10 @@ var require_fs2 = __commonJS({
|
|
|
167789
168092
|
if (typeof args[args.length - 1] === "function") {
|
|
167790
168093
|
return fs16.write(fd, buffer, ...args);
|
|
167791
168094
|
}
|
|
167792
|
-
return new Promise((
|
|
168095
|
+
return new Promise((resolve11, reject) => {
|
|
167793
168096
|
fs16.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {
|
|
167794
168097
|
if (err) return reject(err);
|
|
167795
|
-
|
|
168098
|
+
resolve11({ bytesWritten, buffer: buffer2 });
|
|
167796
168099
|
});
|
|
167797
168100
|
});
|
|
167798
168101
|
};
|
|
@@ -167800,10 +168103,10 @@ var require_fs2 = __commonJS({
|
|
|
167800
168103
|
if (typeof args[args.length - 1] === "function") {
|
|
167801
168104
|
return fs16.readv(fd, buffers, ...args);
|
|
167802
168105
|
}
|
|
167803
|
-
return new Promise((
|
|
168106
|
+
return new Promise((resolve11, reject) => {
|
|
167804
168107
|
fs16.readv(fd, buffers, ...args, (err, bytesRead, buffers2) => {
|
|
167805
168108
|
if (err) return reject(err);
|
|
167806
|
-
|
|
168109
|
+
resolve11({ bytesRead, buffers: buffers2 });
|
|
167807
168110
|
});
|
|
167808
168111
|
});
|
|
167809
168112
|
};
|
|
@@ -167811,10 +168114,10 @@ var require_fs2 = __commonJS({
|
|
|
167811
168114
|
if (typeof args[args.length - 1] === "function") {
|
|
167812
168115
|
return fs16.writev(fd, buffers, ...args);
|
|
167813
168116
|
}
|
|
167814
|
-
return new Promise((
|
|
168117
|
+
return new Promise((resolve11, reject) => {
|
|
167815
168118
|
fs16.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {
|
|
167816
168119
|
if (err) return reject(err);
|
|
167817
|
-
|
|
168120
|
+
resolve11({ bytesWritten, buffers: buffers2 });
|
|
167818
168121
|
});
|
|
167819
168122
|
});
|
|
167820
168123
|
};
|
|
@@ -168876,7 +169179,7 @@ var require_jsonfile3 = __commonJS({
|
|
|
168876
169179
|
return obj;
|
|
168877
169180
|
}
|
|
168878
169181
|
var readFile7 = universalify.fromPromise(_readFile);
|
|
168879
|
-
function
|
|
169182
|
+
function readFileSync22(file, options = {}) {
|
|
168880
169183
|
if (typeof options === "string") {
|
|
168881
169184
|
options = { encoding: options };
|
|
168882
169185
|
}
|
|
@@ -168908,7 +169211,7 @@ var require_jsonfile3 = __commonJS({
|
|
|
168908
169211
|
}
|
|
168909
169212
|
module2.exports = {
|
|
168910
169213
|
readFile: readFile7,
|
|
168911
|
-
readFileSync:
|
|
169214
|
+
readFileSync: readFileSync22,
|
|
168912
169215
|
writeFile: writeFile5,
|
|
168913
169216
|
writeFileSync: writeFileSync9
|
|
168914
169217
|
};
|
|
@@ -170251,15 +170554,15 @@ var require_parseUtil = __commonJS({
|
|
|
170251
170554
|
...issueData,
|
|
170252
170555
|
path: fullPath
|
|
170253
170556
|
};
|
|
170254
|
-
let
|
|
170557
|
+
let errorMessage2 = "";
|
|
170255
170558
|
const maps = errorMaps.filter((m10) => !!m10).slice().reverse();
|
|
170256
170559
|
for (const map3 of maps) {
|
|
170257
|
-
|
|
170560
|
+
errorMessage2 = map3(fullIssue, { data: data2, defaultError: errorMessage2 }).message;
|
|
170258
170561
|
}
|
|
170259
170562
|
return {
|
|
170260
170563
|
...issueData,
|
|
170261
170564
|
path: fullPath,
|
|
170262
|
-
message: issueData.message ||
|
|
170565
|
+
message: issueData.message || errorMessage2
|
|
170263
170566
|
};
|
|
170264
170567
|
};
|
|
170265
170568
|
exports2.makeIssue = makeIssue;
|
|
@@ -173929,8 +174232,8 @@ var require_dist11 = __commonJS({
|
|
|
173929
174232
|
const mod = await importWasmModule();
|
|
173930
174233
|
return mod.getStringConstant(source, name) ?? null;
|
|
173931
174234
|
}
|
|
173932
|
-
var
|
|
173933
|
-
var
|
|
174235
|
+
var import_fs34 = __toESM2(require("fs"), 1);
|
|
174236
|
+
var import_path34 = require("path");
|
|
173934
174237
|
async function extractImports(source) {
|
|
173935
174238
|
if (!source.includes("import")) {
|
|
173936
174239
|
return [];
|
|
@@ -173941,7 +174244,7 @@ var require_dist11 = __commonJS({
|
|
|
173941
174244
|
var DEFAULT_MAX_FILES = 3e4;
|
|
173942
174245
|
async function readStatKind(path42) {
|
|
173943
174246
|
try {
|
|
173944
|
-
const stats = await
|
|
174247
|
+
const stats = await import_fs34.default.promises.stat(path42);
|
|
173945
174248
|
if (stats.isFile())
|
|
173946
174249
|
return "file";
|
|
173947
174250
|
if (stats.isDirectory())
|
|
@@ -173959,21 +174262,21 @@ var require_dist11 = __commonJS({
|
|
|
173959
174262
|
return pending;
|
|
173960
174263
|
}
|
|
173961
174264
|
async function resolveNamePartsUncached(parts, searchDirs, cache4) {
|
|
173962
|
-
const rel = (0,
|
|
174265
|
+
const rel = (0, import_path34.join)(...parts);
|
|
173963
174266
|
for (const root of searchDirs) {
|
|
173964
174267
|
let target = null;
|
|
173965
174268
|
let targetKind = null;
|
|
173966
|
-
const candidateInit = (0,
|
|
174269
|
+
const candidateInit = (0, import_path34.join)(root, rel, "__init__.py");
|
|
173967
174270
|
if (await statKind(candidateInit, cache4) === "file") {
|
|
173968
174271
|
target = candidateInit;
|
|
173969
174272
|
targetKind = "file";
|
|
173970
174273
|
} else {
|
|
173971
|
-
const candidateModule = (0,
|
|
174274
|
+
const candidateModule = (0, import_path34.join)(root, `${rel}.py`);
|
|
173972
174275
|
if (await statKind(candidateModule, cache4) === "file") {
|
|
173973
174276
|
target = candidateModule;
|
|
173974
174277
|
targetKind = "file";
|
|
173975
|
-
} else if (await statKind((0,
|
|
173976
|
-
target = (0,
|
|
174278
|
+
} else if (await statKind((0, import_path34.join)(root, rel), cache4) === "dir") {
|
|
174279
|
+
target = (0, import_path34.join)(root, rel);
|
|
173977
174280
|
targetKind = "dir";
|
|
173978
174281
|
}
|
|
173979
174282
|
}
|
|
@@ -173981,8 +174284,8 @@ var require_dist11 = __commonJS({
|
|
|
173981
174284
|
const parentChain = [];
|
|
173982
174285
|
let acc = root;
|
|
173983
174286
|
for (const part of parts.slice(0, -1)) {
|
|
173984
|
-
acc = (0,
|
|
173985
|
-
const init2 = (0,
|
|
174287
|
+
acc = (0, import_path34.join)(acc, part);
|
|
174288
|
+
const init2 = (0, import_path34.join)(acc, "__init__.py");
|
|
173986
174289
|
if (await statKind(init2, cache4) === "file") {
|
|
173987
174290
|
parentChain.push(init2);
|
|
173988
174291
|
}
|
|
@@ -174019,8 +174322,8 @@ var require_dist11 = __commonJS({
|
|
|
174019
174322
|
function submoduleDir(target, targetKind) {
|
|
174020
174323
|
if (targetKind === "dir")
|
|
174021
174324
|
return target;
|
|
174022
|
-
if (targetKind === "file" && target.endsWith(`${
|
|
174023
|
-
return (0,
|
|
174325
|
+
if (targetKind === "file" && target.endsWith(`${import_path34.sep}__init__.py`)) {
|
|
174326
|
+
return (0, import_path34.dirname)(target);
|
|
174024
174327
|
}
|
|
174025
174328
|
return null;
|
|
174026
174329
|
}
|
|
@@ -174029,9 +174332,9 @@ var require_dist11 = __commonJS({
|
|
|
174029
174332
|
let search = roots;
|
|
174030
174333
|
let searchKey = rootsKey;
|
|
174031
174334
|
if (stmt.level > 0) {
|
|
174032
|
-
let base = (0,
|
|
174335
|
+
let base = (0, import_path34.dirname)(importerPath);
|
|
174033
174336
|
for (let i5 = 1; i5 < stmt.level; i5++) {
|
|
174034
|
-
base = (0,
|
|
174337
|
+
base = (0, import_path34.dirname)(base);
|
|
174035
174338
|
}
|
|
174036
174339
|
search = [base];
|
|
174037
174340
|
searchKey = base;
|
|
@@ -174074,14 +174377,14 @@ var require_dist11 = __commonJS({
|
|
|
174074
174377
|
return [...resolved];
|
|
174075
174378
|
}
|
|
174076
174379
|
function isModuleNameSeed(seed) {
|
|
174077
|
-
return !(0,
|
|
174380
|
+
return !(0, import_path34.isAbsolute)(seed) && /^[A-Za-z_][\w]*(\.[A-Za-z_][\w]*)*$/.test(seed);
|
|
174078
174381
|
}
|
|
174079
174382
|
async function collectImportClosure({
|
|
174080
174383
|
seeds,
|
|
174081
174384
|
searchRoots,
|
|
174082
174385
|
maxFiles = DEFAULT_MAX_FILES
|
|
174083
174386
|
}) {
|
|
174084
|
-
const roots = searchRoots.map((r6) => (0,
|
|
174387
|
+
const roots = searchRoots.map((r6) => (0, import_path34.resolve)(r6));
|
|
174085
174388
|
const rootsKey = roots.join("\0");
|
|
174086
174389
|
const cache4 = {
|
|
174087
174390
|
statKinds: /* @__PURE__ */ new Map(),
|
|
@@ -174104,7 +174407,7 @@ var require_dist11 = __commonJS({
|
|
|
174104
174407
|
frontier.push(...name.parentChain);
|
|
174105
174408
|
}
|
|
174106
174409
|
} else {
|
|
174107
|
-
const seedPath = (0,
|
|
174410
|
+
const seedPath = (0, import_path34.resolve)(seed);
|
|
174108
174411
|
if (await statKind(seedPath, cache4) === "file") {
|
|
174109
174412
|
frontier.push(seedPath);
|
|
174110
174413
|
}
|
|
@@ -174126,7 +174429,7 @@ var require_dist11 = __commonJS({
|
|
|
174126
174429
|
batch.map(async (importerPath) => {
|
|
174127
174430
|
let source;
|
|
174128
174431
|
try {
|
|
174129
|
-
source = await
|
|
174432
|
+
source = await import_fs34.default.promises.readFile(importerPath, "utf8");
|
|
174130
174433
|
} catch {
|
|
174131
174434
|
return [];
|
|
174132
174435
|
}
|
|
@@ -178613,8 +178916,8 @@ var require_dist12 = __commonJS({
|
|
|
178613
178916
|
if (typeof args[args.length - 1] === "function")
|
|
178614
178917
|
fn2.apply(this, args);
|
|
178615
178918
|
else {
|
|
178616
|
-
return new Promise((
|
|
178617
|
-
args.push((err, res) => err != null ? reject(err) :
|
|
178919
|
+
return new Promise((resolve11, reject) => {
|
|
178920
|
+
args.push((err, res) => err != null ? reject(err) : resolve11(res));
|
|
178618
178921
|
fn2.apply(this, args);
|
|
178619
178922
|
});
|
|
178620
178923
|
}
|
|
@@ -179485,19 +179788,19 @@ var require_dist12 = __commonJS({
|
|
|
179485
179788
|
if (typeof callback === "function") {
|
|
179486
179789
|
return fs122.exists(filename, callback);
|
|
179487
179790
|
}
|
|
179488
|
-
return new Promise((
|
|
179489
|
-
return fs122.exists(filename,
|
|
179791
|
+
return new Promise((resolve11) => {
|
|
179792
|
+
return fs122.exists(filename, resolve11);
|
|
179490
179793
|
});
|
|
179491
179794
|
};
|
|
179492
179795
|
exports3.read = function(fd, buffer, offset, length, position, callback) {
|
|
179493
179796
|
if (typeof callback === "function") {
|
|
179494
179797
|
return fs122.read(fd, buffer, offset, length, position, callback);
|
|
179495
179798
|
}
|
|
179496
|
-
return new Promise((
|
|
179799
|
+
return new Promise((resolve11, reject) => {
|
|
179497
179800
|
fs122.read(fd, buffer, offset, length, position, (err, bytesRead, buffer2) => {
|
|
179498
179801
|
if (err)
|
|
179499
179802
|
return reject(err);
|
|
179500
|
-
|
|
179803
|
+
resolve11({ bytesRead, buffer: buffer2 });
|
|
179501
179804
|
});
|
|
179502
179805
|
});
|
|
179503
179806
|
};
|
|
@@ -179505,11 +179808,11 @@ var require_dist12 = __commonJS({
|
|
|
179505
179808
|
if (typeof args[args.length - 1] === "function") {
|
|
179506
179809
|
return fs122.write(fd, buffer, ...args);
|
|
179507
179810
|
}
|
|
179508
|
-
return new Promise((
|
|
179811
|
+
return new Promise((resolve11, reject) => {
|
|
179509
179812
|
fs122.write(fd, buffer, ...args, (err, bytesWritten, buffer2) => {
|
|
179510
179813
|
if (err)
|
|
179511
179814
|
return reject(err);
|
|
179512
|
-
|
|
179815
|
+
resolve11({ bytesWritten, buffer: buffer2 });
|
|
179513
179816
|
});
|
|
179514
179817
|
});
|
|
179515
179818
|
};
|
|
@@ -179518,11 +179821,11 @@ var require_dist12 = __commonJS({
|
|
|
179518
179821
|
if (typeof args[args.length - 1] === "function") {
|
|
179519
179822
|
return fs122.writev(fd, buffers, ...args);
|
|
179520
179823
|
}
|
|
179521
|
-
return new Promise((
|
|
179824
|
+
return new Promise((resolve11, reject) => {
|
|
179522
179825
|
fs122.writev(fd, buffers, ...args, (err, bytesWritten, buffers2) => {
|
|
179523
179826
|
if (err)
|
|
179524
179827
|
return reject(err);
|
|
179525
|
-
|
|
179828
|
+
resolve11({ bytesWritten, buffers: buffers2 });
|
|
179526
179829
|
});
|
|
179527
179830
|
});
|
|
179528
179831
|
};
|
|
@@ -180855,7 +181158,7 @@ var require_dist12 = __commonJS({
|
|
|
180855
181158
|
return obj;
|
|
180856
181159
|
}
|
|
180857
181160
|
var readFile32 = universalify.fromPromise(_readFile);
|
|
180858
|
-
function
|
|
181161
|
+
function readFileSync22(file, options = {}) {
|
|
180859
181162
|
if (typeof options === "string") {
|
|
180860
181163
|
options = { encoding: options };
|
|
180861
181164
|
}
|
|
@@ -180887,7 +181190,7 @@ var require_dist12 = __commonJS({
|
|
|
180887
181190
|
}
|
|
180888
181191
|
module22.exports = {
|
|
180889
181192
|
readFile: readFile32,
|
|
180890
|
-
readFileSync:
|
|
181193
|
+
readFileSync: readFileSync22,
|
|
180891
181194
|
writeFile: writeFile5,
|
|
180892
181195
|
writeFileSync: writeFileSync9
|
|
180893
181196
|
};
|
|
@@ -181566,12 +181869,12 @@ var require_dist12 = __commonJS({
|
|
|
181566
181869
|
if (token) {
|
|
181567
181870
|
return token;
|
|
181568
181871
|
}
|
|
181569
|
-
return new Promise((
|
|
181872
|
+
return new Promise((resolve11, reject) => {
|
|
181570
181873
|
if (this.pauseFn && !this.paused) {
|
|
181571
181874
|
this.paused = true;
|
|
181572
181875
|
this.pauseFn();
|
|
181573
181876
|
}
|
|
181574
|
-
this.waiting.push({ resolve:
|
|
181877
|
+
this.waiting.push({ resolve: resolve11, reject });
|
|
181575
181878
|
});
|
|
181576
181879
|
}
|
|
181577
181880
|
async v() {
|
|
@@ -181821,7 +182124,7 @@ var require_dist12 = __commonJS({
|
|
|
181821
182124
|
"../../node_modules/.pnpm/async-retry@1.2.3/node_modules/async-retry/lib/index.js"(exports3, module22) {
|
|
181822
182125
|
var retrier = require_retry22();
|
|
181823
182126
|
function retry2(fn2, opts) {
|
|
181824
|
-
function run(
|
|
182127
|
+
function run(resolve11, reject) {
|
|
181825
182128
|
var options = opts || {};
|
|
181826
182129
|
var op3 = retrier.operation(options);
|
|
181827
182130
|
function bail(err) {
|
|
@@ -181846,7 +182149,7 @@ var require_dist12 = __commonJS({
|
|
|
181846
182149
|
onError2(err, num2);
|
|
181847
182150
|
return;
|
|
181848
182151
|
}
|
|
181849
|
-
Promise.resolve(val).then(
|
|
182152
|
+
Promise.resolve(val).then(resolve11).catch(function catchIt(err) {
|
|
181850
182153
|
onError2(err, num2);
|
|
181851
182154
|
});
|
|
181852
182155
|
}
|
|
@@ -185958,12 +186261,12 @@ var require_dist12 = __commonJS({
|
|
|
185958
186261
|
if (typeof Promise !== "function") {
|
|
185959
186262
|
throw new TypeError("callback not provided");
|
|
185960
186263
|
}
|
|
185961
|
-
return new Promise(function(
|
|
186264
|
+
return new Promise(function(resolve11, reject) {
|
|
185962
186265
|
isexe(path82, options || {}, function(er3, is3) {
|
|
185963
186266
|
if (er3) {
|
|
185964
186267
|
reject(er3);
|
|
185965
186268
|
} else {
|
|
185966
|
-
|
|
186269
|
+
resolve11(is3);
|
|
185967
186270
|
}
|
|
185968
186271
|
});
|
|
185969
186272
|
});
|
|
@@ -191473,8 +191776,8 @@ var require_dist12 = __commonJS({
|
|
|
191473
191776
|
var normalizeError = (error3) => {
|
|
191474
191777
|
if (isError2(error3))
|
|
191475
191778
|
return error3;
|
|
191476
|
-
const
|
|
191477
|
-
return isErrorLike(error3) ? Object.assign(new Error(
|
|
191779
|
+
const errorMessage2 = errorToString(error3);
|
|
191780
|
+
return isErrorLike(error3) ? Object.assign(new Error(errorMessage2), error3) : new Error(errorMessage2);
|
|
191478
191781
|
};
|
|
191479
191782
|
function isSpawnError(v12) {
|
|
191480
191783
|
return isErrnoException2(v12) && "spawnargs" in v12;
|
|
@@ -207707,7 +208010,7 @@ ${fields}`;
|
|
|
207707
208010
|
(0, import_assert3.default)(typeof mode === "number");
|
|
207708
208011
|
(0, import_assert3.default)(typeof stream2.pipe === "function");
|
|
207709
208012
|
const chunks = [];
|
|
207710
|
-
await new Promise((
|
|
208013
|
+
await new Promise((resolve11, reject) => {
|
|
207711
208014
|
stream2.on(
|
|
207712
208015
|
"data",
|
|
207713
208016
|
(chunk) => (
|
|
@@ -207719,7 +208022,7 @@ ${fields}`;
|
|
|
207719
208022
|
)
|
|
207720
208023
|
);
|
|
207721
208024
|
stream2.on("error", (error3) => reject(error3));
|
|
207722
|
-
stream2.on("end", () =>
|
|
208025
|
+
stream2.on("end", () => resolve11());
|
|
207723
208026
|
});
|
|
207724
208027
|
const data2 = Buffer.concat(chunks);
|
|
207725
208028
|
return new _FileBlob({ mode, contentType, data: data2 });
|
|
@@ -207735,7 +208038,7 @@ ${fields}`;
|
|
|
207735
208038
|
var import_assert22 = __toESM2(require("assert"));
|
|
207736
208039
|
var import_fs_extra = __toESM2(require_lib16());
|
|
207737
208040
|
var import_multistream = __toESM2(require_multistream());
|
|
207738
|
-
var
|
|
208041
|
+
var import_path34 = __toESM2(require("path"));
|
|
207739
208042
|
var import_async_sema = __toESM2(require_async_sema());
|
|
207740
208043
|
var semaToPreventEMFILE = new import_async_sema.default(20);
|
|
207741
208044
|
var FileFsRef = class _FileFsRef {
|
|
@@ -207777,14 +208080,14 @@ ${fields}`;
|
|
|
207777
208080
|
(0, import_assert22.default)(typeof mode === "number");
|
|
207778
208081
|
(0, import_assert22.default)(typeof stream2.pipe === "function");
|
|
207779
208082
|
(0, import_assert22.default)(typeof fsPath === "string");
|
|
207780
|
-
await import_fs_extra.default.mkdirp(
|
|
207781
|
-
await new Promise((
|
|
208083
|
+
await import_fs_extra.default.mkdirp(import_path34.default.dirname(fsPath));
|
|
208084
|
+
await new Promise((resolve11, reject) => {
|
|
207782
208085
|
const dest = import_fs_extra.default.createWriteStream(fsPath, {
|
|
207783
208086
|
mode: mode & 511
|
|
207784
208087
|
});
|
|
207785
208088
|
stream2.pipe(dest);
|
|
207786
208089
|
stream2.on("error", reject);
|
|
207787
|
-
dest.on("finish",
|
|
208090
|
+
dest.on("finish", resolve11);
|
|
207788
208091
|
dest.on("error", reject);
|
|
207789
208092
|
});
|
|
207790
208093
|
return _FileFsRef.fromFsPath({ mode, contentType, fsPath });
|
|
@@ -208025,7 +208328,7 @@ ${fields}`;
|
|
|
208025
208328
|
var import_fs_extra2 = __toESM2(require_lib16());
|
|
208026
208329
|
var import_end_of_stream = __toESM2(require_end_of_stream3());
|
|
208027
208330
|
function streamToBuffer(stream2) {
|
|
208028
|
-
return new Promise((
|
|
208331
|
+
return new Promise((resolve11, reject) => {
|
|
208029
208332
|
const buffers = [];
|
|
208030
208333
|
stream2.on("data", (chunk) => {
|
|
208031
208334
|
const buffer = Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk);
|
|
@@ -208039,13 +208342,13 @@ ${fields}`;
|
|
|
208039
208342
|
try {
|
|
208040
208343
|
switch (buffers.length) {
|
|
208041
208344
|
case 0:
|
|
208042
|
-
|
|
208345
|
+
resolve11(Buffer.allocUnsafe(0));
|
|
208043
208346
|
break;
|
|
208044
208347
|
case 1:
|
|
208045
|
-
|
|
208348
|
+
resolve11(Buffer.from(buffers[0]));
|
|
208046
208349
|
break;
|
|
208047
208350
|
default:
|
|
208048
|
-
|
|
208351
|
+
resolve11(Buffer.concat(buffers));
|
|
208049
208352
|
}
|
|
208050
208353
|
} catch (concatErr) {
|
|
208051
208354
|
reject(concatErr);
|
|
@@ -208496,7 +208799,7 @@ ${fields}`;
|
|
|
208496
208799
|
}
|
|
208497
208800
|
}
|
|
208498
208801
|
const zipFile = new import_yazl.ZipFile();
|
|
208499
|
-
const zipBuffer = await new Promise((
|
|
208802
|
+
const zipBuffer = await new Promise((resolve11, reject) => {
|
|
208500
208803
|
for (const name of names) {
|
|
208501
208804
|
const file = files[name];
|
|
208502
208805
|
const opts = { mode: file.mode, mtime };
|
|
@@ -208512,7 +208815,7 @@ ${fields}`;
|
|
|
208512
208815
|
}
|
|
208513
208816
|
}
|
|
208514
208817
|
zipFile.end();
|
|
208515
|
-
streamToBuffer(zipFile.outputStream).then(
|
|
208818
|
+
streamToBuffer(zipFile.outputStream).then(resolve11).catch(reject);
|
|
208516
208819
|
});
|
|
208517
208820
|
return zipBuffer;
|
|
208518
208821
|
}
|
|
@@ -208735,25 +209038,25 @@ ${fields}`;
|
|
|
208735
209038
|
}
|
|
208736
209039
|
}
|
|
208737
209040
|
};
|
|
208738
|
-
var
|
|
209041
|
+
var import_path35 = require("path");
|
|
208739
209042
|
var import_os5 = require("os");
|
|
208740
209043
|
var import_fs_extra4 = __toESM2(require_lib16());
|
|
208741
209044
|
async function getWritableDirectory() {
|
|
208742
209045
|
const name = Math.floor(Math.random() * 2147483647).toString(16);
|
|
208743
|
-
const directory = (0,
|
|
209046
|
+
const directory = (0, import_path35.join)((0, import_os5.tmpdir)(), name);
|
|
208744
209047
|
await (0, import_fs_extra4.mkdirp)(directory);
|
|
208745
209048
|
return directory;
|
|
208746
209049
|
}
|
|
208747
209050
|
var import_path42 = __toESM2(require("path"));
|
|
208748
209051
|
var import_assert5 = __toESM2(require("assert"));
|
|
208749
209052
|
var import_glob7 = __toESM2(require_glob());
|
|
208750
|
-
var
|
|
209053
|
+
var import_util27 = require("util");
|
|
208751
209054
|
var import_fs_extra5 = __toESM2(require_lib16());
|
|
208752
209055
|
var isWin = process.platform === "win32";
|
|
208753
209056
|
function normalizePath2(p8) {
|
|
208754
209057
|
return isWin ? p8.replace(/\\/g, "/") : p8;
|
|
208755
209058
|
}
|
|
208756
|
-
var vanillaGlob = (0,
|
|
209059
|
+
var vanillaGlob = (0, import_util27.promisify)(import_glob7.default);
|
|
208757
209060
|
async function glob2(pattern, opts, mountpoint) {
|
|
208758
209061
|
const options = typeof opts === "string" ? { cwd: opts } : opts;
|
|
208759
209062
|
if (!options.cwd) {
|
|
@@ -208838,7 +209141,7 @@ ${fields}`;
|
|
|
208838
209141
|
var import_cross_spawn = __toESM2(require_cross_spawn());
|
|
208839
209142
|
var import_semver22 = __toESM2(require_semver22());
|
|
208840
209143
|
var import_util62 = require("util");
|
|
208841
|
-
var
|
|
209144
|
+
var import_fs34 = require("fs");
|
|
208842
209145
|
var import_semver3 = __toESM2(require_semver22());
|
|
208843
209146
|
var Version = class {
|
|
208844
209147
|
constructor(version2) {
|
|
@@ -208977,7 +209280,7 @@ ${fields}`;
|
|
|
208977
209280
|
return NODE_VERSIONS;
|
|
208978
209281
|
}
|
|
208979
209282
|
function isNodeVersionAvailable(version2) {
|
|
208980
|
-
const stat2 = (0,
|
|
209283
|
+
const stat2 = (0, import_fs34.statSync)(`/node${version2.major}`, { throwIfNoEntry: false });
|
|
208981
209284
|
return stat2?.isDirectory() ?? false;
|
|
208982
209285
|
}
|
|
208983
209286
|
function getAvailableNodeVersions() {
|
|
@@ -209839,7 +210142,7 @@ ${codeblock}`, options);
|
|
|
209839
210142
|
path: void 0
|
|
209840
210143
|
};
|
|
209841
210144
|
function spawnAsync(command15, args, opts = {}) {
|
|
209842
|
-
return new Promise((
|
|
210145
|
+
return new Promise((resolve11, reject) => {
|
|
209843
210146
|
const stderrLogs = [];
|
|
209844
210147
|
const hasCustomStreams = opts.outputStream || opts.errorStream;
|
|
209845
210148
|
if (hasCustomStreams) {
|
|
@@ -209861,7 +210164,7 @@ ${codeblock}`, options);
|
|
|
209861
210164
|
child.on("error", reject);
|
|
209862
210165
|
child.on("close", (code, signal) => {
|
|
209863
210166
|
if (code === 0 || opts.ignoreNon0Exit) {
|
|
209864
|
-
return
|
|
210167
|
+
return resolve11();
|
|
209865
210168
|
}
|
|
209866
210169
|
const cmd = opts.prettyCommand ? `Command "${opts.prettyCommand}"` : "Command";
|
|
209867
210170
|
reject(
|
|
@@ -211488,7 +211791,7 @@ To use ${otherVersion}, manually opt in using corepack (https://vercel.com/docs/
|
|
|
211488
211791
|
}
|
|
211489
211792
|
}
|
|
211490
211793
|
};
|
|
211491
|
-
var
|
|
211794
|
+
var import_fs35 = __toESM2(require("fs"));
|
|
211492
211795
|
var import_path112 = require("path");
|
|
211493
211796
|
var MANIFEST_VERSION = "20260304";
|
|
211494
211797
|
var MANIFEST_FILENAME = "package-manifest.json";
|
|
@@ -211497,14 +211800,14 @@ To use ${otherVersion}, manually opt in using corepack (https://vercel.com/docs/
|
|
|
211497
211800
|
}
|
|
211498
211801
|
async function writeProjectManifest(manifest, workPath, runtime) {
|
|
211499
211802
|
const outPath = (0, import_path112.join)(workPath, manifestPath(runtime));
|
|
211500
|
-
await
|
|
211501
|
-
await
|
|
211803
|
+
await import_fs35.default.promises.mkdir((0, import_path112.dirname)(outPath), { recursive: true });
|
|
211804
|
+
await import_fs35.default.promises.writeFile(outPath, JSON.stringify(manifest, null, 2));
|
|
211502
211805
|
}
|
|
211503
211806
|
function createDiagnostics(runtime) {
|
|
211504
211807
|
return async ({ workPath }) => {
|
|
211505
211808
|
try {
|
|
211506
211809
|
const filePath = (0, import_path112.join)(workPath, manifestPath(runtime));
|
|
211507
|
-
const data2 = await
|
|
211810
|
+
const data2 = await import_fs35.default.promises.readFile(filePath, "utf-8");
|
|
211508
211811
|
return {
|
|
211509
211812
|
[MANIFEST_FILENAME]: new FileBlob({ data: data2 })
|
|
211510
211813
|
};
|
|
@@ -212727,7 +213030,7 @@ ${entrypointsForMessage}`
|
|
|
212727
213030
|
}
|
|
212728
213031
|
var import_crypto8 = require("crypto");
|
|
212729
213032
|
async function streamToDigestAsync(stream2) {
|
|
212730
|
-
return await new Promise((
|
|
213033
|
+
return await new Promise((resolve11, reject) => {
|
|
212731
213034
|
stream2.once("error", reject);
|
|
212732
213035
|
let count = 0;
|
|
212733
213036
|
const sha2562 = (0, import_crypto8.createHash)("sha256");
|
|
@@ -212738,7 +213041,7 @@ ${entrypointsForMessage}`
|
|
|
212738
213041
|
md5: md522.digest("hex"),
|
|
212739
213042
|
size: count
|
|
212740
213043
|
};
|
|
212741
|
-
|
|
213044
|
+
resolve11(res);
|
|
212742
213045
|
});
|
|
212743
213046
|
stream2.on("readable", () => {
|
|
212744
213047
|
let chunk;
|
|
@@ -213667,8 +213970,8 @@ var require_readdir_recursive = __commonJS({
|
|
|
213667
213970
|
default: () => readdir6
|
|
213668
213971
|
});
|
|
213669
213972
|
module2.exports = __toCommonJS2(readdir_recursive_exports);
|
|
213670
|
-
var
|
|
213671
|
-
var
|
|
213973
|
+
var import_fs34 = __toESM2(require("fs"));
|
|
213974
|
+
var import_path34 = __toESM2(require("path"));
|
|
213672
213975
|
var import_minimatch8 = __toESM2(require_commonjs3());
|
|
213673
213976
|
function patternMatcher(pattern) {
|
|
213674
213977
|
return function(path20, stats) {
|
|
@@ -213686,18 +213989,18 @@ var require_readdir_recursive = __commonJS({
|
|
|
213686
213989
|
function readdir6(path20, ignores) {
|
|
213687
213990
|
ignores = ignores.map(toMatcherFunction);
|
|
213688
213991
|
let list2 = [];
|
|
213689
|
-
return new Promise(function(
|
|
213690
|
-
|
|
213992
|
+
return new Promise(function(resolve11, reject) {
|
|
213993
|
+
import_fs34.default.readdir(path20, function(err, files) {
|
|
213691
213994
|
if (err) {
|
|
213692
213995
|
return reject(err);
|
|
213693
213996
|
}
|
|
213694
213997
|
let pending = files.length;
|
|
213695
213998
|
if (!pending) {
|
|
213696
|
-
return
|
|
213999
|
+
return resolve11(list2);
|
|
213697
214000
|
}
|
|
213698
214001
|
files.forEach(function(file) {
|
|
213699
|
-
const filePath =
|
|
213700
|
-
|
|
214002
|
+
const filePath = import_path34.default.join(path20, file);
|
|
214003
|
+
import_fs34.default.lstat(filePath, function(_err, stats) {
|
|
213701
214004
|
if (_err) {
|
|
213702
214005
|
return reject(_err);
|
|
213703
214006
|
}
|
|
@@ -213705,7 +214008,7 @@ var require_readdir_recursive = __commonJS({
|
|
|
213705
214008
|
if (matches) {
|
|
213706
214009
|
pending -= 1;
|
|
213707
214010
|
if (!pending) {
|
|
213708
|
-
return
|
|
214011
|
+
return resolve11(list2);
|
|
213709
214012
|
}
|
|
213710
214013
|
return null;
|
|
213711
214014
|
}
|
|
@@ -213717,14 +214020,14 @@ var require_readdir_recursive = __commonJS({
|
|
|
213717
214020
|
list2 = list2.concat(res);
|
|
213718
214021
|
pending -= 1;
|
|
213719
214022
|
if (!pending) {
|
|
213720
|
-
return
|
|
214023
|
+
return resolve11(list2);
|
|
213721
214024
|
}
|
|
213722
214025
|
}).catch(reject);
|
|
213723
214026
|
} else {
|
|
213724
214027
|
list2.push(filePath);
|
|
213725
214028
|
pending -= 1;
|
|
213726
214029
|
if (!pending) {
|
|
213727
|
-
return
|
|
214030
|
+
return resolve11(list2);
|
|
213728
214031
|
}
|
|
213729
214032
|
}
|
|
213730
214033
|
});
|
|
@@ -219985,41 +220288,41 @@ var require_queue = __commonJS({
|
|
|
219985
220288
|
queue.drained = drained;
|
|
219986
220289
|
return queue;
|
|
219987
220290
|
function push(value) {
|
|
219988
|
-
var p8 = new Promise(function(
|
|
220291
|
+
var p8 = new Promise(function(resolve11, reject) {
|
|
219989
220292
|
pushCb(value, function(err, result) {
|
|
219990
220293
|
if (err) {
|
|
219991
220294
|
reject(err);
|
|
219992
220295
|
return;
|
|
219993
220296
|
}
|
|
219994
|
-
|
|
220297
|
+
resolve11(result);
|
|
219995
220298
|
});
|
|
219996
220299
|
});
|
|
219997
220300
|
p8.catch(noop2);
|
|
219998
220301
|
return p8;
|
|
219999
220302
|
}
|
|
220000
220303
|
function unshift(value) {
|
|
220001
|
-
var p8 = new Promise(function(
|
|
220304
|
+
var p8 = new Promise(function(resolve11, reject) {
|
|
220002
220305
|
unshiftCb(value, function(err, result) {
|
|
220003
220306
|
if (err) {
|
|
220004
220307
|
reject(err);
|
|
220005
220308
|
return;
|
|
220006
220309
|
}
|
|
220007
|
-
|
|
220310
|
+
resolve11(result);
|
|
220008
220311
|
});
|
|
220009
220312
|
});
|
|
220010
220313
|
p8.catch(noop2);
|
|
220011
220314
|
return p8;
|
|
220012
220315
|
}
|
|
220013
220316
|
function drained() {
|
|
220014
|
-
var p8 = new Promise(function(
|
|
220317
|
+
var p8 = new Promise(function(resolve11) {
|
|
220015
220318
|
process.nextTick(function() {
|
|
220016
220319
|
if (queue.idle()) {
|
|
220017
|
-
|
|
220320
|
+
resolve11();
|
|
220018
220321
|
} else {
|
|
220019
220322
|
var previousDrain = queue.drain;
|
|
220020
220323
|
queue.drain = function() {
|
|
220021
220324
|
if (typeof previousDrain === "function") previousDrain();
|
|
220022
|
-
|
|
220325
|
+
resolve11();
|
|
220023
220326
|
queue.drain = previousDrain;
|
|
220024
220327
|
};
|
|
220025
220328
|
}
|
|
@@ -220516,9 +220819,9 @@ var require_stream4 = __commonJS({
|
|
|
220516
220819
|
});
|
|
220517
220820
|
}
|
|
220518
220821
|
_getStat(filepath) {
|
|
220519
|
-
return new Promise((
|
|
220822
|
+
return new Promise((resolve11, reject) => {
|
|
220520
220823
|
this._stat(filepath, this._fsStatSettings, (error3, stats) => {
|
|
220521
|
-
return error3 === null ?
|
|
220824
|
+
return error3 === null ? resolve11(stats) : reject(error3);
|
|
220522
220825
|
});
|
|
220523
220826
|
});
|
|
220524
220827
|
}
|
|
@@ -220543,10 +220846,10 @@ var require_async6 = __commonJS({
|
|
|
220543
220846
|
this._readerStream = new stream_1.default(this._settings);
|
|
220544
220847
|
}
|
|
220545
220848
|
dynamic(root, options) {
|
|
220546
|
-
return new Promise((
|
|
220849
|
+
return new Promise((resolve11, reject) => {
|
|
220547
220850
|
this._walkAsync(root, options, (error3, entries) => {
|
|
220548
220851
|
if (error3 === null) {
|
|
220549
|
-
|
|
220852
|
+
resolve11(entries);
|
|
220550
220853
|
} else {
|
|
220551
220854
|
reject(error3);
|
|
220552
220855
|
}
|
|
@@ -220556,10 +220859,10 @@ var require_async6 = __commonJS({
|
|
|
220556
220859
|
async static(patterns, options) {
|
|
220557
220860
|
const entries = [];
|
|
220558
220861
|
const stream2 = this._readerStream.static(patterns, options);
|
|
220559
|
-
return new Promise((
|
|
220862
|
+
return new Promise((resolve11, reject) => {
|
|
220560
220863
|
stream2.once("error", reject);
|
|
220561
220864
|
stream2.on("data", (entry) => entries.push(entry));
|
|
220562
|
-
stream2.once("end", () =>
|
|
220865
|
+
stream2.once("end", () => resolve11(entries));
|
|
220563
220866
|
});
|
|
220564
220867
|
}
|
|
220565
220868
|
};
|
|
@@ -221497,7 +221800,7 @@ var require_utils10 = __commonJS({
|
|
|
221497
221800
|
shouldInlineStaticFiles: () => shouldInlineStaticFiles
|
|
221498
221801
|
});
|
|
221499
221802
|
module2.exports = __toCommonJS2(utils_exports);
|
|
221500
|
-
var
|
|
221803
|
+
var import_path34 = require("path");
|
|
221501
221804
|
var import_stream10 = require("stream");
|
|
221502
221805
|
var import_url13 = require("url");
|
|
221503
221806
|
var import_ignore4 = __toESM2(require_ignore2());
|
|
@@ -221561,8 +221864,8 @@ var require_utils10 = __commonJS({
|
|
|
221561
221864
|
};
|
|
221562
221865
|
async function getUserIgnore(cwd) {
|
|
221563
221866
|
const [vercelignore, nowignore] = await Promise.all([
|
|
221564
|
-
maybeRead((0,
|
|
221565
|
-
maybeRead((0,
|
|
221867
|
+
maybeRead((0, import_path34.join)(cwd, ".vercelignore"), ""),
|
|
221868
|
+
maybeRead((0, import_path34.join)(cwd, ".nowignore"), "")
|
|
221566
221869
|
]);
|
|
221567
221870
|
if (vercelignore && nowignore) {
|
|
221568
221871
|
throw new import_build_utils.NowBuildError({
|
|
@@ -221592,7 +221895,7 @@ var require_utils10 = __commonJS({
|
|
|
221592
221895
|
debug4("Building file tree...");
|
|
221593
221896
|
if (isDirectory && !Array.isArray(path20)) {
|
|
221594
221897
|
const ignores2 = (absPath) => {
|
|
221595
|
-
const rel = (0,
|
|
221898
|
+
const rel = (0, import_path34.relative)(path20, absPath);
|
|
221596
221899
|
const ignored = ig.ignores(rel);
|
|
221597
221900
|
if (ignored) {
|
|
221598
221901
|
ignoreList.push(rel);
|
|
@@ -221603,7 +221906,7 @@ var require_utils10 = __commonJS({
|
|
|
221603
221906
|
const refs = /* @__PURE__ */ new Set();
|
|
221604
221907
|
if (prebuilt) {
|
|
221605
221908
|
const vcConfigFilePaths = fileList.filter(
|
|
221606
|
-
(file) => (0,
|
|
221909
|
+
(file) => (0, import_path34.basename)(file) === ".vc-config.json"
|
|
221607
221910
|
);
|
|
221608
221911
|
const userIg = await getUserIgnore(path20);
|
|
221609
221912
|
await Promise.all(
|
|
@@ -221613,9 +221916,9 @@ var require_utils10 = __commonJS({
|
|
|
221613
221916
|
if (!config.filePathMap)
|
|
221614
221917
|
return;
|
|
221615
221918
|
for (const v12 of Object.values(config.filePathMap)) {
|
|
221616
|
-
const absPath = (0,
|
|
221617
|
-
const rel = (0,
|
|
221618
|
-
if (rel.startsWith("..") || (0,
|
|
221919
|
+
const absPath = (0, import_path34.join)(path20, v12);
|
|
221920
|
+
const rel = (0, import_path34.relative)(path20, absPath);
|
|
221921
|
+
if (rel.startsWith("..") || (0, import_path34.isAbsolute)(rel)) {
|
|
221619
221922
|
debug4(
|
|
221620
221923
|
`Ignoring "filePathMap" entry "${v12}": resolves outside the deployment root`
|
|
221621
221924
|
);
|
|
@@ -221633,7 +221936,7 @@ var require_utils10 = __commonJS({
|
|
|
221633
221936
|
);
|
|
221634
221937
|
try {
|
|
221635
221938
|
let microfrontendConfigPath = (0, import_utils68.findConfig)({
|
|
221636
|
-
dir: (0,
|
|
221939
|
+
dir: (0, import_path34.join)(path20, rootDirectory || "")
|
|
221637
221940
|
});
|
|
221638
221941
|
if (!microfrontendConfigPath && !rootDirectory && projectName) {
|
|
221639
221942
|
microfrontendConfigPath = (0, import_utils68.findConfig)({
|
|
@@ -221651,7 +221954,7 @@ var require_utils10 = __commonJS({
|
|
|
221651
221954
|
}
|
|
221652
221955
|
}
|
|
221653
221956
|
try {
|
|
221654
|
-
const routesJsonPath = (0,
|
|
221957
|
+
const routesJsonPath = (0, import_path34.join)(path20, ".vercel", "routes.json");
|
|
221655
221958
|
const routesJsonContent = await maybeRead(routesJsonPath, null);
|
|
221656
221959
|
if (routesJsonContent !== null) {
|
|
221657
221960
|
refs.add(routesJsonPath);
|
|
@@ -221663,12 +221966,12 @@ var require_utils10 = __commonJS({
|
|
|
221663
221966
|
if (prebuilt && bulkRedirectsPath) {
|
|
221664
221967
|
try {
|
|
221665
221968
|
const projectRoot = path20;
|
|
221666
|
-
const bulkRedirectsFullPath = (0,
|
|
221969
|
+
const bulkRedirectsFullPath = (0, import_path34.join)(
|
|
221667
221970
|
projectRoot,
|
|
221668
221971
|
rootDirectory || "",
|
|
221669
221972
|
bulkRedirectsPath
|
|
221670
221973
|
);
|
|
221671
|
-
const relativeFromRoot = (0,
|
|
221974
|
+
const relativeFromRoot = (0, import_path34.relative)(projectRoot, bulkRedirectsFullPath);
|
|
221672
221975
|
if (relativeFromRoot.startsWith("..")) {
|
|
221673
221976
|
debug4(
|
|
221674
221977
|
`Skipping bulk redirects path "${bulkRedirectsPath}" - path traversal detected (resolves outside project root)`
|
|
@@ -221723,9 +222026,9 @@ var require_utils10 = __commonJS({
|
|
|
221723
222026
|
if (typeof cwd !== "string") {
|
|
221724
222027
|
throw new Error(`\`cwd\` must be a "string"`);
|
|
221725
222028
|
}
|
|
221726
|
-
const relOutputDir = (0,
|
|
222029
|
+
const relOutputDir = (0, import_path34.relative)(cwd, vercelOutputDir);
|
|
221727
222030
|
ignores = ["*"];
|
|
221728
|
-
const parts = relOutputDir.split(
|
|
222031
|
+
const parts = relOutputDir.split(import_path34.sep);
|
|
221729
222032
|
parts.forEach((_5, i5) => {
|
|
221730
222033
|
const level = parts.slice(0, i5 + 1).join("/");
|
|
221731
222034
|
ignores.push(`!${level}`);
|
|
@@ -221765,8 +222068,8 @@ var require_utils10 = __commonJS({
|
|
|
221765
222068
|
const files = await Promise.all(
|
|
221766
222069
|
cwds.map(async (cwd2) => {
|
|
221767
222070
|
const [vercelignore, nowignore] = await Promise.all([
|
|
221768
|
-
maybeRead((0,
|
|
221769
|
-
maybeRead((0,
|
|
222071
|
+
maybeRead((0, import_path34.join)(cwd2, ".vercelignore"), ""),
|
|
222072
|
+
maybeRead((0, import_path34.join)(cwd2, ".nowignore"), "")
|
|
221770
222073
|
]);
|
|
221771
222074
|
if (vercelignore && nowignore) {
|
|
221772
222075
|
throw new import_build_utils.NowBuildError({
|
|
@@ -221778,7 +222081,7 @@ var require_utils10 = __commonJS({
|
|
|
221778
222081
|
return vercelignore || nowignore;
|
|
221779
222082
|
})
|
|
221780
222083
|
);
|
|
221781
|
-
const isRustProject = (await Promise.all(cwds.map((cwd2) => (0, import_fs_extra.pathExists)((0,
|
|
222084
|
+
const isRustProject = (await Promise.all(cwds.map((cwd2) => (0, import_fs_extra.pathExists)((0, import_path34.join)(cwd2, "Cargo.toml"))))).some(Boolean);
|
|
221782
222085
|
if (isRustProject) {
|
|
221783
222086
|
ignores.push("/target");
|
|
221784
222087
|
}
|
|
@@ -221860,9 +222163,9 @@ ${clearRelative(ignoreFile)}`);
|
|
|
221860
222163
|
for (const name of file.names) {
|
|
221861
222164
|
let fileName;
|
|
221862
222165
|
if (clientOptions.isDirectory) {
|
|
221863
|
-
fileName = typeof clientOptions.path === "string" ? (0,
|
|
222166
|
+
fileName = typeof clientOptions.path === "string" ? (0, import_path34.relative)(clientOptions.path, name) : name;
|
|
221864
222167
|
} else {
|
|
221865
|
-
const segments = name.split(
|
|
222168
|
+
const segments = name.split(import_path34.sep);
|
|
221866
222169
|
fileName = segments[segments.length - 1];
|
|
221867
222170
|
}
|
|
221868
222171
|
const normalizedName = isWin ? fileName.replace(/\\/g, "/") : fileName;
|
|
@@ -222133,12 +222436,12 @@ var require_check_deployment_status = __commonJS({
|
|
|
222133
222436
|
await (0, import_sleep_promise.default)(duration);
|
|
222134
222437
|
return;
|
|
222135
222438
|
}
|
|
222136
|
-
await new Promise((
|
|
222439
|
+
await new Promise((resolve11) => {
|
|
222137
222440
|
const timeout = setTimeout(finish, duration);
|
|
222138
222441
|
function finish() {
|
|
222139
222442
|
clearTimeout(timeout);
|
|
222140
222443
|
signal?.removeEventListener("abort", onAbort);
|
|
222141
|
-
|
|
222444
|
+
resolve11();
|
|
222142
222445
|
}
|
|
222143
222446
|
function onAbort() {
|
|
222144
222447
|
if (getAliasAssignedEvent(signal, deploymentId))
|
|
@@ -222770,7 +223073,7 @@ var require_lib15 = __commonJS({
|
|
|
222770
223073
|
init_import_meta_url();
|
|
222771
223074
|
var retrier = require_retry5();
|
|
222772
223075
|
function retry2(fn2, opts) {
|
|
222773
|
-
function run(
|
|
223076
|
+
function run(resolve11, reject) {
|
|
222774
223077
|
var options = opts || {};
|
|
222775
223078
|
var op3 = retrier.operation(options);
|
|
222776
223079
|
function bail(err) {
|
|
@@ -222795,7 +223098,7 @@ var require_lib15 = __commonJS({
|
|
|
222795
223098
|
onError2(err, num2);
|
|
222796
223099
|
return;
|
|
222797
223100
|
}
|
|
222798
|
-
Promise.resolve(val).then(
|
|
223101
|
+
Promise.resolve(val).then(resolve11).catch(function catchIt(err) {
|
|
222799
223102
|
onError2(err, num2);
|
|
222800
223103
|
});
|
|
222801
223104
|
}
|
|
@@ -222884,13 +223187,13 @@ var require_upload = __commonJS({
|
|
|
222884
223187
|
uploadFiles: () => uploadFiles
|
|
222885
223188
|
});
|
|
222886
223189
|
module2.exports = __toCommonJS2(upload_exports);
|
|
222887
|
-
var
|
|
223190
|
+
var import_fs34 = require("fs");
|
|
222888
223191
|
var import_stream10 = require("stream");
|
|
222889
223192
|
var import_node_events8 = require("node:events");
|
|
222890
223193
|
var import_async_retry5 = __toESM2(require_lib15());
|
|
222891
223194
|
var import_async_sema = require_lib12();
|
|
222892
223195
|
var import_utils68 = require_utils10();
|
|
222893
|
-
var
|
|
223196
|
+
var import_errors49 = require_errors3();
|
|
222894
223197
|
var import_deploy = require_deploy();
|
|
222895
223198
|
var isClientNetworkError = (err) => {
|
|
222896
223199
|
if (!(err instanceof Error)) {
|
|
@@ -223016,7 +223319,7 @@ var require_upload = __commonJS({
|
|
|
223016
223319
|
body = buffered.pipe(counter);
|
|
223017
223320
|
} else if (typeof size2 === "number") {
|
|
223018
223321
|
contentLength = size2;
|
|
223019
|
-
const fileStream = (0,
|
|
223322
|
+
const fileStream = (0, import_fs34.createReadStream)(names[0]);
|
|
223020
223323
|
fileStream.on("error", (err2) => counter.destroy(err2));
|
|
223021
223324
|
counter.on("close", () => fileStream.destroy());
|
|
223022
223325
|
body = fileStream.pipe(counter);
|
|
@@ -223062,11 +223365,11 @@ var require_upload = __commonJS({
|
|
|
223062
223365
|
`An internal error occurred in upload request. Not retrying...`
|
|
223063
223366
|
);
|
|
223064
223367
|
const { error: error3 } = await res.json();
|
|
223065
|
-
err = new
|
|
223368
|
+
err = new import_errors49.DeploymentError(error3);
|
|
223066
223369
|
} else {
|
|
223067
223370
|
debug4(`A server error occurred in upload request. Retrying...`);
|
|
223068
223371
|
const { error: error3 } = await res.json();
|
|
223069
|
-
throw new
|
|
223372
|
+
throw new import_errors49.DeploymentError(error3);
|
|
223070
223373
|
}
|
|
223071
223374
|
} catch (e5) {
|
|
223072
223375
|
debug4(`An unexpected error occurred in upload promise:
|
|
@@ -223194,8 +223497,8 @@ var require_dist13 = __commonJS({
|
|
|
223194
223497
|
var normalizeError = (error3) => {
|
|
223195
223498
|
if (isError2(error3))
|
|
223196
223499
|
return error3;
|
|
223197
|
-
const
|
|
223198
|
-
return isErrorLike(error3) ? Object.assign(new Error(
|
|
223500
|
+
const errorMessage2 = errorToString(error3);
|
|
223501
|
+
return isErrorLike(error3) ? Object.assign(new Error(errorMessage2), error3) : new Error(errorMessage2);
|
|
223199
223502
|
};
|
|
223200
223503
|
function isSpawnError(v12) {
|
|
223201
223504
|
return isErrnoException(v12) && "spawnargs" in v12;
|
|
@@ -228381,8 +228684,8 @@ var require_collect_deployment_files = __commonJS({
|
|
|
228381
228684
|
module2.exports = __toCommonJS2(collect_deployment_files_exports);
|
|
228382
228685
|
var import_error_utils = require_dist13();
|
|
228383
228686
|
var import_fs_extra = require_lib11();
|
|
228384
|
-
var
|
|
228385
|
-
var
|
|
228687
|
+
var import_path34 = require("path");
|
|
228688
|
+
var import_errors49 = require_errors3();
|
|
228386
228689
|
var import_utils68 = require_utils10();
|
|
228387
228690
|
var import_archive = require_archive();
|
|
228388
228691
|
var import_hashes = require_hashes();
|
|
@@ -228391,7 +228694,7 @@ var require_collect_deployment_files = __commonJS({
|
|
|
228391
228694
|
debug4(
|
|
228392
228695
|
`Error: 'path' is expected to be a string or an array. Received ${typeof path20}`
|
|
228393
228696
|
);
|
|
228394
|
-
throw new
|
|
228697
|
+
throw new import_errors49.DeploymentError({
|
|
228395
228698
|
code: "missing_path",
|
|
228396
228699
|
message: "Path not provided"
|
|
228397
228700
|
});
|
|
@@ -228403,15 +228706,15 @@ var require_collect_deployment_files = __commonJS({
|
|
|
228403
228706
|
clientOptions.isDirectory = isDirectory;
|
|
228404
228707
|
if (Array.isArray(path20)) {
|
|
228405
228708
|
for (const filePath of path20) {
|
|
228406
|
-
if (!(0,
|
|
228407
|
-
throw new
|
|
228709
|
+
if (!(0, import_path34.isAbsolute)(filePath)) {
|
|
228710
|
+
throw new import_errors49.DeploymentError({
|
|
228408
228711
|
code: "invalid_path",
|
|
228409
228712
|
message: `Provided path ${filePath} is not absolute`
|
|
228410
228713
|
});
|
|
228411
228714
|
}
|
|
228412
228715
|
}
|
|
228413
|
-
} else if (!(0,
|
|
228414
|
-
throw new
|
|
228716
|
+
} else if (!(0, import_path34.isAbsolute)(path20)) {
|
|
228717
|
+
throw new import_errors49.DeploymentError({
|
|
228415
228718
|
code: "invalid_path",
|
|
228416
228719
|
message: `Provided path ${path20} is not absolute`
|
|
228417
228720
|
});
|
|
@@ -228434,9 +228737,9 @@ var require_collect_deployment_files = __commonJS({
|
|
|
228434
228737
|
filesMap = clientOptions.archive === "tgz" ? await (0, import_archive.createTgzFiles)(workPath, fileList, debug4) : await (0, import_hashes.hashes)(fileList);
|
|
228435
228738
|
} catch (err) {
|
|
228436
228739
|
if (clientOptions.prebuilt && (0, import_error_utils.isErrnoException)(err) && err.code === "ENOENT" && err.path) {
|
|
228437
|
-
const errPath = (0,
|
|
228438
|
-
err.message = `File does not exist: "${(0,
|
|
228439
|
-
if (errPath.split(
|
|
228740
|
+
const errPath = (0, import_path34.relative)(workPath, err.path);
|
|
228741
|
+
err.message = `File does not exist: "${(0, import_path34.relative)(workPath, errPath)}"`;
|
|
228742
|
+
if (errPath.split(import_path34.sep).includes("node_modules")) {
|
|
228440
228743
|
err.message = `Please ensure project dependencies have been installed:
|
|
228441
228744
|
${err.message}`;
|
|
228442
228745
|
}
|
|
@@ -228479,7 +228782,7 @@ var require_create_deployment = __commonJS({
|
|
|
228479
228782
|
var import_deploy = require_deploy();
|
|
228480
228783
|
var import_upload = require_upload();
|
|
228481
228784
|
var import_utils68 = require_utils10();
|
|
228482
|
-
var
|
|
228785
|
+
var import_errors49 = require_errors3();
|
|
228483
228786
|
var import_collect_deployment_files = require_collect_deployment_files();
|
|
228484
228787
|
function buildCreateDeployment() {
|
|
228485
228788
|
return async function* createDeployment2(clientOptions, deploymentOptions = {}) {
|
|
@@ -228491,7 +228794,7 @@ var require_create_deployment = __commonJS({
|
|
|
228491
228794
|
debug4(
|
|
228492
228795
|
`Error: 'token' is expected to be a string. Received ${typeof clientOptions.token}`
|
|
228493
228796
|
);
|
|
228494
|
-
throw new
|
|
228797
|
+
throw new import_errors49.DeploymentError({
|
|
228495
228798
|
code: "token_not_provided",
|
|
228496
228799
|
message: "Options object must include a `token`"
|
|
228497
228800
|
});
|
|
@@ -228499,7 +228802,7 @@ var require_create_deployment = __commonJS({
|
|
|
228499
228802
|
if (clientOptions.manual) {
|
|
228500
228803
|
debug4("Manual provisioning mode enabled");
|
|
228501
228804
|
if (!clientOptions.prebuilt) {
|
|
228502
|
-
throw new
|
|
228805
|
+
throw new import_errors49.DeploymentError({
|
|
228503
228806
|
code: "invalid_options",
|
|
228504
228807
|
message: "The `manual` option requires `prebuilt` to be true"
|
|
228505
228808
|
});
|
|
@@ -228581,23 +228884,23 @@ var require_continue = __commonJS({
|
|
|
228581
228884
|
continueDeployment: () => continueDeployment2
|
|
228582
228885
|
});
|
|
228583
228886
|
module2.exports = __toCommonJS2(continue_exports);
|
|
228584
|
-
var
|
|
228887
|
+
var import_path34 = require("path");
|
|
228585
228888
|
var import_fs_extra = __toESM2(require_lib11());
|
|
228586
228889
|
var import_check_deployment_status = require_check_deployment_status();
|
|
228587
228890
|
var import_utils68 = require_utils10();
|
|
228588
228891
|
var import_hashes = require_hashes();
|
|
228589
228892
|
var import_ready_state = require_ready_state();
|
|
228590
228893
|
var import_upload = require_upload();
|
|
228591
|
-
var
|
|
228894
|
+
var import_errors49 = require_errors3();
|
|
228592
228895
|
var import_archive = require_archive();
|
|
228593
228896
|
async function* continueDeployment2(options) {
|
|
228594
228897
|
const debug4 = (0, import_utils68.createDebug)(options.debug);
|
|
228595
228898
|
debug4(`Continuing deployment: ${options.deploymentId}`);
|
|
228596
|
-
const outputDir = options.vercelOutputDir || (0,
|
|
228899
|
+
const outputDir = options.vercelOutputDir || (0, import_path34.join)(options.path, ".vercel", "output");
|
|
228597
228900
|
if (!await import_fs_extra.default.pathExists(outputDir)) {
|
|
228598
228901
|
return yield {
|
|
228599
228902
|
type: "error",
|
|
228600
|
-
payload: new
|
|
228903
|
+
payload: new import_errors49.DeploymentError({
|
|
228601
228904
|
code: "output_dir_not_found",
|
|
228602
228905
|
message: `Output directory not found at ${outputDir}. Run 'vercel build' first.`
|
|
228603
228906
|
})
|
|
@@ -228608,7 +228911,7 @@ var require_continue = __commonJS({
|
|
|
228608
228911
|
{ isDirectory: true, prebuilt: true, vercelOutputDir: outputDir },
|
|
228609
228912
|
debug4
|
|
228610
228913
|
);
|
|
228611
|
-
const provisionJsonPath = (0,
|
|
228914
|
+
const provisionJsonPath = (0, import_path34.join)(outputDir, "provision.json");
|
|
228612
228915
|
const unbundledFiles = fileList.filter((f8) => f8 === provisionJsonPath);
|
|
228613
228916
|
let files;
|
|
228614
228917
|
if (options.archive === "tgz") {
|
|
@@ -228696,7 +228999,7 @@ var require_continue = __commonJS({
|
|
|
228696
228999
|
if (!deployment) {
|
|
228697
229000
|
return yield {
|
|
228698
229001
|
type: "error",
|
|
228699
|
-
payload: new
|
|
229002
|
+
payload: new import_errors49.DeploymentError({
|
|
228700
229003
|
code: "continue_failed",
|
|
228701
229004
|
message: "Failed to continue deployment after uploading files"
|
|
228702
229005
|
})
|
|
@@ -228798,7 +229101,7 @@ var require_inspect_deployment_files = __commonJS({
|
|
|
228798
229101
|
inspectDeploymentFiles: () => inspectDeploymentFiles2
|
|
228799
229102
|
});
|
|
228800
229103
|
module2.exports = __toCommonJS2(inspect_deployment_files_exports);
|
|
228801
|
-
var
|
|
229104
|
+
var import_path34 = require("path");
|
|
228802
229105
|
var import_collect_deployment_files = require_collect_deployment_files();
|
|
228803
229106
|
var import_utils68 = require_utils10();
|
|
228804
229107
|
async function inspectDeploymentFiles2(clientOptions) {
|
|
@@ -228810,8 +229113,8 @@ var require_inspect_deployment_files = __commonJS({
|
|
|
228810
229113
|
for (const [sha, file] of filesMap) {
|
|
228811
229114
|
const size2 = file.data?.byteLength || file.data?.length || 0;
|
|
228812
229115
|
for (const name of file.names) {
|
|
228813
|
-
const pathName = isDirectory ? (0,
|
|
228814
|
-
const normalizedPath = pathName.split(
|
|
229116
|
+
const pathName = isDirectory ? (0, import_path34.relative)(workPath, name) : name.split(import_path34.sep).at(-1) || name;
|
|
229117
|
+
const normalizedPath = pathName.split(import_path34.sep).join("/");
|
|
228815
229118
|
const deploymentFile = {
|
|
228816
229119
|
path: normalizedPath,
|
|
228817
229120
|
size: size2,
|
|
@@ -228927,12 +229230,12 @@ var require_dist14 = __commonJS({
|
|
|
228927
229230
|
});
|
|
228928
229231
|
|
|
228929
229232
|
// src/targets/vercel.ts
|
|
228930
|
-
var
|
|
229233
|
+
var import_path24, import_client6, targetSecrets4, ORG_ID_ENV_VAR, PROJECT_ID_ENV_VAR, DEFAULT_DEPLOY_ARCHIVE_REGEX3, VercelTarget;
|
|
228931
229234
|
var init_vercel2 = __esm({
|
|
228932
229235
|
"src/targets/vercel.ts"() {
|
|
228933
229236
|
"use strict";
|
|
228934
229237
|
init_import_meta_url();
|
|
228935
|
-
|
|
229238
|
+
import_path24 = require("path");
|
|
228936
229239
|
import_client6 = __toESM(require_dist14());
|
|
228937
229240
|
init_env2();
|
|
228938
229241
|
init_errors2();
|
|
@@ -229020,7 +229323,7 @@ var init_vercel2 = __esm({
|
|
|
229020
229323
|
token: this.vercelConfig.VERCEL_TOKEN,
|
|
229021
229324
|
path: deployDir,
|
|
229022
229325
|
prebuilt: this.vercelConfig.prebuilt,
|
|
229023
|
-
vercelOutputDir: this.vercelConfig.prebuilt ? (0,
|
|
229326
|
+
vercelOutputDir: this.vercelConfig.prebuilt ? (0, import_path24.join)(deployDir, ".vercel", "output") : void 0,
|
|
229024
229327
|
teamId: this.vercelConfig.orgId,
|
|
229025
229328
|
skipAutoDetectionConfirmation: true
|
|
229026
229329
|
},
|
|
@@ -229071,7 +229374,7 @@ Details: ${JSON.stringify(
|
|
|
229071
229374
|
async (directory) => {
|
|
229072
229375
|
this.logger.info(`Extracting "${archivePath}" to "${directory}"...`);
|
|
229073
229376
|
await extractZipArchive(archivePath, directory);
|
|
229074
|
-
const deployDir = this.vercelConfig.workingDir ? (0,
|
|
229377
|
+
const deployDir = this.vercelConfig.workingDir ? (0, import_path24.join)(directory, this.vercelConfig.workingDir) : directory;
|
|
229075
229378
|
if (isDryRun()) {
|
|
229076
229379
|
logDryRun(`@vercel/client createDeployment (${deployDir})`);
|
|
229077
229380
|
return;
|
|
@@ -229125,6 +229428,7 @@ var init_targets = __esm({
|
|
|
229125
229428
|
init_awsLambdaLayer();
|
|
229126
229429
|
init_upm();
|
|
229127
229430
|
init_maven();
|
|
229431
|
+
init_mcpRegistry();
|
|
229128
229432
|
init_symbolCollector();
|
|
229129
229433
|
init_pubDev();
|
|
229130
229434
|
init_hex();
|
|
@@ -229149,6 +229453,7 @@ var init_targets = __esm({
|
|
|
229149
229453
|
"aws-lambda-layer": AwsLambdaLayerTarget,
|
|
229150
229454
|
upm: UpmTarget,
|
|
229151
229455
|
maven: MavenTarget,
|
|
229456
|
+
"mcp-registry": McpRegistryTarget,
|
|
229152
229457
|
"symbol-collector": SymbolCollector,
|
|
229153
229458
|
"pub-dev": PubDevTarget,
|
|
229154
229459
|
hex: HexTarget,
|
|
@@ -229218,11 +229523,11 @@ function getWorkspacePlaceholderResolver(workspaceName, workspaceDirectory) {
|
|
|
229218
229523
|
if (packageName !== void 0) {
|
|
229219
229524
|
return packageName;
|
|
229220
229525
|
}
|
|
229221
|
-
const packageJsonPath =
|
|
229526
|
+
const packageJsonPath = import_path25.default.posix.join(workspaceName, "package.json");
|
|
229222
229527
|
let name;
|
|
229223
229528
|
try {
|
|
229224
229529
|
name = JSON.parse(
|
|
229225
|
-
(0,
|
|
229530
|
+
(0, import_fs27.readFileSync)(import_path25.default.join(workspaceDirectory, packageJsonPath), "utf-8")
|
|
229226
229531
|
)?.name;
|
|
229227
229532
|
} catch (error3) {
|
|
229228
229533
|
throw new ConfigurationError(
|
|
@@ -229242,7 +229547,7 @@ function getWorkspacePlaceholderResolver(workspaceName, workspaceDirectory) {
|
|
|
229242
229547
|
case "workspace":
|
|
229243
229548
|
return workspaceName;
|
|
229244
229549
|
case "workspaceName":
|
|
229245
|
-
return
|
|
229550
|
+
return import_path25.default.posix.basename(workspaceName);
|
|
229246
229551
|
case "packageName":
|
|
229247
229552
|
return readPackageName(placeholder);
|
|
229248
229553
|
case "packageSimpleName":
|
|
@@ -229250,21 +229555,21 @@ function getWorkspacePlaceholderResolver(workspaceName, workspaceDirectory) {
|
|
|
229250
229555
|
}
|
|
229251
229556
|
};
|
|
229252
229557
|
}
|
|
229253
|
-
function expandWorkspacePlaceholders(value,
|
|
229558
|
+
function expandWorkspacePlaceholders(value, resolve11) {
|
|
229254
229559
|
if (typeof value === "string") {
|
|
229255
229560
|
return value.replace(
|
|
229256
229561
|
WORKSPACE_PLACEHOLDER_REGEX,
|
|
229257
|
-
(_match, placeholder) =>
|
|
229562
|
+
(_match, placeholder) => resolve11(placeholder)
|
|
229258
229563
|
);
|
|
229259
229564
|
}
|
|
229260
229565
|
if (Array.isArray(value)) {
|
|
229261
|
-
return value.map((item) => expandWorkspacePlaceholders(item,
|
|
229566
|
+
return value.map((item) => expandWorkspacePlaceholders(item, resolve11));
|
|
229262
229567
|
}
|
|
229263
229568
|
if (value !== null && typeof value === "object" && Object.getPrototypeOf(value) === Object.prototype) {
|
|
229264
229569
|
return Object.fromEntries(
|
|
229265
229570
|
Object.entries(value).map(([key, item]) => [
|
|
229266
229571
|
key,
|
|
229267
|
-
expandWorkspacePlaceholders(item,
|
|
229572
|
+
expandWorkspacePlaceholders(item, resolve11)
|
|
229268
229573
|
])
|
|
229269
229574
|
);
|
|
229270
229575
|
}
|
|
@@ -229316,8 +229621,8 @@ function getWorkspaceGlobMatches(workspaceGlob, workspaceDirectory) {
|
|
|
229316
229621
|
`Workspace glob "${workspaceGlob}" must remain inside the repository root.`
|
|
229317
229622
|
);
|
|
229318
229623
|
}
|
|
229319
|
-
const root =
|
|
229320
|
-
const realRoot = (0,
|
|
229624
|
+
const root = import_path25.default.resolve(workspaceDirectory);
|
|
229625
|
+
const realRoot = (0, import_fs27.realpathSync)(root);
|
|
229321
229626
|
return globSync(workspaceGlob, {
|
|
229322
229627
|
absolute: false,
|
|
229323
229628
|
cwd: root,
|
|
@@ -229325,30 +229630,30 @@ function getWorkspaceGlobMatches(workspaceGlob, workspaceDirectory) {
|
|
|
229325
229630
|
ignore: ["**/node_modules/**"],
|
|
229326
229631
|
posix: true
|
|
229327
229632
|
}).filter((match3) => {
|
|
229328
|
-
const resolvedMatch =
|
|
229633
|
+
const resolvedMatch = import_path25.default.resolve(root, match3);
|
|
229329
229634
|
let realMatch;
|
|
229330
229635
|
try {
|
|
229331
|
-
realMatch = (0,
|
|
229636
|
+
realMatch = (0, import_fs27.realpathSync)(resolvedMatch);
|
|
229332
229637
|
} catch (error3) {
|
|
229333
229638
|
if (error3.code === "ENOENT") {
|
|
229334
229639
|
return false;
|
|
229335
229640
|
}
|
|
229336
229641
|
throw error3;
|
|
229337
229642
|
}
|
|
229338
|
-
return isSafeWorkspacePath(match3) && (resolvedMatch === root || resolvedMatch.startsWith(`${root}${
|
|
229643
|
+
return isSafeWorkspacePath(match3) && (resolvedMatch === root || resolvedMatch.startsWith(`${root}${import_path25.default.sep}`)) && (realMatch === realRoot || realMatch.startsWith(`${realRoot}${import_path25.default.sep}`)) && (0, import_fs27.lstatSync)(resolvedMatch).isDirectory();
|
|
229339
229644
|
}).sort();
|
|
229340
229645
|
}
|
|
229341
229646
|
function isWorkspacePattern(name) {
|
|
229342
229647
|
return hasMagic(name, { magicalBraces: true });
|
|
229343
229648
|
}
|
|
229344
229649
|
function isSafeWorkspacePath(name) {
|
|
229345
|
-
return !
|
|
229650
|
+
return !import_path25.default.isAbsolute(name) && !name.includes("\\") && name.split("/").every(
|
|
229346
229651
|
(segment) => /^[A-Za-z0-9_.-]+$/.test(segment) && segment !== "" && segment !== "." && segment !== ".." && segment !== "__proto__" && !segment.startsWith("-")
|
|
229347
229652
|
);
|
|
229348
229653
|
}
|
|
229349
229654
|
function isSafeWorkspaceGlob2(name) {
|
|
229350
229655
|
const alternatives = expandBraceAlternatives2(name);
|
|
229351
|
-
return !
|
|
229656
|
+
return !import_path25.default.isAbsolute(name) && !name.includes("\\") && alternatives !== void 0 && alternatives.length > 0 && alternatives.every(
|
|
229352
229657
|
(expanded) => expanded.split("/").every(isSafeWorkspaceGlobSegment2)
|
|
229353
229658
|
);
|
|
229354
229659
|
}
|
|
@@ -229472,7 +229777,7 @@ function applyWorkspaceSelection(config, workspaceDirectory) {
|
|
|
229472
229777
|
);
|
|
229473
229778
|
}
|
|
229474
229779
|
function findConfigFile() {
|
|
229475
|
-
if (_configPathCache && (0,
|
|
229780
|
+
if (_configPathCache && (0, import_fs27.existsSync)(_configPathCache)) {
|
|
229476
229781
|
return _configPathCache;
|
|
229477
229782
|
}
|
|
229478
229783
|
_configPathCache = void 0;
|
|
@@ -229481,12 +229786,12 @@ function findConfigFile() {
|
|
|
229481
229786
|
let depth = 0;
|
|
229482
229787
|
let currentDir = cwd;
|
|
229483
229788
|
while (depth <= MAX_DEPTH) {
|
|
229484
|
-
const probePath =
|
|
229485
|
-
if ((0,
|
|
229789
|
+
const probePath = import_path25.default.join(currentDir, CONFIG_FILE_NAME);
|
|
229790
|
+
if ((0, import_fs27.existsSync)(probePath) && (0, import_fs27.lstatSync)(probePath).isFile()) {
|
|
229486
229791
|
_configPathCache = probePath;
|
|
229487
229792
|
return _configPathCache;
|
|
229488
229793
|
}
|
|
229489
|
-
const parentDir =
|
|
229794
|
+
const parentDir = import_path25.default.dirname(currentDir);
|
|
229490
229795
|
if (currentDir === parentDir) {
|
|
229491
229796
|
return void 0;
|
|
229492
229797
|
}
|
|
@@ -229510,7 +229815,7 @@ function getConfigFileDir() {
|
|
|
229510
229815
|
if (!configFilePath) {
|
|
229511
229816
|
return void 0;
|
|
229512
229817
|
}
|
|
229513
|
-
return
|
|
229818
|
+
return import_path25.default.dirname(configFilePath);
|
|
229514
229819
|
}
|
|
229515
229820
|
function formatIssues(issues, prefix = []) {
|
|
229516
229821
|
return issues.flatMap((issue) => {
|
|
@@ -229540,10 +229845,10 @@ function getConfiguration(clearCache = false) {
|
|
|
229540
229845
|
}
|
|
229541
229846
|
const configPath = getConfigFilePath();
|
|
229542
229847
|
logger.debug("Configuration file found: ", configPath);
|
|
229543
|
-
const rawConfig = load((0,
|
|
229848
|
+
const rawConfig = load((0, import_fs27.readFileSync)(configPath, "utf-8"));
|
|
229544
229849
|
const parsed = validateConfiguration(rawConfig);
|
|
229545
229850
|
checkMinimalConfigVersion(parsed);
|
|
229546
|
-
_configCache = applyWorkspaceSelection(parsed,
|
|
229851
|
+
_configCache = applyWorkspaceSelection(parsed, import_path25.default.dirname(configPath));
|
|
229547
229852
|
return _configCache;
|
|
229548
229853
|
}
|
|
229549
229854
|
function loadConfigurationFromString(configContent, workspaceDirectory = process.cwd()) {
|
|
@@ -229589,10 +229894,10 @@ function getUnownedPathsOwner() {
|
|
|
229589
229894
|
}
|
|
229590
229895
|
function loadUnselectedConfiguration() {
|
|
229591
229896
|
const configPath = getConfigFilePath();
|
|
229592
|
-
const rawConfig = load((0,
|
|
229897
|
+
const rawConfig = load((0, import_fs27.readFileSync)(configPath, "utf-8"));
|
|
229593
229898
|
const config = validateConfiguration(rawConfig);
|
|
229594
229899
|
checkMinimalConfigVersion(config);
|
|
229595
|
-
return { config, directory:
|
|
229900
|
+
return { config, directory: import_path25.default.dirname(configPath) };
|
|
229596
229901
|
}
|
|
229597
229902
|
function checkMinimalConfigVersion(config) {
|
|
229598
229903
|
const minVersionRaw = config.minVersion;
|
|
@@ -229743,13 +230048,13 @@ function getActiveWorkspaceDirectory() {
|
|
|
229743
230048
|
throw new ConfigurationError(`Invalid workspace path: "${workspace}"`);
|
|
229744
230049
|
}
|
|
229745
230050
|
const root = getConfigFileDir() || process.cwd();
|
|
229746
|
-
const directory =
|
|
229747
|
-
if (!(0,
|
|
230051
|
+
const directory = import_path25.default.resolve(root, workspace);
|
|
230052
|
+
if (!(0, import_fs27.existsSync)(directory) || !(0, import_fs27.lstatSync)(directory).isDirectory()) {
|
|
229748
230053
|
return void 0;
|
|
229749
230054
|
}
|
|
229750
|
-
const realRoot = (0,
|
|
229751
|
-
const realDirectory = (0,
|
|
229752
|
-
if (!realDirectory.startsWith(`${realRoot}${
|
|
230055
|
+
const realRoot = (0, import_fs27.realpathSync)(root);
|
|
230056
|
+
const realDirectory = (0, import_fs27.realpathSync)(directory);
|
|
230057
|
+
if (!realDirectory.startsWith(`${realRoot}${import_path25.default.sep}`)) {
|
|
229753
230058
|
throw new ConfigurationError(
|
|
229754
230059
|
`Workspace directory escapes the repository: "${workspace}"`
|
|
229755
230060
|
);
|
|
@@ -229759,11 +230064,11 @@ function getActiveWorkspaceDirectory() {
|
|
|
229759
230064
|
function getReleaseUnitDir() {
|
|
229760
230065
|
const root = getConfigFileDir() || process.cwd();
|
|
229761
230066
|
const workspaceDirectory = getActiveWorkspaceDirectory();
|
|
229762
|
-
return workspaceDirectory ?
|
|
230067
|
+
return workspaceDirectory ? import_path25.default.resolve(root, workspaceDirectory) : root;
|
|
229763
230068
|
}
|
|
229764
230069
|
function getDefaultChangelogFilePath() {
|
|
229765
230070
|
const workspaceDirectory = getActiveWorkspaceDirectory();
|
|
229766
|
-
return workspaceDirectory ?
|
|
230071
|
+
return workspaceDirectory ? import_path25.default.posix.join(workspaceDirectory, DEFAULT_CHANGELOG_FILE_PATH) : DEFAULT_CHANGELOG_FILE_PATH;
|
|
229767
230072
|
}
|
|
229768
230073
|
function getChangelogConfig() {
|
|
229769
230074
|
const config = getConfiguration();
|
|
@@ -229854,13 +230159,13 @@ async function expandWorkspaceTargets(targets) {
|
|
|
229854
230159
|
}
|
|
229855
230160
|
return expandedTargets;
|
|
229856
230161
|
}
|
|
229857
|
-
var
|
|
230162
|
+
var import_fs27, import_path25, import_git_url_parse, CONFIG_FILE_NAME, DEFAULT_RELEASE_BRANCH_NAME, _configPathCache, _configCache, WORKSPACES_MIN_VERSION, _activeWorkspaceName, WORKSPACE_PLACEHOLDERS, WORKSPACE_PLACEHOLDER_REGEX, AUTO_VERSION_MIN_VERSION, _globalGitHubConfigCache, DEFAULT_CHANGELOG_FILE_PATH;
|
|
229858
230163
|
var init_config2 = __esm({
|
|
229859
230164
|
"src/config.ts"() {
|
|
229860
230165
|
"use strict";
|
|
229861
230166
|
init_import_meta_url();
|
|
229862
|
-
|
|
229863
|
-
|
|
230167
|
+
import_fs27 = require("fs");
|
|
230168
|
+
import_path25 = __toESM(require("path"));
|
|
229864
230169
|
init_esm13();
|
|
229865
230170
|
init_js_yaml();
|
|
229866
230171
|
import_git_url_parse = __toESM(require_lib5());
|
|
@@ -229898,7 +230203,7 @@ var require_package7 = __commonJS({
|
|
|
229898
230203
|
"package.json"(exports2, module2) {
|
|
229899
230204
|
module2.exports = {
|
|
229900
230205
|
name: "@sentry/craft",
|
|
229901
|
-
version: "3.
|
|
230206
|
+
version: "3.5.0",
|
|
229902
230207
|
description: "The universal sentry workflow CLI",
|
|
229903
230208
|
main: "dist/craft",
|
|
229904
230209
|
repository: "https://github.com/getsentry/craft",
|
|
@@ -230105,7 +230410,7 @@ function getPackage() {
|
|
|
230105
230410
|
}
|
|
230106
230411
|
function getPackageVersion3() {
|
|
230107
230412
|
const { version: version2 } = getPackage();
|
|
230108
|
-
const buildInfo = "
|
|
230413
|
+
const buildInfo = "3f1f02d50b08b8c509a28d2cc2abf594e9a28011";
|
|
230109
230414
|
return buildInfo ? `${version2} (${buildInfo})` : version2;
|
|
230110
230415
|
}
|
|
230111
230416
|
function semVerToString(s8) {
|
|
@@ -232692,7 +232997,7 @@ var require_path_arg = __commonJS({
|
|
|
232692
232997
|
"node_modules/.pnpm/mkdirp@1.0.4/node_modules/mkdirp/lib/path-arg.js"(exports2, module2) {
|
|
232693
232998
|
init_import_meta_url();
|
|
232694
232999
|
var platform4 = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;
|
|
232695
|
-
var { resolve:
|
|
233000
|
+
var { resolve: resolve11, parse: parse15 } = require("path");
|
|
232696
233001
|
var pathArg = (path20) => {
|
|
232697
233002
|
if (/\0/.test(path20)) {
|
|
232698
233003
|
throw Object.assign(
|
|
@@ -232703,7 +233008,7 @@ var require_path_arg = __commonJS({
|
|
|
232703
233008
|
}
|
|
232704
233009
|
);
|
|
232705
233010
|
}
|
|
232706
|
-
path20 =
|
|
233011
|
+
path20 = resolve11(path20);
|
|
232707
233012
|
if (platform4 === "win32") {
|
|
232708
233013
|
const badWinChars = /[*|"<>?:]/;
|
|
232709
233014
|
const { root } = parse15(path20);
|
|
@@ -233702,30 +234007,30 @@ function ui2(opts) {
|
|
|
233702
234007
|
|
|
233703
234008
|
// node_modules/.pnpm/escalade@3.2.0/node_modules/escalade/sync/index.mjs
|
|
233704
234009
|
init_import_meta_url();
|
|
233705
|
-
var
|
|
233706
|
-
var
|
|
234010
|
+
var import_path26 = require("path");
|
|
234011
|
+
var import_fs28 = require("fs");
|
|
233707
234012
|
function sync_default(start, callback) {
|
|
233708
|
-
let dir = (0,
|
|
233709
|
-
let tmp2, stats = (0,
|
|
234013
|
+
let dir = (0, import_path26.resolve)(".", start);
|
|
234014
|
+
let tmp2, stats = (0, import_fs28.statSync)(dir);
|
|
233710
234015
|
if (!stats.isDirectory()) {
|
|
233711
|
-
dir = (0,
|
|
234016
|
+
dir = (0, import_path26.dirname)(dir);
|
|
233712
234017
|
}
|
|
233713
234018
|
while (true) {
|
|
233714
|
-
tmp2 = callback(dir, (0,
|
|
233715
|
-
if (tmp2) return (0,
|
|
233716
|
-
dir = (0,
|
|
234019
|
+
tmp2 = callback(dir, (0, import_fs28.readdirSync)(dir));
|
|
234020
|
+
if (tmp2) return (0, import_path26.resolve)(dir, tmp2);
|
|
234021
|
+
dir = (0, import_path26.dirname)(tmp2 = dir);
|
|
233717
234022
|
if (tmp2 === dir) break;
|
|
233718
234023
|
}
|
|
233719
234024
|
}
|
|
233720
234025
|
|
|
233721
234026
|
// node_modules/.pnpm/yargs@18.0.0/node_modules/yargs/lib/platform-shims/esm.mjs
|
|
233722
|
-
var
|
|
234027
|
+
var import_util26 = require("util");
|
|
233723
234028
|
var import_url12 = require("url");
|
|
233724
234029
|
|
|
233725
234030
|
// node_modules/.pnpm/yargs-parser@22.0.0/node_modules/yargs-parser/build/lib/index.js
|
|
233726
234031
|
init_import_meta_url();
|
|
233727
|
-
var
|
|
233728
|
-
var
|
|
234032
|
+
var import_util24 = require("util");
|
|
234033
|
+
var import_path27 = require("path");
|
|
233729
234034
|
|
|
233730
234035
|
// node_modules/.pnpm/yargs-parser@22.0.0/node_modules/yargs-parser/build/lib/string-utils.js
|
|
233731
234036
|
init_import_meta_url();
|
|
@@ -234669,7 +234974,7 @@ function stripQuotes(val) {
|
|
|
234669
234974
|
}
|
|
234670
234975
|
|
|
234671
234976
|
// node_modules/.pnpm/yargs-parser@22.0.0/node_modules/yargs-parser/build/lib/index.js
|
|
234672
|
-
var
|
|
234977
|
+
var import_fs29 = require("fs");
|
|
234673
234978
|
var import_node_module4 = require("node:module");
|
|
234674
234979
|
var _a5;
|
|
234675
234980
|
var _b;
|
|
@@ -234689,14 +234994,14 @@ var parser = new YargsParser({
|
|
|
234689
234994
|
env: () => {
|
|
234690
234995
|
return env2;
|
|
234691
234996
|
},
|
|
234692
|
-
format:
|
|
234693
|
-
normalize:
|
|
234694
|
-
resolve:
|
|
234997
|
+
format: import_util24.format,
|
|
234998
|
+
normalize: import_path27.normalize,
|
|
234999
|
+
resolve: import_path27.resolve,
|
|
234695
235000
|
require: (path20) => {
|
|
234696
235001
|
if (typeof require2 !== "undefined") {
|
|
234697
235002
|
return require2(path20);
|
|
234698
235003
|
} else if (path20.match(/\.json$/)) {
|
|
234699
|
-
return JSON.parse((0,
|
|
235004
|
+
return JSON.parse((0, import_fs29.readFileSync)(path20, "utf8"));
|
|
234700
235005
|
} else {
|
|
234701
235006
|
throw Error("only .json config files are supported in ESM");
|
|
234702
235007
|
}
|
|
@@ -234715,7 +235020,7 @@ yargsParser.looksLikeNumber = looksLikeNumber;
|
|
|
234715
235020
|
var lib_default = yargsParser;
|
|
234716
235021
|
|
|
234717
235022
|
// node_modules/.pnpm/yargs@18.0.0/node_modules/yargs/lib/platform-shims/esm.mjs
|
|
234718
|
-
var
|
|
235023
|
+
var import_path29 = require("path");
|
|
234719
235024
|
|
|
234720
235025
|
// node_modules/.pnpm/yargs@18.0.0/node_modules/yargs/build/lib/utils/process-argv.js
|
|
234721
235026
|
init_import_meta_url();
|
|
@@ -234739,19 +235044,19 @@ init_import_meta_url();
|
|
|
234739
235044
|
|
|
234740
235045
|
// node_modules/.pnpm/y18n@5.0.8/node_modules/y18n/build/lib/platform-shims/node.js
|
|
234741
235046
|
init_import_meta_url();
|
|
234742
|
-
var
|
|
234743
|
-
var
|
|
234744
|
-
var
|
|
235047
|
+
var import_fs30 = require("fs");
|
|
235048
|
+
var import_util25 = require("util");
|
|
235049
|
+
var import_path28 = require("path");
|
|
234745
235050
|
var node_default = {
|
|
234746
235051
|
fs: {
|
|
234747
|
-
readFileSync:
|
|
234748
|
-
writeFile:
|
|
235052
|
+
readFileSync: import_fs30.readFileSync,
|
|
235053
|
+
writeFile: import_fs30.writeFile
|
|
234749
235054
|
},
|
|
234750
|
-
format:
|
|
234751
|
-
resolve:
|
|
235055
|
+
format: import_util25.format,
|
|
235056
|
+
resolve: import_path28.resolve,
|
|
234752
235057
|
exists: (file) => {
|
|
234753
235058
|
try {
|
|
234754
|
-
return (0,
|
|
235059
|
+
return (0, import_fs30.statSync)(file).isFile();
|
|
234755
235060
|
} catch (err) {
|
|
234756
235061
|
return false;
|
|
234757
235062
|
}
|
|
@@ -234943,17 +235248,17 @@ var esm_default = {
|
|
|
234943
235248
|
getEnv: (key) => {
|
|
234944
235249
|
return process.env[key];
|
|
234945
235250
|
},
|
|
234946
|
-
inspect:
|
|
235251
|
+
inspect: import_util26.inspect,
|
|
234947
235252
|
getProcessArgvBin,
|
|
234948
235253
|
mainFilename: mainFilename || process.cwd(),
|
|
234949
235254
|
Parser: lib_default,
|
|
234950
235255
|
path: {
|
|
234951
|
-
basename:
|
|
234952
|
-
dirname:
|
|
234953
|
-
extname:
|
|
234954
|
-
relative:
|
|
234955
|
-
resolve:
|
|
234956
|
-
join:
|
|
235256
|
+
basename: import_path29.basename,
|
|
235257
|
+
dirname: import_path29.dirname,
|
|
235258
|
+
extname: import_path29.extname,
|
|
235259
|
+
relative: import_path29.relative,
|
|
235260
|
+
resolve: import_path29.resolve,
|
|
235261
|
+
join: import_path29.join
|
|
234957
235262
|
},
|
|
234958
235263
|
process: {
|
|
234959
235264
|
argv: () => process.argv,
|
|
@@ -234975,7 +235280,7 @@ var esm_default = {
|
|
|
234975
235280
|
},
|
|
234976
235281
|
stringWidth,
|
|
234977
235282
|
y18n: y18n_default({
|
|
234978
|
-
directory: (0,
|
|
235283
|
+
directory: (0, import_path29.resolve)(__dirname2, "../../../locales"),
|
|
234979
235284
|
updateFiles: false
|
|
234980
235285
|
})
|
|
234981
235286
|
};
|
|
@@ -237276,12 +237581,12 @@ var YargsInstance = class {
|
|
|
237276
237581
|
async getCompletion(args, done) {
|
|
237277
237582
|
argsert("<array> [function]", [args, done], arguments.length);
|
|
237278
237583
|
if (!done) {
|
|
237279
|
-
return new Promise((
|
|
237584
|
+
return new Promise((resolve11, reject) => {
|
|
237280
237585
|
__classPrivateFieldGet6(this, _YargsInstance_completion, "f").getCompletion(args, (err, completions) => {
|
|
237281
237586
|
if (err)
|
|
237282
237587
|
reject(err);
|
|
237283
237588
|
else
|
|
237284
|
-
|
|
237589
|
+
resolve11(completions);
|
|
237285
237590
|
});
|
|
237286
237591
|
});
|
|
237287
237592
|
} else {
|
|
@@ -238340,15 +238645,15 @@ __export(prepare_exports, {
|
|
|
238340
238645
|
aliases: () => aliases2,
|
|
238341
238646
|
builder: () => builder2,
|
|
238342
238647
|
checkVersionOrPart: () => checkVersionOrPart,
|
|
238343
|
-
command: () =>
|
|
238344
|
-
description: () =>
|
|
238345
|
-
handler: () =>
|
|
238648
|
+
command: () => command4,
|
|
238649
|
+
description: () => description3,
|
|
238650
|
+
handler: () => handler4,
|
|
238346
238651
|
prepareMain: () => prepareMain,
|
|
238347
238652
|
runPreReleaseCommand: () => runPreReleaseCommand
|
|
238348
238653
|
});
|
|
238349
238654
|
init_import_meta_url();
|
|
238350
|
-
var
|
|
238351
|
-
var
|
|
238655
|
+
var import_fs32 = require("fs");
|
|
238656
|
+
var import_path32 = require("path");
|
|
238352
238657
|
var shellQuote2 = __toESM(require_shell_quote());
|
|
238353
238658
|
init_dryRun();
|
|
238354
238659
|
init_config2();
|
|
@@ -238540,9 +238845,9 @@ __export(publish_exports, {
|
|
|
238540
238845
|
});
|
|
238541
238846
|
init_import_meta_url();
|
|
238542
238847
|
var import_chalk = __toESM(require_source());
|
|
238543
|
-
var
|
|
238848
|
+
var import_fs31 = require("fs");
|
|
238544
238849
|
init_dryRun();
|
|
238545
|
-
var
|
|
238850
|
+
var import_path31 = require("path");
|
|
238546
238851
|
var shellQuote = __toESM(require_shell_quote());
|
|
238547
238852
|
var import_string_length = __toESM(require_string_length());
|
|
238548
238853
|
init_config2();
|
|
@@ -238564,14 +238869,14 @@ init_tracing2();
|
|
|
238564
238869
|
init_import_meta_url();
|
|
238565
238870
|
var import_crypto7 = require("crypto");
|
|
238566
238871
|
var import_os4 = require("os");
|
|
238567
|
-
var
|
|
238872
|
+
var import_path30 = require("path");
|
|
238568
238873
|
var STATE_DIR_NAME = "craft";
|
|
238569
238874
|
function getCraftStateDir() {
|
|
238570
238875
|
const xdgStateHome = process.env.XDG_STATE_HOME;
|
|
238571
238876
|
if (xdgStateHome && xdgStateHome.length > 0) {
|
|
238572
|
-
return (0,
|
|
238877
|
+
return (0, import_path30.join)(xdgStateHome, STATE_DIR_NAME);
|
|
238573
238878
|
}
|
|
238574
|
-
return (0,
|
|
238879
|
+
return (0, import_path30.join)((0, import_os4.homedir)(), ".local", "state", STATE_DIR_NAME);
|
|
238575
238880
|
}
|
|
238576
238881
|
function sanitiseForFilename(raw) {
|
|
238577
238882
|
return raw.toLowerCase().replace(/[^a-z0-9._-]+/g, "_").replace(/^_+|_+$/g, "");
|
|
@@ -238595,14 +238900,14 @@ function getPublishStateFilename(version2, githubConfig, cwd = process.cwd(), wo
|
|
|
238595
238900
|
return `publish-state-${cwdDigest}-${workspacePrefix}${safeVersion}.json`;
|
|
238596
238901
|
}
|
|
238597
238902
|
function getPublishStatePath(version2, githubConfig, cwd = process.cwd(), workspace) {
|
|
238598
|
-
return (0,
|
|
238903
|
+
return (0, import_path30.join)(
|
|
238599
238904
|
getCraftStateDir(),
|
|
238600
238905
|
getPublishStateFilename(version2, githubConfig, cwd, workspace)
|
|
238601
238906
|
);
|
|
238602
238907
|
}
|
|
238603
238908
|
|
|
238604
238909
|
// src/commands/publish.ts
|
|
238605
|
-
var DEFAULT_POST_RELEASE_SCRIPT_PATH = (0,
|
|
238910
|
+
var DEFAULT_POST_RELEASE_SCRIPT_PATH = (0, import_path31.join)("scripts", "post-release.sh");
|
|
238606
238911
|
var command2 = ["publish NEW-VERSION"];
|
|
238607
238912
|
var aliases = ["pp", "publish"];
|
|
238608
238913
|
var description = "\u{1F6EB} Publish artifacts";
|
|
@@ -239073,16 +239378,16 @@ Original error: ${err instanceof Error ? err.message : String(err)}`;
|
|
|
239073
239378
|
logger.info(`Looking for publish state file for ${newVersion}...`);
|
|
239074
239379
|
logger.debug(`Publish state file path: ${publishStateFile}`);
|
|
239075
239380
|
const legacyStateFile = `.craft-publish-${newVersion}.json`;
|
|
239076
|
-
if ((0,
|
|
239381
|
+
if ((0, import_fs31.existsSync)(legacyStateFile)) {
|
|
239077
239382
|
logger.warn(
|
|
239078
239383
|
`Found legacy publish state file at "${legacyStateFile}" in the project directory. This file is no longer read for security reasons. Craft now stores publish state at "${publishStateFile}". If you were pre-seeding published targets, update your workflow to write to the new location.`
|
|
239079
239384
|
);
|
|
239080
239385
|
}
|
|
239081
|
-
const earlierStateExists = (0,
|
|
239386
|
+
const earlierStateExists = (0, import_fs31.existsSync)(publishStateFile);
|
|
239082
239387
|
let publishState;
|
|
239083
239388
|
if (earlierStateExists) {
|
|
239084
239389
|
logger.info(`Found publish state file, resuming from there...`);
|
|
239085
|
-
publishState = JSON.parse((0,
|
|
239390
|
+
publishState = JSON.parse((0, import_fs31.readFileSync)(publishStateFile).toString());
|
|
239086
239391
|
targetsToPublish = new Set(targetConfigList.map(BaseTarget.getId));
|
|
239087
239392
|
} else {
|
|
239088
239393
|
publishState = { published: /* @__PURE__ */ Object.create(null) };
|
|
@@ -239110,7 +239415,7 @@ Original error: ${err instanceof Error ? err.message : String(err)}`;
|
|
|
239110
239415
|
await promptConfirmation();
|
|
239111
239416
|
await withTempDir(async (downloadDirectory) => {
|
|
239112
239417
|
artifactProvider.setDownloadDirectory(downloadDirectory);
|
|
239113
|
-
(0,
|
|
239418
|
+
(0, import_fs31.mkdirSync)((0, import_path31.dirname)(publishStateFile), { recursive: true });
|
|
239114
239419
|
for (const target of targetList) {
|
|
239115
239420
|
await publishToTarget(target, newVersion, revision);
|
|
239116
239421
|
publishState.published[BaseTarget.getId(target.config)] = true;
|
|
@@ -239251,11 +239556,37 @@ var handler2 = async (args) => {
|
|
|
239251
239556
|
}
|
|
239252
239557
|
};
|
|
239253
239558
|
|
|
239559
|
+
// src/commands/targets.ts
|
|
239560
|
+
var targets_exports2 = {};
|
|
239561
|
+
__export(targets_exports2, {
|
|
239562
|
+
command: () => command3,
|
|
239563
|
+
description: () => description2,
|
|
239564
|
+
getTargetIds: () => getTargetIds,
|
|
239565
|
+
handler: () => handler3
|
|
239566
|
+
});
|
|
239567
|
+
init_import_meta_url();
|
|
239568
|
+
init_config2();
|
|
239569
|
+
init_strings();
|
|
239570
|
+
init_targets();
|
|
239571
|
+
init_base5();
|
|
239572
|
+
var command3 = ["targets"];
|
|
239573
|
+
var description2 = "List defined targets as JSON array";
|
|
239574
|
+
async function getTargetIds() {
|
|
239575
|
+
const definedTargets = await expandWorkspaceTargets(
|
|
239576
|
+
getConfiguration().targets || []
|
|
239577
|
+
);
|
|
239578
|
+
const possibleTargetNames = new Set(getAllTargetNames());
|
|
239579
|
+
return definedTargets.filter((target) => target.name && possibleTargetNames.has(target.name)).map(BaseTarget.getId);
|
|
239580
|
+
}
|
|
239581
|
+
async function handler3() {
|
|
239582
|
+
console.log(formatJson(await getTargetIds()));
|
|
239583
|
+
}
|
|
239584
|
+
|
|
239254
239585
|
// src/commands/prepare.ts
|
|
239255
|
-
var
|
|
239586
|
+
var command4 = ["prepare [NEW-VERSION]"];
|
|
239256
239587
|
var aliases2 = ["p", "prerelease", "prepublish", "prepare", "release"];
|
|
239257
|
-
var
|
|
239258
|
-
var DEFAULT_BUMP_VERSION_PATH = (0,
|
|
239588
|
+
var description3 = "\u{1F6A2} Prepare a new release branch";
|
|
239589
|
+
var DEFAULT_BUMP_VERSION_PATH = (0, import_path32.join)("scripts", "bump-version.sh");
|
|
239259
239590
|
var AUTO_VERSION_MIN_VERSION2 = "2.14.0";
|
|
239260
239591
|
var AUTO_BUMP_MIN_VERSION = "2.21.0";
|
|
239261
239592
|
var builder2 = (yargs) => yargs.positional("NEW-VERSION", {
|
|
@@ -239502,12 +239833,12 @@ async function prepareChangelog(git, oldVersion, newVersion, changelogPolicy = "
|
|
|
239502
239833
|
}
|
|
239503
239834
|
logger.info("Checking the changelog...");
|
|
239504
239835
|
logger.debug(`Changelog policy: "${changelogPolicy}".`);
|
|
239505
|
-
const relativePath = (0,
|
|
239836
|
+
const relativePath = (0, import_path32.relative)("", changelogPath);
|
|
239506
239837
|
logger.debug(`Changelog path: ${relativePath}`);
|
|
239507
239838
|
if (relativePath.startsWith(".")) {
|
|
239508
239839
|
throw new ConfigurationError(`Invalid changelog path: "${changelogPath}"`);
|
|
239509
239840
|
}
|
|
239510
|
-
if (!(0,
|
|
239841
|
+
if (!(0, import_fs32.existsSync)(relativePath)) {
|
|
239511
239842
|
if (changelogPolicy === "auto" /* Auto */) {
|
|
239512
239843
|
logger.info(`Creating changelog file: ${relativePath}`);
|
|
239513
239844
|
await safeFs.writeFile(relativePath, "# Changelog\n");
|
|
@@ -239517,7 +239848,7 @@ async function prepareChangelog(git, oldVersion, newVersion, changelogPolicy = "
|
|
|
239517
239848
|
);
|
|
239518
239849
|
}
|
|
239519
239850
|
}
|
|
239520
|
-
let changelogString = (await
|
|
239851
|
+
let changelogString = (await import_fs32.promises.readFile(relativePath)).toString();
|
|
239521
239852
|
let changeset = findChangeset(
|
|
239522
239853
|
changelogString,
|
|
239523
239854
|
newVersion,
|
|
@@ -239707,7 +240038,7 @@ async function prepareMain(argv) {
|
|
|
239707
240038
|
changelogPath
|
|
239708
240039
|
);
|
|
239709
240040
|
if (changelogBody) {
|
|
239710
|
-
const resolvedChangelogPath = (0,
|
|
240041
|
+
const resolvedChangelogPath = (0, import_path32.relative)("", changelogPath);
|
|
239711
240042
|
await git.add(resolvedChangelogPath);
|
|
239712
240043
|
}
|
|
239713
240044
|
const preReleaseCommandRan = await runPreReleaseCommand({
|
|
@@ -239719,11 +240050,13 @@ async function prepareMain(argv) {
|
|
|
239719
240050
|
});
|
|
239720
240051
|
await commitChanges(git, newVersion, preReleaseCommandRan);
|
|
239721
240052
|
await isolation.showDiff();
|
|
240053
|
+
const targetIds = await getTargetIds();
|
|
239722
240054
|
await pushReleaseBranch(git, branchName, argv.remote, !argv.noPush);
|
|
239723
240055
|
const releaseSha = await git.revparse(["HEAD"]);
|
|
239724
240056
|
setGitHubActionsOutput("branch", branchName);
|
|
239725
240057
|
setGitHubActionsOutput("sha", releaseSha);
|
|
239726
240058
|
setGitHubActionsOutput("previous_tag", oldVersion || "");
|
|
240059
|
+
setGitHubActionsOutput("targets", JSON.stringify(targetIds));
|
|
239727
240060
|
if (changelogBody) {
|
|
239728
240061
|
const isCalVer = argv.newVersion === "calver" || getVersioningPolicy() === "calver" /* CalVer */;
|
|
239729
240062
|
const issueChangelog = isCalVer ? disableChangelogMentions(changelogBody) : changelogBody;
|
|
@@ -239763,7 +240096,7 @@ async function prepareMain(argv) {
|
|
|
239763
240096
|
await isolation.cleanup();
|
|
239764
240097
|
}
|
|
239765
240098
|
}
|
|
239766
|
-
var
|
|
240099
|
+
var handler4 = async (args) => {
|
|
239767
240100
|
try {
|
|
239768
240101
|
return await withTracing(prepareMain, {
|
|
239769
240102
|
name: "craft.prepare",
|
|
@@ -239774,28 +240107,6 @@ var handler3 = async (args) => {
|
|
|
239774
240107
|
}
|
|
239775
240108
|
};
|
|
239776
240109
|
|
|
239777
|
-
// src/commands/targets.ts
|
|
239778
|
-
var targets_exports2 = {};
|
|
239779
|
-
__export(targets_exports2, {
|
|
239780
|
-
command: () => command4,
|
|
239781
|
-
description: () => description3,
|
|
239782
|
-
handler: () => handler4
|
|
239783
|
-
});
|
|
239784
|
-
init_import_meta_url();
|
|
239785
|
-
init_config2();
|
|
239786
|
-
init_strings();
|
|
239787
|
-
init_targets();
|
|
239788
|
-
init_base5();
|
|
239789
|
-
var command4 = ["targets"];
|
|
239790
|
-
var description3 = "List defined targets as JSON array";
|
|
239791
|
-
async function handler4() {
|
|
239792
|
-
let definedTargets = getConfiguration().targets || [];
|
|
239793
|
-
definedTargets = await expandWorkspaceTargets(definedTargets);
|
|
239794
|
-
const possibleTargetNames = new Set(getAllTargetNames());
|
|
239795
|
-
const allowedTargetNames = definedTargets.filter((target) => target.name && possibleTargetNames.has(target.name)).map(BaseTarget.getId);
|
|
239796
|
-
console.log(formatJson(allowedTargetNames));
|
|
239797
|
-
}
|
|
239798
|
-
|
|
239799
240110
|
// src/commands/config.ts
|
|
239800
240111
|
var config_exports = {};
|
|
239801
240112
|
__export(config_exports, {
|
|
@@ -239841,8 +240152,8 @@ init_import_meta_url();
|
|
|
239841
240152
|
init_logger2();
|
|
239842
240153
|
init_config2();
|
|
239843
240154
|
init_errors2();
|
|
239844
|
-
var
|
|
239845
|
-
var
|
|
240155
|
+
var import_path33 = require("path");
|
|
240156
|
+
var import_fs33 = require("fs");
|
|
239846
240157
|
init_none();
|
|
239847
240158
|
var mkdirp = require_mkdirp2();
|
|
239848
240159
|
var command6 = ["download [NAME..]"];
|
|
@@ -239864,9 +240175,9 @@ var builder3 = (yargs) => yargs.positional("NAME", {
|
|
|
239864
240175
|
});
|
|
239865
240176
|
async function prepareOutputDirectory(argv) {
|
|
239866
240177
|
if (argv.directory) {
|
|
239867
|
-
const fullPath = (0,
|
|
239868
|
-
if ((0,
|
|
239869
|
-
if ((0,
|
|
240178
|
+
const fullPath = (0, import_path33.resolve)(argv.directory);
|
|
240179
|
+
if ((0, import_fs33.existsSync)(fullPath)) {
|
|
240180
|
+
if ((0, import_fs33.lstatSync)(fullPath).isDirectory()) {
|
|
239870
240181
|
return fullPath;
|
|
239871
240182
|
} else {
|
|
239872
240183
|
throw new ConfigurationError(`Not a directory: ${fullPath}`);
|
|
@@ -239877,7 +240188,7 @@ async function prepareOutputDirectory(argv) {
|
|
|
239877
240188
|
return fullPath;
|
|
239878
240189
|
}
|
|
239879
240190
|
} else {
|
|
239880
|
-
return (0,
|
|
240191
|
+
return (0, import_path33.resolve)(process.cwd());
|
|
239881
240192
|
}
|
|
239882
240193
|
}
|
|
239883
240194
|
async function handlerMain(argv) {
|