@modern-js/repo-generator 0.0.0-next-20240221082844 → 0.0.0-next-20240221105230
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/index.js +205 -291
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -18187,9 +18187,9 @@ var require_src3 = __commonJS({
|
|
|
18187
18187
|
}
|
|
18188
18188
|
});
|
|
18189
18189
|
|
|
18190
|
-
// ../../../../node_modules/.pnpm/follow-redirects@1.15.
|
|
18190
|
+
// ../../../../node_modules/.pnpm/follow-redirects@1.15.1/node_modules/follow-redirects/debug.js
|
|
18191
18191
|
var require_debug = __commonJS({
|
|
18192
|
-
"../../../../node_modules/.pnpm/follow-redirects@1.15.
|
|
18192
|
+
"../../../../node_modules/.pnpm/follow-redirects@1.15.1/node_modules/follow-redirects/debug.js"(exports, module2) {
|
|
18193
18193
|
"use strict";
|
|
18194
18194
|
var debug;
|
|
18195
18195
|
module2.exports = function() {
|
|
@@ -18208,9 +18208,9 @@ var require_debug = __commonJS({
|
|
|
18208
18208
|
}
|
|
18209
18209
|
});
|
|
18210
18210
|
|
|
18211
|
-
// ../../../../node_modules/.pnpm/follow-redirects@1.15.
|
|
18211
|
+
// ../../../../node_modules/.pnpm/follow-redirects@1.15.1/node_modules/follow-redirects/index.js
|
|
18212
18212
|
var require_follow_redirects = __commonJS({
|
|
18213
|
-
"../../../../node_modules/.pnpm/follow-redirects@1.15.
|
|
18213
|
+
"../../../../node_modules/.pnpm/follow-redirects@1.15.1/node_modules/follow-redirects/index.js"(exports, module2) {
|
|
18214
18214
|
"use strict";
|
|
18215
18215
|
var url2 = require("url");
|
|
18216
18216
|
var URL2 = url2.URL;
|
|
@@ -18219,25 +18219,6 @@ var require_follow_redirects = __commonJS({
|
|
|
18219
18219
|
var Writable = require("stream").Writable;
|
|
18220
18220
|
var assert = require("assert");
|
|
18221
18221
|
var debug = require_debug();
|
|
18222
|
-
var useNativeURL = false;
|
|
18223
|
-
try {
|
|
18224
|
-
assert(new URL2());
|
|
18225
|
-
} catch (error) {
|
|
18226
|
-
useNativeURL = error.code === "ERR_INVALID_URL";
|
|
18227
|
-
}
|
|
18228
|
-
var preservedUrlFields = [
|
|
18229
|
-
"auth",
|
|
18230
|
-
"host",
|
|
18231
|
-
"hostname",
|
|
18232
|
-
"href",
|
|
18233
|
-
"path",
|
|
18234
|
-
"pathname",
|
|
18235
|
-
"port",
|
|
18236
|
-
"protocol",
|
|
18237
|
-
"query",
|
|
18238
|
-
"search",
|
|
18239
|
-
"hash"
|
|
18240
|
-
];
|
|
18241
18222
|
var events = ["abort", "aborted", "connect", "error", "socket", "timeout"];
|
|
18242
18223
|
var eventHandlers = /* @__PURE__ */ Object.create(null);
|
|
18243
18224
|
events.forEach(function(event) {
|
|
@@ -18245,19 +18226,13 @@ var require_follow_redirects = __commonJS({
|
|
|
18245
18226
|
this._redirectable.emit(event, arg1, arg2, arg3);
|
|
18246
18227
|
};
|
|
18247
18228
|
});
|
|
18248
|
-
var InvalidUrlError = createErrorType(
|
|
18249
|
-
"ERR_INVALID_URL",
|
|
18250
|
-
"Invalid URL",
|
|
18251
|
-
TypeError
|
|
18252
|
-
);
|
|
18253
18229
|
var RedirectionError = createErrorType(
|
|
18254
18230
|
"ERR_FR_REDIRECTION_FAILURE",
|
|
18255
18231
|
"Redirected request failed"
|
|
18256
18232
|
);
|
|
18257
18233
|
var TooManyRedirectsError = createErrorType(
|
|
18258
18234
|
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
18259
|
-
"Maximum number of redirects exceeded"
|
|
18260
|
-
RedirectionError
|
|
18235
|
+
"Maximum number of redirects exceeded"
|
|
18261
18236
|
);
|
|
18262
18237
|
var MaxBodyLengthExceededError = createErrorType(
|
|
18263
18238
|
"ERR_FR_MAX_BODY_LENGTH_EXCEEDED",
|
|
@@ -18267,7 +18242,6 @@ var require_follow_redirects = __commonJS({
|
|
|
18267
18242
|
"ERR_STREAM_WRITE_AFTER_END",
|
|
18268
18243
|
"write after end"
|
|
18269
18244
|
);
|
|
18270
|
-
var destroy2 = Writable.prototype.destroy || noop2;
|
|
18271
18245
|
function RedirectableRequest(options, responseCallback) {
|
|
18272
18246
|
Writable.call(this);
|
|
18273
18247
|
this._sanitizeOptions(options);
|
|
@@ -18283,33 +18257,23 @@ var require_follow_redirects = __commonJS({
|
|
|
18283
18257
|
}
|
|
18284
18258
|
var self3 = this;
|
|
18285
18259
|
this._onNativeResponse = function(response) {
|
|
18286
|
-
|
|
18287
|
-
self3._processResponse(response);
|
|
18288
|
-
} catch (cause) {
|
|
18289
|
-
self3.emit("error", cause instanceof RedirectionError ? cause : new RedirectionError({ cause }));
|
|
18290
|
-
}
|
|
18260
|
+
self3._processResponse(response);
|
|
18291
18261
|
};
|
|
18292
18262
|
this._performRequest();
|
|
18293
18263
|
}
|
|
18294
18264
|
RedirectableRequest.prototype = Object.create(Writable.prototype);
|
|
18295
18265
|
RedirectableRequest.prototype.abort = function() {
|
|
18296
|
-
|
|
18297
|
-
this._currentRequest.abort();
|
|
18266
|
+
abortRequest(this._currentRequest);
|
|
18298
18267
|
this.emit("abort");
|
|
18299
18268
|
};
|
|
18300
|
-
RedirectableRequest.prototype.destroy = function(error) {
|
|
18301
|
-
destroyRequest(this._currentRequest, error);
|
|
18302
|
-
destroy2.call(this, error);
|
|
18303
|
-
return this;
|
|
18304
|
-
};
|
|
18305
18269
|
RedirectableRequest.prototype.write = function(data, encoding, callback) {
|
|
18306
18270
|
if (this._ending) {
|
|
18307
18271
|
throw new WriteAfterEndError();
|
|
18308
18272
|
}
|
|
18309
|
-
if (!
|
|
18273
|
+
if (!(typeof data === "string" || typeof data === "object" && "length" in data)) {
|
|
18310
18274
|
throw new TypeError("data should be a string, Buffer or Uint8Array");
|
|
18311
18275
|
}
|
|
18312
|
-
if (
|
|
18276
|
+
if (typeof encoding === "function") {
|
|
18313
18277
|
callback = encoding;
|
|
18314
18278
|
encoding = null;
|
|
18315
18279
|
}
|
|
@@ -18329,10 +18293,10 @@ var require_follow_redirects = __commonJS({
|
|
|
18329
18293
|
}
|
|
18330
18294
|
};
|
|
18331
18295
|
RedirectableRequest.prototype.end = function(data, encoding, callback) {
|
|
18332
|
-
if (
|
|
18296
|
+
if (typeof data === "function") {
|
|
18333
18297
|
callback = data;
|
|
18334
18298
|
data = encoding = null;
|
|
18335
|
-
} else if (
|
|
18299
|
+
} else if (typeof encoding === "function") {
|
|
18336
18300
|
callback = encoding;
|
|
18337
18301
|
encoding = null;
|
|
18338
18302
|
}
|
|
@@ -18382,7 +18346,6 @@ var require_follow_redirects = __commonJS({
|
|
|
18382
18346
|
self3.removeListener("abort", clearTimer);
|
|
18383
18347
|
self3.removeListener("error", clearTimer);
|
|
18384
18348
|
self3.removeListener("response", clearTimer);
|
|
18385
|
-
self3.removeListener("close", clearTimer);
|
|
18386
18349
|
if (callback) {
|
|
18387
18350
|
self3.removeListener("timeout", callback);
|
|
18388
18351
|
}
|
|
@@ -18402,7 +18365,6 @@ var require_follow_redirects = __commonJS({
|
|
|
18402
18365
|
this.on("abort", clearTimer);
|
|
18403
18366
|
this.on("error", clearTimer);
|
|
18404
18367
|
this.on("response", clearTimer);
|
|
18405
|
-
this.on("close", clearTimer);
|
|
18406
18368
|
return this;
|
|
18407
18369
|
};
|
|
18408
18370
|
[
|
|
@@ -18446,7 +18408,8 @@ var require_follow_redirects = __commonJS({
|
|
|
18446
18408
|
var protocol = this._options.protocol;
|
|
18447
18409
|
var nativeProtocol = this._options.nativeProtocols[protocol];
|
|
18448
18410
|
if (!nativeProtocol) {
|
|
18449
|
-
|
|
18411
|
+
this.emit("error", new TypeError("Unsupported protocol " + protocol));
|
|
18412
|
+
return;
|
|
18450
18413
|
}
|
|
18451
18414
|
if (this._options.agents) {
|
|
18452
18415
|
var scheme = protocol.slice(0, -1);
|
|
@@ -18460,7 +18423,7 @@ var require_follow_redirects = __commonJS({
|
|
|
18460
18423
|
this._currentUrl = /^\//.test(this._options.path) ? url2.format(this._options) : (
|
|
18461
18424
|
// When making a request to a proxy, […]
|
|
18462
18425
|
// a client MUST send the target URI in absolute-form […].
|
|
18463
|
-
this._options.path
|
|
18426
|
+
this._currentUrl = this._options.path
|
|
18464
18427
|
);
|
|
18465
18428
|
if (this._isRedirect) {
|
|
18466
18429
|
var i = 0;
|
|
@@ -18499,10 +18462,11 @@ var require_follow_redirects = __commonJS({
|
|
|
18499
18462
|
this._requestBodyBuffers = [];
|
|
18500
18463
|
return;
|
|
18501
18464
|
}
|
|
18502
|
-
|
|
18465
|
+
abortRequest(this._currentRequest);
|
|
18503
18466
|
response.destroy();
|
|
18504
18467
|
if (++this._redirectCount > this._options.maxRedirects) {
|
|
18505
|
-
|
|
18468
|
+
this.emit("error", new TooManyRedirectsError());
|
|
18469
|
+
return;
|
|
18506
18470
|
}
|
|
18507
18471
|
var requestHeaders;
|
|
18508
18472
|
var beforeRedirect = this._options.beforeRedirect;
|
|
@@ -18523,17 +18487,24 @@ var require_follow_redirects = __commonJS({
|
|
|
18523
18487
|
removeMatchingHeaders(/^content-/i, this._options.headers);
|
|
18524
18488
|
}
|
|
18525
18489
|
var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);
|
|
18526
|
-
var currentUrlParts =
|
|
18490
|
+
var currentUrlParts = url2.parse(this._currentUrl);
|
|
18527
18491
|
var currentHost = currentHostHeader || currentUrlParts.host;
|
|
18528
18492
|
var currentUrl = /^\w+:/.test(location) ? this._currentUrl : url2.format(Object.assign(currentUrlParts, { host: currentHost }));
|
|
18529
|
-
var redirectUrl
|
|
18530
|
-
|
|
18493
|
+
var redirectUrl;
|
|
18494
|
+
try {
|
|
18495
|
+
redirectUrl = url2.resolve(currentUrl, location);
|
|
18496
|
+
} catch (cause) {
|
|
18497
|
+
this.emit("error", new RedirectionError(cause));
|
|
18498
|
+
return;
|
|
18499
|
+
}
|
|
18500
|
+
debug("redirecting to", redirectUrl);
|
|
18531
18501
|
this._isRedirect = true;
|
|
18532
|
-
|
|
18533
|
-
|
|
18502
|
+
var redirectUrlParts = url2.parse(redirectUrl);
|
|
18503
|
+
Object.assign(this._options, redirectUrlParts);
|
|
18504
|
+
if (redirectUrlParts.protocol !== currentUrlParts.protocol && redirectUrlParts.protocol !== "https:" || redirectUrlParts.host !== currentHost && !isSubdomain(redirectUrlParts.host, currentHost)) {
|
|
18534
18505
|
removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers);
|
|
18535
18506
|
}
|
|
18536
|
-
if (
|
|
18507
|
+
if (typeof beforeRedirect === "function") {
|
|
18537
18508
|
var responseDetails = {
|
|
18538
18509
|
headers: response.headers,
|
|
18539
18510
|
statusCode
|
|
@@ -18543,10 +18514,19 @@ var require_follow_redirects = __commonJS({
|
|
|
18543
18514
|
method,
|
|
18544
18515
|
headers: requestHeaders
|
|
18545
18516
|
};
|
|
18546
|
-
|
|
18517
|
+
try {
|
|
18518
|
+
beforeRedirect(this._options, responseDetails, requestDetails);
|
|
18519
|
+
} catch (err) {
|
|
18520
|
+
this.emit("error", err);
|
|
18521
|
+
return;
|
|
18522
|
+
}
|
|
18547
18523
|
this._sanitizeOptions(this._options);
|
|
18548
18524
|
}
|
|
18549
|
-
|
|
18525
|
+
try {
|
|
18526
|
+
this._performRequest();
|
|
18527
|
+
} catch (cause) {
|
|
18528
|
+
this.emit("error", new RedirectionError(cause));
|
|
18529
|
+
}
|
|
18550
18530
|
};
|
|
18551
18531
|
function wrap(protocols) {
|
|
18552
18532
|
var exports2 = {
|
|
@@ -18559,16 +18539,21 @@ var require_follow_redirects = __commonJS({
|
|
|
18559
18539
|
var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];
|
|
18560
18540
|
var wrappedProtocol = exports2[scheme] = Object.create(nativeProtocol);
|
|
18561
18541
|
function request(input, options, callback) {
|
|
18562
|
-
if (
|
|
18563
|
-
|
|
18564
|
-
|
|
18565
|
-
|
|
18542
|
+
if (typeof input === "string") {
|
|
18543
|
+
var urlStr = input;
|
|
18544
|
+
try {
|
|
18545
|
+
input = urlToOptions(new URL2(urlStr));
|
|
18546
|
+
} catch (err) {
|
|
18547
|
+
input = url2.parse(urlStr);
|
|
18548
|
+
}
|
|
18549
|
+
} else if (URL2 && input instanceof URL2) {
|
|
18550
|
+
input = urlToOptions(input);
|
|
18566
18551
|
} else {
|
|
18567
18552
|
callback = options;
|
|
18568
|
-
options =
|
|
18553
|
+
options = input;
|
|
18569
18554
|
input = { protocol };
|
|
18570
18555
|
}
|
|
18571
|
-
if (
|
|
18556
|
+
if (typeof options === "function") {
|
|
18572
18557
|
callback = options;
|
|
18573
18558
|
options = null;
|
|
18574
18559
|
}
|
|
@@ -18577,9 +18562,6 @@ var require_follow_redirects = __commonJS({
|
|
|
18577
18562
|
maxBodyLength: exports2.maxBodyLength
|
|
18578
18563
|
}, input, options);
|
|
18579
18564
|
options.nativeProtocols = nativeProtocols;
|
|
18580
|
-
if (!isString5(options.host) && !isString5(options.hostname)) {
|
|
18581
|
-
options.hostname = "::1";
|
|
18582
|
-
}
|
|
18583
18565
|
assert.equal(options.protocol, protocol, "protocol mismatch");
|
|
18584
18566
|
debug("options", options);
|
|
18585
18567
|
return new RedirectableRequest(options, callback);
|
|
@@ -18598,43 +18580,23 @@ var require_follow_redirects = __commonJS({
|
|
|
18598
18580
|
}
|
|
18599
18581
|
function noop2() {
|
|
18600
18582
|
}
|
|
18601
|
-
function
|
|
18602
|
-
var
|
|
18603
|
-
|
|
18604
|
-
|
|
18605
|
-
|
|
18606
|
-
|
|
18607
|
-
|
|
18608
|
-
|
|
18609
|
-
|
|
18610
|
-
|
|
18611
|
-
|
|
18612
|
-
|
|
18613
|
-
|
|
18614
|
-
|
|
18615
|
-
|
|
18616
|
-
function validateUrl(input) {
|
|
18617
|
-
if (/^\[/.test(input.hostname) && !/^\[[:0-9a-f]+\]$/i.test(input.hostname)) {
|
|
18618
|
-
throw new InvalidUrlError({ input: input.href || input });
|
|
18619
|
-
}
|
|
18620
|
-
if (/^\[/.test(input.host) && !/^\[[:0-9a-f]+\](:\d+)?$/i.test(input.host)) {
|
|
18621
|
-
throw new InvalidUrlError({ input: input.href || input });
|
|
18622
|
-
}
|
|
18623
|
-
return input;
|
|
18624
|
-
}
|
|
18625
|
-
function spreadUrlObject(urlObject, target) {
|
|
18626
|
-
var spread3 = target || {};
|
|
18627
|
-
for (var key of preservedUrlFields) {
|
|
18628
|
-
spread3[key] = urlObject[key];
|
|
18629
|
-
}
|
|
18630
|
-
if (spread3.hostname.startsWith("[")) {
|
|
18631
|
-
spread3.hostname = spread3.hostname.slice(1, -1);
|
|
18632
|
-
}
|
|
18633
|
-
if (spread3.port !== "") {
|
|
18634
|
-
spread3.port = Number(spread3.port);
|
|
18583
|
+
function urlToOptions(urlObject) {
|
|
18584
|
+
var options = {
|
|
18585
|
+
protocol: urlObject.protocol,
|
|
18586
|
+
hostname: urlObject.hostname.startsWith("[") ? (
|
|
18587
|
+
/* istanbul ignore next */
|
|
18588
|
+
urlObject.hostname.slice(1, -1)
|
|
18589
|
+
) : urlObject.hostname,
|
|
18590
|
+
hash: urlObject.hash,
|
|
18591
|
+
search: urlObject.search,
|
|
18592
|
+
pathname: urlObject.pathname,
|
|
18593
|
+
path: urlObject.pathname + urlObject.search,
|
|
18594
|
+
href: urlObject.href
|
|
18595
|
+
};
|
|
18596
|
+
if (urlObject.port !== "") {
|
|
18597
|
+
options.port = Number(urlObject.port);
|
|
18635
18598
|
}
|
|
18636
|
-
|
|
18637
|
-
return spread3;
|
|
18599
|
+
return options;
|
|
18638
18600
|
}
|
|
18639
18601
|
function removeMatchingHeaders(regex2, headers) {
|
|
18640
18602
|
var lastValue;
|
|
@@ -18646,50 +18608,33 @@ var require_follow_redirects = __commonJS({
|
|
|
18646
18608
|
}
|
|
18647
18609
|
return lastValue === null || typeof lastValue === "undefined" ? void 0 : String(lastValue).trim();
|
|
18648
18610
|
}
|
|
18649
|
-
function createErrorType(code,
|
|
18650
|
-
function CustomError(
|
|
18611
|
+
function createErrorType(code, defaultMessage) {
|
|
18612
|
+
function CustomError(cause) {
|
|
18651
18613
|
Error.captureStackTrace(this, this.constructor);
|
|
18652
|
-
|
|
18653
|
-
|
|
18654
|
-
|
|
18655
|
-
|
|
18656
|
-
|
|
18657
|
-
Object.defineProperties(CustomError.prototype, {
|
|
18658
|
-
constructor: {
|
|
18659
|
-
value: CustomError,
|
|
18660
|
-
enumerable: false
|
|
18661
|
-
},
|
|
18662
|
-
name: {
|
|
18663
|
-
value: "Error [" + code + "]",
|
|
18664
|
-
enumerable: false
|
|
18614
|
+
if (!cause) {
|
|
18615
|
+
this.message = defaultMessage;
|
|
18616
|
+
} else {
|
|
18617
|
+
this.message = defaultMessage + ": " + cause.message;
|
|
18618
|
+
this.cause = cause;
|
|
18665
18619
|
}
|
|
18666
|
-
}
|
|
18620
|
+
}
|
|
18621
|
+
CustomError.prototype = new Error();
|
|
18622
|
+
CustomError.prototype.constructor = CustomError;
|
|
18623
|
+
CustomError.prototype.name = "Error [" + code + "]";
|
|
18624
|
+
CustomError.prototype.code = code;
|
|
18667
18625
|
return CustomError;
|
|
18668
18626
|
}
|
|
18669
|
-
function
|
|
18627
|
+
function abortRequest(request) {
|
|
18670
18628
|
for (var event of events) {
|
|
18671
18629
|
request.removeListener(event, eventHandlers[event]);
|
|
18672
18630
|
}
|
|
18673
18631
|
request.on("error", noop2);
|
|
18674
|
-
request.
|
|
18632
|
+
request.abort();
|
|
18675
18633
|
}
|
|
18676
18634
|
function isSubdomain(subdomain, domain) {
|
|
18677
|
-
|
|
18678
|
-
var dot = subdomain.length - domain.length - 1;
|
|
18635
|
+
const dot = subdomain.length - domain.length - 1;
|
|
18679
18636
|
return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
|
|
18680
18637
|
}
|
|
18681
|
-
function isString5(value) {
|
|
18682
|
-
return typeof value === "string" || value instanceof String;
|
|
18683
|
-
}
|
|
18684
|
-
function isFunction5(value) {
|
|
18685
|
-
return typeof value === "function";
|
|
18686
|
-
}
|
|
18687
|
-
function isBuffer2(value) {
|
|
18688
|
-
return typeof value === "object" && "length" in value;
|
|
18689
|
-
}
|
|
18690
|
-
function isURL(value) {
|
|
18691
|
-
return URL2 && value instanceof URL2;
|
|
18692
|
-
}
|
|
18693
18638
|
module2.exports = wrap({ http: http2, https: https2 });
|
|
18694
18639
|
module2.exports.wrap = wrap;
|
|
18695
18640
|
}
|
|
@@ -69695,14 +69640,14 @@ async function timeoutPromise(promise, ms, reason = "Operation") {
|
|
|
69695
69640
|
var import_os = __toESM(require("os"));
|
|
69696
69641
|
var import_utils38 = require("@modern-js/utils");
|
|
69697
69642
|
|
|
69698
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
69643
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/bind.js
|
|
69699
69644
|
function bind(fn, thisArg) {
|
|
69700
69645
|
return function wrap() {
|
|
69701
69646
|
return fn.apply(thisArg, arguments);
|
|
69702
69647
|
};
|
|
69703
69648
|
}
|
|
69704
69649
|
|
|
69705
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
69650
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/utils.js
|
|
69706
69651
|
var { toString } = Object.prototype;
|
|
69707
69652
|
var { getPrototypeOf } = Object;
|
|
69708
69653
|
var kindOf = ((cache) => (thing) => {
|
|
@@ -70061,7 +70006,7 @@ var utils_default = {
|
|
|
70061
70006
|
isThenable
|
|
70062
70007
|
};
|
|
70063
70008
|
|
|
70064
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70009
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/core/AxiosError.js
|
|
70065
70010
|
function AxiosError(message, code, config, request, response) {
|
|
70066
70011
|
Error.call(this);
|
|
70067
70012
|
if (Error.captureStackTrace) {
|
|
@@ -70133,11 +70078,11 @@ AxiosError.from = (error, code, config, request, response, customProps) => {
|
|
|
70133
70078
|
};
|
|
70134
70079
|
var AxiosError_default = AxiosError;
|
|
70135
70080
|
|
|
70136
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70081
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/platform/node/classes/FormData.js
|
|
70137
70082
|
var import_form_data = __toESM(require_form_data());
|
|
70138
70083
|
var FormData_default = import_form_data.default;
|
|
70139
70084
|
|
|
70140
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70085
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/toFormData.js
|
|
70141
70086
|
function isVisitable(thing) {
|
|
70142
70087
|
return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
|
|
70143
70088
|
}
|
|
@@ -70252,7 +70197,7 @@ function toFormData(obj, formData, options) {
|
|
|
70252
70197
|
}
|
|
70253
70198
|
var toFormData_default = toFormData;
|
|
70254
70199
|
|
|
70255
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70200
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
|
|
70256
70201
|
function encode(str) {
|
|
70257
70202
|
const charMap = {
|
|
70258
70203
|
"!": "%21",
|
|
@@ -70285,7 +70230,7 @@ prototype2.toString = function toString2(encoder) {
|
|
|
70285
70230
|
};
|
|
70286
70231
|
var AxiosURLSearchParams_default = AxiosURLSearchParams;
|
|
70287
70232
|
|
|
70288
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70233
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/buildURL.js
|
|
70289
70234
|
function encode2(val) {
|
|
70290
70235
|
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
70291
70236
|
}
|
|
@@ -70311,7 +70256,7 @@ function buildURL(url2, params, options) {
|
|
|
70311
70256
|
return url2;
|
|
70312
70257
|
}
|
|
70313
70258
|
|
|
70314
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70259
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/core/InterceptorManager.js
|
|
70315
70260
|
var InterceptorManager = class {
|
|
70316
70261
|
constructor() {
|
|
70317
70262
|
this.handlers = [];
|
|
@@ -70375,18 +70320,18 @@ var InterceptorManager = class {
|
|
|
70375
70320
|
};
|
|
70376
70321
|
var InterceptorManager_default = InterceptorManager;
|
|
70377
70322
|
|
|
70378
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70323
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/defaults/transitional.js
|
|
70379
70324
|
var transitional_default = {
|
|
70380
70325
|
silentJSONParsing: true,
|
|
70381
70326
|
forcedJSONParsing: true,
|
|
70382
70327
|
clarifyTimeoutError: false
|
|
70383
70328
|
};
|
|
70384
70329
|
|
|
70385
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70330
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
|
|
70386
70331
|
var import_url = __toESM(require("url"));
|
|
70387
70332
|
var URLSearchParams_default = import_url.default.URLSearchParams;
|
|
70388
70333
|
|
|
70389
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70334
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/platform/node/index.js
|
|
70390
70335
|
var node_default = {
|
|
70391
70336
|
isNode: true,
|
|
70392
70337
|
classes: {
|
|
@@ -70397,33 +70342,11 @@ var node_default = {
|
|
|
70397
70342
|
protocols: ["http", "https", "file", "data"]
|
|
70398
70343
|
};
|
|
70399
70344
|
|
|
70400
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70401
|
-
var utils_exports = {};
|
|
70402
|
-
__export(utils_exports, {
|
|
70403
|
-
hasBrowserEnv: () => hasBrowserEnv,
|
|
70404
|
-
hasStandardBrowserEnv: () => hasStandardBrowserEnv,
|
|
70405
|
-
hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv
|
|
70406
|
-
});
|
|
70407
|
-
var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
|
|
70408
|
-
var hasStandardBrowserEnv = ((product) => {
|
|
70409
|
-
return hasBrowserEnv && ["ReactNative", "NativeScript", "NS"].indexOf(product) < 0;
|
|
70410
|
-
})(typeof navigator !== "undefined" && navigator.product);
|
|
70411
|
-
var hasStandardBrowserWebWorkerEnv = (() => {
|
|
70412
|
-
return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
|
|
70413
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
|
|
70414
|
-
})();
|
|
70415
|
-
|
|
70416
|
-
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/platform/index.js
|
|
70417
|
-
var platform_default = {
|
|
70418
|
-
...utils_exports,
|
|
70419
|
-
...node_default
|
|
70420
|
-
};
|
|
70421
|
-
|
|
70422
|
-
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
70345
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
70423
70346
|
function toURLEncodedForm(data, options) {
|
|
70424
|
-
return toFormData_default(data, new
|
|
70347
|
+
return toFormData_default(data, new node_default.classes.URLSearchParams(), Object.assign({
|
|
70425
70348
|
visitor: function(value, key, path18, helpers) {
|
|
70426
|
-
if (
|
|
70349
|
+
if (node_default.isNode && utils_default.isBuffer(value)) {
|
|
70427
70350
|
this.append(key, value.toString("base64"));
|
|
70428
70351
|
return false;
|
|
70429
70352
|
}
|
|
@@ -70432,7 +70355,7 @@ function toURLEncodedForm(data, options) {
|
|
|
70432
70355
|
}, options));
|
|
70433
70356
|
}
|
|
70434
70357
|
|
|
70435
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70358
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/formDataToJSON.js
|
|
70436
70359
|
function parsePropPath(name) {
|
|
70437
70360
|
return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
|
|
70438
70361
|
return match[0] === "[]" ? "" : match[1] || match[0];
|
|
@@ -70453,8 +70376,6 @@ function arrayToObject(arr) {
|
|
|
70453
70376
|
function formDataToJSON(formData) {
|
|
70454
70377
|
function buildPath(path18, value, target, index) {
|
|
70455
70378
|
let name = path18[index++];
|
|
70456
|
-
if (name === "__proto__")
|
|
70457
|
-
return true;
|
|
70458
70379
|
const isNumericKey = Number.isFinite(+name);
|
|
70459
70380
|
const isLast = index >= path18.length;
|
|
70460
70381
|
name = !name && utils_default.isArray(target) ? target.length : name;
|
|
@@ -70486,7 +70407,7 @@ function formDataToJSON(formData) {
|
|
|
70486
70407
|
}
|
|
70487
70408
|
var formDataToJSON_default = formDataToJSON;
|
|
70488
70409
|
|
|
70489
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70410
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/defaults/index.js
|
|
70490
70411
|
function stringifySafely(rawValue, parser, encoder) {
|
|
70491
70412
|
if (utils_default.isString(rawValue)) {
|
|
70492
70413
|
try {
|
|
@@ -70512,6 +70433,9 @@ var defaults = {
|
|
|
70512
70433
|
}
|
|
70513
70434
|
const isFormData2 = utils_default.isFormData(data);
|
|
70514
70435
|
if (isFormData2) {
|
|
70436
|
+
if (!hasJSONContentType) {
|
|
70437
|
+
return data;
|
|
70438
|
+
}
|
|
70515
70439
|
return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
|
|
70516
70440
|
}
|
|
70517
70441
|
if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data)) {
|
|
@@ -70574,8 +70498,8 @@ var defaults = {
|
|
|
70574
70498
|
maxContentLength: -1,
|
|
70575
70499
|
maxBodyLength: -1,
|
|
70576
70500
|
env: {
|
|
70577
|
-
FormData:
|
|
70578
|
-
Blob:
|
|
70501
|
+
FormData: node_default.classes.FormData,
|
|
70502
|
+
Blob: node_default.classes.Blob
|
|
70579
70503
|
},
|
|
70580
70504
|
validateStatus: function validateStatus(status) {
|
|
70581
70505
|
return status >= 200 && status < 300;
|
|
@@ -70592,7 +70516,7 @@ utils_default.forEach(["delete", "get", "head", "post", "put", "patch"], (method
|
|
|
70592
70516
|
});
|
|
70593
70517
|
var defaults_default = defaults;
|
|
70594
70518
|
|
|
70595
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70519
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/parseHeaders.js
|
|
70596
70520
|
var ignoreDuplicateOf = utils_default.toObjectSet([
|
|
70597
70521
|
"age",
|
|
70598
70522
|
"authorization",
|
|
@@ -70637,7 +70561,7 @@ var parseHeaders_default = (rawHeaders) => {
|
|
|
70637
70561
|
return parsed;
|
|
70638
70562
|
};
|
|
70639
70563
|
|
|
70640
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70564
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/core/AxiosHeaders.js
|
|
70641
70565
|
var $internals = Symbol("internals");
|
|
70642
70566
|
function normalizeHeader(header) {
|
|
70643
70567
|
return header && String(header).trim().toLowerCase();
|
|
@@ -70855,7 +70779,7 @@ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
|
70855
70779
|
utils_default.freezeMethods(AxiosHeaders);
|
|
70856
70780
|
var AxiosHeaders_default = AxiosHeaders;
|
|
70857
70781
|
|
|
70858
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70782
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/core/transformData.js
|
|
70859
70783
|
function transformData(fns, response) {
|
|
70860
70784
|
const config = this || defaults_default;
|
|
70861
70785
|
const context = response || config;
|
|
@@ -70868,12 +70792,12 @@ function transformData(fns, response) {
|
|
|
70868
70792
|
return data;
|
|
70869
70793
|
}
|
|
70870
70794
|
|
|
70871
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70795
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/cancel/isCancel.js
|
|
70872
70796
|
function isCancel(value) {
|
|
70873
70797
|
return !!(value && value.__CANCEL__);
|
|
70874
70798
|
}
|
|
70875
70799
|
|
|
70876
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70800
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/cancel/CanceledError.js
|
|
70877
70801
|
function CanceledError(message, config, request) {
|
|
70878
70802
|
AxiosError_default.call(this, message == null ? "canceled" : message, AxiosError_default.ERR_CANCELED, config, request);
|
|
70879
70803
|
this.name = "CanceledError";
|
|
@@ -70883,7 +70807,7 @@ utils_default.inherits(CanceledError, AxiosError_default, {
|
|
|
70883
70807
|
});
|
|
70884
70808
|
var CanceledError_default = CanceledError;
|
|
70885
70809
|
|
|
70886
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70810
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/core/settle.js
|
|
70887
70811
|
function settle(resolve, reject, response) {
|
|
70888
70812
|
const validateStatus2 = response.config.validateStatus;
|
|
70889
70813
|
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
@@ -70899,17 +70823,17 @@ function settle(resolve, reject, response) {
|
|
|
70899
70823
|
}
|
|
70900
70824
|
}
|
|
70901
70825
|
|
|
70902
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70826
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
70903
70827
|
function isAbsoluteURL(url2) {
|
|
70904
70828
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
|
|
70905
70829
|
}
|
|
70906
70830
|
|
|
70907
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70831
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/combineURLs.js
|
|
70908
70832
|
function combineURLs(baseURL, relativeURL) {
|
|
70909
|
-
return relativeURL ? baseURL.replace(
|
|
70833
|
+
return relativeURL ? baseURL.replace(/\/+$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
|
|
70910
70834
|
}
|
|
70911
70835
|
|
|
70912
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70836
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/core/buildFullPath.js
|
|
70913
70837
|
function buildFullPath(baseURL, requestedURL) {
|
|
70914
70838
|
if (baseURL && !isAbsoluteURL(requestedURL)) {
|
|
70915
70839
|
return combineURLs(baseURL, requestedURL);
|
|
@@ -70917,7 +70841,7 @@ function buildFullPath(baseURL, requestedURL) {
|
|
|
70917
70841
|
return requestedURL;
|
|
70918
70842
|
}
|
|
70919
70843
|
|
|
70920
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70844
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/adapters/http.js
|
|
70921
70845
|
var import_proxy_from_env = __toESM(require_proxy_from_env());
|
|
70922
70846
|
var import_http = __toESM(require("http"));
|
|
70923
70847
|
var import_https = __toESM(require("https"));
|
|
@@ -70925,19 +70849,19 @@ var import_util2 = __toESM(require("util"));
|
|
|
70925
70849
|
var import_follow_redirects = __toESM(require_follow_redirects());
|
|
70926
70850
|
var import_zlib = __toESM(require("zlib"));
|
|
70927
70851
|
|
|
70928
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70929
|
-
var VERSION = "1.6.
|
|
70852
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/env/data.js
|
|
70853
|
+
var VERSION = "1.6.0";
|
|
70930
70854
|
|
|
70931
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70855
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/parseProtocol.js
|
|
70932
70856
|
function parseProtocol(url2) {
|
|
70933
70857
|
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
|
|
70934
70858
|
return match && match[1] || "";
|
|
70935
70859
|
}
|
|
70936
70860
|
|
|
70937
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70861
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/fromDataURI.js
|
|
70938
70862
|
var DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;
|
|
70939
70863
|
function fromDataURI(uri, asBlob, options) {
|
|
70940
|
-
const _Blob = options && options.Blob ||
|
|
70864
|
+
const _Blob = options && options.Blob || node_default.classes.Blob;
|
|
70941
70865
|
const protocol = parseProtocol(uri);
|
|
70942
70866
|
if (asBlob === void 0 && _Blob) {
|
|
70943
70867
|
asBlob = true;
|
|
@@ -70963,13 +70887,13 @@ function fromDataURI(uri, asBlob, options) {
|
|
|
70963
70887
|
throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
|
|
70964
70888
|
}
|
|
70965
70889
|
|
|
70966
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70890
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/adapters/http.js
|
|
70967
70891
|
var import_stream4 = __toESM(require("stream"));
|
|
70968
70892
|
|
|
70969
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70893
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/AxiosTransformStream.js
|
|
70970
70894
|
var import_stream = __toESM(require("stream"));
|
|
70971
70895
|
|
|
70972
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70896
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/throttle.js
|
|
70973
70897
|
function throttle(fn, freq) {
|
|
70974
70898
|
let timestamp = 0;
|
|
70975
70899
|
const threshold = 1e3 / freq;
|
|
@@ -70995,7 +70919,7 @@ function throttle(fn, freq) {
|
|
|
70995
70919
|
}
|
|
70996
70920
|
var throttle_default = throttle;
|
|
70997
70921
|
|
|
70998
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70922
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/speedometer.js
|
|
70999
70923
|
function speedometer(samplesCount, min) {
|
|
71000
70924
|
samplesCount = samplesCount || 10;
|
|
71001
70925
|
const bytes = new Array(samplesCount);
|
|
@@ -71031,7 +70955,7 @@ function speedometer(samplesCount, min) {
|
|
|
71031
70955
|
}
|
|
71032
70956
|
var speedometer_default = speedometer;
|
|
71033
70957
|
|
|
71034
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70958
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/AxiosTransformStream.js
|
|
71035
70959
|
var kInternals = Symbol("internals");
|
|
71036
70960
|
var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
71037
70961
|
constructor(options) {
|
|
@@ -71181,14 +71105,14 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
|
71181
71105
|
};
|
|
71182
71106
|
var AxiosTransformStream_default = AxiosTransformStream;
|
|
71183
71107
|
|
|
71184
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
71108
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/adapters/http.js
|
|
71185
71109
|
var import_events2 = __toESM(require("events"));
|
|
71186
71110
|
|
|
71187
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
71111
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/formDataToStream.js
|
|
71188
71112
|
var import_util = require("util");
|
|
71189
71113
|
var import_stream2 = require("stream");
|
|
71190
71114
|
|
|
71191
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
71115
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/readBlob.js
|
|
71192
71116
|
var { asyncIterator } = Symbol;
|
|
71193
71117
|
var readBlob = async function* (blob) {
|
|
71194
71118
|
if (blob.stream) {
|
|
@@ -71203,7 +71127,7 @@ var readBlob = async function* (blob) {
|
|
|
71203
71127
|
};
|
|
71204
71128
|
var readBlob_default = readBlob;
|
|
71205
71129
|
|
|
71206
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
71130
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/formDataToStream.js
|
|
71207
71131
|
var BOUNDARY_ALPHABET = utils_default.ALPHABET.ALPHA_DIGIT + "-_";
|
|
71208
71132
|
var textEncoder = new import_util.TextEncoder();
|
|
71209
71133
|
var CRLF = "\r\n";
|
|
@@ -71282,7 +71206,7 @@ var formDataToStream = (form, headersHandler, options) => {
|
|
|
71282
71206
|
};
|
|
71283
71207
|
var formDataToStream_default = formDataToStream;
|
|
71284
71208
|
|
|
71285
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
71209
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
|
|
71286
71210
|
var import_stream3 = __toESM(require("stream"));
|
|
71287
71211
|
var ZlibHeaderTransformStream = class extends import_stream3.default.Transform {
|
|
71288
71212
|
__transform(chunk, encoding, callback) {
|
|
@@ -71304,7 +71228,7 @@ var ZlibHeaderTransformStream = class extends import_stream3.default.Transform {
|
|
|
71304
71228
|
};
|
|
71305
71229
|
var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
|
|
71306
71230
|
|
|
71307
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
71231
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/callbackify.js
|
|
71308
71232
|
var callbackify = (fn, reducer) => {
|
|
71309
71233
|
return utils_default.isAsyncFn(fn) ? function(...args) {
|
|
71310
71234
|
const cb = args.pop();
|
|
@@ -71319,7 +71243,7 @@ var callbackify = (fn, reducer) => {
|
|
|
71319
71243
|
};
|
|
71320
71244
|
var callbackify_default = callbackify;
|
|
71321
71245
|
|
|
71322
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
71246
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/adapters/http.js
|
|
71323
71247
|
var zlibOptions = {
|
|
71324
71248
|
flush: import_zlib.default.constants.Z_SYNC_FLUSH,
|
|
71325
71249
|
finishFlush: import_zlib.default.constants.Z_SYNC_FLUSH
|
|
@@ -71331,15 +71255,15 @@ var brotliOptions = {
|
|
|
71331
71255
|
var isBrotliSupported = utils_default.isFunction(import_zlib.default.createBrotliDecompress);
|
|
71332
71256
|
var { http: httpFollow, https: httpsFollow } = import_follow_redirects.default;
|
|
71333
71257
|
var isHttps = /https:?/;
|
|
71334
|
-
var supportedProtocols =
|
|
71258
|
+
var supportedProtocols = node_default.protocols.map((protocol) => {
|
|
71335
71259
|
return protocol + ":";
|
|
71336
71260
|
});
|
|
71337
|
-
function dispatchBeforeRedirect(options
|
|
71261
|
+
function dispatchBeforeRedirect(options) {
|
|
71338
71262
|
if (options.beforeRedirects.proxy) {
|
|
71339
71263
|
options.beforeRedirects.proxy(options);
|
|
71340
71264
|
}
|
|
71341
71265
|
if (options.beforeRedirects.config) {
|
|
71342
|
-
options.beforeRedirects.config(options
|
|
71266
|
+
options.beforeRedirects.config(options);
|
|
71343
71267
|
}
|
|
71344
71268
|
}
|
|
71345
71269
|
function setProxy(options, configProxy, location) {
|
|
@@ -71419,9 +71343,6 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
71419
71343
|
const _lookup = callbackify_default(lookup, (value) => utils_default.isArray(value) ? value : [value]);
|
|
71420
71344
|
lookup = (hostname, opt, cb) => {
|
|
71421
71345
|
_lookup(hostname, opt, (err, arg0, arg1) => {
|
|
71422
|
-
if (err) {
|
|
71423
|
-
return cb(err);
|
|
71424
|
-
}
|
|
71425
71346
|
const addresses = utils_default.isArray(arg0) ? arg0.map((addr) => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
|
|
71426
71347
|
opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
|
|
71427
71348
|
});
|
|
@@ -71818,44 +71739,57 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
71818
71739
|
});
|
|
71819
71740
|
};
|
|
71820
71741
|
|
|
71821
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
71822
|
-
var cookies_default =
|
|
71742
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/cookies.js
|
|
71743
|
+
var cookies_default = node_default.isStandardBrowserEnv ? (
|
|
71823
71744
|
// Standard browser envs support document.cookie
|
|
71824
|
-
{
|
|
71825
|
-
|
|
71826
|
-
|
|
71827
|
-
|
|
71828
|
-
|
|
71829
|
-
|
|
71830
|
-
|
|
71831
|
-
|
|
71832
|
-
|
|
71833
|
-
|
|
71834
|
-
|
|
71835
|
-
|
|
71836
|
-
|
|
71837
|
-
|
|
71838
|
-
|
|
71839
|
-
|
|
71840
|
-
|
|
71745
|
+
function standardBrowserEnv() {
|
|
71746
|
+
return {
|
|
71747
|
+
write: function write(name, value, expires, path18, domain, secure) {
|
|
71748
|
+
const cookie = [];
|
|
71749
|
+
cookie.push(name + "=" + encodeURIComponent(value));
|
|
71750
|
+
if (utils_default.isNumber(expires)) {
|
|
71751
|
+
cookie.push("expires=" + new Date(expires).toGMTString());
|
|
71752
|
+
}
|
|
71753
|
+
if (utils_default.isString(path18)) {
|
|
71754
|
+
cookie.push("path=" + path18);
|
|
71755
|
+
}
|
|
71756
|
+
if (utils_default.isString(domain)) {
|
|
71757
|
+
cookie.push("domain=" + domain);
|
|
71758
|
+
}
|
|
71759
|
+
if (secure === true) {
|
|
71760
|
+
cookie.push("secure");
|
|
71761
|
+
}
|
|
71762
|
+
document.cookie = cookie.join("; ");
|
|
71763
|
+
},
|
|
71764
|
+
read: function read(name) {
|
|
71765
|
+
const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
|
|
71766
|
+
return match ? decodeURIComponent(match[3]) : null;
|
|
71767
|
+
},
|
|
71768
|
+
remove: function remove(name) {
|
|
71769
|
+
this.write(name, "", Date.now() - 864e5);
|
|
71770
|
+
}
|
|
71771
|
+
};
|
|
71772
|
+
}()
|
|
71841
71773
|
) : (
|
|
71842
|
-
// Non
|
|
71843
|
-
{
|
|
71844
|
-
|
|
71845
|
-
|
|
71846
|
-
|
|
71847
|
-
|
|
71848
|
-
|
|
71849
|
-
|
|
71850
|
-
|
|
71851
|
-
|
|
71774
|
+
// Non standard browser env (web workers, react-native) lack needed support.
|
|
71775
|
+
function nonStandardBrowserEnv() {
|
|
71776
|
+
return {
|
|
71777
|
+
write: function write() {
|
|
71778
|
+
},
|
|
71779
|
+
read: function read() {
|
|
71780
|
+
return null;
|
|
71781
|
+
},
|
|
71782
|
+
remove: function remove() {
|
|
71783
|
+
}
|
|
71784
|
+
};
|
|
71785
|
+
}()
|
|
71852
71786
|
);
|
|
71853
71787
|
|
|
71854
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
71855
|
-
var isURLSameOrigin_default =
|
|
71788
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/isURLSameOrigin.js
|
|
71789
|
+
var isURLSameOrigin_default = node_default.isStandardBrowserEnv ? (
|
|
71856
71790
|
// Standard browser envs have full support of the APIs needed to test
|
|
71857
71791
|
// whether the request URL is of the same origin as current location.
|
|
71858
|
-
function
|
|
71792
|
+
function standardBrowserEnv2() {
|
|
71859
71793
|
const msie = /(msie|trident)/i.test(navigator.userAgent);
|
|
71860
71794
|
const urlParsingNode = document.createElement("a");
|
|
71861
71795
|
let originURL;
|
|
@@ -71885,14 +71819,14 @@ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? (
|
|
|
71885
71819
|
}()
|
|
71886
71820
|
) : (
|
|
71887
71821
|
// Non standard browser envs (web workers, react-native) lack needed support.
|
|
71888
|
-
function
|
|
71822
|
+
function nonStandardBrowserEnv2() {
|
|
71889
71823
|
return function isURLSameOrigin() {
|
|
71890
71824
|
return true;
|
|
71891
71825
|
};
|
|
71892
71826
|
}()
|
|
71893
71827
|
);
|
|
71894
71828
|
|
|
71895
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
71829
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/adapters/xhr.js
|
|
71896
71830
|
function progressEventReducer(listener, isDownloadStream) {
|
|
71897
71831
|
let bytesNotified = 0;
|
|
71898
71832
|
const _speedometer = speedometer_default(50, 250);
|
|
@@ -71921,7 +71855,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
71921
71855
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
71922
71856
|
let requestData = config.data;
|
|
71923
71857
|
const requestHeaders = AxiosHeaders_default.from(config.headers).normalize();
|
|
71924
|
-
|
|
71858
|
+
const responseType = config.responseType;
|
|
71925
71859
|
let onCanceled;
|
|
71926
71860
|
function done() {
|
|
71927
71861
|
if (config.cancelToken) {
|
|
@@ -71933,11 +71867,12 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
71933
71867
|
}
|
|
71934
71868
|
let contentType;
|
|
71935
71869
|
if (utils_default.isFormData(requestData)) {
|
|
71936
|
-
if (
|
|
71870
|
+
if (node_default.isStandardBrowserEnv || node_default.isStandardBrowserWebWorkerEnv) {
|
|
71937
71871
|
requestHeaders.setContentType(false);
|
|
71938
|
-
} else if (
|
|
71939
|
-
|
|
71940
|
-
|
|
71872
|
+
} else if (!requestHeaders.getContentType(/^\s*multipart\/form-data/)) {
|
|
71873
|
+
requestHeaders.setContentType("multipart/form-data");
|
|
71874
|
+
} else if (utils_default.isString(contentType = requestHeaders.getContentType())) {
|
|
71875
|
+
requestHeaders.setContentType(contentType.replace(/^\s*(multipart\/form-data);+/, "$1"));
|
|
71941
71876
|
}
|
|
71942
71877
|
}
|
|
71943
71878
|
let request = new XMLHttpRequest();
|
|
@@ -72012,13 +71947,10 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
72012
71947
|
));
|
|
72013
71948
|
request = null;
|
|
72014
71949
|
};
|
|
72015
|
-
if (
|
|
72016
|
-
|
|
72017
|
-
if (
|
|
72018
|
-
|
|
72019
|
-
if (xsrfValue) {
|
|
72020
|
-
requestHeaders.set(config.xsrfHeaderName, xsrfValue);
|
|
72021
|
-
}
|
|
71950
|
+
if (node_default.isStandardBrowserEnv) {
|
|
71951
|
+
const xsrfValue = isURLSameOrigin_default(fullPath) && config.xsrfCookieName && cookies_default.read(config.xsrfCookieName);
|
|
71952
|
+
if (xsrfValue) {
|
|
71953
|
+
requestHeaders.set(config.xsrfHeaderName, xsrfValue);
|
|
72022
71954
|
}
|
|
72023
71955
|
}
|
|
72024
71956
|
requestData === void 0 && requestHeaders.setContentType(null);
|
|
@@ -72054,7 +71986,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
72054
71986
|
}
|
|
72055
71987
|
}
|
|
72056
71988
|
const protocol = parseProtocol(fullPath);
|
|
72057
|
-
if (protocol &&
|
|
71989
|
+
if (protocol && node_default.protocols.indexOf(protocol) === -1) {
|
|
72058
71990
|
reject(new AxiosError_default("Unsupported protocol " + protocol + ":", AxiosError_default.ERR_BAD_REQUEST, config));
|
|
72059
71991
|
return;
|
|
72060
71992
|
}
|
|
@@ -72062,7 +71994,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
72062
71994
|
});
|
|
72063
71995
|
};
|
|
72064
71996
|
|
|
72065
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
71997
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/adapters/adapters.js
|
|
72066
71998
|
var knownAdapters = {
|
|
72067
71999
|
http: http_default,
|
|
72068
72000
|
xhr: xhr_default
|
|
@@ -72115,7 +72047,7 @@ var adapters_default = {
|
|
|
72115
72047
|
adapters: knownAdapters
|
|
72116
72048
|
};
|
|
72117
72049
|
|
|
72118
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
72050
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/core/dispatchRequest.js
|
|
72119
72051
|
function throwIfCancellationRequested(config) {
|
|
72120
72052
|
if (config.cancelToken) {
|
|
72121
72053
|
config.cancelToken.throwIfRequested();
|
|
@@ -72160,7 +72092,7 @@ function dispatchRequest(config) {
|
|
|
72160
72092
|
});
|
|
72161
72093
|
}
|
|
72162
72094
|
|
|
72163
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
72095
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/core/mergeConfig.js
|
|
72164
72096
|
var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? thing.toJSON() : thing;
|
|
72165
72097
|
function mergeConfig(config1, config2) {
|
|
72166
72098
|
config2 = config2 || {};
|
|
@@ -72212,7 +72144,6 @@ function mergeConfig(config1, config2) {
|
|
|
72212
72144
|
timeout: defaultToConfig2,
|
|
72213
72145
|
timeoutMessage: defaultToConfig2,
|
|
72214
72146
|
withCredentials: defaultToConfig2,
|
|
72215
|
-
withXSRFToken: defaultToConfig2,
|
|
72216
72147
|
adapter: defaultToConfig2,
|
|
72217
72148
|
responseType: defaultToConfig2,
|
|
72218
72149
|
xsrfCookieName: defaultToConfig2,
|
|
@@ -72240,7 +72171,7 @@ function mergeConfig(config1, config2) {
|
|
|
72240
72171
|
return config;
|
|
72241
72172
|
}
|
|
72242
72173
|
|
|
72243
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
72174
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/validator.js
|
|
72244
72175
|
var validators = {};
|
|
72245
72176
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
72246
72177
|
validators[type] = function validator(thing) {
|
|
@@ -72298,7 +72229,7 @@ var validator_default = {
|
|
|
72298
72229
|
validators
|
|
72299
72230
|
};
|
|
72300
72231
|
|
|
72301
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
72232
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/core/Axios.js
|
|
72302
72233
|
var validators2 = validator_default.validators;
|
|
72303
72234
|
var Axios = class {
|
|
72304
72235
|
constructor(instanceConfig) {
|
|
@@ -72316,24 +72247,7 @@ var Axios = class {
|
|
|
72316
72247
|
*
|
|
72317
72248
|
* @returns {Promise} The Promise to be fulfilled
|
|
72318
72249
|
*/
|
|
72319
|
-
|
|
72320
|
-
try {
|
|
72321
|
-
return await this._request(configOrUrl, config);
|
|
72322
|
-
} catch (err) {
|
|
72323
|
-
if (err instanceof Error) {
|
|
72324
|
-
let dummy;
|
|
72325
|
-
Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : dummy = new Error();
|
|
72326
|
-
const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, "") : "";
|
|
72327
|
-
if (!err.stack) {
|
|
72328
|
-
err.stack = stack;
|
|
72329
|
-
} else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ""))) {
|
|
72330
|
-
err.stack += "\n" + stack;
|
|
72331
|
-
}
|
|
72332
|
-
}
|
|
72333
|
-
throw err;
|
|
72334
|
-
}
|
|
72335
|
-
}
|
|
72336
|
-
_request(configOrUrl, config) {
|
|
72250
|
+
request(configOrUrl, config) {
|
|
72337
72251
|
if (typeof configOrUrl === "string") {
|
|
72338
72252
|
config = config || {};
|
|
72339
72253
|
config.url = configOrUrl;
|
|
@@ -72458,7 +72372,7 @@ utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(m
|
|
|
72458
72372
|
});
|
|
72459
72373
|
var Axios_default = Axios;
|
|
72460
72374
|
|
|
72461
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
72375
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/cancel/CancelToken.js
|
|
72462
72376
|
var CancelToken = class _CancelToken {
|
|
72463
72377
|
constructor(executor) {
|
|
72464
72378
|
if (typeof executor !== "function") {
|
|
@@ -72548,19 +72462,19 @@ var CancelToken = class _CancelToken {
|
|
|
72548
72462
|
};
|
|
72549
72463
|
var CancelToken_default = CancelToken;
|
|
72550
72464
|
|
|
72551
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
72465
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/spread.js
|
|
72552
72466
|
function spread(callback) {
|
|
72553
72467
|
return function wrap(arr) {
|
|
72554
72468
|
return callback.apply(null, arr);
|
|
72555
72469
|
};
|
|
72556
72470
|
}
|
|
72557
72471
|
|
|
72558
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
72472
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/isAxiosError.js
|
|
72559
72473
|
function isAxiosError(payload) {
|
|
72560
72474
|
return utils_default.isObject(payload) && payload.isAxiosError === true;
|
|
72561
72475
|
}
|
|
72562
72476
|
|
|
72563
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
72477
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
72564
72478
|
var HttpStatusCode = {
|
|
72565
72479
|
Continue: 100,
|
|
72566
72480
|
SwitchingProtocols: 101,
|
|
@@ -72631,7 +72545,7 @@ Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
|
72631
72545
|
});
|
|
72632
72546
|
var HttpStatusCode_default = HttpStatusCode;
|
|
72633
72547
|
|
|
72634
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
72548
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/axios.js
|
|
72635
72549
|
function createInstance(defaultConfig) {
|
|
72636
72550
|
const context = new Axios_default(defaultConfig);
|
|
72637
72551
|
const instance = bind(Axios_default.prototype.request, context);
|
|
@@ -72664,7 +72578,7 @@ axios.HttpStatusCode = HttpStatusCode_default;
|
|
|
72664
72578
|
axios.default = axios;
|
|
72665
72579
|
var axios_default = axios;
|
|
72666
72580
|
|
|
72667
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
72581
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/index.js
|
|
72668
72582
|
var {
|
|
72669
72583
|
Axios: Axios2,
|
|
72670
72584
|
AxiosError: AxiosError2,
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "0.0.0-next-
|
|
18
|
+
"version": "0.0.0-next-20240221105230",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"main": "./dist/index.js",
|
|
21
21
|
"files": [
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"/dist/index.js"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@modern-js/utils": "0.0.0-next-
|
|
26
|
+
"@modern-js/utils": "0.0.0-next-20240221105230"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@modern-js/codesmith": "2.3.4",
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
"@types/node": "^14",
|
|
33
33
|
"jest": "^29",
|
|
34
34
|
"typescript": "^5",
|
|
35
|
-
"@modern-js/
|
|
36
|
-
"@modern-js/generator
|
|
37
|
-
"@modern-js/generator-plugin": "0.0.0-next-
|
|
38
|
-
"@modern-js/generator-utils": "0.0.0-next-
|
|
39
|
-
"@modern-js/
|
|
40
|
-
"@
|
|
41
|
-
"@
|
|
42
|
-
"@
|
|
43
|
-
"@
|
|
35
|
+
"@modern-js/generator-common": "0.0.0-next-20240221105230",
|
|
36
|
+
"@modern-js/base-generator": "0.0.0-next-20240221105230",
|
|
37
|
+
"@modern-js/generator-plugin": "0.0.0-next-20240221105230",
|
|
38
|
+
"@modern-js/generator-utils": "0.0.0-next-20240221105230",
|
|
39
|
+
"@modern-js/monorepo-generator": "0.0.0-next-20240221105230",
|
|
40
|
+
"@scripts/build": "0.0.0-next-20240221105230",
|
|
41
|
+
"@scripts/jest-config": "0.0.0-next-20240221105230",
|
|
42
|
+
"@modern-js/module-generator": "0.0.0-next-20240221105230",
|
|
43
|
+
"@modern-js/mwa-generator": "0.0.0-next-20240221105230"
|
|
44
44
|
},
|
|
45
45
|
"sideEffects": false,
|
|
46
46
|
"publishConfig": {
|