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