@modern-js/repo-generator 0.0.0-next-20240218090823 → 0.0.0-next-20240220122504
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
|
@@ -18217,9 +18217,9 @@ var require_src3 = __commonJS({
|
|
|
18217
18217
|
}
|
|
18218
18218
|
});
|
|
18219
18219
|
|
|
18220
|
-
// ../../../../node_modules/.pnpm/follow-redirects@1.15.
|
|
18220
|
+
// ../../../../node_modules/.pnpm/follow-redirects@1.15.5/node_modules/follow-redirects/debug.js
|
|
18221
18221
|
var require_debug = __commonJS({
|
|
18222
|
-
"../../../../node_modules/.pnpm/follow-redirects@1.15.
|
|
18222
|
+
"../../../../node_modules/.pnpm/follow-redirects@1.15.5/node_modules/follow-redirects/debug.js"(exports, module2) {
|
|
18223
18223
|
"use strict";
|
|
18224
18224
|
var debug;
|
|
18225
18225
|
module2.exports = function() {
|
|
@@ -18238,9 +18238,9 @@ var require_debug = __commonJS({
|
|
|
18238
18238
|
}
|
|
18239
18239
|
});
|
|
18240
18240
|
|
|
18241
|
-
// ../../../../node_modules/.pnpm/follow-redirects@1.15.
|
|
18241
|
+
// ../../../../node_modules/.pnpm/follow-redirects@1.15.5/node_modules/follow-redirects/index.js
|
|
18242
18242
|
var require_follow_redirects = __commonJS({
|
|
18243
|
-
"../../../../node_modules/.pnpm/follow-redirects@1.15.
|
|
18243
|
+
"../../../../node_modules/.pnpm/follow-redirects@1.15.5/node_modules/follow-redirects/index.js"(exports, module2) {
|
|
18244
18244
|
"use strict";
|
|
18245
18245
|
var url2 = require("url");
|
|
18246
18246
|
var URL2 = url2.URL;
|
|
@@ -18249,6 +18249,25 @@ var require_follow_redirects = __commonJS({
|
|
|
18249
18249
|
var Writable = require("stream").Writable;
|
|
18250
18250
|
var assert = require("assert");
|
|
18251
18251
|
var debug = require_debug();
|
|
18252
|
+
var useNativeURL = false;
|
|
18253
|
+
try {
|
|
18254
|
+
assert(new URL2());
|
|
18255
|
+
} catch (error) {
|
|
18256
|
+
useNativeURL = error.code === "ERR_INVALID_URL";
|
|
18257
|
+
}
|
|
18258
|
+
var preservedUrlFields = [
|
|
18259
|
+
"auth",
|
|
18260
|
+
"host",
|
|
18261
|
+
"hostname",
|
|
18262
|
+
"href",
|
|
18263
|
+
"path",
|
|
18264
|
+
"pathname",
|
|
18265
|
+
"port",
|
|
18266
|
+
"protocol",
|
|
18267
|
+
"query",
|
|
18268
|
+
"search",
|
|
18269
|
+
"hash"
|
|
18270
|
+
];
|
|
18252
18271
|
var events = ["abort", "aborted", "connect", "error", "socket", "timeout"];
|
|
18253
18272
|
var eventHandlers = /* @__PURE__ */ Object.create(null);
|
|
18254
18273
|
events.forEach(function(event) {
|
|
@@ -18256,13 +18275,19 @@ var require_follow_redirects = __commonJS({
|
|
|
18256
18275
|
this._redirectable.emit(event, arg1, arg2, arg3);
|
|
18257
18276
|
};
|
|
18258
18277
|
});
|
|
18278
|
+
var InvalidUrlError = createErrorType(
|
|
18279
|
+
"ERR_INVALID_URL",
|
|
18280
|
+
"Invalid URL",
|
|
18281
|
+
TypeError
|
|
18282
|
+
);
|
|
18259
18283
|
var RedirectionError = createErrorType(
|
|
18260
18284
|
"ERR_FR_REDIRECTION_FAILURE",
|
|
18261
18285
|
"Redirected request failed"
|
|
18262
18286
|
);
|
|
18263
18287
|
var TooManyRedirectsError = createErrorType(
|
|
18264
18288
|
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
18265
|
-
"Maximum number of redirects exceeded"
|
|
18289
|
+
"Maximum number of redirects exceeded",
|
|
18290
|
+
RedirectionError
|
|
18266
18291
|
);
|
|
18267
18292
|
var MaxBodyLengthExceededError = createErrorType(
|
|
18268
18293
|
"ERR_FR_MAX_BODY_LENGTH_EXCEEDED",
|
|
@@ -18272,6 +18297,7 @@ var require_follow_redirects = __commonJS({
|
|
|
18272
18297
|
"ERR_STREAM_WRITE_AFTER_END",
|
|
18273
18298
|
"write after end"
|
|
18274
18299
|
);
|
|
18300
|
+
var destroy2 = Writable.prototype.destroy || noop2;
|
|
18275
18301
|
function RedirectableRequest(options, responseCallback) {
|
|
18276
18302
|
Writable.call(this);
|
|
18277
18303
|
this._sanitizeOptions(options);
|
|
@@ -18287,23 +18313,33 @@ var require_follow_redirects = __commonJS({
|
|
|
18287
18313
|
}
|
|
18288
18314
|
var self3 = this;
|
|
18289
18315
|
this._onNativeResponse = function(response) {
|
|
18290
|
-
|
|
18316
|
+
try {
|
|
18317
|
+
self3._processResponse(response);
|
|
18318
|
+
} catch (cause) {
|
|
18319
|
+
self3.emit("error", cause instanceof RedirectionError ? cause : new RedirectionError({ cause }));
|
|
18320
|
+
}
|
|
18291
18321
|
};
|
|
18292
18322
|
this._performRequest();
|
|
18293
18323
|
}
|
|
18294
18324
|
RedirectableRequest.prototype = Object.create(Writable.prototype);
|
|
18295
18325
|
RedirectableRequest.prototype.abort = function() {
|
|
18296
|
-
|
|
18326
|
+
destroyRequest(this._currentRequest);
|
|
18327
|
+
this._currentRequest.abort();
|
|
18297
18328
|
this.emit("abort");
|
|
18298
18329
|
};
|
|
18330
|
+
RedirectableRequest.prototype.destroy = function(error) {
|
|
18331
|
+
destroyRequest(this._currentRequest, error);
|
|
18332
|
+
destroy2.call(this, error);
|
|
18333
|
+
return this;
|
|
18334
|
+
};
|
|
18299
18335
|
RedirectableRequest.prototype.write = function(data, encoding, callback) {
|
|
18300
18336
|
if (this._ending) {
|
|
18301
18337
|
throw new WriteAfterEndError();
|
|
18302
18338
|
}
|
|
18303
|
-
if (!(
|
|
18339
|
+
if (!isString5(data) && !isBuffer2(data)) {
|
|
18304
18340
|
throw new TypeError("data should be a string, Buffer or Uint8Array");
|
|
18305
18341
|
}
|
|
18306
|
-
if (
|
|
18342
|
+
if (isFunction5(encoding)) {
|
|
18307
18343
|
callback = encoding;
|
|
18308
18344
|
encoding = null;
|
|
18309
18345
|
}
|
|
@@ -18323,10 +18359,10 @@ var require_follow_redirects = __commonJS({
|
|
|
18323
18359
|
}
|
|
18324
18360
|
};
|
|
18325
18361
|
RedirectableRequest.prototype.end = function(data, encoding, callback) {
|
|
18326
|
-
if (
|
|
18362
|
+
if (isFunction5(data)) {
|
|
18327
18363
|
callback = data;
|
|
18328
18364
|
data = encoding = null;
|
|
18329
|
-
} else if (
|
|
18365
|
+
} else if (isFunction5(encoding)) {
|
|
18330
18366
|
callback = encoding;
|
|
18331
18367
|
encoding = null;
|
|
18332
18368
|
}
|
|
@@ -18376,6 +18412,7 @@ var require_follow_redirects = __commonJS({
|
|
|
18376
18412
|
self3.removeListener("abort", clearTimer);
|
|
18377
18413
|
self3.removeListener("error", clearTimer);
|
|
18378
18414
|
self3.removeListener("response", clearTimer);
|
|
18415
|
+
self3.removeListener("close", clearTimer);
|
|
18379
18416
|
if (callback) {
|
|
18380
18417
|
self3.removeListener("timeout", callback);
|
|
18381
18418
|
}
|
|
@@ -18395,6 +18432,7 @@ var require_follow_redirects = __commonJS({
|
|
|
18395
18432
|
this.on("abort", clearTimer);
|
|
18396
18433
|
this.on("error", clearTimer);
|
|
18397
18434
|
this.on("response", clearTimer);
|
|
18435
|
+
this.on("close", clearTimer);
|
|
18398
18436
|
return this;
|
|
18399
18437
|
};
|
|
18400
18438
|
[
|
|
@@ -18438,8 +18476,7 @@ var require_follow_redirects = __commonJS({
|
|
|
18438
18476
|
var protocol = this._options.protocol;
|
|
18439
18477
|
var nativeProtocol = this._options.nativeProtocols[protocol];
|
|
18440
18478
|
if (!nativeProtocol) {
|
|
18441
|
-
|
|
18442
|
-
return;
|
|
18479
|
+
throw new TypeError("Unsupported protocol " + protocol);
|
|
18443
18480
|
}
|
|
18444
18481
|
if (this._options.agents) {
|
|
18445
18482
|
var scheme = protocol.slice(0, -1);
|
|
@@ -18453,7 +18490,7 @@ var require_follow_redirects = __commonJS({
|
|
|
18453
18490
|
this._currentUrl = /^\//.test(this._options.path) ? url2.format(this._options) : (
|
|
18454
18491
|
// When making a request to a proxy, […]
|
|
18455
18492
|
// a client MUST send the target URI in absolute-form […].
|
|
18456
|
-
this.
|
|
18493
|
+
this._options.path
|
|
18457
18494
|
);
|
|
18458
18495
|
if (this._isRedirect) {
|
|
18459
18496
|
var i = 0;
|
|
@@ -18492,11 +18529,10 @@ var require_follow_redirects = __commonJS({
|
|
|
18492
18529
|
this._requestBodyBuffers = [];
|
|
18493
18530
|
return;
|
|
18494
18531
|
}
|
|
18495
|
-
|
|
18532
|
+
destroyRequest(this._currentRequest);
|
|
18496
18533
|
response.destroy();
|
|
18497
18534
|
if (++this._redirectCount > this._options.maxRedirects) {
|
|
18498
|
-
|
|
18499
|
-
return;
|
|
18535
|
+
throw new TooManyRedirectsError();
|
|
18500
18536
|
}
|
|
18501
18537
|
var requestHeaders;
|
|
18502
18538
|
var beforeRedirect = this._options.beforeRedirect;
|
|
@@ -18517,24 +18553,17 @@ var require_follow_redirects = __commonJS({
|
|
|
18517
18553
|
removeMatchingHeaders(/^content-/i, this._options.headers);
|
|
18518
18554
|
}
|
|
18519
18555
|
var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);
|
|
18520
|
-
var currentUrlParts =
|
|
18556
|
+
var currentUrlParts = parseUrl(this._currentUrl);
|
|
18521
18557
|
var currentHost = currentHostHeader || currentUrlParts.host;
|
|
18522
18558
|
var currentUrl = /^\w+:/.test(location) ? this._currentUrl : url2.format(Object.assign(currentUrlParts, { host: currentHost }));
|
|
18523
|
-
var redirectUrl;
|
|
18524
|
-
|
|
18525
|
-
redirectUrl = url2.resolve(currentUrl, location);
|
|
18526
|
-
} catch (cause) {
|
|
18527
|
-
this.emit("error", new RedirectionError(cause));
|
|
18528
|
-
return;
|
|
18529
|
-
}
|
|
18530
|
-
debug("redirecting to", redirectUrl);
|
|
18559
|
+
var redirectUrl = resolveUrl(location, currentUrl);
|
|
18560
|
+
debug("redirecting to", redirectUrl.href);
|
|
18531
18561
|
this._isRedirect = true;
|
|
18532
|
-
|
|
18533
|
-
|
|
18534
|
-
if (redirectUrlParts.protocol !== currentUrlParts.protocol && redirectUrlParts.protocol !== "https:" || redirectUrlParts.host !== currentHost && !isSubdomain(redirectUrlParts.host, currentHost)) {
|
|
18562
|
+
spreadUrlObject(redirectUrl, this._options);
|
|
18563
|
+
if (redirectUrl.protocol !== currentUrlParts.protocol && redirectUrl.protocol !== "https:" || redirectUrl.host !== currentHost && !isSubdomain(redirectUrl.host, currentHost)) {
|
|
18535
18564
|
removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers);
|
|
18536
18565
|
}
|
|
18537
|
-
if (
|
|
18566
|
+
if (isFunction5(beforeRedirect)) {
|
|
18538
18567
|
var responseDetails = {
|
|
18539
18568
|
headers: response.headers,
|
|
18540
18569
|
statusCode
|
|
@@ -18544,19 +18573,10 @@ var require_follow_redirects = __commonJS({
|
|
|
18544
18573
|
method,
|
|
18545
18574
|
headers: requestHeaders
|
|
18546
18575
|
};
|
|
18547
|
-
|
|
18548
|
-
beforeRedirect(this._options, responseDetails, requestDetails);
|
|
18549
|
-
} catch (err) {
|
|
18550
|
-
this.emit("error", err);
|
|
18551
|
-
return;
|
|
18552
|
-
}
|
|
18576
|
+
beforeRedirect(this._options, responseDetails, requestDetails);
|
|
18553
18577
|
this._sanitizeOptions(this._options);
|
|
18554
18578
|
}
|
|
18555
|
-
|
|
18556
|
-
this._performRequest();
|
|
18557
|
-
} catch (cause) {
|
|
18558
|
-
this.emit("error", new RedirectionError(cause));
|
|
18559
|
-
}
|
|
18579
|
+
this._performRequest();
|
|
18560
18580
|
};
|
|
18561
18581
|
function wrap(protocols) {
|
|
18562
18582
|
var exports2 = {
|
|
@@ -18569,21 +18589,16 @@ var require_follow_redirects = __commonJS({
|
|
|
18569
18589
|
var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];
|
|
18570
18590
|
var wrappedProtocol = exports2[scheme] = Object.create(nativeProtocol);
|
|
18571
18591
|
function request(input, options, callback) {
|
|
18572
|
-
if (
|
|
18573
|
-
|
|
18574
|
-
|
|
18575
|
-
|
|
18576
|
-
} catch (err) {
|
|
18577
|
-
input = url2.parse(urlStr);
|
|
18578
|
-
}
|
|
18579
|
-
} else if (URL2 && input instanceof URL2) {
|
|
18580
|
-
input = urlToOptions(input);
|
|
18592
|
+
if (isURL(input)) {
|
|
18593
|
+
input = spreadUrlObject(input);
|
|
18594
|
+
} else if (isString5(input)) {
|
|
18595
|
+
input = spreadUrlObject(parseUrl(input));
|
|
18581
18596
|
} else {
|
|
18582
18597
|
callback = options;
|
|
18583
|
-
options = input;
|
|
18598
|
+
options = validateUrl(input);
|
|
18584
18599
|
input = { protocol };
|
|
18585
18600
|
}
|
|
18586
|
-
if (
|
|
18601
|
+
if (isFunction5(options)) {
|
|
18587
18602
|
callback = options;
|
|
18588
18603
|
options = null;
|
|
18589
18604
|
}
|
|
@@ -18592,6 +18607,9 @@ var require_follow_redirects = __commonJS({
|
|
|
18592
18607
|
maxBodyLength: exports2.maxBodyLength
|
|
18593
18608
|
}, input, options);
|
|
18594
18609
|
options.nativeProtocols = nativeProtocols;
|
|
18610
|
+
if (!isString5(options.host) && !isString5(options.hostname)) {
|
|
18611
|
+
options.hostname = "::1";
|
|
18612
|
+
}
|
|
18595
18613
|
assert.equal(options.protocol, protocol, "protocol mismatch");
|
|
18596
18614
|
debug("options", options);
|
|
18597
18615
|
return new RedirectableRequest(options, callback);
|
|
@@ -18610,23 +18628,43 @@ var require_follow_redirects = __commonJS({
|
|
|
18610
18628
|
}
|
|
18611
18629
|
function noop2() {
|
|
18612
18630
|
}
|
|
18613
|
-
function
|
|
18614
|
-
var
|
|
18615
|
-
|
|
18616
|
-
|
|
18617
|
-
|
|
18618
|
-
|
|
18619
|
-
)
|
|
18620
|
-
|
|
18621
|
-
|
|
18622
|
-
pathname: urlObject.pathname,
|
|
18623
|
-
path: urlObject.pathname + urlObject.search,
|
|
18624
|
-
href: urlObject.href
|
|
18625
|
-
};
|
|
18626
|
-
if (urlObject.port !== "") {
|
|
18627
|
-
options.port = Number(urlObject.port);
|
|
18631
|
+
function parseUrl(input) {
|
|
18632
|
+
var parsed;
|
|
18633
|
+
if (useNativeURL) {
|
|
18634
|
+
parsed = new URL2(input);
|
|
18635
|
+
} else {
|
|
18636
|
+
parsed = validateUrl(url2.parse(input));
|
|
18637
|
+
if (!isString5(parsed.protocol)) {
|
|
18638
|
+
throw new InvalidUrlError({ input });
|
|
18639
|
+
}
|
|
18628
18640
|
}
|
|
18629
|
-
return
|
|
18641
|
+
return parsed;
|
|
18642
|
+
}
|
|
18643
|
+
function resolveUrl(relative, base) {
|
|
18644
|
+
return useNativeURL ? new URL2(relative, base) : parseUrl(url2.resolve(base, relative));
|
|
18645
|
+
}
|
|
18646
|
+
function validateUrl(input) {
|
|
18647
|
+
if (/^\[/.test(input.hostname) && !/^\[[:0-9a-f]+\]$/i.test(input.hostname)) {
|
|
18648
|
+
throw new InvalidUrlError({ input: input.href || input });
|
|
18649
|
+
}
|
|
18650
|
+
if (/^\[/.test(input.host) && !/^\[[:0-9a-f]+\](:\d+)?$/i.test(input.host)) {
|
|
18651
|
+
throw new InvalidUrlError({ input: input.href || input });
|
|
18652
|
+
}
|
|
18653
|
+
return input;
|
|
18654
|
+
}
|
|
18655
|
+
function spreadUrlObject(urlObject, target) {
|
|
18656
|
+
var spread3 = target || {};
|
|
18657
|
+
for (var key of preservedUrlFields) {
|
|
18658
|
+
spread3[key] = urlObject[key];
|
|
18659
|
+
}
|
|
18660
|
+
if (spread3.hostname.startsWith("[")) {
|
|
18661
|
+
spread3.hostname = spread3.hostname.slice(1, -1);
|
|
18662
|
+
}
|
|
18663
|
+
if (spread3.port !== "") {
|
|
18664
|
+
spread3.port = Number(spread3.port);
|
|
18665
|
+
}
|
|
18666
|
+
spread3.path = spread3.search ? spread3.pathname + spread3.search : spread3.pathname;
|
|
18667
|
+
return spread3;
|
|
18630
18668
|
}
|
|
18631
18669
|
function removeMatchingHeaders(regex2, headers) {
|
|
18632
18670
|
var lastValue;
|
|
@@ -18638,33 +18676,50 @@ var require_follow_redirects = __commonJS({
|
|
|
18638
18676
|
}
|
|
18639
18677
|
return lastValue === null || typeof lastValue === "undefined" ? void 0 : String(lastValue).trim();
|
|
18640
18678
|
}
|
|
18641
|
-
function createErrorType(code,
|
|
18642
|
-
function CustomError(
|
|
18679
|
+
function createErrorType(code, message, baseClass) {
|
|
18680
|
+
function CustomError(properties) {
|
|
18643
18681
|
Error.captureStackTrace(this, this.constructor);
|
|
18644
|
-
|
|
18645
|
-
|
|
18646
|
-
|
|
18647
|
-
this.message = defaultMessage + ": " + cause.message;
|
|
18648
|
-
this.cause = cause;
|
|
18649
|
-
}
|
|
18682
|
+
Object.assign(this, properties || {});
|
|
18683
|
+
this.code = code;
|
|
18684
|
+
this.message = this.cause ? message + ": " + this.cause.message : message;
|
|
18650
18685
|
}
|
|
18651
|
-
CustomError.prototype = new Error();
|
|
18652
|
-
CustomError.prototype
|
|
18653
|
-
|
|
18654
|
-
|
|
18686
|
+
CustomError.prototype = new (baseClass || Error)();
|
|
18687
|
+
Object.defineProperties(CustomError.prototype, {
|
|
18688
|
+
constructor: {
|
|
18689
|
+
value: CustomError,
|
|
18690
|
+
enumerable: false
|
|
18691
|
+
},
|
|
18692
|
+
name: {
|
|
18693
|
+
value: "Error [" + code + "]",
|
|
18694
|
+
enumerable: false
|
|
18695
|
+
}
|
|
18696
|
+
});
|
|
18655
18697
|
return CustomError;
|
|
18656
18698
|
}
|
|
18657
|
-
function
|
|
18699
|
+
function destroyRequest(request, error) {
|
|
18658
18700
|
for (var event of events) {
|
|
18659
18701
|
request.removeListener(event, eventHandlers[event]);
|
|
18660
18702
|
}
|
|
18661
18703
|
request.on("error", noop2);
|
|
18662
|
-
request.
|
|
18704
|
+
request.destroy(error);
|
|
18663
18705
|
}
|
|
18664
18706
|
function isSubdomain(subdomain, domain) {
|
|
18665
|
-
|
|
18707
|
+
assert(isString5(subdomain) && isString5(domain));
|
|
18708
|
+
var dot = subdomain.length - domain.length - 1;
|
|
18666
18709
|
return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
|
|
18667
18710
|
}
|
|
18711
|
+
function isString5(value) {
|
|
18712
|
+
return typeof value === "string" || value instanceof String;
|
|
18713
|
+
}
|
|
18714
|
+
function isFunction5(value) {
|
|
18715
|
+
return typeof value === "function";
|
|
18716
|
+
}
|
|
18717
|
+
function isBuffer2(value) {
|
|
18718
|
+
return typeof value === "object" && "length" in value;
|
|
18719
|
+
}
|
|
18720
|
+
function isURL(value) {
|
|
18721
|
+
return URL2 && value instanceof URL2;
|
|
18722
|
+
}
|
|
18668
18723
|
module2.exports = wrap({ http: http2, https: https2 });
|
|
18669
18724
|
module2.exports.wrap = wrap;
|
|
18670
18725
|
}
|
|
@@ -69670,14 +69725,14 @@ async function timeoutPromise(promise, ms, reason = "Operation") {
|
|
|
69670
69725
|
var import_os = __toESM(require("os"));
|
|
69671
69726
|
var import_utils38 = require("@modern-js/utils");
|
|
69672
69727
|
|
|
69673
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
69728
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/bind.js
|
|
69674
69729
|
function bind(fn, thisArg) {
|
|
69675
69730
|
return function wrap() {
|
|
69676
69731
|
return fn.apply(thisArg, arguments);
|
|
69677
69732
|
};
|
|
69678
69733
|
}
|
|
69679
69734
|
|
|
69680
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
69735
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/utils.js
|
|
69681
69736
|
var { toString } = Object.prototype;
|
|
69682
69737
|
var { getPrototypeOf } = Object;
|
|
69683
69738
|
var kindOf = ((cache) => (thing) => {
|
|
@@ -70036,7 +70091,7 @@ var utils_default = {
|
|
|
70036
70091
|
isThenable
|
|
70037
70092
|
};
|
|
70038
70093
|
|
|
70039
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70094
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/AxiosError.js
|
|
70040
70095
|
function AxiosError(message, code, config, request, response) {
|
|
70041
70096
|
Error.call(this);
|
|
70042
70097
|
if (Error.captureStackTrace) {
|
|
@@ -70108,11 +70163,11 @@ AxiosError.from = (error, code, config, request, response, customProps) => {
|
|
|
70108
70163
|
};
|
|
70109
70164
|
var AxiosError_default = AxiosError;
|
|
70110
70165
|
|
|
70111
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70166
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/platform/node/classes/FormData.js
|
|
70112
70167
|
var import_form_data = __toESM(require_form_data());
|
|
70113
70168
|
var FormData_default = import_form_data.default;
|
|
70114
70169
|
|
|
70115
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70170
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/toFormData.js
|
|
70116
70171
|
function isVisitable(thing) {
|
|
70117
70172
|
return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
|
|
70118
70173
|
}
|
|
@@ -70227,7 +70282,7 @@ function toFormData(obj, formData, options) {
|
|
|
70227
70282
|
}
|
|
70228
70283
|
var toFormData_default = toFormData;
|
|
70229
70284
|
|
|
70230
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70285
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
|
|
70231
70286
|
function encode(str) {
|
|
70232
70287
|
const charMap = {
|
|
70233
70288
|
"!": "%21",
|
|
@@ -70260,7 +70315,7 @@ prototype2.toString = function toString2(encoder) {
|
|
|
70260
70315
|
};
|
|
70261
70316
|
var AxiosURLSearchParams_default = AxiosURLSearchParams;
|
|
70262
70317
|
|
|
70263
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70318
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/buildURL.js
|
|
70264
70319
|
function encode2(val) {
|
|
70265
70320
|
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
70266
70321
|
}
|
|
@@ -70286,7 +70341,7 @@ function buildURL(url2, params, options) {
|
|
|
70286
70341
|
return url2;
|
|
70287
70342
|
}
|
|
70288
70343
|
|
|
70289
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70344
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/InterceptorManager.js
|
|
70290
70345
|
var InterceptorManager = class {
|
|
70291
70346
|
constructor() {
|
|
70292
70347
|
this.handlers = [];
|
|
@@ -70350,18 +70405,18 @@ var InterceptorManager = class {
|
|
|
70350
70405
|
};
|
|
70351
70406
|
var InterceptorManager_default = InterceptorManager;
|
|
70352
70407
|
|
|
70353
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70408
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/defaults/transitional.js
|
|
70354
70409
|
var transitional_default = {
|
|
70355
70410
|
silentJSONParsing: true,
|
|
70356
70411
|
forcedJSONParsing: true,
|
|
70357
70412
|
clarifyTimeoutError: false
|
|
70358
70413
|
};
|
|
70359
70414
|
|
|
70360
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70415
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
|
|
70361
70416
|
var import_url = __toESM(require("url"));
|
|
70362
70417
|
var URLSearchParams_default = import_url.default.URLSearchParams;
|
|
70363
70418
|
|
|
70364
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70419
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/platform/node/index.js
|
|
70365
70420
|
var node_default = {
|
|
70366
70421
|
isNode: true,
|
|
70367
70422
|
classes: {
|
|
@@ -70372,11 +70427,33 @@ var node_default = {
|
|
|
70372
70427
|
protocols: ["http", "https", "file", "data"]
|
|
70373
70428
|
};
|
|
70374
70429
|
|
|
70375
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70430
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/platform/common/utils.js
|
|
70431
|
+
var utils_exports = {};
|
|
70432
|
+
__export(utils_exports, {
|
|
70433
|
+
hasBrowserEnv: () => hasBrowserEnv,
|
|
70434
|
+
hasStandardBrowserEnv: () => hasStandardBrowserEnv,
|
|
70435
|
+
hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv
|
|
70436
|
+
});
|
|
70437
|
+
var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
|
|
70438
|
+
var hasStandardBrowserEnv = ((product) => {
|
|
70439
|
+
return hasBrowserEnv && ["ReactNative", "NativeScript", "NS"].indexOf(product) < 0;
|
|
70440
|
+
})(typeof navigator !== "undefined" && navigator.product);
|
|
70441
|
+
var hasStandardBrowserWebWorkerEnv = (() => {
|
|
70442
|
+
return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
|
|
70443
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
|
|
70444
|
+
})();
|
|
70445
|
+
|
|
70446
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/platform/index.js
|
|
70447
|
+
var platform_default = {
|
|
70448
|
+
...utils_exports,
|
|
70449
|
+
...node_default
|
|
70450
|
+
};
|
|
70451
|
+
|
|
70452
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
70376
70453
|
function toURLEncodedForm(data, options) {
|
|
70377
|
-
return toFormData_default(data, new
|
|
70454
|
+
return toFormData_default(data, new platform_default.classes.URLSearchParams(), Object.assign({
|
|
70378
70455
|
visitor: function(value, key, path18, helpers) {
|
|
70379
|
-
if (
|
|
70456
|
+
if (platform_default.isNode && utils_default.isBuffer(value)) {
|
|
70380
70457
|
this.append(key, value.toString("base64"));
|
|
70381
70458
|
return false;
|
|
70382
70459
|
}
|
|
@@ -70385,7 +70462,7 @@ function toURLEncodedForm(data, options) {
|
|
|
70385
70462
|
}, options));
|
|
70386
70463
|
}
|
|
70387
70464
|
|
|
70388
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70465
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/formDataToJSON.js
|
|
70389
70466
|
function parsePropPath(name) {
|
|
70390
70467
|
return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
|
|
70391
70468
|
return match[0] === "[]" ? "" : match[1] || match[0];
|
|
@@ -70406,6 +70483,8 @@ function arrayToObject(arr) {
|
|
|
70406
70483
|
function formDataToJSON(formData) {
|
|
70407
70484
|
function buildPath(path18, value, target, index) {
|
|
70408
70485
|
let name = path18[index++];
|
|
70486
|
+
if (name === "__proto__")
|
|
70487
|
+
return true;
|
|
70409
70488
|
const isNumericKey = Number.isFinite(+name);
|
|
70410
70489
|
const isLast = index >= path18.length;
|
|
70411
70490
|
name = !name && utils_default.isArray(target) ? target.length : name;
|
|
@@ -70437,7 +70516,7 @@ function formDataToJSON(formData) {
|
|
|
70437
70516
|
}
|
|
70438
70517
|
var formDataToJSON_default = formDataToJSON;
|
|
70439
70518
|
|
|
70440
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70519
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/defaults/index.js
|
|
70441
70520
|
function stringifySafely(rawValue, parser, encoder) {
|
|
70442
70521
|
if (utils_default.isString(rawValue)) {
|
|
70443
70522
|
try {
|
|
@@ -70463,9 +70542,6 @@ var defaults = {
|
|
|
70463
70542
|
}
|
|
70464
70543
|
const isFormData2 = utils_default.isFormData(data);
|
|
70465
70544
|
if (isFormData2) {
|
|
70466
|
-
if (!hasJSONContentType) {
|
|
70467
|
-
return data;
|
|
70468
|
-
}
|
|
70469
70545
|
return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
|
|
70470
70546
|
}
|
|
70471
70547
|
if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data)) {
|
|
@@ -70528,8 +70604,8 @@ var defaults = {
|
|
|
70528
70604
|
maxContentLength: -1,
|
|
70529
70605
|
maxBodyLength: -1,
|
|
70530
70606
|
env: {
|
|
70531
|
-
FormData:
|
|
70532
|
-
Blob:
|
|
70607
|
+
FormData: platform_default.classes.FormData,
|
|
70608
|
+
Blob: platform_default.classes.Blob
|
|
70533
70609
|
},
|
|
70534
70610
|
validateStatus: function validateStatus(status) {
|
|
70535
70611
|
return status >= 200 && status < 300;
|
|
@@ -70546,7 +70622,7 @@ utils_default.forEach(["delete", "get", "head", "post", "put", "patch"], (method
|
|
|
70546
70622
|
});
|
|
70547
70623
|
var defaults_default = defaults;
|
|
70548
70624
|
|
|
70549
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70625
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/parseHeaders.js
|
|
70550
70626
|
var ignoreDuplicateOf = utils_default.toObjectSet([
|
|
70551
70627
|
"age",
|
|
70552
70628
|
"authorization",
|
|
@@ -70591,7 +70667,7 @@ var parseHeaders_default = (rawHeaders) => {
|
|
|
70591
70667
|
return parsed;
|
|
70592
70668
|
};
|
|
70593
70669
|
|
|
70594
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70670
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/AxiosHeaders.js
|
|
70595
70671
|
var $internals = Symbol("internals");
|
|
70596
70672
|
function normalizeHeader(header) {
|
|
70597
70673
|
return header && String(header).trim().toLowerCase();
|
|
@@ -70809,7 +70885,7 @@ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
|
70809
70885
|
utils_default.freezeMethods(AxiosHeaders);
|
|
70810
70886
|
var AxiosHeaders_default = AxiosHeaders;
|
|
70811
70887
|
|
|
70812
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70888
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/transformData.js
|
|
70813
70889
|
function transformData(fns, response) {
|
|
70814
70890
|
const config = this || defaults_default;
|
|
70815
70891
|
const context = response || config;
|
|
@@ -70822,12 +70898,12 @@ function transformData(fns, response) {
|
|
|
70822
70898
|
return data;
|
|
70823
70899
|
}
|
|
70824
70900
|
|
|
70825
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70901
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/cancel/isCancel.js
|
|
70826
70902
|
function isCancel(value) {
|
|
70827
70903
|
return !!(value && value.__CANCEL__);
|
|
70828
70904
|
}
|
|
70829
70905
|
|
|
70830
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70906
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/cancel/CanceledError.js
|
|
70831
70907
|
function CanceledError(message, config, request) {
|
|
70832
70908
|
AxiosError_default.call(this, message == null ? "canceled" : message, AxiosError_default.ERR_CANCELED, config, request);
|
|
70833
70909
|
this.name = "CanceledError";
|
|
@@ -70837,7 +70913,7 @@ utils_default.inherits(CanceledError, AxiosError_default, {
|
|
|
70837
70913
|
});
|
|
70838
70914
|
var CanceledError_default = CanceledError;
|
|
70839
70915
|
|
|
70840
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70916
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/settle.js
|
|
70841
70917
|
function settle(resolve, reject, response) {
|
|
70842
70918
|
const validateStatus2 = response.config.validateStatus;
|
|
70843
70919
|
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
@@ -70853,17 +70929,17 @@ function settle(resolve, reject, response) {
|
|
|
70853
70929
|
}
|
|
70854
70930
|
}
|
|
70855
70931
|
|
|
70856
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70932
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
70857
70933
|
function isAbsoluteURL(url2) {
|
|
70858
70934
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
|
|
70859
70935
|
}
|
|
70860
70936
|
|
|
70861
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70937
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/combineURLs.js
|
|
70862
70938
|
function combineURLs(baseURL, relativeURL) {
|
|
70863
|
-
return relativeURL ? baseURL.replace(
|
|
70939
|
+
return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
|
|
70864
70940
|
}
|
|
70865
70941
|
|
|
70866
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70942
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/buildFullPath.js
|
|
70867
70943
|
function buildFullPath(baseURL, requestedURL) {
|
|
70868
70944
|
if (baseURL && !isAbsoluteURL(requestedURL)) {
|
|
70869
70945
|
return combineURLs(baseURL, requestedURL);
|
|
@@ -70871,7 +70947,7 @@ function buildFullPath(baseURL, requestedURL) {
|
|
|
70871
70947
|
return requestedURL;
|
|
70872
70948
|
}
|
|
70873
70949
|
|
|
70874
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70950
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/adapters/http.js
|
|
70875
70951
|
var import_proxy_from_env = __toESM(require_proxy_from_env());
|
|
70876
70952
|
var import_http = __toESM(require("http"));
|
|
70877
70953
|
var import_https = __toESM(require("https"));
|
|
@@ -70879,19 +70955,19 @@ var import_util2 = __toESM(require("util"));
|
|
|
70879
70955
|
var import_follow_redirects = __toESM(require_follow_redirects());
|
|
70880
70956
|
var import_zlib = __toESM(require("zlib"));
|
|
70881
70957
|
|
|
70882
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70883
|
-
var VERSION = "1.6.
|
|
70958
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/env/data.js
|
|
70959
|
+
var VERSION = "1.6.7";
|
|
70884
70960
|
|
|
70885
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70961
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/parseProtocol.js
|
|
70886
70962
|
function parseProtocol(url2) {
|
|
70887
70963
|
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
|
|
70888
70964
|
return match && match[1] || "";
|
|
70889
70965
|
}
|
|
70890
70966
|
|
|
70891
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70967
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/fromDataURI.js
|
|
70892
70968
|
var DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;
|
|
70893
70969
|
function fromDataURI(uri, asBlob, options) {
|
|
70894
|
-
const _Blob = options && options.Blob ||
|
|
70970
|
+
const _Blob = options && options.Blob || platform_default.classes.Blob;
|
|
70895
70971
|
const protocol = parseProtocol(uri);
|
|
70896
70972
|
if (asBlob === void 0 && _Blob) {
|
|
70897
70973
|
asBlob = true;
|
|
@@ -70917,13 +70993,13 @@ function fromDataURI(uri, asBlob, options) {
|
|
|
70917
70993
|
throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
|
|
70918
70994
|
}
|
|
70919
70995
|
|
|
70920
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70996
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/adapters/http.js
|
|
70921
70997
|
var import_stream4 = __toESM(require("stream"));
|
|
70922
70998
|
|
|
70923
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70999
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/AxiosTransformStream.js
|
|
70924
71000
|
var import_stream = __toESM(require("stream"));
|
|
70925
71001
|
|
|
70926
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
71002
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/throttle.js
|
|
70927
71003
|
function throttle(fn, freq) {
|
|
70928
71004
|
let timestamp = 0;
|
|
70929
71005
|
const threshold = 1e3 / freq;
|
|
@@ -70949,7 +71025,7 @@ function throttle(fn, freq) {
|
|
|
70949
71025
|
}
|
|
70950
71026
|
var throttle_default = throttle;
|
|
70951
71027
|
|
|
70952
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
71028
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/speedometer.js
|
|
70953
71029
|
function speedometer(samplesCount, min) {
|
|
70954
71030
|
samplesCount = samplesCount || 10;
|
|
70955
71031
|
const bytes = new Array(samplesCount);
|
|
@@ -70985,7 +71061,7 @@ function speedometer(samplesCount, min) {
|
|
|
70985
71061
|
}
|
|
70986
71062
|
var speedometer_default = speedometer;
|
|
70987
71063
|
|
|
70988
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
71064
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/AxiosTransformStream.js
|
|
70989
71065
|
var kInternals = Symbol("internals");
|
|
70990
71066
|
var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
70991
71067
|
constructor(options) {
|
|
@@ -71135,14 +71211,14 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
|
71135
71211
|
};
|
|
71136
71212
|
var AxiosTransformStream_default = AxiosTransformStream;
|
|
71137
71213
|
|
|
71138
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
71214
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/adapters/http.js
|
|
71139
71215
|
var import_events2 = __toESM(require("events"));
|
|
71140
71216
|
|
|
71141
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
71217
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/formDataToStream.js
|
|
71142
71218
|
var import_util = require("util");
|
|
71143
71219
|
var import_stream2 = require("stream");
|
|
71144
71220
|
|
|
71145
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
71221
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/readBlob.js
|
|
71146
71222
|
var { asyncIterator } = Symbol;
|
|
71147
71223
|
var readBlob = async function* (blob) {
|
|
71148
71224
|
if (blob.stream) {
|
|
@@ -71157,7 +71233,7 @@ var readBlob = async function* (blob) {
|
|
|
71157
71233
|
};
|
|
71158
71234
|
var readBlob_default = readBlob;
|
|
71159
71235
|
|
|
71160
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
71236
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/formDataToStream.js
|
|
71161
71237
|
var BOUNDARY_ALPHABET = utils_default.ALPHABET.ALPHA_DIGIT + "-_";
|
|
71162
71238
|
var textEncoder = new import_util.TextEncoder();
|
|
71163
71239
|
var CRLF = "\r\n";
|
|
@@ -71236,7 +71312,7 @@ var formDataToStream = (form, headersHandler, options) => {
|
|
|
71236
71312
|
};
|
|
71237
71313
|
var formDataToStream_default = formDataToStream;
|
|
71238
71314
|
|
|
71239
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
71315
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
|
|
71240
71316
|
var import_stream3 = __toESM(require("stream"));
|
|
71241
71317
|
var ZlibHeaderTransformStream = class extends import_stream3.default.Transform {
|
|
71242
71318
|
__transform(chunk, encoding, callback) {
|
|
@@ -71258,7 +71334,7 @@ var ZlibHeaderTransformStream = class extends import_stream3.default.Transform {
|
|
|
71258
71334
|
};
|
|
71259
71335
|
var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
|
|
71260
71336
|
|
|
71261
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
71337
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/callbackify.js
|
|
71262
71338
|
var callbackify = (fn, reducer) => {
|
|
71263
71339
|
return utils_default.isAsyncFn(fn) ? function(...args) {
|
|
71264
71340
|
const cb = args.pop();
|
|
@@ -71273,7 +71349,7 @@ var callbackify = (fn, reducer) => {
|
|
|
71273
71349
|
};
|
|
71274
71350
|
var callbackify_default = callbackify;
|
|
71275
71351
|
|
|
71276
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
71352
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/adapters/http.js
|
|
71277
71353
|
var zlibOptions = {
|
|
71278
71354
|
flush: import_zlib.default.constants.Z_SYNC_FLUSH,
|
|
71279
71355
|
finishFlush: import_zlib.default.constants.Z_SYNC_FLUSH
|
|
@@ -71285,15 +71361,15 @@ var brotliOptions = {
|
|
|
71285
71361
|
var isBrotliSupported = utils_default.isFunction(import_zlib.default.createBrotliDecompress);
|
|
71286
71362
|
var { http: httpFollow, https: httpsFollow } = import_follow_redirects.default;
|
|
71287
71363
|
var isHttps = /https:?/;
|
|
71288
|
-
var supportedProtocols =
|
|
71364
|
+
var supportedProtocols = platform_default.protocols.map((protocol) => {
|
|
71289
71365
|
return protocol + ":";
|
|
71290
71366
|
});
|
|
71291
|
-
function dispatchBeforeRedirect(options) {
|
|
71367
|
+
function dispatchBeforeRedirect(options, responseDetails) {
|
|
71292
71368
|
if (options.beforeRedirects.proxy) {
|
|
71293
71369
|
options.beforeRedirects.proxy(options);
|
|
71294
71370
|
}
|
|
71295
71371
|
if (options.beforeRedirects.config) {
|
|
71296
|
-
options.beforeRedirects.config(options);
|
|
71372
|
+
options.beforeRedirects.config(options, responseDetails);
|
|
71297
71373
|
}
|
|
71298
71374
|
}
|
|
71299
71375
|
function setProxy(options, configProxy, location) {
|
|
@@ -71373,6 +71449,9 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
71373
71449
|
const _lookup = callbackify_default(lookup, (value) => utils_default.isArray(value) ? value : [value]);
|
|
71374
71450
|
lookup = (hostname, opt, cb) => {
|
|
71375
71451
|
_lookup(hostname, opt, (err, arg0, arg1) => {
|
|
71452
|
+
if (err) {
|
|
71453
|
+
return cb(err);
|
|
71454
|
+
}
|
|
71376
71455
|
const addresses = utils_default.isArray(arg0) ? arg0.map((addr) => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
|
|
71377
71456
|
opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
|
|
71378
71457
|
});
|
|
@@ -71769,57 +71848,44 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
71769
71848
|
});
|
|
71770
71849
|
};
|
|
71771
71850
|
|
|
71772
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
71773
|
-
var cookies_default =
|
|
71851
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/cookies.js
|
|
71852
|
+
var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
71774
71853
|
// Standard browser envs support document.cookie
|
|
71775
|
-
|
|
71776
|
-
|
|
71777
|
-
|
|
71778
|
-
|
|
71779
|
-
|
|
71780
|
-
|
|
71781
|
-
|
|
71782
|
-
|
|
71783
|
-
|
|
71784
|
-
|
|
71785
|
-
|
|
71786
|
-
|
|
71787
|
-
|
|
71788
|
-
|
|
71789
|
-
|
|
71790
|
-
|
|
71791
|
-
|
|
71792
|
-
document.cookie = cookie.join("; ");
|
|
71793
|
-
},
|
|
71794
|
-
read: function read(name) {
|
|
71795
|
-
const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
|
|
71796
|
-
return match ? decodeURIComponent(match[3]) : null;
|
|
71797
|
-
},
|
|
71798
|
-
remove: function remove(name) {
|
|
71799
|
-
this.write(name, "", Date.now() - 864e5);
|
|
71800
|
-
}
|
|
71801
|
-
};
|
|
71802
|
-
}()
|
|
71854
|
+
{
|
|
71855
|
+
write(name, value, expires, path18, domain, secure) {
|
|
71856
|
+
const cookie = [name + "=" + encodeURIComponent(value)];
|
|
71857
|
+
utils_default.isNumber(expires) && cookie.push("expires=" + new Date(expires).toGMTString());
|
|
71858
|
+
utils_default.isString(path18) && cookie.push("path=" + path18);
|
|
71859
|
+
utils_default.isString(domain) && cookie.push("domain=" + domain);
|
|
71860
|
+
secure === true && cookie.push("secure");
|
|
71861
|
+
document.cookie = cookie.join("; ");
|
|
71862
|
+
},
|
|
71863
|
+
read(name) {
|
|
71864
|
+
const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
|
|
71865
|
+
return match ? decodeURIComponent(match[3]) : null;
|
|
71866
|
+
},
|
|
71867
|
+
remove(name) {
|
|
71868
|
+
this.write(name, "", Date.now() - 864e5);
|
|
71869
|
+
}
|
|
71870
|
+
}
|
|
71803
71871
|
) : (
|
|
71804
|
-
// Non
|
|
71805
|
-
|
|
71806
|
-
|
|
71807
|
-
|
|
71808
|
-
|
|
71809
|
-
|
|
71810
|
-
|
|
71811
|
-
|
|
71812
|
-
|
|
71813
|
-
|
|
71814
|
-
};
|
|
71815
|
-
}()
|
|
71872
|
+
// Non-standard browser env (web workers, react-native) lack needed support.
|
|
71873
|
+
{
|
|
71874
|
+
write() {
|
|
71875
|
+
},
|
|
71876
|
+
read() {
|
|
71877
|
+
return null;
|
|
71878
|
+
},
|
|
71879
|
+
remove() {
|
|
71880
|
+
}
|
|
71881
|
+
}
|
|
71816
71882
|
);
|
|
71817
71883
|
|
|
71818
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
71819
|
-
var isURLSameOrigin_default =
|
|
71884
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/isURLSameOrigin.js
|
|
71885
|
+
var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? (
|
|
71820
71886
|
// Standard browser envs have full support of the APIs needed to test
|
|
71821
71887
|
// whether the request URL is of the same origin as current location.
|
|
71822
|
-
function
|
|
71888
|
+
function standardBrowserEnv() {
|
|
71823
71889
|
const msie = /(msie|trident)/i.test(navigator.userAgent);
|
|
71824
71890
|
const urlParsingNode = document.createElement("a");
|
|
71825
71891
|
let originURL;
|
|
@@ -71849,14 +71915,14 @@ var isURLSameOrigin_default = node_default.isStandardBrowserEnv ? (
|
|
|
71849
71915
|
}()
|
|
71850
71916
|
) : (
|
|
71851
71917
|
// Non standard browser envs (web workers, react-native) lack needed support.
|
|
71852
|
-
function
|
|
71918
|
+
function nonStandardBrowserEnv() {
|
|
71853
71919
|
return function isURLSameOrigin() {
|
|
71854
71920
|
return true;
|
|
71855
71921
|
};
|
|
71856
71922
|
}()
|
|
71857
71923
|
);
|
|
71858
71924
|
|
|
71859
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
71925
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/adapters/xhr.js
|
|
71860
71926
|
function progressEventReducer(listener, isDownloadStream) {
|
|
71861
71927
|
let bytesNotified = 0;
|
|
71862
71928
|
const _speedometer = speedometer_default(50, 250);
|
|
@@ -71885,7 +71951,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
71885
71951
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
71886
71952
|
let requestData = config.data;
|
|
71887
71953
|
const requestHeaders = AxiosHeaders_default.from(config.headers).normalize();
|
|
71888
|
-
|
|
71954
|
+
let { responseType, withXSRFToken } = config;
|
|
71889
71955
|
let onCanceled;
|
|
71890
71956
|
function done() {
|
|
71891
71957
|
if (config.cancelToken) {
|
|
@@ -71897,12 +71963,11 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
71897
71963
|
}
|
|
71898
71964
|
let contentType;
|
|
71899
71965
|
if (utils_default.isFormData(requestData)) {
|
|
71900
|
-
if (
|
|
71966
|
+
if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
|
|
71901
71967
|
requestHeaders.setContentType(false);
|
|
71902
|
-
} else if (
|
|
71903
|
-
|
|
71904
|
-
|
|
71905
|
-
requestHeaders.setContentType(contentType.replace(/^\s*(multipart\/form-data);+/, "$1"));
|
|
71968
|
+
} else if ((contentType = requestHeaders.getContentType()) !== false) {
|
|
71969
|
+
const [type, ...tokens] = contentType ? contentType.split(";").map((token) => token.trim()).filter(Boolean) : [];
|
|
71970
|
+
requestHeaders.setContentType([type || "multipart/form-data", ...tokens].join("; "));
|
|
71906
71971
|
}
|
|
71907
71972
|
}
|
|
71908
71973
|
let request = new XMLHttpRequest();
|
|
@@ -71977,10 +72042,13 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
71977
72042
|
));
|
|
71978
72043
|
request = null;
|
|
71979
72044
|
};
|
|
71980
|
-
if (
|
|
71981
|
-
|
|
71982
|
-
if (
|
|
71983
|
-
|
|
72045
|
+
if (platform_default.hasStandardBrowserEnv) {
|
|
72046
|
+
withXSRFToken && utils_default.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config));
|
|
72047
|
+
if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin_default(fullPath)) {
|
|
72048
|
+
const xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && cookies_default.read(config.xsrfCookieName);
|
|
72049
|
+
if (xsrfValue) {
|
|
72050
|
+
requestHeaders.set(config.xsrfHeaderName, xsrfValue);
|
|
72051
|
+
}
|
|
71984
72052
|
}
|
|
71985
72053
|
}
|
|
71986
72054
|
requestData === void 0 && requestHeaders.setContentType(null);
|
|
@@ -72016,7 +72084,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
72016
72084
|
}
|
|
72017
72085
|
}
|
|
72018
72086
|
const protocol = parseProtocol(fullPath);
|
|
72019
|
-
if (protocol &&
|
|
72087
|
+
if (protocol && platform_default.protocols.indexOf(protocol) === -1) {
|
|
72020
72088
|
reject(new AxiosError_default("Unsupported protocol " + protocol + ":", AxiosError_default.ERR_BAD_REQUEST, config));
|
|
72021
72089
|
return;
|
|
72022
72090
|
}
|
|
@@ -72024,7 +72092,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
72024
72092
|
});
|
|
72025
72093
|
};
|
|
72026
72094
|
|
|
72027
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
72095
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/adapters/adapters.js
|
|
72028
72096
|
var knownAdapters = {
|
|
72029
72097
|
http: http_default,
|
|
72030
72098
|
xhr: xhr_default
|
|
@@ -72077,7 +72145,7 @@ var adapters_default = {
|
|
|
72077
72145
|
adapters: knownAdapters
|
|
72078
72146
|
};
|
|
72079
72147
|
|
|
72080
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
72148
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/dispatchRequest.js
|
|
72081
72149
|
function throwIfCancellationRequested(config) {
|
|
72082
72150
|
if (config.cancelToken) {
|
|
72083
72151
|
config.cancelToken.throwIfRequested();
|
|
@@ -72122,7 +72190,7 @@ function dispatchRequest(config) {
|
|
|
72122
72190
|
});
|
|
72123
72191
|
}
|
|
72124
72192
|
|
|
72125
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
72193
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/mergeConfig.js
|
|
72126
72194
|
var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? thing.toJSON() : thing;
|
|
72127
72195
|
function mergeConfig(config1, config2) {
|
|
72128
72196
|
config2 = config2 || {};
|
|
@@ -72174,6 +72242,7 @@ function mergeConfig(config1, config2) {
|
|
|
72174
72242
|
timeout: defaultToConfig2,
|
|
72175
72243
|
timeoutMessage: defaultToConfig2,
|
|
72176
72244
|
withCredentials: defaultToConfig2,
|
|
72245
|
+
withXSRFToken: defaultToConfig2,
|
|
72177
72246
|
adapter: defaultToConfig2,
|
|
72178
72247
|
responseType: defaultToConfig2,
|
|
72179
72248
|
xsrfCookieName: defaultToConfig2,
|
|
@@ -72201,7 +72270,7 @@ function mergeConfig(config1, config2) {
|
|
|
72201
72270
|
return config;
|
|
72202
72271
|
}
|
|
72203
72272
|
|
|
72204
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
72273
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/validator.js
|
|
72205
72274
|
var validators = {};
|
|
72206
72275
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
72207
72276
|
validators[type] = function validator(thing) {
|
|
@@ -72259,7 +72328,7 @@ var validator_default = {
|
|
|
72259
72328
|
validators
|
|
72260
72329
|
};
|
|
72261
72330
|
|
|
72262
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
72331
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/Axios.js
|
|
72263
72332
|
var validators2 = validator_default.validators;
|
|
72264
72333
|
var Axios = class {
|
|
72265
72334
|
constructor(instanceConfig) {
|
|
@@ -72277,7 +72346,24 @@ var Axios = class {
|
|
|
72277
72346
|
*
|
|
72278
72347
|
* @returns {Promise} The Promise to be fulfilled
|
|
72279
72348
|
*/
|
|
72280
|
-
request(configOrUrl, config) {
|
|
72349
|
+
async request(configOrUrl, config) {
|
|
72350
|
+
try {
|
|
72351
|
+
return await this._request(configOrUrl, config);
|
|
72352
|
+
} catch (err) {
|
|
72353
|
+
if (err instanceof Error) {
|
|
72354
|
+
let dummy;
|
|
72355
|
+
Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : dummy = new Error();
|
|
72356
|
+
const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, "") : "";
|
|
72357
|
+
if (!err.stack) {
|
|
72358
|
+
err.stack = stack;
|
|
72359
|
+
} else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ""))) {
|
|
72360
|
+
err.stack += "\n" + stack;
|
|
72361
|
+
}
|
|
72362
|
+
}
|
|
72363
|
+
throw err;
|
|
72364
|
+
}
|
|
72365
|
+
}
|
|
72366
|
+
_request(configOrUrl, config) {
|
|
72281
72367
|
if (typeof configOrUrl === "string") {
|
|
72282
72368
|
config = config || {};
|
|
72283
72369
|
config.url = configOrUrl;
|
|
@@ -72402,7 +72488,7 @@ utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(m
|
|
|
72402
72488
|
});
|
|
72403
72489
|
var Axios_default = Axios;
|
|
72404
72490
|
|
|
72405
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
72491
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/cancel/CancelToken.js
|
|
72406
72492
|
var CancelToken = class _CancelToken {
|
|
72407
72493
|
constructor(executor) {
|
|
72408
72494
|
if (typeof executor !== "function") {
|
|
@@ -72492,19 +72578,19 @@ var CancelToken = class _CancelToken {
|
|
|
72492
72578
|
};
|
|
72493
72579
|
var CancelToken_default = CancelToken;
|
|
72494
72580
|
|
|
72495
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
72581
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/spread.js
|
|
72496
72582
|
function spread(callback) {
|
|
72497
72583
|
return function wrap(arr) {
|
|
72498
72584
|
return callback.apply(null, arr);
|
|
72499
72585
|
};
|
|
72500
72586
|
}
|
|
72501
72587
|
|
|
72502
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
72588
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/isAxiosError.js
|
|
72503
72589
|
function isAxiosError(payload) {
|
|
72504
72590
|
return utils_default.isObject(payload) && payload.isAxiosError === true;
|
|
72505
72591
|
}
|
|
72506
72592
|
|
|
72507
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
72593
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
72508
72594
|
var HttpStatusCode = {
|
|
72509
72595
|
Continue: 100,
|
|
72510
72596
|
SwitchingProtocols: 101,
|
|
@@ -72575,7 +72661,7 @@ Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
|
72575
72661
|
});
|
|
72576
72662
|
var HttpStatusCode_default = HttpStatusCode;
|
|
72577
72663
|
|
|
72578
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
72664
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/axios.js
|
|
72579
72665
|
function createInstance(defaultConfig) {
|
|
72580
72666
|
const context = new Axios_default(defaultConfig);
|
|
72581
72667
|
const instance = bind(Axios_default.prototype.request, context);
|
|
@@ -72608,7 +72694,7 @@ axios.HttpStatusCode = HttpStatusCode_default;
|
|
|
72608
72694
|
axios.default = axios;
|
|
72609
72695
|
var axios_default = axios;
|
|
72610
72696
|
|
|
72611
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
72697
|
+
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/index.js
|
|
72612
72698
|
var {
|
|
72613
72699
|
Axios: Axios2,
|
|
72614
72700
|
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-20240220122504",
|
|
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-20240220122504"
|
|
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/
|
|
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-20240220122504",
|
|
36
|
+
"@modern-js/generator-common": "0.0.0-next-20240220122504",
|
|
37
|
+
"@modern-js/generator-plugin": "0.0.0-next-20240220122504",
|
|
38
|
+
"@modern-js/generator-utils": "0.0.0-next-20240220122504",
|
|
39
|
+
"@modern-js/module-generator": "0.0.0-next-20240220122504",
|
|
40
|
+
"@modern-js/mwa-generator": "0.0.0-next-20240220122504",
|
|
41
|
+
"@modern-js/monorepo-generator": "0.0.0-next-20240220122504",
|
|
42
|
+
"@scripts/build": "0.0.0-next-20240220122504",
|
|
43
|
+
"@scripts/jest-config": "0.0.0-next-20240220122504"
|
|
44
44
|
},
|
|
45
45
|
"sideEffects": false,
|
|
46
46
|
"publishConfig": {
|