pinme 2.0.7-beta.2 → 2.0.8-beta.1
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 +335 -561
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -32,9 +32,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
32
32
|
mod
|
|
33
33
|
));
|
|
34
34
|
|
|
35
|
-
// node_modules/dotenv/package.json
|
|
35
|
+
// node_modules/.pnpm/dotenv@16.5.0/node_modules/dotenv/package.json
|
|
36
36
|
var require_package = __commonJS({
|
|
37
|
-
"node_modules/dotenv/package.json"(exports2, module2) {
|
|
37
|
+
"node_modules/.pnpm/dotenv@16.5.0/node_modules/dotenv/package.json"(exports2, module2) {
|
|
38
38
|
module2.exports = {
|
|
39
39
|
name: "dotenv",
|
|
40
40
|
version: "16.5.0",
|
|
@@ -100,9 +100,9 @@ var require_package = __commonJS({
|
|
|
100
100
|
}
|
|
101
101
|
});
|
|
102
102
|
|
|
103
|
-
// node_modules/dotenv/lib/main.js
|
|
103
|
+
// node_modules/.pnpm/dotenv@16.5.0/node_modules/dotenv/lib/main.js
|
|
104
104
|
var require_main = __commonJS({
|
|
105
|
-
"node_modules/dotenv/lib/main.js"(exports2, module2) {
|
|
105
|
+
"node_modules/.pnpm/dotenv@16.5.0/node_modules/dotenv/lib/main.js"(exports2, module2) {
|
|
106
106
|
var fs17 = require("fs");
|
|
107
107
|
var path18 = require("path");
|
|
108
108
|
var os6 = require("os");
|
|
@@ -367,19 +367,19 @@ var require_main = __commonJS({
|
|
|
367
367
|
}
|
|
368
368
|
});
|
|
369
369
|
|
|
370
|
-
// node_modules/axios/lib/helpers/bind.js
|
|
370
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/bind.js
|
|
371
371
|
function bind(fn, thisArg) {
|
|
372
372
|
return function wrap() {
|
|
373
373
|
return fn.apply(thisArg, arguments);
|
|
374
374
|
};
|
|
375
375
|
}
|
|
376
376
|
var init_bind = __esm({
|
|
377
|
-
"node_modules/axios/lib/helpers/bind.js"() {
|
|
377
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/bind.js"() {
|
|
378
378
|
"use strict";
|
|
379
379
|
}
|
|
380
380
|
});
|
|
381
381
|
|
|
382
|
-
// node_modules/axios/lib/utils.js
|
|
382
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/utils.js
|
|
383
383
|
function isBuffer(val) {
|
|
384
384
|
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
|
|
385
385
|
}
|
|
@@ -453,7 +453,7 @@ function isSpecCompliantForm(thing) {
|
|
|
453
453
|
}
|
|
454
454
|
var toString, getPrototypeOf, kindOf, kindOfTest, typeOfTest, isArray, isUndefined, isArrayBuffer, isString, isFunction, isNumber, isObject, isBoolean, isPlainObject, isDate, isFile, isBlob, isFileList, isStream, isFormData, isURLSearchParams, trim, _global, isContextDefined, extend, stripBOM, inherits, toFlatObject, endsWith, toArray, isTypedArray, forEachEntry, matchAll, isHTMLForm, toCamelCase, hasOwnProperty, isRegExp, reduceDescriptors, freezeMethods, toObjectSet, noop, toFiniteNumber, ALPHA, DIGIT, ALPHABET, generateString, toJSONObject, utils_default;
|
|
455
455
|
var init_utils = __esm({
|
|
456
|
-
"node_modules/axios/lib/utils.js"() {
|
|
456
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/utils.js"() {
|
|
457
457
|
"use strict";
|
|
458
458
|
init_bind();
|
|
459
459
|
({ toString } = Object.prototype);
|
|
@@ -733,7 +733,7 @@ var init_utils = __esm({
|
|
|
733
733
|
}
|
|
734
734
|
});
|
|
735
735
|
|
|
736
|
-
// node_modules/axios/lib/core/AxiosError.js
|
|
736
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/core/AxiosError.js
|
|
737
737
|
function AxiosError(message, code, config, request, response) {
|
|
738
738
|
Error.call(this);
|
|
739
739
|
if (Error.captureStackTrace) {
|
|
@@ -750,7 +750,7 @@ function AxiosError(message, code, config, request, response) {
|
|
|
750
750
|
}
|
|
751
751
|
var prototype, descriptors, AxiosError_default;
|
|
752
752
|
var init_AxiosError = __esm({
|
|
753
|
-
"node_modules/axios/lib/core/AxiosError.js"() {
|
|
753
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/core/AxiosError.js"() {
|
|
754
754
|
"use strict";
|
|
755
755
|
init_utils();
|
|
756
756
|
utils_default.inherits(AxiosError, Error, {
|
|
@@ -812,16 +812,16 @@ var init_AxiosError = __esm({
|
|
|
812
812
|
}
|
|
813
813
|
});
|
|
814
814
|
|
|
815
|
-
// node_modules/axios/lib/platform/node/classes/FormData.js
|
|
815
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/platform/node/classes/FormData.js
|
|
816
816
|
var import_form_data, FormData_default;
|
|
817
817
|
var init_FormData = __esm({
|
|
818
|
-
"node_modules/axios/lib/platform/node/classes/FormData.js"() {
|
|
818
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/platform/node/classes/FormData.js"() {
|
|
819
819
|
import_form_data = __toESM(require("form-data"), 1);
|
|
820
820
|
FormData_default = import_form_data.default;
|
|
821
821
|
}
|
|
822
822
|
});
|
|
823
823
|
|
|
824
|
-
// node_modules/axios/lib/helpers/toFormData.js
|
|
824
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/toFormData.js
|
|
825
825
|
function isVisitable(thing) {
|
|
826
826
|
return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
|
|
827
827
|
}
|
|
@@ -930,7 +930,7 @@ function toFormData(obj, formData, options) {
|
|
|
930
930
|
}
|
|
931
931
|
var predicates, toFormData_default;
|
|
932
932
|
var init_toFormData = __esm({
|
|
933
|
-
"node_modules/axios/lib/helpers/toFormData.js"() {
|
|
933
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/toFormData.js"() {
|
|
934
934
|
"use strict";
|
|
935
935
|
init_utils();
|
|
936
936
|
init_AxiosError();
|
|
@@ -942,7 +942,7 @@ var init_toFormData = __esm({
|
|
|
942
942
|
}
|
|
943
943
|
});
|
|
944
944
|
|
|
945
|
-
// node_modules/axios/lib/helpers/AxiosURLSearchParams.js
|
|
945
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
|
|
946
946
|
function encode(str) {
|
|
947
947
|
const charMap = {
|
|
948
948
|
"!": "%21",
|
|
@@ -963,7 +963,7 @@ function AxiosURLSearchParams(params, options) {
|
|
|
963
963
|
}
|
|
964
964
|
var prototype2, AxiosURLSearchParams_default;
|
|
965
965
|
var init_AxiosURLSearchParams = __esm({
|
|
966
|
-
"node_modules/axios/lib/helpers/AxiosURLSearchParams.js"() {
|
|
966
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/AxiosURLSearchParams.js"() {
|
|
967
967
|
"use strict";
|
|
968
968
|
init_toFormData();
|
|
969
969
|
prototype2 = AxiosURLSearchParams.prototype;
|
|
@@ -982,7 +982,7 @@ var init_AxiosURLSearchParams = __esm({
|
|
|
982
982
|
}
|
|
983
983
|
});
|
|
984
984
|
|
|
985
|
-
// node_modules/axios/lib/helpers/buildURL.js
|
|
985
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/buildURL.js
|
|
986
986
|
function encode2(val) {
|
|
987
987
|
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
988
988
|
}
|
|
@@ -1008,17 +1008,17 @@ function buildURL(url2, params, options) {
|
|
|
1008
1008
|
return url2;
|
|
1009
1009
|
}
|
|
1010
1010
|
var init_buildURL = __esm({
|
|
1011
|
-
"node_modules/axios/lib/helpers/buildURL.js"() {
|
|
1011
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/buildURL.js"() {
|
|
1012
1012
|
"use strict";
|
|
1013
1013
|
init_utils();
|
|
1014
1014
|
init_AxiosURLSearchParams();
|
|
1015
1015
|
}
|
|
1016
1016
|
});
|
|
1017
1017
|
|
|
1018
|
-
// node_modules/axios/lib/core/InterceptorManager.js
|
|
1018
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/core/InterceptorManager.js
|
|
1019
1019
|
var InterceptorManager, InterceptorManager_default;
|
|
1020
1020
|
var init_InterceptorManager = __esm({
|
|
1021
|
-
"node_modules/axios/lib/core/InterceptorManager.js"() {
|
|
1021
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/core/InterceptorManager.js"() {
|
|
1022
1022
|
"use strict";
|
|
1023
1023
|
init_utils();
|
|
1024
1024
|
InterceptorManager = class {
|
|
@@ -1086,10 +1086,10 @@ var init_InterceptorManager = __esm({
|
|
|
1086
1086
|
}
|
|
1087
1087
|
});
|
|
1088
1088
|
|
|
1089
|
-
// node_modules/axios/lib/defaults/transitional.js
|
|
1089
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/defaults/transitional.js
|
|
1090
1090
|
var transitional_default;
|
|
1091
1091
|
var init_transitional = __esm({
|
|
1092
|
-
"node_modules/axios/lib/defaults/transitional.js"() {
|
|
1092
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/defaults/transitional.js"() {
|
|
1093
1093
|
"use strict";
|
|
1094
1094
|
transitional_default = {
|
|
1095
1095
|
silentJSONParsing: true,
|
|
@@ -1099,20 +1099,20 @@ var init_transitional = __esm({
|
|
|
1099
1099
|
}
|
|
1100
1100
|
});
|
|
1101
1101
|
|
|
1102
|
-
// node_modules/axios/lib/platform/node/classes/URLSearchParams.js
|
|
1102
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
|
|
1103
1103
|
var import_url, URLSearchParams_default;
|
|
1104
1104
|
var init_URLSearchParams = __esm({
|
|
1105
|
-
"node_modules/axios/lib/platform/node/classes/URLSearchParams.js"() {
|
|
1105
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/platform/node/classes/URLSearchParams.js"() {
|
|
1106
1106
|
"use strict";
|
|
1107
1107
|
import_url = __toESM(require("url"), 1);
|
|
1108
1108
|
URLSearchParams_default = import_url.default.URLSearchParams;
|
|
1109
1109
|
}
|
|
1110
1110
|
});
|
|
1111
1111
|
|
|
1112
|
-
// node_modules/axios/lib/platform/node/index.js
|
|
1112
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/platform/node/index.js
|
|
1113
1113
|
var node_default;
|
|
1114
1114
|
var init_node = __esm({
|
|
1115
|
-
"node_modules/axios/lib/platform/node/index.js"() {
|
|
1115
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/platform/node/index.js"() {
|
|
1116
1116
|
init_URLSearchParams();
|
|
1117
1117
|
init_FormData();
|
|
1118
1118
|
node_default = {
|
|
@@ -1127,14 +1127,14 @@ var init_node = __esm({
|
|
|
1127
1127
|
}
|
|
1128
1128
|
});
|
|
1129
1129
|
|
|
1130
|
-
// node_modules/axios/lib/platform/index.js
|
|
1130
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/platform/index.js
|
|
1131
1131
|
var init_platform = __esm({
|
|
1132
|
-
"node_modules/axios/lib/platform/index.js"() {
|
|
1132
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/platform/index.js"() {
|
|
1133
1133
|
init_node();
|
|
1134
1134
|
}
|
|
1135
1135
|
});
|
|
1136
1136
|
|
|
1137
|
-
// node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
1137
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
1138
1138
|
function toURLEncodedForm(data, options) {
|
|
1139
1139
|
return toFormData_default(data, new node_default.classes.URLSearchParams(), Object.assign({
|
|
1140
1140
|
visitor: function(value, key, path18, helpers) {
|
|
@@ -1147,7 +1147,7 @@ function toURLEncodedForm(data, options) {
|
|
|
1147
1147
|
}, options));
|
|
1148
1148
|
}
|
|
1149
1149
|
var init_toURLEncodedForm = __esm({
|
|
1150
|
-
"node_modules/axios/lib/helpers/toURLEncodedForm.js"() {
|
|
1150
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/toURLEncodedForm.js"() {
|
|
1151
1151
|
"use strict";
|
|
1152
1152
|
init_utils();
|
|
1153
1153
|
init_toFormData();
|
|
@@ -1155,7 +1155,7 @@ var init_toURLEncodedForm = __esm({
|
|
|
1155
1155
|
}
|
|
1156
1156
|
});
|
|
1157
1157
|
|
|
1158
|
-
// node_modules/axios/lib/helpers/formDataToJSON.js
|
|
1158
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/formDataToJSON.js
|
|
1159
1159
|
function parsePropPath(name) {
|
|
1160
1160
|
return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
|
|
1161
1161
|
return match[0] === "[]" ? "" : match[1] || match[0];
|
|
@@ -1207,14 +1207,14 @@ function formDataToJSON(formData) {
|
|
|
1207
1207
|
}
|
|
1208
1208
|
var formDataToJSON_default;
|
|
1209
1209
|
var init_formDataToJSON = __esm({
|
|
1210
|
-
"node_modules/axios/lib/helpers/formDataToJSON.js"() {
|
|
1210
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/formDataToJSON.js"() {
|
|
1211
1211
|
"use strict";
|
|
1212
1212
|
init_utils();
|
|
1213
1213
|
formDataToJSON_default = formDataToJSON;
|
|
1214
1214
|
}
|
|
1215
1215
|
});
|
|
1216
1216
|
|
|
1217
|
-
// node_modules/axios/lib/defaults/index.js
|
|
1217
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/defaults/index.js
|
|
1218
1218
|
function stringifySafely(rawValue, parser, encoder) {
|
|
1219
1219
|
if (utils_default.isString(rawValue)) {
|
|
1220
1220
|
try {
|
|
@@ -1230,7 +1230,7 @@ function stringifySafely(rawValue, parser, encoder) {
|
|
|
1230
1230
|
}
|
|
1231
1231
|
var DEFAULT_CONTENT_TYPE, defaults, defaults_default;
|
|
1232
1232
|
var init_defaults = __esm({
|
|
1233
|
-
"node_modules/axios/lib/defaults/index.js"() {
|
|
1233
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/defaults/index.js"() {
|
|
1234
1234
|
"use strict";
|
|
1235
1235
|
init_utils();
|
|
1236
1236
|
init_AxiosError();
|
|
@@ -1341,10 +1341,10 @@ var init_defaults = __esm({
|
|
|
1341
1341
|
}
|
|
1342
1342
|
});
|
|
1343
1343
|
|
|
1344
|
-
// node_modules/axios/lib/helpers/parseHeaders.js
|
|
1344
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/parseHeaders.js
|
|
1345
1345
|
var ignoreDuplicateOf, parseHeaders_default;
|
|
1346
1346
|
var init_parseHeaders = __esm({
|
|
1347
|
-
"node_modules/axios/lib/helpers/parseHeaders.js"() {
|
|
1347
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/parseHeaders.js"() {
|
|
1348
1348
|
"use strict";
|
|
1349
1349
|
init_utils();
|
|
1350
1350
|
ignoreDuplicateOf = utils_default.toObjectSet([
|
|
@@ -1393,7 +1393,7 @@ var init_parseHeaders = __esm({
|
|
|
1393
1393
|
}
|
|
1394
1394
|
});
|
|
1395
1395
|
|
|
1396
|
-
// node_modules/axios/lib/core/AxiosHeaders.js
|
|
1396
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/core/AxiosHeaders.js
|
|
1397
1397
|
function normalizeHeader(header) {
|
|
1398
1398
|
return header && String(header).trim().toLowerCase();
|
|
1399
1399
|
}
|
|
@@ -1445,7 +1445,7 @@ function buildAccessors(obj, header) {
|
|
|
1445
1445
|
}
|
|
1446
1446
|
var $internals, AxiosHeaders, AxiosHeaders_default;
|
|
1447
1447
|
var init_AxiosHeaders = __esm({
|
|
1448
|
-
"node_modules/axios/lib/core/AxiosHeaders.js"() {
|
|
1448
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/core/AxiosHeaders.js"() {
|
|
1449
1449
|
"use strict";
|
|
1450
1450
|
init_utils();
|
|
1451
1451
|
init_parseHeaders();
|
|
@@ -1609,7 +1609,7 @@ var init_AxiosHeaders = __esm({
|
|
|
1609
1609
|
}
|
|
1610
1610
|
});
|
|
1611
1611
|
|
|
1612
|
-
// node_modules/axios/lib/core/transformData.js
|
|
1612
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/core/transformData.js
|
|
1613
1613
|
function transformData(fns, response) {
|
|
1614
1614
|
const config = this || defaults_default;
|
|
1615
1615
|
const context = response || config;
|
|
@@ -1622,7 +1622,7 @@ function transformData(fns, response) {
|
|
|
1622
1622
|
return data;
|
|
1623
1623
|
}
|
|
1624
1624
|
var init_transformData = __esm({
|
|
1625
|
-
"node_modules/axios/lib/core/transformData.js"() {
|
|
1625
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/core/transformData.js"() {
|
|
1626
1626
|
"use strict";
|
|
1627
1627
|
init_utils();
|
|
1628
1628
|
init_defaults();
|
|
@@ -1630,24 +1630,24 @@ var init_transformData = __esm({
|
|
|
1630
1630
|
}
|
|
1631
1631
|
});
|
|
1632
1632
|
|
|
1633
|
-
// node_modules/axios/lib/cancel/isCancel.js
|
|
1633
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/cancel/isCancel.js
|
|
1634
1634
|
function isCancel(value) {
|
|
1635
1635
|
return !!(value && value.__CANCEL__);
|
|
1636
1636
|
}
|
|
1637
1637
|
var init_isCancel = __esm({
|
|
1638
|
-
"node_modules/axios/lib/cancel/isCancel.js"() {
|
|
1638
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/cancel/isCancel.js"() {
|
|
1639
1639
|
"use strict";
|
|
1640
1640
|
}
|
|
1641
1641
|
});
|
|
1642
1642
|
|
|
1643
|
-
// node_modules/axios/lib/cancel/CanceledError.js
|
|
1643
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/cancel/CanceledError.js
|
|
1644
1644
|
function CanceledError(message, config, request) {
|
|
1645
1645
|
AxiosError_default.call(this, message == null ? "canceled" : message, AxiosError_default.ERR_CANCELED, config, request);
|
|
1646
1646
|
this.name = "CanceledError";
|
|
1647
1647
|
}
|
|
1648
1648
|
var CanceledError_default;
|
|
1649
1649
|
var init_CanceledError = __esm({
|
|
1650
|
-
"node_modules/axios/lib/cancel/CanceledError.js"() {
|
|
1650
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/cancel/CanceledError.js"() {
|
|
1651
1651
|
"use strict";
|
|
1652
1652
|
init_AxiosError();
|
|
1653
1653
|
init_utils();
|
|
@@ -1658,7 +1658,7 @@ var init_CanceledError = __esm({
|
|
|
1658
1658
|
}
|
|
1659
1659
|
});
|
|
1660
1660
|
|
|
1661
|
-
// node_modules/axios/lib/core/settle.js
|
|
1661
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/core/settle.js
|
|
1662
1662
|
function settle(resolve, reject, response) {
|
|
1663
1663
|
const validateStatus2 = response.config.validateStatus;
|
|
1664
1664
|
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
@@ -1674,33 +1674,33 @@ function settle(resolve, reject, response) {
|
|
|
1674
1674
|
}
|
|
1675
1675
|
}
|
|
1676
1676
|
var init_settle = __esm({
|
|
1677
|
-
"node_modules/axios/lib/core/settle.js"() {
|
|
1677
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/core/settle.js"() {
|
|
1678
1678
|
"use strict";
|
|
1679
1679
|
init_AxiosError();
|
|
1680
1680
|
}
|
|
1681
1681
|
});
|
|
1682
1682
|
|
|
1683
|
-
// node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
1683
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
1684
1684
|
function isAbsoluteURL(url2) {
|
|
1685
1685
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
|
|
1686
1686
|
}
|
|
1687
1687
|
var init_isAbsoluteURL = __esm({
|
|
1688
|
-
"node_modules/axios/lib/helpers/isAbsoluteURL.js"() {
|
|
1688
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/isAbsoluteURL.js"() {
|
|
1689
1689
|
"use strict";
|
|
1690
1690
|
}
|
|
1691
1691
|
});
|
|
1692
1692
|
|
|
1693
|
-
// node_modules/axios/lib/helpers/combineURLs.js
|
|
1693
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/combineURLs.js
|
|
1694
1694
|
function combineURLs(baseURL, relativeURL) {
|
|
1695
1695
|
return relativeURL ? baseURL.replace(/\/+$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
|
|
1696
1696
|
}
|
|
1697
1697
|
var init_combineURLs = __esm({
|
|
1698
|
-
"node_modules/axios/lib/helpers/combineURLs.js"() {
|
|
1698
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/combineURLs.js"() {
|
|
1699
1699
|
"use strict";
|
|
1700
1700
|
}
|
|
1701
1701
|
});
|
|
1702
1702
|
|
|
1703
|
-
// node_modules/axios/lib/core/buildFullPath.js
|
|
1703
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/core/buildFullPath.js
|
|
1704
1704
|
function buildFullPath(baseURL, requestedURL) {
|
|
1705
1705
|
if (baseURL && !isAbsoluteURL(requestedURL)) {
|
|
1706
1706
|
return combineURLs(baseURL, requestedURL);
|
|
@@ -1708,16 +1708,16 @@ function buildFullPath(baseURL, requestedURL) {
|
|
|
1708
1708
|
return requestedURL;
|
|
1709
1709
|
}
|
|
1710
1710
|
var init_buildFullPath = __esm({
|
|
1711
|
-
"node_modules/axios/lib/core/buildFullPath.js"() {
|
|
1711
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/core/buildFullPath.js"() {
|
|
1712
1712
|
"use strict";
|
|
1713
1713
|
init_isAbsoluteURL();
|
|
1714
1714
|
init_combineURLs();
|
|
1715
1715
|
}
|
|
1716
1716
|
});
|
|
1717
1717
|
|
|
1718
|
-
// node_modules/proxy-from-env/index.js
|
|
1718
|
+
// node_modules/.pnpm/proxy-from-env@1.1.0/node_modules/proxy-from-env/index.js
|
|
1719
1719
|
var require_proxy_from_env = __commonJS({
|
|
1720
|
-
"node_modules/proxy-from-env/index.js"(exports2) {
|
|
1720
|
+
"node_modules/.pnpm/proxy-from-env@1.1.0/node_modules/proxy-from-env/index.js"(exports2) {
|
|
1721
1721
|
"use strict";
|
|
1722
1722
|
var parseUrl = require("url").parse;
|
|
1723
1723
|
var DEFAULT_PORTS = {
|
|
@@ -1785,9 +1785,9 @@ var require_proxy_from_env = __commonJS({
|
|
|
1785
1785
|
}
|
|
1786
1786
|
});
|
|
1787
1787
|
|
|
1788
|
-
// node_modules/ms/index.js
|
|
1788
|
+
// node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js
|
|
1789
1789
|
var require_ms = __commonJS({
|
|
1790
|
-
"node_modules/ms/index.js"(exports2, module2) {
|
|
1790
|
+
"node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js"(exports2, module2) {
|
|
1791
1791
|
var s = 1e3;
|
|
1792
1792
|
var m = s * 60;
|
|
1793
1793
|
var h = m * 60;
|
|
@@ -1901,9 +1901,10 @@ var require_ms = __commonJS({
|
|
|
1901
1901
|
}
|
|
1902
1902
|
});
|
|
1903
1903
|
|
|
1904
|
-
// node_modules/debug/src/common.js
|
|
1904
|
+
// node_modules/.pnpm/debug@3.2.7/node_modules/debug/src/common.js
|
|
1905
1905
|
var require_common = __commonJS({
|
|
1906
|
-
"node_modules/debug/src/common.js"(exports2, module2) {
|
|
1906
|
+
"node_modules/.pnpm/debug@3.2.7/node_modules/debug/src/common.js"(exports2, module2) {
|
|
1907
|
+
"use strict";
|
|
1907
1908
|
function setup(env) {
|
|
1908
1909
|
createDebug.debug = createDebug;
|
|
1909
1910
|
createDebug.default = createDebug;
|
|
@@ -1912,16 +1913,16 @@ var require_common = __commonJS({
|
|
|
1912
1913
|
createDebug.enable = enable;
|
|
1913
1914
|
createDebug.enabled = enabled;
|
|
1914
1915
|
createDebug.humanize = require_ms();
|
|
1915
|
-
|
|
1916
|
-
Object.keys(env).forEach((key) => {
|
|
1916
|
+
Object.keys(env).forEach(function(key) {
|
|
1917
1917
|
createDebug[key] = env[key];
|
|
1918
1918
|
});
|
|
1919
|
+
createDebug.instances = [];
|
|
1919
1920
|
createDebug.names = [];
|
|
1920
1921
|
createDebug.skips = [];
|
|
1921
1922
|
createDebug.formatters = {};
|
|
1922
1923
|
function selectColor(namespace) {
|
|
1923
|
-
|
|
1924
|
-
for (
|
|
1924
|
+
var hash = 0;
|
|
1925
|
+
for (var i = 0; i < namespace.length; i++) {
|
|
1925
1926
|
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
1926
1927
|
hash |= 0;
|
|
1927
1928
|
}
|
|
@@ -1929,17 +1930,17 @@ var require_common = __commonJS({
|
|
|
1929
1930
|
}
|
|
1930
1931
|
createDebug.selectColor = selectColor;
|
|
1931
1932
|
function createDebug(namespace) {
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
let namespacesCache;
|
|
1935
|
-
let enabledCache;
|
|
1936
|
-
function debug(...args) {
|
|
1933
|
+
var prevTime;
|
|
1934
|
+
function debug() {
|
|
1937
1935
|
if (!debug.enabled) {
|
|
1938
1936
|
return;
|
|
1939
1937
|
}
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1938
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1939
|
+
args[_key] = arguments[_key];
|
|
1940
|
+
}
|
|
1941
|
+
var self2 = debug;
|
|
1942
|
+
var curr = Number(/* @__PURE__ */ new Date());
|
|
1943
|
+
var ms = curr - (prevTime || curr);
|
|
1943
1944
|
self2.diff = ms;
|
|
1944
1945
|
self2.prev = prevTime;
|
|
1945
1946
|
self2.curr = curr;
|
|
@@ -1948,15 +1949,15 @@ var require_common = __commonJS({
|
|
|
1948
1949
|
if (typeof args[0] !== "string") {
|
|
1949
1950
|
args.unshift("%O");
|
|
1950
1951
|
}
|
|
1951
|
-
|
|
1952
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format)
|
|
1952
|
+
var index = 0;
|
|
1953
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, function(match, format) {
|
|
1953
1954
|
if (match === "%%") {
|
|
1954
|
-
return
|
|
1955
|
+
return match;
|
|
1955
1956
|
}
|
|
1956
1957
|
index++;
|
|
1957
|
-
|
|
1958
|
+
var formatter = createDebug.formatters[format];
|
|
1958
1959
|
if (typeof formatter === "function") {
|
|
1959
|
-
|
|
1960
|
+
var val = args[index];
|
|
1960
1961
|
match = formatter.call(self2, val);
|
|
1961
1962
|
args.splice(index, 1);
|
|
1962
1963
|
index--;
|
|
@@ -1964,99 +1965,71 @@ var require_common = __commonJS({
|
|
|
1964
1965
|
return match;
|
|
1965
1966
|
});
|
|
1966
1967
|
createDebug.formatArgs.call(self2, args);
|
|
1967
|
-
|
|
1968
|
+
var logFn = self2.log || createDebug.log;
|
|
1968
1969
|
logFn.apply(self2, args);
|
|
1969
1970
|
}
|
|
1970
1971
|
debug.namespace = namespace;
|
|
1972
|
+
debug.enabled = createDebug.enabled(namespace);
|
|
1971
1973
|
debug.useColors = createDebug.useColors();
|
|
1972
|
-
debug.color =
|
|
1974
|
+
debug.color = selectColor(namespace);
|
|
1975
|
+
debug.destroy = destroy;
|
|
1973
1976
|
debug.extend = extend2;
|
|
1974
|
-
debug.destroy = createDebug.destroy;
|
|
1975
|
-
Object.defineProperty(debug, "enabled", {
|
|
1976
|
-
enumerable: true,
|
|
1977
|
-
configurable: false,
|
|
1978
|
-
get: () => {
|
|
1979
|
-
if (enableOverride !== null) {
|
|
1980
|
-
return enableOverride;
|
|
1981
|
-
}
|
|
1982
|
-
if (namespacesCache !== createDebug.namespaces) {
|
|
1983
|
-
namespacesCache = createDebug.namespaces;
|
|
1984
|
-
enabledCache = createDebug.enabled(namespace);
|
|
1985
|
-
}
|
|
1986
|
-
return enabledCache;
|
|
1987
|
-
},
|
|
1988
|
-
set: (v) => {
|
|
1989
|
-
enableOverride = v;
|
|
1990
|
-
}
|
|
1991
|
-
});
|
|
1992
1977
|
if (typeof createDebug.init === "function") {
|
|
1993
1978
|
createDebug.init(debug);
|
|
1994
1979
|
}
|
|
1980
|
+
createDebug.instances.push(debug);
|
|
1995
1981
|
return debug;
|
|
1996
1982
|
}
|
|
1983
|
+
function destroy() {
|
|
1984
|
+
var index = createDebug.instances.indexOf(this);
|
|
1985
|
+
if (index !== -1) {
|
|
1986
|
+
createDebug.instances.splice(index, 1);
|
|
1987
|
+
return true;
|
|
1988
|
+
}
|
|
1989
|
+
return false;
|
|
1990
|
+
}
|
|
1997
1991
|
function extend2(namespace, delimiter) {
|
|
1998
|
-
|
|
1999
|
-
newDebug.log = this.log;
|
|
2000
|
-
return newDebug;
|
|
1992
|
+
return createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
|
|
2001
1993
|
}
|
|
2002
1994
|
function enable(namespaces) {
|
|
2003
1995
|
createDebug.save(namespaces);
|
|
2004
|
-
createDebug.namespaces = namespaces;
|
|
2005
1996
|
createDebug.names = [];
|
|
2006
1997
|
createDebug.skips = [];
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
1998
|
+
var i;
|
|
1999
|
+
var split = (typeof namespaces === "string" ? namespaces : "").split(/[\s,]+/);
|
|
2000
|
+
var len = split.length;
|
|
2001
|
+
for (i = 0; i < len; i++) {
|
|
2002
|
+
if (!split[i]) {
|
|
2003
|
+
continue;
|
|
2013
2004
|
}
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
let searchIndex = 0;
|
|
2018
|
-
let templateIndex = 0;
|
|
2019
|
-
let starIndex = -1;
|
|
2020
|
-
let matchIndex = 0;
|
|
2021
|
-
while (searchIndex < search.length) {
|
|
2022
|
-
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
|
|
2023
|
-
if (template[templateIndex] === "*") {
|
|
2024
|
-
starIndex = templateIndex;
|
|
2025
|
-
matchIndex = searchIndex;
|
|
2026
|
-
templateIndex++;
|
|
2027
|
-
} else {
|
|
2028
|
-
searchIndex++;
|
|
2029
|
-
templateIndex++;
|
|
2030
|
-
}
|
|
2031
|
-
} else if (starIndex !== -1) {
|
|
2032
|
-
templateIndex = starIndex + 1;
|
|
2033
|
-
matchIndex++;
|
|
2034
|
-
searchIndex = matchIndex;
|
|
2005
|
+
namespaces = split[i].replace(/\*/g, ".*?");
|
|
2006
|
+
if (namespaces[0] === "-") {
|
|
2007
|
+
createDebug.skips.push(new RegExp("^" + namespaces.substr(1) + "$"));
|
|
2035
2008
|
} else {
|
|
2036
|
-
|
|
2009
|
+
createDebug.names.push(new RegExp("^" + namespaces + "$"));
|
|
2037
2010
|
}
|
|
2038
2011
|
}
|
|
2039
|
-
|
|
2040
|
-
|
|
2012
|
+
for (i = 0; i < createDebug.instances.length; i++) {
|
|
2013
|
+
var instance = createDebug.instances[i];
|
|
2014
|
+
instance.enabled = createDebug.enabled(instance.namespace);
|
|
2041
2015
|
}
|
|
2042
|
-
return templateIndex === template.length;
|
|
2043
2016
|
}
|
|
2044
2017
|
function disable() {
|
|
2045
|
-
const namespaces = [
|
|
2046
|
-
...createDebug.names,
|
|
2047
|
-
...createDebug.skips.map((namespace) => "-" + namespace)
|
|
2048
|
-
].join(",");
|
|
2049
2018
|
createDebug.enable("");
|
|
2050
|
-
return namespaces;
|
|
2051
2019
|
}
|
|
2052
2020
|
function enabled(name) {
|
|
2053
|
-
|
|
2054
|
-
|
|
2021
|
+
if (name[name.length - 1] === "*") {
|
|
2022
|
+
return true;
|
|
2023
|
+
}
|
|
2024
|
+
var i;
|
|
2025
|
+
var len;
|
|
2026
|
+
for (i = 0, len = createDebug.skips.length; i < len; i++) {
|
|
2027
|
+
if (createDebug.skips[i].test(name)) {
|
|
2055
2028
|
return false;
|
|
2056
2029
|
}
|
|
2057
2030
|
}
|
|
2058
|
-
for (
|
|
2059
|
-
if (
|
|
2031
|
+
for (i = 0, len = createDebug.names.length; i < len; i++) {
|
|
2032
|
+
if (createDebug.names[i].test(name)) {
|
|
2060
2033
|
return true;
|
|
2061
2034
|
}
|
|
2062
2035
|
}
|
|
@@ -2068,9 +2041,6 @@ var require_common = __commonJS({
|
|
|
2068
2041
|
}
|
|
2069
2042
|
return val;
|
|
2070
2043
|
}
|
|
2071
|
-
function destroy() {
|
|
2072
|
-
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
2073
|
-
}
|
|
2074
2044
|
createDebug.enable(createDebug.load());
|
|
2075
2045
|
return createDebug;
|
|
2076
2046
|
}
|
|
@@ -2078,101 +2048,29 @@ var require_common = __commonJS({
|
|
|
2078
2048
|
}
|
|
2079
2049
|
});
|
|
2080
2050
|
|
|
2081
|
-
// node_modules/debug/src/browser.js
|
|
2051
|
+
// node_modules/.pnpm/debug@3.2.7/node_modules/debug/src/browser.js
|
|
2082
2052
|
var require_browser = __commonJS({
|
|
2083
|
-
"node_modules/debug/src/browser.js"(exports2, module2) {
|
|
2053
|
+
"node_modules/.pnpm/debug@3.2.7/node_modules/debug/src/browser.js"(exports2, module2) {
|
|
2054
|
+
"use strict";
|
|
2055
|
+
function _typeof(obj) {
|
|
2056
|
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
2057
|
+
_typeof = function _typeof2(obj2) {
|
|
2058
|
+
return typeof obj2;
|
|
2059
|
+
};
|
|
2060
|
+
} else {
|
|
2061
|
+
_typeof = function _typeof2(obj2) {
|
|
2062
|
+
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
2063
|
+
};
|
|
2064
|
+
}
|
|
2065
|
+
return _typeof(obj);
|
|
2066
|
+
}
|
|
2067
|
+
exports2.log = log;
|
|
2084
2068
|
exports2.formatArgs = formatArgs;
|
|
2085
2069
|
exports2.save = save;
|
|
2086
2070
|
exports2.load = load;
|
|
2087
2071
|
exports2.useColors = useColors;
|
|
2088
2072
|
exports2.storage = localstorage();
|
|
2089
|
-
exports2.
|
|
2090
|
-
let warned = false;
|
|
2091
|
-
return () => {
|
|
2092
|
-
if (!warned) {
|
|
2093
|
-
warned = true;
|
|
2094
|
-
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
2095
|
-
}
|
|
2096
|
-
};
|
|
2097
|
-
})();
|
|
2098
|
-
exports2.colors = [
|
|
2099
|
-
"#0000CC",
|
|
2100
|
-
"#0000FF",
|
|
2101
|
-
"#0033CC",
|
|
2102
|
-
"#0033FF",
|
|
2103
|
-
"#0066CC",
|
|
2104
|
-
"#0066FF",
|
|
2105
|
-
"#0099CC",
|
|
2106
|
-
"#0099FF",
|
|
2107
|
-
"#00CC00",
|
|
2108
|
-
"#00CC33",
|
|
2109
|
-
"#00CC66",
|
|
2110
|
-
"#00CC99",
|
|
2111
|
-
"#00CCCC",
|
|
2112
|
-
"#00CCFF",
|
|
2113
|
-
"#3300CC",
|
|
2114
|
-
"#3300FF",
|
|
2115
|
-
"#3333CC",
|
|
2116
|
-
"#3333FF",
|
|
2117
|
-
"#3366CC",
|
|
2118
|
-
"#3366FF",
|
|
2119
|
-
"#3399CC",
|
|
2120
|
-
"#3399FF",
|
|
2121
|
-
"#33CC00",
|
|
2122
|
-
"#33CC33",
|
|
2123
|
-
"#33CC66",
|
|
2124
|
-
"#33CC99",
|
|
2125
|
-
"#33CCCC",
|
|
2126
|
-
"#33CCFF",
|
|
2127
|
-
"#6600CC",
|
|
2128
|
-
"#6600FF",
|
|
2129
|
-
"#6633CC",
|
|
2130
|
-
"#6633FF",
|
|
2131
|
-
"#66CC00",
|
|
2132
|
-
"#66CC33",
|
|
2133
|
-
"#9900CC",
|
|
2134
|
-
"#9900FF",
|
|
2135
|
-
"#9933CC",
|
|
2136
|
-
"#9933FF",
|
|
2137
|
-
"#99CC00",
|
|
2138
|
-
"#99CC33",
|
|
2139
|
-
"#CC0000",
|
|
2140
|
-
"#CC0033",
|
|
2141
|
-
"#CC0066",
|
|
2142
|
-
"#CC0099",
|
|
2143
|
-
"#CC00CC",
|
|
2144
|
-
"#CC00FF",
|
|
2145
|
-
"#CC3300",
|
|
2146
|
-
"#CC3333",
|
|
2147
|
-
"#CC3366",
|
|
2148
|
-
"#CC3399",
|
|
2149
|
-
"#CC33CC",
|
|
2150
|
-
"#CC33FF",
|
|
2151
|
-
"#CC6600",
|
|
2152
|
-
"#CC6633",
|
|
2153
|
-
"#CC9900",
|
|
2154
|
-
"#CC9933",
|
|
2155
|
-
"#CCCC00",
|
|
2156
|
-
"#CCCC33",
|
|
2157
|
-
"#FF0000",
|
|
2158
|
-
"#FF0033",
|
|
2159
|
-
"#FF0066",
|
|
2160
|
-
"#FF0099",
|
|
2161
|
-
"#FF00CC",
|
|
2162
|
-
"#FF00FF",
|
|
2163
|
-
"#FF3300",
|
|
2164
|
-
"#FF3333",
|
|
2165
|
-
"#FF3366",
|
|
2166
|
-
"#FF3399",
|
|
2167
|
-
"#FF33CC",
|
|
2168
|
-
"#FF33FF",
|
|
2169
|
-
"#FF6600",
|
|
2170
|
-
"#FF6633",
|
|
2171
|
-
"#FF9900",
|
|
2172
|
-
"#FF9933",
|
|
2173
|
-
"#FFCC00",
|
|
2174
|
-
"#FFCC33"
|
|
2175
|
-
];
|
|
2073
|
+
exports2.colors = ["#0000CC", "#0000FF", "#0033CC", "#0033FF", "#0066CC", "#0066FF", "#0099CC", "#0099FF", "#00CC00", "#00CC33", "#00CC66", "#00CC99", "#00CCCC", "#00CCFF", "#3300CC", "#3300FF", "#3333CC", "#3333FF", "#3366CC", "#3366FF", "#3399CC", "#3399FF", "#33CC00", "#33CC33", "#33CC66", "#33CC99", "#33CCCC", "#33CCFF", "#6600CC", "#6600FF", "#6633CC", "#6633FF", "#66CC00", "#66CC33", "#9900CC", "#9900FF", "#9933CC", "#9933FF", "#99CC00", "#99CC33", "#CC0000", "#CC0033", "#CC0066", "#CC0099", "#CC00CC", "#CC00FF", "#CC3300", "#CC3333", "#CC3366", "#CC3399", "#CC33CC", "#CC33FF", "#CC6600", "#CC6633", "#CC9900", "#CC9933", "#CCCC00", "#CCCC33", "#FF0000", "#FF0033", "#FF0066", "#FF0099", "#FF00CC", "#FF00FF", "#FF3300", "#FF3333", "#FF3366", "#FF3399", "#FF33CC", "#FF33FF", "#FF6600", "#FF6633", "#FF9900", "#FF9933", "#FFCC00", "#FFCC33"];
|
|
2176
2074
|
function useColors() {
|
|
2177
2075
|
if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
|
|
2178
2076
|
return true;
|
|
@@ -2180,11 +2078,10 @@ var require_browser = __commonJS({
|
|
|
2180
2078
|
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
2181
2079
|
return false;
|
|
2182
2080
|
}
|
|
2183
|
-
let m;
|
|
2184
2081
|
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
|
|
2185
2082
|
typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
|
|
2186
2083
|
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
2187
|
-
typeof navigator !== "undefined" && navigator.userAgent &&
|
|
2084
|
+
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
|
|
2188
2085
|
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
2189
2086
|
}
|
|
2190
2087
|
function formatArgs(args) {
|
|
@@ -2192,11 +2089,11 @@ var require_browser = __commonJS({
|
|
|
2192
2089
|
if (!this.useColors) {
|
|
2193
2090
|
return;
|
|
2194
2091
|
}
|
|
2195
|
-
|
|
2092
|
+
var c = "color: " + this.color;
|
|
2196
2093
|
args.splice(1, 0, c, "color: inherit");
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
args[0].replace(/%[a-zA-Z%]/g, (match)
|
|
2094
|
+
var index = 0;
|
|
2095
|
+
var lastC = 0;
|
|
2096
|
+
args[0].replace(/%[a-zA-Z%]/g, function(match) {
|
|
2200
2097
|
if (match === "%%") {
|
|
2201
2098
|
return;
|
|
2202
2099
|
}
|
|
@@ -2207,8 +2104,10 @@ var require_browser = __commonJS({
|
|
|
2207
2104
|
});
|
|
2208
2105
|
args.splice(lastC, 0, c);
|
|
2209
2106
|
}
|
|
2210
|
-
|
|
2211
|
-
|
|
2107
|
+
function log() {
|
|
2108
|
+
var _console;
|
|
2109
|
+
return (typeof console === "undefined" ? "undefined" : _typeof(console)) === "object" && console.log && (_console = console).log.apply(_console, arguments);
|
|
2110
|
+
}
|
|
2212
2111
|
function save(namespaces) {
|
|
2213
2112
|
try {
|
|
2214
2113
|
if (namespaces) {
|
|
@@ -2220,9 +2119,9 @@ var require_browser = __commonJS({
|
|
|
2220
2119
|
}
|
|
2221
2120
|
}
|
|
2222
2121
|
function load() {
|
|
2223
|
-
|
|
2122
|
+
var r;
|
|
2224
2123
|
try {
|
|
2225
|
-
r = exports2.storage.getItem("debug")
|
|
2124
|
+
r = exports2.storage.getItem("debug");
|
|
2226
2125
|
} catch (error) {
|
|
2227
2126
|
}
|
|
2228
2127
|
if (!r && typeof process !== "undefined" && "env" in process) {
|
|
@@ -2237,7 +2136,7 @@ var require_browser = __commonJS({
|
|
|
2237
2136
|
}
|
|
2238
2137
|
}
|
|
2239
2138
|
module2.exports = require_common()(exports2);
|
|
2240
|
-
var
|
|
2139
|
+
var formatters = module2.exports.formatters;
|
|
2241
2140
|
formatters.j = function(v) {
|
|
2242
2141
|
try {
|
|
2243
2142
|
return JSON.stringify(v);
|
|
@@ -2248,9 +2147,9 @@ var require_browser = __commonJS({
|
|
|
2248
2147
|
}
|
|
2249
2148
|
});
|
|
2250
2149
|
|
|
2251
|
-
// node_modules/has-flag/index.js
|
|
2150
|
+
// node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js
|
|
2252
2151
|
var require_has_flag = __commonJS({
|
|
2253
|
-
"node_modules/has-flag/index.js"(exports2, module2) {
|
|
2152
|
+
"node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js"(exports2, module2) {
|
|
2254
2153
|
"use strict";
|
|
2255
2154
|
module2.exports = (flag, argv) => {
|
|
2256
2155
|
argv = argv || process.argv;
|
|
@@ -2262,9 +2161,9 @@ var require_has_flag = __commonJS({
|
|
|
2262
2161
|
}
|
|
2263
2162
|
});
|
|
2264
2163
|
|
|
2265
|
-
// node_modules/supports-color/index.js
|
|
2164
|
+
// node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js
|
|
2266
2165
|
var require_supports_color = __commonJS({
|
|
2267
|
-
"node_modules/supports-color/index.js"(exports2, module2) {
|
|
2166
|
+
"node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js"(exports2, module2) {
|
|
2268
2167
|
"use strict";
|
|
2269
2168
|
var os6 = require("os");
|
|
2270
2169
|
var hasFlag = require_has_flag();
|
|
@@ -2357,9 +2256,10 @@ var require_supports_color = __commonJS({
|
|
|
2357
2256
|
}
|
|
2358
2257
|
});
|
|
2359
2258
|
|
|
2360
|
-
// node_modules/debug/src/node.js
|
|
2259
|
+
// node_modules/.pnpm/debug@3.2.7/node_modules/debug/src/node.js
|
|
2361
2260
|
var require_node = __commonJS({
|
|
2362
|
-
"node_modules/debug/src/node.js"(exports2, module2) {
|
|
2261
|
+
"node_modules/.pnpm/debug@3.2.7/node_modules/debug/src/node.js"(exports2, module2) {
|
|
2262
|
+
"use strict";
|
|
2363
2263
|
var tty = require("tty");
|
|
2364
2264
|
var util2 = require("util");
|
|
2365
2265
|
exports2.init = init;
|
|
@@ -2368,103 +2268,22 @@ var require_node = __commonJS({
|
|
|
2368
2268
|
exports2.save = save;
|
|
2369
2269
|
exports2.load = load;
|
|
2370
2270
|
exports2.useColors = useColors;
|
|
2371
|
-
exports2.destroy = util2.deprecate(
|
|
2372
|
-
() => {
|
|
2373
|
-
},
|
|
2374
|
-
"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
|
|
2375
|
-
);
|
|
2376
2271
|
exports2.colors = [6, 2, 3, 4, 5, 1];
|
|
2377
2272
|
try {
|
|
2378
|
-
|
|
2273
|
+
supportsColor = require_supports_color();
|
|
2379
2274
|
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
2380
|
-
exports2.colors = [
|
|
2381
|
-
20,
|
|
2382
|
-
21,
|
|
2383
|
-
26,
|
|
2384
|
-
27,
|
|
2385
|
-
32,
|
|
2386
|
-
33,
|
|
2387
|
-
38,
|
|
2388
|
-
39,
|
|
2389
|
-
40,
|
|
2390
|
-
41,
|
|
2391
|
-
42,
|
|
2392
|
-
43,
|
|
2393
|
-
44,
|
|
2394
|
-
45,
|
|
2395
|
-
56,
|
|
2396
|
-
57,
|
|
2397
|
-
62,
|
|
2398
|
-
63,
|
|
2399
|
-
68,
|
|
2400
|
-
69,
|
|
2401
|
-
74,
|
|
2402
|
-
75,
|
|
2403
|
-
76,
|
|
2404
|
-
77,
|
|
2405
|
-
78,
|
|
2406
|
-
79,
|
|
2407
|
-
80,
|
|
2408
|
-
81,
|
|
2409
|
-
92,
|
|
2410
|
-
93,
|
|
2411
|
-
98,
|
|
2412
|
-
99,
|
|
2413
|
-
112,
|
|
2414
|
-
113,
|
|
2415
|
-
128,
|
|
2416
|
-
129,
|
|
2417
|
-
134,
|
|
2418
|
-
135,
|
|
2419
|
-
148,
|
|
2420
|
-
149,
|
|
2421
|
-
160,
|
|
2422
|
-
161,
|
|
2423
|
-
162,
|
|
2424
|
-
163,
|
|
2425
|
-
164,
|
|
2426
|
-
165,
|
|
2427
|
-
166,
|
|
2428
|
-
167,
|
|
2429
|
-
168,
|
|
2430
|
-
169,
|
|
2431
|
-
170,
|
|
2432
|
-
171,
|
|
2433
|
-
172,
|
|
2434
|
-
173,
|
|
2435
|
-
178,
|
|
2436
|
-
179,
|
|
2437
|
-
184,
|
|
2438
|
-
185,
|
|
2439
|
-
196,
|
|
2440
|
-
197,
|
|
2441
|
-
198,
|
|
2442
|
-
199,
|
|
2443
|
-
200,
|
|
2444
|
-
201,
|
|
2445
|
-
202,
|
|
2446
|
-
203,
|
|
2447
|
-
204,
|
|
2448
|
-
205,
|
|
2449
|
-
206,
|
|
2450
|
-
207,
|
|
2451
|
-
208,
|
|
2452
|
-
209,
|
|
2453
|
-
214,
|
|
2454
|
-
215,
|
|
2455
|
-
220,
|
|
2456
|
-
221
|
|
2457
|
-
];
|
|
2275
|
+
exports2.colors = [20, 21, 26, 27, 32, 33, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 62, 63, 68, 69, 74, 75, 76, 77, 78, 79, 80, 81, 92, 93, 98, 99, 112, 113, 128, 129, 134, 135, 148, 149, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 178, 179, 184, 185, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 214, 215, 220, 221];
|
|
2458
2276
|
}
|
|
2459
2277
|
} catch (error) {
|
|
2460
2278
|
}
|
|
2461
|
-
|
|
2279
|
+
var supportsColor;
|
|
2280
|
+
exports2.inspectOpts = Object.keys(process.env).filter(function(key) {
|
|
2462
2281
|
return /^debug_/i.test(key);
|
|
2463
|
-
}).reduce((obj, key)
|
|
2464
|
-
|
|
2282
|
+
}).reduce(function(obj, key) {
|
|
2283
|
+
var prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, function(_, k) {
|
|
2465
2284
|
return k.toUpperCase();
|
|
2466
2285
|
});
|
|
2467
|
-
|
|
2286
|
+
var val = process.env[key];
|
|
2468
2287
|
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
|
2469
2288
|
val = true;
|
|
2470
2289
|
} else if (/^(no|off|false|disabled)$/i.test(val)) {
|
|
@@ -2481,11 +2300,11 @@ var require_node = __commonJS({
|
|
|
2481
2300
|
return "colors" in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
|
2482
2301
|
}
|
|
2483
2302
|
function formatArgs(args) {
|
|
2484
|
-
|
|
2303
|
+
var name = this.namespace, useColors2 = this.useColors;
|
|
2485
2304
|
if (useColors2) {
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2305
|
+
var c = this.color;
|
|
2306
|
+
var colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
|
|
2307
|
+
var prefix = " ".concat(colorCode, ";1m").concat(name, " \x1B[0m");
|
|
2489
2308
|
args[0] = prefix + args[0].split("\n").join("\n" + prefix);
|
|
2490
2309
|
args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m");
|
|
2491
2310
|
} else {
|
|
@@ -2498,8 +2317,8 @@ var require_node = __commonJS({
|
|
|
2498
2317
|
}
|
|
2499
2318
|
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
2500
2319
|
}
|
|
2501
|
-
function log(
|
|
2502
|
-
return process.stderr.write(util2.
|
|
2320
|
+
function log() {
|
|
2321
|
+
return process.stderr.write(util2.format.apply(util2, arguments) + "\n");
|
|
2503
2322
|
}
|
|
2504
2323
|
function save(namespaces) {
|
|
2505
2324
|
if (namespaces) {
|
|
@@ -2513,16 +2332,18 @@ var require_node = __commonJS({
|
|
|
2513
2332
|
}
|
|
2514
2333
|
function init(debug) {
|
|
2515
2334
|
debug.inspectOpts = {};
|
|
2516
|
-
|
|
2517
|
-
for (
|
|
2335
|
+
var keys = Object.keys(exports2.inspectOpts);
|
|
2336
|
+
for (var i = 0; i < keys.length; i++) {
|
|
2518
2337
|
debug.inspectOpts[keys[i]] = exports2.inspectOpts[keys[i]];
|
|
2519
2338
|
}
|
|
2520
2339
|
}
|
|
2521
2340
|
module2.exports = require_common()(exports2);
|
|
2522
|
-
var
|
|
2341
|
+
var formatters = module2.exports.formatters;
|
|
2523
2342
|
formatters.o = function(v) {
|
|
2524
2343
|
this.inspectOpts.colors = this.useColors;
|
|
2525
|
-
return util2.inspect(v, this.inspectOpts).split("\n").map((str)
|
|
2344
|
+
return util2.inspect(v, this.inspectOpts).split("\n").map(function(str) {
|
|
2345
|
+
return str.trim();
|
|
2346
|
+
}).join(" ");
|
|
2526
2347
|
};
|
|
2527
2348
|
formatters.O = function(v) {
|
|
2528
2349
|
this.inspectOpts.colors = this.useColors;
|
|
@@ -2531,9 +2352,10 @@ var require_node = __commonJS({
|
|
|
2531
2352
|
}
|
|
2532
2353
|
});
|
|
2533
2354
|
|
|
2534
|
-
// node_modules/debug/src/index.js
|
|
2355
|
+
// node_modules/.pnpm/debug@3.2.7/node_modules/debug/src/index.js
|
|
2535
2356
|
var require_src = __commonJS({
|
|
2536
|
-
"node_modules/debug/src/index.js"(exports2, module2) {
|
|
2357
|
+
"node_modules/.pnpm/debug@3.2.7/node_modules/debug/src/index.js"(exports2, module2) {
|
|
2358
|
+
"use strict";
|
|
2537
2359
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
2538
2360
|
module2.exports = require_browser();
|
|
2539
2361
|
} else {
|
|
@@ -2542,9 +2364,9 @@ var require_src = __commonJS({
|
|
|
2542
2364
|
}
|
|
2543
2365
|
});
|
|
2544
2366
|
|
|
2545
|
-
// node_modules/follow-redirects/debug.js
|
|
2367
|
+
// node_modules/.pnpm/follow-redirects@1.15.2/node_modules/follow-redirects/debug.js
|
|
2546
2368
|
var require_debug = __commonJS({
|
|
2547
|
-
"node_modules/follow-redirects/debug.js"(exports2, module2) {
|
|
2369
|
+
"node_modules/.pnpm/follow-redirects@1.15.2/node_modules/follow-redirects/debug.js"(exports2, module2) {
|
|
2548
2370
|
var debug;
|
|
2549
2371
|
module2.exports = function() {
|
|
2550
2372
|
if (!debug) {
|
|
@@ -2562,9 +2384,9 @@ var require_debug = __commonJS({
|
|
|
2562
2384
|
}
|
|
2563
2385
|
});
|
|
2564
2386
|
|
|
2565
|
-
// node_modules/follow-redirects/index.js
|
|
2387
|
+
// node_modules/.pnpm/follow-redirects@1.15.2/node_modules/follow-redirects/index.js
|
|
2566
2388
|
var require_follow_redirects = __commonJS({
|
|
2567
|
-
"node_modules/follow-redirects/index.js"(exports2, module2) {
|
|
2389
|
+
"node_modules/.pnpm/follow-redirects@1.15.2/node_modules/follow-redirects/index.js"(exports2, module2) {
|
|
2568
2390
|
var url2 = require("url");
|
|
2569
2391
|
var URL3 = url2.URL;
|
|
2570
2392
|
var http3 = require("http");
|
|
@@ -2572,33 +2394,6 @@ var require_follow_redirects = __commonJS({
|
|
|
2572
2394
|
var Writable = require("stream").Writable;
|
|
2573
2395
|
var assert = require("assert");
|
|
2574
2396
|
var debug = require_debug();
|
|
2575
|
-
(function detectUnsupportedEnvironment() {
|
|
2576
|
-
var looksLikeNode = typeof process !== "undefined";
|
|
2577
|
-
var looksLikeBrowser = typeof window !== "undefined" && typeof document !== "undefined";
|
|
2578
|
-
var looksLikeV8 = isFunction2(Error.captureStackTrace);
|
|
2579
|
-
if (!looksLikeNode && (looksLikeBrowser || !looksLikeV8)) {
|
|
2580
|
-
console.warn("The follow-redirects package should be excluded from browser builds.");
|
|
2581
|
-
}
|
|
2582
|
-
})();
|
|
2583
|
-
var useNativeURL = false;
|
|
2584
|
-
try {
|
|
2585
|
-
assert(new URL3(""));
|
|
2586
|
-
} catch (error) {
|
|
2587
|
-
useNativeURL = error.code === "ERR_INVALID_URL";
|
|
2588
|
-
}
|
|
2589
|
-
var preservedUrlFields = [
|
|
2590
|
-
"auth",
|
|
2591
|
-
"host",
|
|
2592
|
-
"hostname",
|
|
2593
|
-
"href",
|
|
2594
|
-
"path",
|
|
2595
|
-
"pathname",
|
|
2596
|
-
"port",
|
|
2597
|
-
"protocol",
|
|
2598
|
-
"query",
|
|
2599
|
-
"search",
|
|
2600
|
-
"hash"
|
|
2601
|
-
];
|
|
2602
2397
|
var events = ["abort", "aborted", "connect", "error", "socket", "timeout"];
|
|
2603
2398
|
var eventHandlers = /* @__PURE__ */ Object.create(null);
|
|
2604
2399
|
events.forEach(function(event) {
|
|
@@ -2617,8 +2412,7 @@ var require_follow_redirects = __commonJS({
|
|
|
2617
2412
|
);
|
|
2618
2413
|
var TooManyRedirectsError = createErrorType(
|
|
2619
2414
|
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
2620
|
-
"Maximum number of redirects exceeded"
|
|
2621
|
-
RedirectionError
|
|
2415
|
+
"Maximum number of redirects exceeded"
|
|
2622
2416
|
);
|
|
2623
2417
|
var MaxBodyLengthExceededError = createErrorType(
|
|
2624
2418
|
"ERR_FR_MAX_BODY_LENGTH_EXCEEDED",
|
|
@@ -2628,7 +2422,6 @@ var require_follow_redirects = __commonJS({
|
|
|
2628
2422
|
"ERR_STREAM_WRITE_AFTER_END",
|
|
2629
2423
|
"write after end"
|
|
2630
2424
|
);
|
|
2631
|
-
var destroy = Writable.prototype.destroy || noop2;
|
|
2632
2425
|
function RedirectableRequest(options, responseCallback) {
|
|
2633
2426
|
Writable.call(this);
|
|
2634
2427
|
this._sanitizeOptions(options);
|
|
@@ -2644,25 +2437,15 @@ var require_follow_redirects = __commonJS({
|
|
|
2644
2437
|
}
|
|
2645
2438
|
var self2 = this;
|
|
2646
2439
|
this._onNativeResponse = function(response) {
|
|
2647
|
-
|
|
2648
|
-
self2._processResponse(response);
|
|
2649
|
-
} catch (cause) {
|
|
2650
|
-
self2.emit("error", cause instanceof RedirectionError ? cause : new RedirectionError({ cause }));
|
|
2651
|
-
}
|
|
2440
|
+
self2._processResponse(response);
|
|
2652
2441
|
};
|
|
2653
2442
|
this._performRequest();
|
|
2654
2443
|
}
|
|
2655
2444
|
RedirectableRequest.prototype = Object.create(Writable.prototype);
|
|
2656
2445
|
RedirectableRequest.prototype.abort = function() {
|
|
2657
|
-
|
|
2658
|
-
this._currentRequest.abort();
|
|
2446
|
+
abortRequest(this._currentRequest);
|
|
2659
2447
|
this.emit("abort");
|
|
2660
2448
|
};
|
|
2661
|
-
RedirectableRequest.prototype.destroy = function(error) {
|
|
2662
|
-
destroyRequest(this._currentRequest, error);
|
|
2663
|
-
destroy.call(this, error);
|
|
2664
|
-
return this;
|
|
2665
|
-
};
|
|
2666
2449
|
RedirectableRequest.prototype.write = function(data, encoding, callback) {
|
|
2667
2450
|
if (this._ending) {
|
|
2668
2451
|
throw new WriteAfterEndError();
|
|
@@ -2743,7 +2526,6 @@ var require_follow_redirects = __commonJS({
|
|
|
2743
2526
|
self2.removeListener("abort", clearTimer);
|
|
2744
2527
|
self2.removeListener("error", clearTimer);
|
|
2745
2528
|
self2.removeListener("response", clearTimer);
|
|
2746
|
-
self2.removeListener("close", clearTimer);
|
|
2747
2529
|
if (callback) {
|
|
2748
2530
|
self2.removeListener("timeout", callback);
|
|
2749
2531
|
}
|
|
@@ -2763,7 +2545,6 @@ var require_follow_redirects = __commonJS({
|
|
|
2763
2545
|
this.on("abort", clearTimer);
|
|
2764
2546
|
this.on("error", clearTimer);
|
|
2765
2547
|
this.on("response", clearTimer);
|
|
2766
|
-
this.on("close", clearTimer);
|
|
2767
2548
|
return this;
|
|
2768
2549
|
};
|
|
2769
2550
|
[
|
|
@@ -2807,7 +2588,8 @@ var require_follow_redirects = __commonJS({
|
|
|
2807
2588
|
var protocol = this._options.protocol;
|
|
2808
2589
|
var nativeProtocol = this._options.nativeProtocols[protocol];
|
|
2809
2590
|
if (!nativeProtocol) {
|
|
2810
|
-
|
|
2591
|
+
this.emit("error", new TypeError("Unsupported protocol " + protocol));
|
|
2592
|
+
return;
|
|
2811
2593
|
}
|
|
2812
2594
|
if (this._options.agents) {
|
|
2813
2595
|
var scheme = protocol.slice(0, -1);
|
|
@@ -2860,10 +2642,11 @@ var require_follow_redirects = __commonJS({
|
|
|
2860
2642
|
this._requestBodyBuffers = [];
|
|
2861
2643
|
return;
|
|
2862
2644
|
}
|
|
2863
|
-
|
|
2645
|
+
abortRequest(this._currentRequest);
|
|
2864
2646
|
response.destroy();
|
|
2865
2647
|
if (++this._redirectCount > this._options.maxRedirects) {
|
|
2866
|
-
|
|
2648
|
+
this.emit("error", new TooManyRedirectsError());
|
|
2649
|
+
return;
|
|
2867
2650
|
}
|
|
2868
2651
|
var requestHeaders;
|
|
2869
2652
|
var beforeRedirect = this._options.beforeRedirect;
|
|
@@ -2884,15 +2667,22 @@ var require_follow_redirects = __commonJS({
|
|
|
2884
2667
|
removeMatchingHeaders(/^content-/i, this._options.headers);
|
|
2885
2668
|
}
|
|
2886
2669
|
var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);
|
|
2887
|
-
var currentUrlParts =
|
|
2670
|
+
var currentUrlParts = url2.parse(this._currentUrl);
|
|
2888
2671
|
var currentHost = currentHostHeader || currentUrlParts.host;
|
|
2889
2672
|
var currentUrl = /^\w+:/.test(location) ? this._currentUrl : url2.format(Object.assign(currentUrlParts, { host: currentHost }));
|
|
2890
|
-
var redirectUrl
|
|
2891
|
-
|
|
2673
|
+
var redirectUrl;
|
|
2674
|
+
try {
|
|
2675
|
+
redirectUrl = url2.resolve(currentUrl, location);
|
|
2676
|
+
} catch (cause) {
|
|
2677
|
+
this.emit("error", new RedirectionError({ cause }));
|
|
2678
|
+
return;
|
|
2679
|
+
}
|
|
2680
|
+
debug("redirecting to", redirectUrl);
|
|
2892
2681
|
this._isRedirect = true;
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2682
|
+
var redirectUrlParts = url2.parse(redirectUrl);
|
|
2683
|
+
Object.assign(this._options, redirectUrlParts);
|
|
2684
|
+
if (redirectUrlParts.protocol !== currentUrlParts.protocol && redirectUrlParts.protocol !== "https:" || redirectUrlParts.host !== currentHost && !isSubdomain(redirectUrlParts.host, currentHost)) {
|
|
2685
|
+
removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers);
|
|
2896
2686
|
}
|
|
2897
2687
|
if (isFunction2(beforeRedirect)) {
|
|
2898
2688
|
var responseDetails = {
|
|
@@ -2904,10 +2694,19 @@ var require_follow_redirects = __commonJS({
|
|
|
2904
2694
|
method,
|
|
2905
2695
|
headers: requestHeaders
|
|
2906
2696
|
};
|
|
2907
|
-
|
|
2697
|
+
try {
|
|
2698
|
+
beforeRedirect(this._options, responseDetails, requestDetails);
|
|
2699
|
+
} catch (err) {
|
|
2700
|
+
this.emit("error", err);
|
|
2701
|
+
return;
|
|
2702
|
+
}
|
|
2908
2703
|
this._sanitizeOptions(this._options);
|
|
2909
2704
|
}
|
|
2910
|
-
|
|
2705
|
+
try {
|
|
2706
|
+
this._performRequest();
|
|
2707
|
+
} catch (cause) {
|
|
2708
|
+
this.emit("error", new RedirectionError({ cause }));
|
|
2709
|
+
}
|
|
2911
2710
|
};
|
|
2912
2711
|
function wrap(protocols) {
|
|
2913
2712
|
var exports3 = {
|
|
@@ -2920,13 +2719,22 @@ var require_follow_redirects = __commonJS({
|
|
|
2920
2719
|
var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];
|
|
2921
2720
|
var wrappedProtocol = exports3[scheme] = Object.create(nativeProtocol);
|
|
2922
2721
|
function request(input, options, callback) {
|
|
2923
|
-
if (
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2722
|
+
if (isString2(input)) {
|
|
2723
|
+
var parsed;
|
|
2724
|
+
try {
|
|
2725
|
+
parsed = urlToOptions(new URL3(input));
|
|
2726
|
+
} catch (err) {
|
|
2727
|
+
parsed = url2.parse(input);
|
|
2728
|
+
}
|
|
2729
|
+
if (!isString2(parsed.protocol)) {
|
|
2730
|
+
throw new InvalidUrlError({ input });
|
|
2731
|
+
}
|
|
2732
|
+
input = parsed;
|
|
2733
|
+
} else if (URL3 && input instanceof URL3) {
|
|
2734
|
+
input = urlToOptions(input);
|
|
2927
2735
|
} else {
|
|
2928
2736
|
callback = options;
|
|
2929
|
-
options =
|
|
2737
|
+
options = input;
|
|
2930
2738
|
input = { protocol };
|
|
2931
2739
|
}
|
|
2932
2740
|
if (isFunction2(options)) {
|
|
@@ -2959,43 +2767,23 @@ var require_follow_redirects = __commonJS({
|
|
|
2959
2767
|
}
|
|
2960
2768
|
function noop2() {
|
|
2961
2769
|
}
|
|
2962
|
-
function
|
|
2963
|
-
var
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
function validateUrl(input) {
|
|
2978
|
-
if (/^\[/.test(input.hostname) && !/^\[[:0-9a-f]+\]$/i.test(input.hostname)) {
|
|
2979
|
-
throw new InvalidUrlError({ input: input.href || input });
|
|
2980
|
-
}
|
|
2981
|
-
if (/^\[/.test(input.host) && !/^\[[:0-9a-f]+\](:\d+)?$/i.test(input.host)) {
|
|
2982
|
-
throw new InvalidUrlError({ input: input.href || input });
|
|
2983
|
-
}
|
|
2984
|
-
return input;
|
|
2985
|
-
}
|
|
2986
|
-
function spreadUrlObject(urlObject, target) {
|
|
2987
|
-
var spread3 = target || {};
|
|
2988
|
-
for (var key of preservedUrlFields) {
|
|
2989
|
-
spread3[key] = urlObject[key];
|
|
2990
|
-
}
|
|
2991
|
-
if (spread3.hostname.startsWith("[")) {
|
|
2992
|
-
spread3.hostname = spread3.hostname.slice(1, -1);
|
|
2993
|
-
}
|
|
2994
|
-
if (spread3.port !== "") {
|
|
2995
|
-
spread3.port = Number(spread3.port);
|
|
2770
|
+
function urlToOptions(urlObject) {
|
|
2771
|
+
var options = {
|
|
2772
|
+
protocol: urlObject.protocol,
|
|
2773
|
+
hostname: urlObject.hostname.startsWith("[") ? (
|
|
2774
|
+
/* istanbul ignore next */
|
|
2775
|
+
urlObject.hostname.slice(1, -1)
|
|
2776
|
+
) : urlObject.hostname,
|
|
2777
|
+
hash: urlObject.hash,
|
|
2778
|
+
search: urlObject.search,
|
|
2779
|
+
pathname: urlObject.pathname,
|
|
2780
|
+
path: urlObject.pathname + urlObject.search,
|
|
2781
|
+
href: urlObject.href
|
|
2782
|
+
};
|
|
2783
|
+
if (urlObject.port !== "") {
|
|
2784
|
+
options.port = Number(urlObject.port);
|
|
2996
2785
|
}
|
|
2997
|
-
|
|
2998
|
-
return spread3;
|
|
2786
|
+
return options;
|
|
2999
2787
|
}
|
|
3000
2788
|
function removeMatchingHeaders(regex, headers) {
|
|
3001
2789
|
var lastValue;
|
|
@@ -3009,32 +2797,22 @@ var require_follow_redirects = __commonJS({
|
|
|
3009
2797
|
}
|
|
3010
2798
|
function createErrorType(code, message, baseClass) {
|
|
3011
2799
|
function CustomError(properties) {
|
|
3012
|
-
|
|
3013
|
-
Error.captureStackTrace(this, this.constructor);
|
|
3014
|
-
}
|
|
2800
|
+
Error.captureStackTrace(this, this.constructor);
|
|
3015
2801
|
Object.assign(this, properties || {});
|
|
3016
2802
|
this.code = code;
|
|
3017
2803
|
this.message = this.cause ? message + ": " + this.cause.message : message;
|
|
3018
2804
|
}
|
|
3019
2805
|
CustomError.prototype = new (baseClass || Error)();
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
value: CustomError,
|
|
3023
|
-
enumerable: false
|
|
3024
|
-
},
|
|
3025
|
-
name: {
|
|
3026
|
-
value: "Error [" + code + "]",
|
|
3027
|
-
enumerable: false
|
|
3028
|
-
}
|
|
3029
|
-
});
|
|
2806
|
+
CustomError.prototype.constructor = CustomError;
|
|
2807
|
+
CustomError.prototype.name = "Error [" + code + "]";
|
|
3030
2808
|
return CustomError;
|
|
3031
2809
|
}
|
|
3032
|
-
function
|
|
2810
|
+
function abortRequest(request) {
|
|
3033
2811
|
for (var event of events) {
|
|
3034
2812
|
request.removeListener(event, eventHandlers[event]);
|
|
3035
2813
|
}
|
|
3036
2814
|
request.on("error", noop2);
|
|
3037
|
-
request.
|
|
2815
|
+
request.abort();
|
|
3038
2816
|
}
|
|
3039
2817
|
function isSubdomain(subdomain, domain) {
|
|
3040
2818
|
assert(isString2(subdomain) && isString2(domain));
|
|
@@ -3050,34 +2828,31 @@ var require_follow_redirects = __commonJS({
|
|
|
3050
2828
|
function isBuffer2(value) {
|
|
3051
2829
|
return typeof value === "object" && "length" in value;
|
|
3052
2830
|
}
|
|
3053
|
-
function isURL(value) {
|
|
3054
|
-
return URL3 && value instanceof URL3;
|
|
3055
|
-
}
|
|
3056
2831
|
module2.exports = wrap({ http: http3, https: https2 });
|
|
3057
2832
|
module2.exports.wrap = wrap;
|
|
3058
2833
|
}
|
|
3059
2834
|
});
|
|
3060
2835
|
|
|
3061
|
-
// node_modules/axios/lib/env/data.js
|
|
2836
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/env/data.js
|
|
3062
2837
|
var VERSION;
|
|
3063
2838
|
var init_data = __esm({
|
|
3064
|
-
"node_modules/axios/lib/env/data.js"() {
|
|
2839
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/env/data.js"() {
|
|
3065
2840
|
VERSION = "1.3.2";
|
|
3066
2841
|
}
|
|
3067
2842
|
});
|
|
3068
2843
|
|
|
3069
|
-
// node_modules/axios/lib/helpers/parseProtocol.js
|
|
2844
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/parseProtocol.js
|
|
3070
2845
|
function parseProtocol(url2) {
|
|
3071
2846
|
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
|
|
3072
2847
|
return match && match[1] || "";
|
|
3073
2848
|
}
|
|
3074
2849
|
var init_parseProtocol = __esm({
|
|
3075
|
-
"node_modules/axios/lib/helpers/parseProtocol.js"() {
|
|
2850
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/parseProtocol.js"() {
|
|
3076
2851
|
"use strict";
|
|
3077
2852
|
}
|
|
3078
2853
|
});
|
|
3079
2854
|
|
|
3080
|
-
// node_modules/axios/lib/helpers/fromDataURI.js
|
|
2855
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/fromDataURI.js
|
|
3081
2856
|
function fromDataURI(uri, asBlob, options) {
|
|
3082
2857
|
const _Blob = options && options.Blob || node_default.classes.Blob;
|
|
3083
2858
|
const protocol = parseProtocol(uri);
|
|
@@ -3106,7 +2881,7 @@ function fromDataURI(uri, asBlob, options) {
|
|
|
3106
2881
|
}
|
|
3107
2882
|
var DATA_URL_PATTERN;
|
|
3108
2883
|
var init_fromDataURI = __esm({
|
|
3109
|
-
"node_modules/axios/lib/helpers/fromDataURI.js"() {
|
|
2884
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/fromDataURI.js"() {
|
|
3110
2885
|
"use strict";
|
|
3111
2886
|
init_AxiosError();
|
|
3112
2887
|
init_parseProtocol();
|
|
@@ -3115,7 +2890,7 @@ var init_fromDataURI = __esm({
|
|
|
3115
2890
|
}
|
|
3116
2891
|
});
|
|
3117
2892
|
|
|
3118
|
-
// node_modules/axios/lib/helpers/throttle.js
|
|
2893
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/throttle.js
|
|
3119
2894
|
function throttle(fn, freq) {
|
|
3120
2895
|
let timestamp = 0;
|
|
3121
2896
|
const threshold = 1e3 / freq;
|
|
@@ -3141,13 +2916,13 @@ function throttle(fn, freq) {
|
|
|
3141
2916
|
}
|
|
3142
2917
|
var throttle_default;
|
|
3143
2918
|
var init_throttle = __esm({
|
|
3144
|
-
"node_modules/axios/lib/helpers/throttle.js"() {
|
|
2919
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/throttle.js"() {
|
|
3145
2920
|
"use strict";
|
|
3146
2921
|
throttle_default = throttle;
|
|
3147
2922
|
}
|
|
3148
2923
|
});
|
|
3149
2924
|
|
|
3150
|
-
// node_modules/axios/lib/helpers/speedometer.js
|
|
2925
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/speedometer.js
|
|
3151
2926
|
function speedometer(samplesCount, min) {
|
|
3152
2927
|
samplesCount = samplesCount || 10;
|
|
3153
2928
|
const bytes = new Array(samplesCount);
|
|
@@ -3183,16 +2958,16 @@ function speedometer(samplesCount, min) {
|
|
|
3183
2958
|
}
|
|
3184
2959
|
var speedometer_default;
|
|
3185
2960
|
var init_speedometer = __esm({
|
|
3186
|
-
"node_modules/axios/lib/helpers/speedometer.js"() {
|
|
2961
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/speedometer.js"() {
|
|
3187
2962
|
"use strict";
|
|
3188
2963
|
speedometer_default = speedometer;
|
|
3189
2964
|
}
|
|
3190
2965
|
});
|
|
3191
2966
|
|
|
3192
|
-
// node_modules/axios/lib/helpers/AxiosTransformStream.js
|
|
2967
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/AxiosTransformStream.js
|
|
3193
2968
|
var import_stream, kInternals, AxiosTransformStream, AxiosTransformStream_default;
|
|
3194
2969
|
var init_AxiosTransformStream = __esm({
|
|
3195
|
-
"node_modules/axios/lib/helpers/AxiosTransformStream.js"() {
|
|
2970
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/AxiosTransformStream.js"() {
|
|
3196
2971
|
"use strict";
|
|
3197
2972
|
import_stream = __toESM(require("stream"), 1);
|
|
3198
2973
|
init_utils();
|
|
@@ -3348,10 +3123,10 @@ var init_AxiosTransformStream = __esm({
|
|
|
3348
3123
|
}
|
|
3349
3124
|
});
|
|
3350
3125
|
|
|
3351
|
-
// node_modules/axios/lib/helpers/readBlob.js
|
|
3126
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/readBlob.js
|
|
3352
3127
|
var asyncIterator, readBlob, readBlob_default;
|
|
3353
3128
|
var init_readBlob = __esm({
|
|
3354
|
-
"node_modules/axios/lib/helpers/readBlob.js"() {
|
|
3129
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/readBlob.js"() {
|
|
3355
3130
|
({ asyncIterator } = Symbol);
|
|
3356
3131
|
readBlob = async function* (blob) {
|
|
3357
3132
|
if (blob.stream) {
|
|
@@ -3368,10 +3143,10 @@ var init_readBlob = __esm({
|
|
|
3368
3143
|
}
|
|
3369
3144
|
});
|
|
3370
3145
|
|
|
3371
|
-
// node_modules/axios/lib/helpers/formDataToStream.js
|
|
3146
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/formDataToStream.js
|
|
3372
3147
|
var import_util, import_stream2, BOUNDARY_ALPHABET, textEncoder, CRLF, CRLF_BYTES, CRLF_BYTES_COUNT, FormDataPart, formDataToStream, formDataToStream_default;
|
|
3373
3148
|
var init_formDataToStream = __esm({
|
|
3374
|
-
"node_modules/axios/lib/helpers/formDataToStream.js"() {
|
|
3149
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/formDataToStream.js"() {
|
|
3375
3150
|
import_util = require("util");
|
|
3376
3151
|
import_stream2 = require("stream");
|
|
3377
3152
|
init_utils();
|
|
@@ -3456,10 +3231,10 @@ var init_formDataToStream = __esm({
|
|
|
3456
3231
|
}
|
|
3457
3232
|
});
|
|
3458
3233
|
|
|
3459
|
-
// node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
|
|
3234
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
|
|
3460
3235
|
var import_stream3, ZlibHeaderTransformStream, ZlibHeaderTransformStream_default;
|
|
3461
3236
|
var init_ZlibHeaderTransformStream = __esm({
|
|
3462
|
-
"node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js"() {
|
|
3237
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js"() {
|
|
3463
3238
|
"use strict";
|
|
3464
3239
|
import_stream3 = __toESM(require("stream"), 1);
|
|
3465
3240
|
ZlibHeaderTransformStream = class extends import_stream3.default.Transform {
|
|
@@ -3484,7 +3259,7 @@ var init_ZlibHeaderTransformStream = __esm({
|
|
|
3484
3259
|
}
|
|
3485
3260
|
});
|
|
3486
3261
|
|
|
3487
|
-
// node_modules/axios/lib/adapters/http.js
|
|
3262
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/adapters/http.js
|
|
3488
3263
|
function dispatchBeforeRedirect(options) {
|
|
3489
3264
|
if (options.beforeRedirects.proxy) {
|
|
3490
3265
|
options.beforeRedirects.proxy(options);
|
|
@@ -3528,7 +3303,7 @@ function setProxy(options, configProxy, location) {
|
|
|
3528
3303
|
}
|
|
3529
3304
|
var import_proxy_from_env, import_http, import_https, import_util2, import_follow_redirects, import_zlib, import_stream4, import_events, zlibOptions, brotliOptions, isBrotliSupported, httpFollow, httpsFollow, isHttps, supportedProtocols, isHttpAdapterSupported, http_default;
|
|
3530
3305
|
var init_http = __esm({
|
|
3531
|
-
"node_modules/axios/lib/adapters/http.js"() {
|
|
3306
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/adapters/http.js"() {
|
|
3532
3307
|
"use strict";
|
|
3533
3308
|
init_utils();
|
|
3534
3309
|
init_settle();
|
|
@@ -3977,10 +3752,10 @@ var init_http = __esm({
|
|
|
3977
3752
|
}
|
|
3978
3753
|
});
|
|
3979
3754
|
|
|
3980
|
-
// node_modules/axios/lib/helpers/cookies.js
|
|
3755
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/cookies.js
|
|
3981
3756
|
var cookies_default;
|
|
3982
3757
|
var init_cookies = __esm({
|
|
3983
|
-
"node_modules/axios/lib/helpers/cookies.js"() {
|
|
3758
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/cookies.js"() {
|
|
3984
3759
|
"use strict";
|
|
3985
3760
|
init_utils();
|
|
3986
3761
|
init_platform();
|
|
@@ -4031,10 +3806,10 @@ var init_cookies = __esm({
|
|
|
4031
3806
|
}
|
|
4032
3807
|
});
|
|
4033
3808
|
|
|
4034
|
-
// node_modules/axios/lib/helpers/isURLSameOrigin.js
|
|
3809
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/isURLSameOrigin.js
|
|
4035
3810
|
var isURLSameOrigin_default;
|
|
4036
3811
|
var init_isURLSameOrigin = __esm({
|
|
4037
|
-
"node_modules/axios/lib/helpers/isURLSameOrigin.js"() {
|
|
3812
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/isURLSameOrigin.js"() {
|
|
4038
3813
|
"use strict";
|
|
4039
3814
|
init_utils();
|
|
4040
3815
|
init_platform();
|
|
@@ -4080,7 +3855,7 @@ var init_isURLSameOrigin = __esm({
|
|
|
4080
3855
|
}
|
|
4081
3856
|
});
|
|
4082
3857
|
|
|
4083
|
-
// node_modules/axios/lib/adapters/xhr.js
|
|
3858
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/adapters/xhr.js
|
|
4084
3859
|
function progressEventReducer(listener, isDownloadStream) {
|
|
4085
3860
|
let bytesNotified = 0;
|
|
4086
3861
|
const _speedometer = speedometer_default(50, 250);
|
|
@@ -4106,7 +3881,7 @@ function progressEventReducer(listener, isDownloadStream) {
|
|
|
4106
3881
|
}
|
|
4107
3882
|
var isXHRAdapterSupported, xhr_default;
|
|
4108
3883
|
var init_xhr = __esm({
|
|
4109
|
-
"node_modules/axios/lib/adapters/xhr.js"() {
|
|
3884
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/adapters/xhr.js"() {
|
|
4110
3885
|
"use strict";
|
|
4111
3886
|
init_utils();
|
|
4112
3887
|
init_settle();
|
|
@@ -4260,10 +4035,10 @@ var init_xhr = __esm({
|
|
|
4260
4035
|
}
|
|
4261
4036
|
});
|
|
4262
4037
|
|
|
4263
|
-
// node_modules/axios/lib/adapters/adapters.js
|
|
4038
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/adapters/adapters.js
|
|
4264
4039
|
var knownAdapters, adapters_default;
|
|
4265
4040
|
var init_adapters = __esm({
|
|
4266
|
-
"node_modules/axios/lib/adapters/adapters.js"() {
|
|
4041
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/adapters/adapters.js"() {
|
|
4267
4042
|
init_utils();
|
|
4268
4043
|
init_http();
|
|
4269
4044
|
init_xhr();
|
|
@@ -4314,7 +4089,7 @@ var init_adapters = __esm({
|
|
|
4314
4089
|
}
|
|
4315
4090
|
});
|
|
4316
4091
|
|
|
4317
|
-
// node_modules/axios/lib/core/dispatchRequest.js
|
|
4092
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/core/dispatchRequest.js
|
|
4318
4093
|
function throwIfCancellationRequested(config) {
|
|
4319
4094
|
if (config.cancelToken) {
|
|
4320
4095
|
config.cancelToken.throwIfRequested();
|
|
@@ -4359,7 +4134,7 @@ function dispatchRequest(config) {
|
|
|
4359
4134
|
});
|
|
4360
4135
|
}
|
|
4361
4136
|
var init_dispatchRequest = __esm({
|
|
4362
|
-
"node_modules/axios/lib/core/dispatchRequest.js"() {
|
|
4137
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/core/dispatchRequest.js"() {
|
|
4363
4138
|
"use strict";
|
|
4364
4139
|
init_transformData();
|
|
4365
4140
|
init_isCancel();
|
|
@@ -4370,7 +4145,7 @@ var init_dispatchRequest = __esm({
|
|
|
4370
4145
|
}
|
|
4371
4146
|
});
|
|
4372
4147
|
|
|
4373
|
-
// node_modules/axios/lib/core/mergeConfig.js
|
|
4148
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/core/mergeConfig.js
|
|
4374
4149
|
function mergeConfig(config1, config2) {
|
|
4375
4150
|
config2 = config2 || {};
|
|
4376
4151
|
const config = {};
|
|
@@ -4449,7 +4224,7 @@ function mergeConfig(config1, config2) {
|
|
|
4449
4224
|
}
|
|
4450
4225
|
var headersToObject;
|
|
4451
4226
|
var init_mergeConfig = __esm({
|
|
4452
|
-
"node_modules/axios/lib/core/mergeConfig.js"() {
|
|
4227
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/core/mergeConfig.js"() {
|
|
4453
4228
|
"use strict";
|
|
4454
4229
|
init_utils();
|
|
4455
4230
|
init_AxiosHeaders();
|
|
@@ -4457,7 +4232,7 @@ var init_mergeConfig = __esm({
|
|
|
4457
4232
|
}
|
|
4458
4233
|
});
|
|
4459
4234
|
|
|
4460
|
-
// node_modules/axios/lib/helpers/validator.js
|
|
4235
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/validator.js
|
|
4461
4236
|
function assertOptions(options, schema, allowUnknown) {
|
|
4462
4237
|
if (typeof options !== "object") {
|
|
4463
4238
|
throw new AxiosError_default("options must be an object", AxiosError_default.ERR_BAD_OPTION_VALUE);
|
|
@@ -4482,7 +4257,7 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
4482
4257
|
}
|
|
4483
4258
|
var validators, deprecatedWarnings, validator_default;
|
|
4484
4259
|
var init_validator = __esm({
|
|
4485
|
-
"node_modules/axios/lib/helpers/validator.js"() {
|
|
4260
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/validator.js"() {
|
|
4486
4261
|
"use strict";
|
|
4487
4262
|
init_data();
|
|
4488
4263
|
init_AxiosError();
|
|
@@ -4523,10 +4298,10 @@ var init_validator = __esm({
|
|
|
4523
4298
|
}
|
|
4524
4299
|
});
|
|
4525
4300
|
|
|
4526
|
-
// node_modules/axios/lib/core/Axios.js
|
|
4301
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/core/Axios.js
|
|
4527
4302
|
var validators2, Axios, Axios_default;
|
|
4528
4303
|
var init_Axios = __esm({
|
|
4529
|
-
"node_modules/axios/lib/core/Axios.js"() {
|
|
4304
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/core/Axios.js"() {
|
|
4530
4305
|
"use strict";
|
|
4531
4306
|
init_utils();
|
|
4532
4307
|
init_buildURL();
|
|
@@ -4675,10 +4450,10 @@ var init_Axios = __esm({
|
|
|
4675
4450
|
}
|
|
4676
4451
|
});
|
|
4677
4452
|
|
|
4678
|
-
// node_modules/axios/lib/cancel/CancelToken.js
|
|
4453
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/cancel/CancelToken.js
|
|
4679
4454
|
var CancelToken, CancelToken_default;
|
|
4680
4455
|
var init_CancelToken = __esm({
|
|
4681
|
-
"node_modules/axios/lib/cancel/CancelToken.js"() {
|
|
4456
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/cancel/CancelToken.js"() {
|
|
4682
4457
|
"use strict";
|
|
4683
4458
|
init_CanceledError();
|
|
4684
4459
|
CancelToken = class _CancelToken {
|
|
@@ -4771,33 +4546,33 @@ var init_CancelToken = __esm({
|
|
|
4771
4546
|
}
|
|
4772
4547
|
});
|
|
4773
4548
|
|
|
4774
|
-
// node_modules/axios/lib/helpers/spread.js
|
|
4549
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/spread.js
|
|
4775
4550
|
function spread(callback) {
|
|
4776
4551
|
return function wrap(arr) {
|
|
4777
4552
|
return callback.apply(null, arr);
|
|
4778
4553
|
};
|
|
4779
4554
|
}
|
|
4780
4555
|
var init_spread = __esm({
|
|
4781
|
-
"node_modules/axios/lib/helpers/spread.js"() {
|
|
4556
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/spread.js"() {
|
|
4782
4557
|
"use strict";
|
|
4783
4558
|
}
|
|
4784
4559
|
});
|
|
4785
4560
|
|
|
4786
|
-
// node_modules/axios/lib/helpers/isAxiosError.js
|
|
4561
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/isAxiosError.js
|
|
4787
4562
|
function isAxiosError(payload) {
|
|
4788
4563
|
return utils_default.isObject(payload) && payload.isAxiosError === true;
|
|
4789
4564
|
}
|
|
4790
4565
|
var init_isAxiosError = __esm({
|
|
4791
|
-
"node_modules/axios/lib/helpers/isAxiosError.js"() {
|
|
4566
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/isAxiosError.js"() {
|
|
4792
4567
|
"use strict";
|
|
4793
4568
|
init_utils();
|
|
4794
4569
|
}
|
|
4795
4570
|
});
|
|
4796
4571
|
|
|
4797
|
-
// node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
4572
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
4798
4573
|
var HttpStatusCode, HttpStatusCode_default;
|
|
4799
4574
|
var init_HttpStatusCode = __esm({
|
|
4800
|
-
"node_modules/axios/lib/helpers/HttpStatusCode.js"() {
|
|
4575
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/helpers/HttpStatusCode.js"() {
|
|
4801
4576
|
HttpStatusCode = {
|
|
4802
4577
|
Continue: 100,
|
|
4803
4578
|
SwitchingProtocols: 101,
|
|
@@ -4870,7 +4645,7 @@ var init_HttpStatusCode = __esm({
|
|
|
4870
4645
|
}
|
|
4871
4646
|
});
|
|
4872
4647
|
|
|
4873
|
-
// node_modules/axios/lib/axios.js
|
|
4648
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/axios.js
|
|
4874
4649
|
function createInstance(defaultConfig) {
|
|
4875
4650
|
const context = new Axios_default(defaultConfig);
|
|
4876
4651
|
const instance = bind(Axios_default.prototype.request, context);
|
|
@@ -4883,7 +4658,7 @@ function createInstance(defaultConfig) {
|
|
|
4883
4658
|
}
|
|
4884
4659
|
var axios, axios_default;
|
|
4885
4660
|
var init_axios = __esm({
|
|
4886
|
-
"node_modules/axios/lib/axios.js"() {
|
|
4661
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/lib/axios.js"() {
|
|
4887
4662
|
"use strict";
|
|
4888
4663
|
init_utils();
|
|
4889
4664
|
init_bind();
|
|
@@ -4924,10 +4699,10 @@ var init_axios = __esm({
|
|
|
4924
4699
|
}
|
|
4925
4700
|
});
|
|
4926
4701
|
|
|
4927
|
-
// node_modules/axios/index.js
|
|
4702
|
+
// node_modules/.pnpm/axios@1.3.2/node_modules/axios/index.js
|
|
4928
4703
|
var Axios2, AxiosError2, CanceledError2, isCancel2, CancelToken2, VERSION2, all2, Cancel, isAxiosError2, spread2, toFormData2, AxiosHeaders2, HttpStatusCode2, formToJSON, mergeConfig2;
|
|
4929
4704
|
var init_axios2 = __esm({
|
|
4930
|
-
"node_modules/axios/index.js"() {
|
|
4705
|
+
"node_modules/.pnpm/axios@1.3.2/node_modules/axios/index.js"() {
|
|
4931
4706
|
init_axios();
|
|
4932
4707
|
({
|
|
4933
4708
|
Axios: Axios2,
|
|
@@ -6203,7 +5978,7 @@ var import_chalk26 = __toESM(require("chalk"));
|
|
|
6203
5978
|
var import_figlet5 = __toESM(require("figlet"));
|
|
6204
5979
|
|
|
6205
5980
|
// package.json
|
|
6206
|
-
var version = "2.0.
|
|
5981
|
+
var version = "2.0.8-beta.1";
|
|
6207
5982
|
|
|
6208
5983
|
// bin/upload.ts
|
|
6209
5984
|
var import_path7 = __toESM(require("path"));
|
|
@@ -9292,6 +9067,16 @@ var import_os5 = __toESM(require("os"));
|
|
|
9292
9067
|
var import_path11 = __toESM(require("path"));
|
|
9293
9068
|
var import_chalk19 = __toESM(require("chalk"));
|
|
9294
9069
|
var import_child_process3 = require("child_process");
|
|
9070
|
+
var DependencyInstallError = class extends Error {
|
|
9071
|
+
command;
|
|
9072
|
+
constructor(command, cause) {
|
|
9073
|
+
const reason = cause instanceof Error ? cause.message : String(cause);
|
|
9074
|
+
super(`${command} failed: ${reason}`);
|
|
9075
|
+
this.name = "DependencyInstallError";
|
|
9076
|
+
this.command = command;
|
|
9077
|
+
this.cause = cause;
|
|
9078
|
+
}
|
|
9079
|
+
};
|
|
9295
9080
|
function makeTempCacheDir() {
|
|
9296
9081
|
return import_fs_extra5.default.mkdtempSync(import_path11.default.join(import_os5.default.tmpdir(), "pinme-npm-cache-"));
|
|
9297
9082
|
}
|
|
@@ -9301,9 +9086,18 @@ function getNpmCommand() {
|
|
|
9301
9086
|
}
|
|
9302
9087
|
return "npm";
|
|
9303
9088
|
}
|
|
9304
|
-
function
|
|
9089
|
+
function hasPackageLock(cwd) {
|
|
9090
|
+
return import_fs_extra5.default.existsSync(import_path11.default.join(cwd, "package-lock.json"));
|
|
9091
|
+
}
|
|
9092
|
+
function getInstallScript(cwd) {
|
|
9093
|
+
return hasPackageLock(cwd) ? "ci" : "install";
|
|
9094
|
+
}
|
|
9095
|
+
function formatInstallCommand(script) {
|
|
9096
|
+
return `npm ${script} --cache <isolated npm cache> --no-audit --no-fund`;
|
|
9097
|
+
}
|
|
9098
|
+
function runInstall(cwd, cacheDir, script) {
|
|
9305
9099
|
const npm = getNpmCommand();
|
|
9306
|
-
const result = (0, import_child_process3.spawnSync)(npm, [
|
|
9100
|
+
const result = (0, import_child_process3.spawnSync)(npm, [script, "--cache", cacheDir, "--no-audit", "--no-fund"], {
|
|
9307
9101
|
cwd,
|
|
9308
9102
|
stdio: "inherit",
|
|
9309
9103
|
shell: true,
|
|
@@ -9318,10 +9112,12 @@ function runInstall(cwd, cacheDir) {
|
|
|
9318
9112
|
throw result.error;
|
|
9319
9113
|
}
|
|
9320
9114
|
if (result.status !== 0) {
|
|
9321
|
-
throw new Error(`npm
|
|
9115
|
+
throw new Error(`npm ${script} failed with exit code ${result.status}`);
|
|
9322
9116
|
}
|
|
9323
9117
|
}
|
|
9324
9118
|
function installProjectDependencies(cwd) {
|
|
9119
|
+
const script = getInstallScript(cwd);
|
|
9120
|
+
const command = formatInstallCommand(script);
|
|
9325
9121
|
let lastError;
|
|
9326
9122
|
for (let attempt = 1; attempt <= 2; attempt += 1) {
|
|
9327
9123
|
const cacheDir = makeTempCacheDir();
|
|
@@ -9329,7 +9125,10 @@ function installProjectDependencies(cwd) {
|
|
|
9329
9125
|
if (attempt > 1) {
|
|
9330
9126
|
console.log(import_chalk19.default.yellow(" Retrying dependency install with a fresh npm cache..."));
|
|
9331
9127
|
}
|
|
9332
|
-
|
|
9128
|
+
if (attempt === 1 && script === "ci") {
|
|
9129
|
+
console.log(import_chalk19.default.gray(" package-lock.json found; using npm ci for a reproducible install."));
|
|
9130
|
+
}
|
|
9131
|
+
runInstall(cwd, cacheDir, script);
|
|
9333
9132
|
return;
|
|
9334
9133
|
} catch (error) {
|
|
9335
9134
|
lastError = error;
|
|
@@ -9337,7 +9136,7 @@ function installProjectDependencies(cwd) {
|
|
|
9337
9136
|
import_fs_extra5.default.removeSync(cacheDir);
|
|
9338
9137
|
}
|
|
9339
9138
|
}
|
|
9340
|
-
throw lastError;
|
|
9139
|
+
throw new DependencyInstallError(command, lastError);
|
|
9341
9140
|
}
|
|
9342
9141
|
|
|
9343
9142
|
// bin/create.ts
|
|
@@ -9613,40 +9412,28 @@ Directory "${projectName}" already exists.`));
|
|
|
9613
9412
|
console.log(import_chalk20.default.green(" Project dependencies installed"));
|
|
9614
9413
|
} catch (error) {
|
|
9615
9414
|
const errorMsg = error.message || "";
|
|
9415
|
+
const installCommand = error instanceof DependencyInstallError ? error.command : "npm ci/npm install --cache <isolated npm cache> --no-audit --no-fund";
|
|
9616
9416
|
if (errorMsg.includes("EACCES") || errorMsg.includes("EPERM") || errorMsg.includes("permission denied")) {
|
|
9617
|
-
throw createCommandError("project dependency install",
|
|
9618
|
-
"Permission error detected.
|
|
9619
|
-
"",
|
|
9620
|
-
"Option 1: Fix npm permissions (Recommended)",
|
|
9621
|
-
" mkdir -p ~/.npm-global",
|
|
9622
|
-
" npm config set prefix ~/.npm-global",
|
|
9623
|
-
" Then add ~/.npm-global/bin to your PATH in ~/.bashrc or ~/.zshrc",
|
|
9624
|
-
"",
|
|
9625
|
-
"Option 2: Use npx to avoid global installs",
|
|
9626
|
-
" npx npm install",
|
|
9627
|
-
"",
|
|
9628
|
-
"Option 3: Check if you have write permissions",
|
|
9417
|
+
throw createCommandError("project dependency install", installCommand, error, [
|
|
9418
|
+
"Permission error detected. Pinme already retries with an isolated npm cache.",
|
|
9419
|
+
"Check whether the project directory is writable:",
|
|
9629
9420
|
" ls -la " + targetDir,
|
|
9630
|
-
""
|
|
9631
|
-
"For more help: https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally"
|
|
9421
|
+
"If npm still reports a root-owned cache, set `npm_config_cache` to a user-writable directory and retry."
|
|
9632
9422
|
]);
|
|
9633
9423
|
}
|
|
9634
9424
|
if (errorMsg.includes("ENOTFOUND") || errorMsg.includes("ETIMEDOUT") || errorMsg.includes("network")) {
|
|
9635
|
-
throw createCommandError("project dependency install",
|
|
9425
|
+
throw createCommandError("project dependency install", installCommand, error, [
|
|
9636
9426
|
"Network error detected. Please check:",
|
|
9637
9427
|
" 1. Internet connection is available",
|
|
9638
9428
|
" 2. npm registry is accessible (https://registry.npmjs.org)",
|
|
9639
9429
|
" 3. Try using a mirror: npm config set registry https://registry.npmmirror.com"
|
|
9640
9430
|
]);
|
|
9641
9431
|
}
|
|
9642
|
-
throw createCommandError("project dependency install",
|
|
9432
|
+
throw createCommandError("project dependency install", installCommand, error, [
|
|
9643
9433
|
"Dependency installation failed.",
|
|
9644
9434
|
"Check network connectivity and npm registry availability.",
|
|
9645
9435
|
"Inspect the generated workspace `package.json` files for dependency conflicts.",
|
|
9646
|
-
""
|
|
9647
|
-
"If this is a permission issue, try:",
|
|
9648
|
-
" sudo chown -R $(whoami) ~/.npm",
|
|
9649
|
-
" sudo chown -R $(whoami) " + targetDir + "/node_modules"
|
|
9436
|
+
"If `package-lock.json` is stale, update it intentionally with `npm install` before retrying."
|
|
9650
9437
|
]);
|
|
9651
9438
|
}
|
|
9652
9439
|
console.log(import_chalk20.default.blue("\n5. Building backend worker..."));
|
|
@@ -9871,40 +9658,27 @@ function installDependencies() {
|
|
|
9871
9658
|
console.log(import_chalk21.default.green("Project dependencies installed"));
|
|
9872
9659
|
} catch (error) {
|
|
9873
9660
|
const errorMsg = error.message || "";
|
|
9661
|
+
const installCommand = error instanceof DependencyInstallError ? error.command : "npm ci/npm install --cache <isolated npm cache> --no-audit --no-fund";
|
|
9874
9662
|
if (errorMsg.includes("EACCES") || errorMsg.includes("EPERM") || errorMsg.includes("permission denied")) {
|
|
9875
|
-
throw createCommandError("project dependency install",
|
|
9876
|
-
"Permission error detected.
|
|
9877
|
-
"",
|
|
9878
|
-
"Option 1: Fix npm permissions (Recommended)",
|
|
9879
|
-
" mkdir -p ~/.npm-global",
|
|
9880
|
-
" npm config set prefix ~/.npm-global",
|
|
9881
|
-
" Then add ~/.npm-global/bin to your PATH in ~/.bashrc or ~/.zshrc",
|
|
9882
|
-
"",
|
|
9883
|
-
"Option 2: Use npx to avoid global installs",
|
|
9884
|
-
" npx npm install",
|
|
9885
|
-
"",
|
|
9886
|
-
"Option 3: Check if you have write permissions",
|
|
9663
|
+
throw createCommandError("project dependency install", installCommand, error, [
|
|
9664
|
+
"Permission error detected. Pinme already retries with an isolated npm cache.",
|
|
9665
|
+
"Check whether the project directory is writable:",
|
|
9887
9666
|
" ls -la " + PROJECT_DIR2,
|
|
9888
|
-
""
|
|
9889
|
-
"For more help: https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally"
|
|
9667
|
+
"If npm still reports a root-owned cache, set `npm_config_cache` to a user-writable directory and retry."
|
|
9890
9668
|
]);
|
|
9891
9669
|
}
|
|
9892
9670
|
if (errorMsg.includes("ENOTFOUND") || errorMsg.includes("ETIMEDOUT") || errorMsg.includes("network")) {
|
|
9893
|
-
throw createCommandError("project dependency install",
|
|
9671
|
+
throw createCommandError("project dependency install", installCommand, error, [
|
|
9894
9672
|
"Network error detected. Please check:",
|
|
9895
9673
|
" 1. Internet connection is available",
|
|
9896
9674
|
" 2. npm registry is accessible (https://registry.npmjs.org)",
|
|
9897
9675
|
" 3. Try using a mirror: npm config set registry https://registry.npmmirror.com"
|
|
9898
9676
|
]);
|
|
9899
9677
|
}
|
|
9900
|
-
throw createCommandError("project dependency install",
|
|
9678
|
+
throw createCommandError("project dependency install", installCommand, error, [
|
|
9901
9679
|
"Dependency installation failed.",
|
|
9902
9680
|
"Check network connectivity and npm registry availability.",
|
|
9903
|
-
"If `package-lock.json` is stale
|
|
9904
|
-
"",
|
|
9905
|
-
"If this is a permission issue, try:",
|
|
9906
|
-
" sudo chown -R $(whoami) ~/.npm",
|
|
9907
|
-
" sudo chown -R $(whoami) " + PROJECT_DIR2 + "/node_modules"
|
|
9681
|
+
"If `package-lock.json` is stale, update it intentionally with `npm install` before retrying."
|
|
9908
9682
|
]);
|
|
9909
9683
|
}
|
|
9910
9684
|
}
|