pinme 2.0.6-beta.2 → 2.0.7-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 +534 -297
- package/package.json +3 -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
|
|
35
|
+
// node_modules/dotenv/package.json
|
|
36
36
|
var require_package = __commonJS({
|
|
37
|
-
"node_modules
|
|
37
|
+
"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
|
|
103
|
+
// node_modules/dotenv/lib/main.js
|
|
104
104
|
var require_main = __commonJS({
|
|
105
|
-
"node_modules
|
|
105
|
+
"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
|
|
370
|
+
// 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
|
|
377
|
+
"node_modules/axios/lib/helpers/bind.js"() {
|
|
378
378
|
"use strict";
|
|
379
379
|
}
|
|
380
380
|
});
|
|
381
381
|
|
|
382
|
-
// node_modules
|
|
382
|
+
// 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
|
|
456
|
+
"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
|
|
736
|
+
// 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
|
|
753
|
+
"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
|
|
815
|
+
// 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
|
|
818
|
+
"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
|
|
824
|
+
// 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
|
|
933
|
+
"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
|
|
945
|
+
// 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
|
|
966
|
+
"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
|
|
985
|
+
// 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
|
|
1011
|
+
"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
|
|
1018
|
+
// node_modules/axios/lib/core/InterceptorManager.js
|
|
1019
1019
|
var InterceptorManager, InterceptorManager_default;
|
|
1020
1020
|
var init_InterceptorManager = __esm({
|
|
1021
|
-
"node_modules
|
|
1021
|
+
"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
|
|
1089
|
+
// node_modules/axios/lib/defaults/transitional.js
|
|
1090
1090
|
var transitional_default;
|
|
1091
1091
|
var init_transitional = __esm({
|
|
1092
|
-
"node_modules
|
|
1092
|
+
"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
|
|
1102
|
+
// 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
|
|
1105
|
+
"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
|
|
1112
|
+
// node_modules/axios/lib/platform/node/index.js
|
|
1113
1113
|
var node_default;
|
|
1114
1114
|
var init_node = __esm({
|
|
1115
|
-
"node_modules
|
|
1115
|
+
"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
|
|
1130
|
+
// node_modules/axios/lib/platform/index.js
|
|
1131
1131
|
var init_platform = __esm({
|
|
1132
|
-
"node_modules
|
|
1132
|
+
"node_modules/axios/lib/platform/index.js"() {
|
|
1133
1133
|
init_node();
|
|
1134
1134
|
}
|
|
1135
1135
|
});
|
|
1136
1136
|
|
|
1137
|
-
// node_modules
|
|
1137
|
+
// 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
|
|
1150
|
+
"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
|
|
1158
|
+
// 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
|
|
1210
|
+
"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
|
|
1217
|
+
// 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
|
|
1233
|
+
"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
|
|
1344
|
+
// node_modules/axios/lib/helpers/parseHeaders.js
|
|
1345
1345
|
var ignoreDuplicateOf, parseHeaders_default;
|
|
1346
1346
|
var init_parseHeaders = __esm({
|
|
1347
|
-
"node_modules
|
|
1347
|
+
"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
|
|
1396
|
+
// 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
|
|
1448
|
+
"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
|
|
1612
|
+
// 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
|
|
1625
|
+
"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
|
|
1633
|
+
// 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
|
|
1638
|
+
"node_modules/axios/lib/cancel/isCancel.js"() {
|
|
1639
1639
|
"use strict";
|
|
1640
1640
|
}
|
|
1641
1641
|
});
|
|
1642
1642
|
|
|
1643
|
-
// node_modules
|
|
1643
|
+
// 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
|
|
1650
|
+
"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
|
|
1661
|
+
// 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
|
|
1677
|
+
"node_modules/axios/lib/core/settle.js"() {
|
|
1678
1678
|
"use strict";
|
|
1679
1679
|
init_AxiosError();
|
|
1680
1680
|
}
|
|
1681
1681
|
});
|
|
1682
1682
|
|
|
1683
|
-
// node_modules
|
|
1683
|
+
// 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
|
|
1688
|
+
"node_modules/axios/lib/helpers/isAbsoluteURL.js"() {
|
|
1689
1689
|
"use strict";
|
|
1690
1690
|
}
|
|
1691
1691
|
});
|
|
1692
1692
|
|
|
1693
|
-
// node_modules
|
|
1693
|
+
// 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
|
|
1698
|
+
"node_modules/axios/lib/helpers/combineURLs.js"() {
|
|
1699
1699
|
"use strict";
|
|
1700
1700
|
}
|
|
1701
1701
|
});
|
|
1702
1702
|
|
|
1703
|
-
// node_modules
|
|
1703
|
+
// 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
|
|
1711
|
+
"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
|
|
1718
|
+
// node_modules/proxy-from-env/index.js
|
|
1719
1719
|
var require_proxy_from_env = __commonJS({
|
|
1720
|
-
"node_modules
|
|
1720
|
+
"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
|
|
1788
|
+
// node_modules/ms/index.js
|
|
1789
1789
|
var require_ms = __commonJS({
|
|
1790
|
-
"node_modules
|
|
1790
|
+
"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,10 +1901,9 @@ var require_ms = __commonJS({
|
|
|
1901
1901
|
}
|
|
1902
1902
|
});
|
|
1903
1903
|
|
|
1904
|
-
// node_modules
|
|
1904
|
+
// node_modules/debug/src/common.js
|
|
1905
1905
|
var require_common = __commonJS({
|
|
1906
|
-
"node_modules
|
|
1907
|
-
"use strict";
|
|
1906
|
+
"node_modules/debug/src/common.js"(exports2, module2) {
|
|
1908
1907
|
function setup(env) {
|
|
1909
1908
|
createDebug.debug = createDebug;
|
|
1910
1909
|
createDebug.default = createDebug;
|
|
@@ -1913,16 +1912,16 @@ var require_common = __commonJS({
|
|
|
1913
1912
|
createDebug.enable = enable;
|
|
1914
1913
|
createDebug.enabled = enabled;
|
|
1915
1914
|
createDebug.humanize = require_ms();
|
|
1916
|
-
|
|
1915
|
+
createDebug.destroy = destroy;
|
|
1916
|
+
Object.keys(env).forEach((key) => {
|
|
1917
1917
|
createDebug[key] = env[key];
|
|
1918
1918
|
});
|
|
1919
|
-
createDebug.instances = [];
|
|
1920
1919
|
createDebug.names = [];
|
|
1921
1920
|
createDebug.skips = [];
|
|
1922
1921
|
createDebug.formatters = {};
|
|
1923
1922
|
function selectColor(namespace) {
|
|
1924
|
-
|
|
1925
|
-
for (
|
|
1923
|
+
let hash = 0;
|
|
1924
|
+
for (let i = 0; i < namespace.length; i++) {
|
|
1926
1925
|
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
1927
1926
|
hash |= 0;
|
|
1928
1927
|
}
|
|
@@ -1930,17 +1929,17 @@ var require_common = __commonJS({
|
|
|
1930
1929
|
}
|
|
1931
1930
|
createDebug.selectColor = selectColor;
|
|
1932
1931
|
function createDebug(namespace) {
|
|
1933
|
-
|
|
1934
|
-
|
|
1932
|
+
let prevTime;
|
|
1933
|
+
let enableOverride = null;
|
|
1934
|
+
let namespacesCache;
|
|
1935
|
+
let enabledCache;
|
|
1936
|
+
function debug(...args) {
|
|
1935
1937
|
if (!debug.enabled) {
|
|
1936
1938
|
return;
|
|
1937
1939
|
}
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
var self2 = debug;
|
|
1942
|
-
var curr = Number(/* @__PURE__ */ new Date());
|
|
1943
|
-
var ms = curr - (prevTime || curr);
|
|
1940
|
+
const self2 = debug;
|
|
1941
|
+
const curr = Number(/* @__PURE__ */ new Date());
|
|
1942
|
+
const ms = curr - (prevTime || curr);
|
|
1944
1943
|
self2.diff = ms;
|
|
1945
1944
|
self2.prev = prevTime;
|
|
1946
1945
|
self2.curr = curr;
|
|
@@ -1949,15 +1948,15 @@ var require_common = __commonJS({
|
|
|
1949
1948
|
if (typeof args[0] !== "string") {
|
|
1950
1949
|
args.unshift("%O");
|
|
1951
1950
|
}
|
|
1952
|
-
|
|
1953
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g,
|
|
1951
|
+
let index = 0;
|
|
1952
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
|
|
1954
1953
|
if (match === "%%") {
|
|
1955
|
-
return
|
|
1954
|
+
return "%";
|
|
1956
1955
|
}
|
|
1957
1956
|
index++;
|
|
1958
|
-
|
|
1957
|
+
const formatter = createDebug.formatters[format];
|
|
1959
1958
|
if (typeof formatter === "function") {
|
|
1960
|
-
|
|
1959
|
+
const val = args[index];
|
|
1961
1960
|
match = formatter.call(self2, val);
|
|
1962
1961
|
args.splice(index, 1);
|
|
1963
1962
|
index--;
|
|
@@ -1965,71 +1964,99 @@ var require_common = __commonJS({
|
|
|
1965
1964
|
return match;
|
|
1966
1965
|
});
|
|
1967
1966
|
createDebug.formatArgs.call(self2, args);
|
|
1968
|
-
|
|
1967
|
+
const logFn = self2.log || createDebug.log;
|
|
1969
1968
|
logFn.apply(self2, args);
|
|
1970
1969
|
}
|
|
1971
1970
|
debug.namespace = namespace;
|
|
1972
|
-
debug.enabled = createDebug.enabled(namespace);
|
|
1973
1971
|
debug.useColors = createDebug.useColors();
|
|
1974
|
-
debug.color = selectColor(namespace);
|
|
1975
|
-
debug.destroy = destroy;
|
|
1972
|
+
debug.color = createDebug.selectColor(namespace);
|
|
1976
1973
|
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
|
+
});
|
|
1977
1992
|
if (typeof createDebug.init === "function") {
|
|
1978
1993
|
createDebug.init(debug);
|
|
1979
1994
|
}
|
|
1980
|
-
createDebug.instances.push(debug);
|
|
1981
1995
|
return debug;
|
|
1982
1996
|
}
|
|
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
|
-
}
|
|
1991
1997
|
function extend2(namespace, delimiter) {
|
|
1992
|
-
|
|
1998
|
+
const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
|
|
1999
|
+
newDebug.log = this.log;
|
|
2000
|
+
return newDebug;
|
|
1993
2001
|
}
|
|
1994
2002
|
function enable(namespaces) {
|
|
1995
2003
|
createDebug.save(namespaces);
|
|
2004
|
+
createDebug.namespaces = namespaces;
|
|
1996
2005
|
createDebug.names = [];
|
|
1997
2006
|
createDebug.skips = [];
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2007
|
+
const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
|
|
2008
|
+
for (const ns of split) {
|
|
2009
|
+
if (ns[0] === "-") {
|
|
2010
|
+
createDebug.skips.push(ns.slice(1));
|
|
2011
|
+
} else {
|
|
2012
|
+
createDebug.names.push(ns);
|
|
2004
2013
|
}
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2014
|
+
}
|
|
2015
|
+
}
|
|
2016
|
+
function matchesTemplate(search, template) {
|
|
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;
|
|
2008
2035
|
} else {
|
|
2009
|
-
|
|
2036
|
+
return false;
|
|
2010
2037
|
}
|
|
2011
2038
|
}
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
instance.enabled = createDebug.enabled(instance.namespace);
|
|
2039
|
+
while (templateIndex < template.length && template[templateIndex] === "*") {
|
|
2040
|
+
templateIndex++;
|
|
2015
2041
|
}
|
|
2042
|
+
return templateIndex === template.length;
|
|
2016
2043
|
}
|
|
2017
2044
|
function disable() {
|
|
2045
|
+
const namespaces = [
|
|
2046
|
+
...createDebug.names,
|
|
2047
|
+
...createDebug.skips.map((namespace) => "-" + namespace)
|
|
2048
|
+
].join(",");
|
|
2018
2049
|
createDebug.enable("");
|
|
2050
|
+
return namespaces;
|
|
2019
2051
|
}
|
|
2020
2052
|
function enabled(name) {
|
|
2021
|
-
|
|
2022
|
-
|
|
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)) {
|
|
2053
|
+
for (const skip of createDebug.skips) {
|
|
2054
|
+
if (matchesTemplate(name, skip)) {
|
|
2028
2055
|
return false;
|
|
2029
2056
|
}
|
|
2030
2057
|
}
|
|
2031
|
-
for (
|
|
2032
|
-
if (
|
|
2058
|
+
for (const ns of createDebug.names) {
|
|
2059
|
+
if (matchesTemplate(name, ns)) {
|
|
2033
2060
|
return true;
|
|
2034
2061
|
}
|
|
2035
2062
|
}
|
|
@@ -2041,6 +2068,9 @@ var require_common = __commonJS({
|
|
|
2041
2068
|
}
|
|
2042
2069
|
return val;
|
|
2043
2070
|
}
|
|
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
|
+
}
|
|
2044
2074
|
createDebug.enable(createDebug.load());
|
|
2045
2075
|
return createDebug;
|
|
2046
2076
|
}
|
|
@@ -2048,29 +2078,101 @@ var require_common = __commonJS({
|
|
|
2048
2078
|
}
|
|
2049
2079
|
});
|
|
2050
2080
|
|
|
2051
|
-
// node_modules
|
|
2081
|
+
// node_modules/debug/src/browser.js
|
|
2052
2082
|
var require_browser = __commonJS({
|
|
2053
|
-
"node_modules
|
|
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;
|
|
2083
|
+
"node_modules/debug/src/browser.js"(exports2, module2) {
|
|
2068
2084
|
exports2.formatArgs = formatArgs;
|
|
2069
2085
|
exports2.save = save;
|
|
2070
2086
|
exports2.load = load;
|
|
2071
2087
|
exports2.useColors = useColors;
|
|
2072
2088
|
exports2.storage = localstorage();
|
|
2073
|
-
exports2.
|
|
2089
|
+
exports2.destroy = /* @__PURE__ */ (() => {
|
|
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
|
+
];
|
|
2074
2176
|
function useColors() {
|
|
2075
2177
|
if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
|
|
2076
2178
|
return true;
|
|
@@ -2078,10 +2180,11 @@ var require_browser = __commonJS({
|
|
|
2078
2180
|
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
2079
2181
|
return false;
|
|
2080
2182
|
}
|
|
2183
|
+
let m;
|
|
2081
2184
|
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
|
|
2082
2185
|
typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
|
|
2083
2186
|
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
2084
|
-
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(
|
|
2187
|
+
typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
|
|
2085
2188
|
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
2086
2189
|
}
|
|
2087
2190
|
function formatArgs(args) {
|
|
@@ -2089,11 +2192,11 @@ var require_browser = __commonJS({
|
|
|
2089
2192
|
if (!this.useColors) {
|
|
2090
2193
|
return;
|
|
2091
2194
|
}
|
|
2092
|
-
|
|
2195
|
+
const c = "color: " + this.color;
|
|
2093
2196
|
args.splice(1, 0, c, "color: inherit");
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
args[0].replace(/%[a-zA-Z%]/g,
|
|
2197
|
+
let index = 0;
|
|
2198
|
+
let lastC = 0;
|
|
2199
|
+
args[0].replace(/%[a-zA-Z%]/g, (match) => {
|
|
2097
2200
|
if (match === "%%") {
|
|
2098
2201
|
return;
|
|
2099
2202
|
}
|
|
@@ -2104,10 +2207,8 @@ var require_browser = __commonJS({
|
|
|
2104
2207
|
});
|
|
2105
2208
|
args.splice(lastC, 0, c);
|
|
2106
2209
|
}
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
return (typeof console === "undefined" ? "undefined" : _typeof(console)) === "object" && console.log && (_console = console).log.apply(_console, arguments);
|
|
2110
|
-
}
|
|
2210
|
+
exports2.log = console.debug || console.log || (() => {
|
|
2211
|
+
});
|
|
2111
2212
|
function save(namespaces) {
|
|
2112
2213
|
try {
|
|
2113
2214
|
if (namespaces) {
|
|
@@ -2119,9 +2220,9 @@ var require_browser = __commonJS({
|
|
|
2119
2220
|
}
|
|
2120
2221
|
}
|
|
2121
2222
|
function load() {
|
|
2122
|
-
|
|
2223
|
+
let r;
|
|
2123
2224
|
try {
|
|
2124
|
-
r = exports2.storage.getItem("debug");
|
|
2225
|
+
r = exports2.storage.getItem("debug") || exports2.storage.getItem("DEBUG");
|
|
2125
2226
|
} catch (error) {
|
|
2126
2227
|
}
|
|
2127
2228
|
if (!r && typeof process !== "undefined" && "env" in process) {
|
|
@@ -2136,7 +2237,7 @@ var require_browser = __commonJS({
|
|
|
2136
2237
|
}
|
|
2137
2238
|
}
|
|
2138
2239
|
module2.exports = require_common()(exports2);
|
|
2139
|
-
var formatters = module2.exports
|
|
2240
|
+
var { formatters } = module2.exports;
|
|
2140
2241
|
formatters.j = function(v) {
|
|
2141
2242
|
try {
|
|
2142
2243
|
return JSON.stringify(v);
|
|
@@ -2147,9 +2248,9 @@ var require_browser = __commonJS({
|
|
|
2147
2248
|
}
|
|
2148
2249
|
});
|
|
2149
2250
|
|
|
2150
|
-
// node_modules
|
|
2251
|
+
// node_modules/has-flag/index.js
|
|
2151
2252
|
var require_has_flag = __commonJS({
|
|
2152
|
-
"node_modules
|
|
2253
|
+
"node_modules/has-flag/index.js"(exports2, module2) {
|
|
2153
2254
|
"use strict";
|
|
2154
2255
|
module2.exports = (flag, argv) => {
|
|
2155
2256
|
argv = argv || process.argv;
|
|
@@ -2161,9 +2262,9 @@ var require_has_flag = __commonJS({
|
|
|
2161
2262
|
}
|
|
2162
2263
|
});
|
|
2163
2264
|
|
|
2164
|
-
// node_modules
|
|
2265
|
+
// node_modules/supports-color/index.js
|
|
2165
2266
|
var require_supports_color = __commonJS({
|
|
2166
|
-
"node_modules
|
|
2267
|
+
"node_modules/supports-color/index.js"(exports2, module2) {
|
|
2167
2268
|
"use strict";
|
|
2168
2269
|
var os6 = require("os");
|
|
2169
2270
|
var hasFlag = require_has_flag();
|
|
@@ -2256,10 +2357,9 @@ var require_supports_color = __commonJS({
|
|
|
2256
2357
|
}
|
|
2257
2358
|
});
|
|
2258
2359
|
|
|
2259
|
-
// node_modules
|
|
2360
|
+
// node_modules/debug/src/node.js
|
|
2260
2361
|
var require_node = __commonJS({
|
|
2261
|
-
"node_modules
|
|
2262
|
-
"use strict";
|
|
2362
|
+
"node_modules/debug/src/node.js"(exports2, module2) {
|
|
2263
2363
|
var tty = require("tty");
|
|
2264
2364
|
var util2 = require("util");
|
|
2265
2365
|
exports2.init = init;
|
|
@@ -2268,22 +2368,103 @@ var require_node = __commonJS({
|
|
|
2268
2368
|
exports2.save = save;
|
|
2269
2369
|
exports2.load = load;
|
|
2270
2370
|
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
|
+
);
|
|
2271
2376
|
exports2.colors = [6, 2, 3, 4, 5, 1];
|
|
2272
2377
|
try {
|
|
2273
|
-
supportsColor = require_supports_color();
|
|
2378
|
+
const supportsColor = require_supports_color();
|
|
2274
2379
|
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
2275
|
-
exports2.colors = [
|
|
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
|
+
];
|
|
2276
2458
|
}
|
|
2277
2459
|
} catch (error) {
|
|
2278
2460
|
}
|
|
2279
|
-
|
|
2280
|
-
exports2.inspectOpts = Object.keys(process.env).filter(function(key) {
|
|
2461
|
+
exports2.inspectOpts = Object.keys(process.env).filter((key) => {
|
|
2281
2462
|
return /^debug_/i.test(key);
|
|
2282
|
-
}).reduce(
|
|
2283
|
-
|
|
2463
|
+
}).reduce((obj, key) => {
|
|
2464
|
+
const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
|
|
2284
2465
|
return k.toUpperCase();
|
|
2285
2466
|
});
|
|
2286
|
-
|
|
2467
|
+
let val = process.env[key];
|
|
2287
2468
|
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
|
2288
2469
|
val = true;
|
|
2289
2470
|
} else if (/^(no|off|false|disabled)$/i.test(val)) {
|
|
@@ -2300,11 +2481,11 @@ var require_node = __commonJS({
|
|
|
2300
2481
|
return "colors" in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
|
2301
2482
|
}
|
|
2302
2483
|
function formatArgs(args) {
|
|
2303
|
-
|
|
2484
|
+
const { namespace: name, useColors: useColors2 } = this;
|
|
2304
2485
|
if (useColors2) {
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2486
|
+
const c = this.color;
|
|
2487
|
+
const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
|
|
2488
|
+
const prefix = ` ${colorCode};1m${name} \x1B[0m`;
|
|
2308
2489
|
args[0] = prefix + args[0].split("\n").join("\n" + prefix);
|
|
2309
2490
|
args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m");
|
|
2310
2491
|
} else {
|
|
@@ -2317,8 +2498,8 @@ var require_node = __commonJS({
|
|
|
2317
2498
|
}
|
|
2318
2499
|
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
2319
2500
|
}
|
|
2320
|
-
function log() {
|
|
2321
|
-
return process.stderr.write(util2.
|
|
2501
|
+
function log(...args) {
|
|
2502
|
+
return process.stderr.write(util2.formatWithOptions(exports2.inspectOpts, ...args) + "\n");
|
|
2322
2503
|
}
|
|
2323
2504
|
function save(namespaces) {
|
|
2324
2505
|
if (namespaces) {
|
|
@@ -2332,18 +2513,16 @@ var require_node = __commonJS({
|
|
|
2332
2513
|
}
|
|
2333
2514
|
function init(debug) {
|
|
2334
2515
|
debug.inspectOpts = {};
|
|
2335
|
-
|
|
2336
|
-
for (
|
|
2516
|
+
const keys = Object.keys(exports2.inspectOpts);
|
|
2517
|
+
for (let i = 0; i < keys.length; i++) {
|
|
2337
2518
|
debug.inspectOpts[keys[i]] = exports2.inspectOpts[keys[i]];
|
|
2338
2519
|
}
|
|
2339
2520
|
}
|
|
2340
2521
|
module2.exports = require_common()(exports2);
|
|
2341
|
-
var formatters = module2.exports
|
|
2522
|
+
var { formatters } = module2.exports;
|
|
2342
2523
|
formatters.o = function(v) {
|
|
2343
2524
|
this.inspectOpts.colors = this.useColors;
|
|
2344
|
-
return util2.inspect(v, this.inspectOpts).split("\n").map(
|
|
2345
|
-
return str.trim();
|
|
2346
|
-
}).join(" ");
|
|
2525
|
+
return util2.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
2347
2526
|
};
|
|
2348
2527
|
formatters.O = function(v) {
|
|
2349
2528
|
this.inspectOpts.colors = this.useColors;
|
|
@@ -2352,10 +2531,9 @@ var require_node = __commonJS({
|
|
|
2352
2531
|
}
|
|
2353
2532
|
});
|
|
2354
2533
|
|
|
2355
|
-
// node_modules
|
|
2534
|
+
// node_modules/debug/src/index.js
|
|
2356
2535
|
var require_src = __commonJS({
|
|
2357
|
-
"node_modules
|
|
2358
|
-
"use strict";
|
|
2536
|
+
"node_modules/debug/src/index.js"(exports2, module2) {
|
|
2359
2537
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
2360
2538
|
module2.exports = require_browser();
|
|
2361
2539
|
} else {
|
|
@@ -2364,9 +2542,9 @@ var require_src = __commonJS({
|
|
|
2364
2542
|
}
|
|
2365
2543
|
});
|
|
2366
2544
|
|
|
2367
|
-
// node_modules
|
|
2545
|
+
// node_modules/follow-redirects/debug.js
|
|
2368
2546
|
var require_debug = __commonJS({
|
|
2369
|
-
"node_modules
|
|
2547
|
+
"node_modules/follow-redirects/debug.js"(exports2, module2) {
|
|
2370
2548
|
var debug;
|
|
2371
2549
|
module2.exports = function() {
|
|
2372
2550
|
if (!debug) {
|
|
@@ -2384,9 +2562,9 @@ var require_debug = __commonJS({
|
|
|
2384
2562
|
}
|
|
2385
2563
|
});
|
|
2386
2564
|
|
|
2387
|
-
// node_modules
|
|
2565
|
+
// node_modules/follow-redirects/index.js
|
|
2388
2566
|
var require_follow_redirects = __commonJS({
|
|
2389
|
-
"node_modules
|
|
2567
|
+
"node_modules/follow-redirects/index.js"(exports2, module2) {
|
|
2390
2568
|
var url2 = require("url");
|
|
2391
2569
|
var URL3 = url2.URL;
|
|
2392
2570
|
var http3 = require("http");
|
|
@@ -2394,6 +2572,33 @@ var require_follow_redirects = __commonJS({
|
|
|
2394
2572
|
var Writable = require("stream").Writable;
|
|
2395
2573
|
var assert = require("assert");
|
|
2396
2574
|
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
|
+
];
|
|
2397
2602
|
var events = ["abort", "aborted", "connect", "error", "socket", "timeout"];
|
|
2398
2603
|
var eventHandlers = /* @__PURE__ */ Object.create(null);
|
|
2399
2604
|
events.forEach(function(event) {
|
|
@@ -2412,7 +2617,8 @@ var require_follow_redirects = __commonJS({
|
|
|
2412
2617
|
);
|
|
2413
2618
|
var TooManyRedirectsError = createErrorType(
|
|
2414
2619
|
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
2415
|
-
"Maximum number of redirects exceeded"
|
|
2620
|
+
"Maximum number of redirects exceeded",
|
|
2621
|
+
RedirectionError
|
|
2416
2622
|
);
|
|
2417
2623
|
var MaxBodyLengthExceededError = createErrorType(
|
|
2418
2624
|
"ERR_FR_MAX_BODY_LENGTH_EXCEEDED",
|
|
@@ -2422,6 +2628,7 @@ var require_follow_redirects = __commonJS({
|
|
|
2422
2628
|
"ERR_STREAM_WRITE_AFTER_END",
|
|
2423
2629
|
"write after end"
|
|
2424
2630
|
);
|
|
2631
|
+
var destroy = Writable.prototype.destroy || noop2;
|
|
2425
2632
|
function RedirectableRequest(options, responseCallback) {
|
|
2426
2633
|
Writable.call(this);
|
|
2427
2634
|
this._sanitizeOptions(options);
|
|
@@ -2437,15 +2644,25 @@ var require_follow_redirects = __commonJS({
|
|
|
2437
2644
|
}
|
|
2438
2645
|
var self2 = this;
|
|
2439
2646
|
this._onNativeResponse = function(response) {
|
|
2440
|
-
|
|
2647
|
+
try {
|
|
2648
|
+
self2._processResponse(response);
|
|
2649
|
+
} catch (cause) {
|
|
2650
|
+
self2.emit("error", cause instanceof RedirectionError ? cause : new RedirectionError({ cause }));
|
|
2651
|
+
}
|
|
2441
2652
|
};
|
|
2442
2653
|
this._performRequest();
|
|
2443
2654
|
}
|
|
2444
2655
|
RedirectableRequest.prototype = Object.create(Writable.prototype);
|
|
2445
2656
|
RedirectableRequest.prototype.abort = function() {
|
|
2446
|
-
|
|
2657
|
+
destroyRequest(this._currentRequest);
|
|
2658
|
+
this._currentRequest.abort();
|
|
2447
2659
|
this.emit("abort");
|
|
2448
2660
|
};
|
|
2661
|
+
RedirectableRequest.prototype.destroy = function(error) {
|
|
2662
|
+
destroyRequest(this._currentRequest, error);
|
|
2663
|
+
destroy.call(this, error);
|
|
2664
|
+
return this;
|
|
2665
|
+
};
|
|
2449
2666
|
RedirectableRequest.prototype.write = function(data, encoding, callback) {
|
|
2450
2667
|
if (this._ending) {
|
|
2451
2668
|
throw new WriteAfterEndError();
|
|
@@ -2526,6 +2743,7 @@ var require_follow_redirects = __commonJS({
|
|
|
2526
2743
|
self2.removeListener("abort", clearTimer);
|
|
2527
2744
|
self2.removeListener("error", clearTimer);
|
|
2528
2745
|
self2.removeListener("response", clearTimer);
|
|
2746
|
+
self2.removeListener("close", clearTimer);
|
|
2529
2747
|
if (callback) {
|
|
2530
2748
|
self2.removeListener("timeout", callback);
|
|
2531
2749
|
}
|
|
@@ -2545,6 +2763,7 @@ var require_follow_redirects = __commonJS({
|
|
|
2545
2763
|
this.on("abort", clearTimer);
|
|
2546
2764
|
this.on("error", clearTimer);
|
|
2547
2765
|
this.on("response", clearTimer);
|
|
2766
|
+
this.on("close", clearTimer);
|
|
2548
2767
|
return this;
|
|
2549
2768
|
};
|
|
2550
2769
|
[
|
|
@@ -2588,8 +2807,7 @@ var require_follow_redirects = __commonJS({
|
|
|
2588
2807
|
var protocol = this._options.protocol;
|
|
2589
2808
|
var nativeProtocol = this._options.nativeProtocols[protocol];
|
|
2590
2809
|
if (!nativeProtocol) {
|
|
2591
|
-
|
|
2592
|
-
return;
|
|
2810
|
+
throw new TypeError("Unsupported protocol " + protocol);
|
|
2593
2811
|
}
|
|
2594
2812
|
if (this._options.agents) {
|
|
2595
2813
|
var scheme = protocol.slice(0, -1);
|
|
@@ -2642,11 +2860,10 @@ var require_follow_redirects = __commonJS({
|
|
|
2642
2860
|
this._requestBodyBuffers = [];
|
|
2643
2861
|
return;
|
|
2644
2862
|
}
|
|
2645
|
-
|
|
2863
|
+
destroyRequest(this._currentRequest);
|
|
2646
2864
|
response.destroy();
|
|
2647
2865
|
if (++this._redirectCount > this._options.maxRedirects) {
|
|
2648
|
-
|
|
2649
|
-
return;
|
|
2866
|
+
throw new TooManyRedirectsError();
|
|
2650
2867
|
}
|
|
2651
2868
|
var requestHeaders;
|
|
2652
2869
|
var beforeRedirect = this._options.beforeRedirect;
|
|
@@ -2667,22 +2884,15 @@ var require_follow_redirects = __commonJS({
|
|
|
2667
2884
|
removeMatchingHeaders(/^content-/i, this._options.headers);
|
|
2668
2885
|
}
|
|
2669
2886
|
var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);
|
|
2670
|
-
var currentUrlParts =
|
|
2887
|
+
var currentUrlParts = parseUrl(this._currentUrl);
|
|
2671
2888
|
var currentHost = currentHostHeader || currentUrlParts.host;
|
|
2672
2889
|
var currentUrl = /^\w+:/.test(location) ? this._currentUrl : url2.format(Object.assign(currentUrlParts, { host: currentHost }));
|
|
2673
|
-
var redirectUrl;
|
|
2674
|
-
|
|
2675
|
-
redirectUrl = url2.resolve(currentUrl, location);
|
|
2676
|
-
} catch (cause) {
|
|
2677
|
-
this.emit("error", new RedirectionError({ cause }));
|
|
2678
|
-
return;
|
|
2679
|
-
}
|
|
2680
|
-
debug("redirecting to", redirectUrl);
|
|
2890
|
+
var redirectUrl = resolveUrl(location, currentUrl);
|
|
2891
|
+
debug("redirecting to", redirectUrl.href);
|
|
2681
2892
|
this._isRedirect = true;
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers);
|
|
2893
|
+
spreadUrlObject(redirectUrl, this._options);
|
|
2894
|
+
if (redirectUrl.protocol !== currentUrlParts.protocol && redirectUrl.protocol !== "https:" || redirectUrl.host !== currentHost && !isSubdomain(redirectUrl.host, currentHost)) {
|
|
2895
|
+
removeMatchingHeaders(/^(?:(?:proxy-)?authorization|cookie)$/i, this._options.headers);
|
|
2686
2896
|
}
|
|
2687
2897
|
if (isFunction2(beforeRedirect)) {
|
|
2688
2898
|
var responseDetails = {
|
|
@@ -2694,19 +2904,10 @@ var require_follow_redirects = __commonJS({
|
|
|
2694
2904
|
method,
|
|
2695
2905
|
headers: requestHeaders
|
|
2696
2906
|
};
|
|
2697
|
-
|
|
2698
|
-
beforeRedirect(this._options, responseDetails, requestDetails);
|
|
2699
|
-
} catch (err) {
|
|
2700
|
-
this.emit("error", err);
|
|
2701
|
-
return;
|
|
2702
|
-
}
|
|
2907
|
+
beforeRedirect(this._options, responseDetails, requestDetails);
|
|
2703
2908
|
this._sanitizeOptions(this._options);
|
|
2704
2909
|
}
|
|
2705
|
-
|
|
2706
|
-
this._performRequest();
|
|
2707
|
-
} catch (cause) {
|
|
2708
|
-
this.emit("error", new RedirectionError({ cause }));
|
|
2709
|
-
}
|
|
2910
|
+
this._performRequest();
|
|
2710
2911
|
};
|
|
2711
2912
|
function wrap(protocols) {
|
|
2712
2913
|
var exports3 = {
|
|
@@ -2719,22 +2920,13 @@ var require_follow_redirects = __commonJS({
|
|
|
2719
2920
|
var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];
|
|
2720
2921
|
var wrappedProtocol = exports3[scheme] = Object.create(nativeProtocol);
|
|
2721
2922
|
function request(input, options, callback) {
|
|
2722
|
-
if (
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
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);
|
|
2923
|
+
if (isURL(input)) {
|
|
2924
|
+
input = spreadUrlObject(input);
|
|
2925
|
+
} else if (isString2(input)) {
|
|
2926
|
+
input = spreadUrlObject(parseUrl(input));
|
|
2735
2927
|
} else {
|
|
2736
2928
|
callback = options;
|
|
2737
|
-
options = input;
|
|
2929
|
+
options = validateUrl(input);
|
|
2738
2930
|
input = { protocol };
|
|
2739
2931
|
}
|
|
2740
2932
|
if (isFunction2(options)) {
|
|
@@ -2767,23 +2959,43 @@ var require_follow_redirects = __commonJS({
|
|
|
2767
2959
|
}
|
|
2768
2960
|
function noop2() {
|
|
2769
2961
|
}
|
|
2770
|
-
function
|
|
2771
|
-
var
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
)
|
|
2777
|
-
|
|
2778
|
-
|
|
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);
|
|
2962
|
+
function parseUrl(input) {
|
|
2963
|
+
var parsed;
|
|
2964
|
+
if (useNativeURL) {
|
|
2965
|
+
parsed = new URL3(input);
|
|
2966
|
+
} else {
|
|
2967
|
+
parsed = validateUrl(url2.parse(input));
|
|
2968
|
+
if (!isString2(parsed.protocol)) {
|
|
2969
|
+
throw new InvalidUrlError({ input });
|
|
2970
|
+
}
|
|
2785
2971
|
}
|
|
2786
|
-
return
|
|
2972
|
+
return parsed;
|
|
2973
|
+
}
|
|
2974
|
+
function resolveUrl(relative, base) {
|
|
2975
|
+
return useNativeURL ? new URL3(relative, base) : parseUrl(url2.resolve(base, relative));
|
|
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);
|
|
2996
|
+
}
|
|
2997
|
+
spread3.path = spread3.search ? spread3.pathname + spread3.search : spread3.pathname;
|
|
2998
|
+
return spread3;
|
|
2787
2999
|
}
|
|
2788
3000
|
function removeMatchingHeaders(regex, headers) {
|
|
2789
3001
|
var lastValue;
|
|
@@ -2797,22 +3009,32 @@ var require_follow_redirects = __commonJS({
|
|
|
2797
3009
|
}
|
|
2798
3010
|
function createErrorType(code, message, baseClass) {
|
|
2799
3011
|
function CustomError(properties) {
|
|
2800
|
-
Error.captureStackTrace
|
|
3012
|
+
if (isFunction2(Error.captureStackTrace)) {
|
|
3013
|
+
Error.captureStackTrace(this, this.constructor);
|
|
3014
|
+
}
|
|
2801
3015
|
Object.assign(this, properties || {});
|
|
2802
3016
|
this.code = code;
|
|
2803
3017
|
this.message = this.cause ? message + ": " + this.cause.message : message;
|
|
2804
3018
|
}
|
|
2805
3019
|
CustomError.prototype = new (baseClass || Error)();
|
|
2806
|
-
CustomError.prototype
|
|
2807
|
-
|
|
3020
|
+
Object.defineProperties(CustomError.prototype, {
|
|
3021
|
+
constructor: {
|
|
3022
|
+
value: CustomError,
|
|
3023
|
+
enumerable: false
|
|
3024
|
+
},
|
|
3025
|
+
name: {
|
|
3026
|
+
value: "Error [" + code + "]",
|
|
3027
|
+
enumerable: false
|
|
3028
|
+
}
|
|
3029
|
+
});
|
|
2808
3030
|
return CustomError;
|
|
2809
3031
|
}
|
|
2810
|
-
function
|
|
3032
|
+
function destroyRequest(request, error) {
|
|
2811
3033
|
for (var event of events) {
|
|
2812
3034
|
request.removeListener(event, eventHandlers[event]);
|
|
2813
3035
|
}
|
|
2814
3036
|
request.on("error", noop2);
|
|
2815
|
-
request.
|
|
3037
|
+
request.destroy(error);
|
|
2816
3038
|
}
|
|
2817
3039
|
function isSubdomain(subdomain, domain) {
|
|
2818
3040
|
assert(isString2(subdomain) && isString2(domain));
|
|
@@ -2828,31 +3050,34 @@ var require_follow_redirects = __commonJS({
|
|
|
2828
3050
|
function isBuffer2(value) {
|
|
2829
3051
|
return typeof value === "object" && "length" in value;
|
|
2830
3052
|
}
|
|
3053
|
+
function isURL(value) {
|
|
3054
|
+
return URL3 && value instanceof URL3;
|
|
3055
|
+
}
|
|
2831
3056
|
module2.exports = wrap({ http: http3, https: https2 });
|
|
2832
3057
|
module2.exports.wrap = wrap;
|
|
2833
3058
|
}
|
|
2834
3059
|
});
|
|
2835
3060
|
|
|
2836
|
-
// node_modules
|
|
3061
|
+
// node_modules/axios/lib/env/data.js
|
|
2837
3062
|
var VERSION;
|
|
2838
3063
|
var init_data = __esm({
|
|
2839
|
-
"node_modules
|
|
3064
|
+
"node_modules/axios/lib/env/data.js"() {
|
|
2840
3065
|
VERSION = "1.3.2";
|
|
2841
3066
|
}
|
|
2842
3067
|
});
|
|
2843
3068
|
|
|
2844
|
-
// node_modules
|
|
3069
|
+
// node_modules/axios/lib/helpers/parseProtocol.js
|
|
2845
3070
|
function parseProtocol(url2) {
|
|
2846
3071
|
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
|
|
2847
3072
|
return match && match[1] || "";
|
|
2848
3073
|
}
|
|
2849
3074
|
var init_parseProtocol = __esm({
|
|
2850
|
-
"node_modules
|
|
3075
|
+
"node_modules/axios/lib/helpers/parseProtocol.js"() {
|
|
2851
3076
|
"use strict";
|
|
2852
3077
|
}
|
|
2853
3078
|
});
|
|
2854
3079
|
|
|
2855
|
-
// node_modules
|
|
3080
|
+
// node_modules/axios/lib/helpers/fromDataURI.js
|
|
2856
3081
|
function fromDataURI(uri, asBlob, options) {
|
|
2857
3082
|
const _Blob = options && options.Blob || node_default.classes.Blob;
|
|
2858
3083
|
const protocol = parseProtocol(uri);
|
|
@@ -2881,7 +3106,7 @@ function fromDataURI(uri, asBlob, options) {
|
|
|
2881
3106
|
}
|
|
2882
3107
|
var DATA_URL_PATTERN;
|
|
2883
3108
|
var init_fromDataURI = __esm({
|
|
2884
|
-
"node_modules
|
|
3109
|
+
"node_modules/axios/lib/helpers/fromDataURI.js"() {
|
|
2885
3110
|
"use strict";
|
|
2886
3111
|
init_AxiosError();
|
|
2887
3112
|
init_parseProtocol();
|
|
@@ -2890,7 +3115,7 @@ var init_fromDataURI = __esm({
|
|
|
2890
3115
|
}
|
|
2891
3116
|
});
|
|
2892
3117
|
|
|
2893
|
-
// node_modules
|
|
3118
|
+
// node_modules/axios/lib/helpers/throttle.js
|
|
2894
3119
|
function throttle(fn, freq) {
|
|
2895
3120
|
let timestamp = 0;
|
|
2896
3121
|
const threshold = 1e3 / freq;
|
|
@@ -2916,13 +3141,13 @@ function throttle(fn, freq) {
|
|
|
2916
3141
|
}
|
|
2917
3142
|
var throttle_default;
|
|
2918
3143
|
var init_throttle = __esm({
|
|
2919
|
-
"node_modules
|
|
3144
|
+
"node_modules/axios/lib/helpers/throttle.js"() {
|
|
2920
3145
|
"use strict";
|
|
2921
3146
|
throttle_default = throttle;
|
|
2922
3147
|
}
|
|
2923
3148
|
});
|
|
2924
3149
|
|
|
2925
|
-
// node_modules
|
|
3150
|
+
// node_modules/axios/lib/helpers/speedometer.js
|
|
2926
3151
|
function speedometer(samplesCount, min) {
|
|
2927
3152
|
samplesCount = samplesCount || 10;
|
|
2928
3153
|
const bytes = new Array(samplesCount);
|
|
@@ -2958,16 +3183,16 @@ function speedometer(samplesCount, min) {
|
|
|
2958
3183
|
}
|
|
2959
3184
|
var speedometer_default;
|
|
2960
3185
|
var init_speedometer = __esm({
|
|
2961
|
-
"node_modules
|
|
3186
|
+
"node_modules/axios/lib/helpers/speedometer.js"() {
|
|
2962
3187
|
"use strict";
|
|
2963
3188
|
speedometer_default = speedometer;
|
|
2964
3189
|
}
|
|
2965
3190
|
});
|
|
2966
3191
|
|
|
2967
|
-
// node_modules
|
|
3192
|
+
// node_modules/axios/lib/helpers/AxiosTransformStream.js
|
|
2968
3193
|
var import_stream, kInternals, AxiosTransformStream, AxiosTransformStream_default;
|
|
2969
3194
|
var init_AxiosTransformStream = __esm({
|
|
2970
|
-
"node_modules
|
|
3195
|
+
"node_modules/axios/lib/helpers/AxiosTransformStream.js"() {
|
|
2971
3196
|
"use strict";
|
|
2972
3197
|
import_stream = __toESM(require("stream"), 1);
|
|
2973
3198
|
init_utils();
|
|
@@ -3123,10 +3348,10 @@ var init_AxiosTransformStream = __esm({
|
|
|
3123
3348
|
}
|
|
3124
3349
|
});
|
|
3125
3350
|
|
|
3126
|
-
// node_modules
|
|
3351
|
+
// node_modules/axios/lib/helpers/readBlob.js
|
|
3127
3352
|
var asyncIterator, readBlob, readBlob_default;
|
|
3128
3353
|
var init_readBlob = __esm({
|
|
3129
|
-
"node_modules
|
|
3354
|
+
"node_modules/axios/lib/helpers/readBlob.js"() {
|
|
3130
3355
|
({ asyncIterator } = Symbol);
|
|
3131
3356
|
readBlob = async function* (blob) {
|
|
3132
3357
|
if (blob.stream) {
|
|
@@ -3143,10 +3368,10 @@ var init_readBlob = __esm({
|
|
|
3143
3368
|
}
|
|
3144
3369
|
});
|
|
3145
3370
|
|
|
3146
|
-
// node_modules
|
|
3371
|
+
// node_modules/axios/lib/helpers/formDataToStream.js
|
|
3147
3372
|
var import_util, import_stream2, BOUNDARY_ALPHABET, textEncoder, CRLF, CRLF_BYTES, CRLF_BYTES_COUNT, FormDataPart, formDataToStream, formDataToStream_default;
|
|
3148
3373
|
var init_formDataToStream = __esm({
|
|
3149
|
-
"node_modules
|
|
3374
|
+
"node_modules/axios/lib/helpers/formDataToStream.js"() {
|
|
3150
3375
|
import_util = require("util");
|
|
3151
3376
|
import_stream2 = require("stream");
|
|
3152
3377
|
init_utils();
|
|
@@ -3231,10 +3456,10 @@ var init_formDataToStream = __esm({
|
|
|
3231
3456
|
}
|
|
3232
3457
|
});
|
|
3233
3458
|
|
|
3234
|
-
// node_modules
|
|
3459
|
+
// node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
|
|
3235
3460
|
var import_stream3, ZlibHeaderTransformStream, ZlibHeaderTransformStream_default;
|
|
3236
3461
|
var init_ZlibHeaderTransformStream = __esm({
|
|
3237
|
-
"node_modules
|
|
3462
|
+
"node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js"() {
|
|
3238
3463
|
"use strict";
|
|
3239
3464
|
import_stream3 = __toESM(require("stream"), 1);
|
|
3240
3465
|
ZlibHeaderTransformStream = class extends import_stream3.default.Transform {
|
|
@@ -3259,7 +3484,7 @@ var init_ZlibHeaderTransformStream = __esm({
|
|
|
3259
3484
|
}
|
|
3260
3485
|
});
|
|
3261
3486
|
|
|
3262
|
-
// node_modules
|
|
3487
|
+
// node_modules/axios/lib/adapters/http.js
|
|
3263
3488
|
function dispatchBeforeRedirect(options) {
|
|
3264
3489
|
if (options.beforeRedirects.proxy) {
|
|
3265
3490
|
options.beforeRedirects.proxy(options);
|
|
@@ -3303,7 +3528,7 @@ function setProxy(options, configProxy, location) {
|
|
|
3303
3528
|
}
|
|
3304
3529
|
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;
|
|
3305
3530
|
var init_http = __esm({
|
|
3306
|
-
"node_modules
|
|
3531
|
+
"node_modules/axios/lib/adapters/http.js"() {
|
|
3307
3532
|
"use strict";
|
|
3308
3533
|
init_utils();
|
|
3309
3534
|
init_settle();
|
|
@@ -3752,10 +3977,10 @@ var init_http = __esm({
|
|
|
3752
3977
|
}
|
|
3753
3978
|
});
|
|
3754
3979
|
|
|
3755
|
-
// node_modules
|
|
3980
|
+
// node_modules/axios/lib/helpers/cookies.js
|
|
3756
3981
|
var cookies_default;
|
|
3757
3982
|
var init_cookies = __esm({
|
|
3758
|
-
"node_modules
|
|
3983
|
+
"node_modules/axios/lib/helpers/cookies.js"() {
|
|
3759
3984
|
"use strict";
|
|
3760
3985
|
init_utils();
|
|
3761
3986
|
init_platform();
|
|
@@ -3806,10 +4031,10 @@ var init_cookies = __esm({
|
|
|
3806
4031
|
}
|
|
3807
4032
|
});
|
|
3808
4033
|
|
|
3809
|
-
// node_modules
|
|
4034
|
+
// node_modules/axios/lib/helpers/isURLSameOrigin.js
|
|
3810
4035
|
var isURLSameOrigin_default;
|
|
3811
4036
|
var init_isURLSameOrigin = __esm({
|
|
3812
|
-
"node_modules
|
|
4037
|
+
"node_modules/axios/lib/helpers/isURLSameOrigin.js"() {
|
|
3813
4038
|
"use strict";
|
|
3814
4039
|
init_utils();
|
|
3815
4040
|
init_platform();
|
|
@@ -3855,7 +4080,7 @@ var init_isURLSameOrigin = __esm({
|
|
|
3855
4080
|
}
|
|
3856
4081
|
});
|
|
3857
4082
|
|
|
3858
|
-
// node_modules
|
|
4083
|
+
// node_modules/axios/lib/adapters/xhr.js
|
|
3859
4084
|
function progressEventReducer(listener, isDownloadStream) {
|
|
3860
4085
|
let bytesNotified = 0;
|
|
3861
4086
|
const _speedometer = speedometer_default(50, 250);
|
|
@@ -3881,7 +4106,7 @@ function progressEventReducer(listener, isDownloadStream) {
|
|
|
3881
4106
|
}
|
|
3882
4107
|
var isXHRAdapterSupported, xhr_default;
|
|
3883
4108
|
var init_xhr = __esm({
|
|
3884
|
-
"node_modules
|
|
4109
|
+
"node_modules/axios/lib/adapters/xhr.js"() {
|
|
3885
4110
|
"use strict";
|
|
3886
4111
|
init_utils();
|
|
3887
4112
|
init_settle();
|
|
@@ -4035,10 +4260,10 @@ var init_xhr = __esm({
|
|
|
4035
4260
|
}
|
|
4036
4261
|
});
|
|
4037
4262
|
|
|
4038
|
-
// node_modules
|
|
4263
|
+
// node_modules/axios/lib/adapters/adapters.js
|
|
4039
4264
|
var knownAdapters, adapters_default;
|
|
4040
4265
|
var init_adapters = __esm({
|
|
4041
|
-
"node_modules
|
|
4266
|
+
"node_modules/axios/lib/adapters/adapters.js"() {
|
|
4042
4267
|
init_utils();
|
|
4043
4268
|
init_http();
|
|
4044
4269
|
init_xhr();
|
|
@@ -4089,7 +4314,7 @@ var init_adapters = __esm({
|
|
|
4089
4314
|
}
|
|
4090
4315
|
});
|
|
4091
4316
|
|
|
4092
|
-
// node_modules
|
|
4317
|
+
// node_modules/axios/lib/core/dispatchRequest.js
|
|
4093
4318
|
function throwIfCancellationRequested(config) {
|
|
4094
4319
|
if (config.cancelToken) {
|
|
4095
4320
|
config.cancelToken.throwIfRequested();
|
|
@@ -4134,7 +4359,7 @@ function dispatchRequest(config) {
|
|
|
4134
4359
|
});
|
|
4135
4360
|
}
|
|
4136
4361
|
var init_dispatchRequest = __esm({
|
|
4137
|
-
"node_modules
|
|
4362
|
+
"node_modules/axios/lib/core/dispatchRequest.js"() {
|
|
4138
4363
|
"use strict";
|
|
4139
4364
|
init_transformData();
|
|
4140
4365
|
init_isCancel();
|
|
@@ -4145,7 +4370,7 @@ var init_dispatchRequest = __esm({
|
|
|
4145
4370
|
}
|
|
4146
4371
|
});
|
|
4147
4372
|
|
|
4148
|
-
// node_modules
|
|
4373
|
+
// node_modules/axios/lib/core/mergeConfig.js
|
|
4149
4374
|
function mergeConfig(config1, config2) {
|
|
4150
4375
|
config2 = config2 || {};
|
|
4151
4376
|
const config = {};
|
|
@@ -4224,7 +4449,7 @@ function mergeConfig(config1, config2) {
|
|
|
4224
4449
|
}
|
|
4225
4450
|
var headersToObject;
|
|
4226
4451
|
var init_mergeConfig = __esm({
|
|
4227
|
-
"node_modules
|
|
4452
|
+
"node_modules/axios/lib/core/mergeConfig.js"() {
|
|
4228
4453
|
"use strict";
|
|
4229
4454
|
init_utils();
|
|
4230
4455
|
init_AxiosHeaders();
|
|
@@ -4232,7 +4457,7 @@ var init_mergeConfig = __esm({
|
|
|
4232
4457
|
}
|
|
4233
4458
|
});
|
|
4234
4459
|
|
|
4235
|
-
// node_modules
|
|
4460
|
+
// node_modules/axios/lib/helpers/validator.js
|
|
4236
4461
|
function assertOptions(options, schema, allowUnknown) {
|
|
4237
4462
|
if (typeof options !== "object") {
|
|
4238
4463
|
throw new AxiosError_default("options must be an object", AxiosError_default.ERR_BAD_OPTION_VALUE);
|
|
@@ -4257,7 +4482,7 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
4257
4482
|
}
|
|
4258
4483
|
var validators, deprecatedWarnings, validator_default;
|
|
4259
4484
|
var init_validator = __esm({
|
|
4260
|
-
"node_modules
|
|
4485
|
+
"node_modules/axios/lib/helpers/validator.js"() {
|
|
4261
4486
|
"use strict";
|
|
4262
4487
|
init_data();
|
|
4263
4488
|
init_AxiosError();
|
|
@@ -4298,10 +4523,10 @@ var init_validator = __esm({
|
|
|
4298
4523
|
}
|
|
4299
4524
|
});
|
|
4300
4525
|
|
|
4301
|
-
// node_modules
|
|
4526
|
+
// node_modules/axios/lib/core/Axios.js
|
|
4302
4527
|
var validators2, Axios, Axios_default;
|
|
4303
4528
|
var init_Axios = __esm({
|
|
4304
|
-
"node_modules
|
|
4529
|
+
"node_modules/axios/lib/core/Axios.js"() {
|
|
4305
4530
|
"use strict";
|
|
4306
4531
|
init_utils();
|
|
4307
4532
|
init_buildURL();
|
|
@@ -4450,10 +4675,10 @@ var init_Axios = __esm({
|
|
|
4450
4675
|
}
|
|
4451
4676
|
});
|
|
4452
4677
|
|
|
4453
|
-
// node_modules
|
|
4678
|
+
// node_modules/axios/lib/cancel/CancelToken.js
|
|
4454
4679
|
var CancelToken, CancelToken_default;
|
|
4455
4680
|
var init_CancelToken = __esm({
|
|
4456
|
-
"node_modules
|
|
4681
|
+
"node_modules/axios/lib/cancel/CancelToken.js"() {
|
|
4457
4682
|
"use strict";
|
|
4458
4683
|
init_CanceledError();
|
|
4459
4684
|
CancelToken = class _CancelToken {
|
|
@@ -4546,33 +4771,33 @@ var init_CancelToken = __esm({
|
|
|
4546
4771
|
}
|
|
4547
4772
|
});
|
|
4548
4773
|
|
|
4549
|
-
// node_modules
|
|
4774
|
+
// node_modules/axios/lib/helpers/spread.js
|
|
4550
4775
|
function spread(callback) {
|
|
4551
4776
|
return function wrap(arr) {
|
|
4552
4777
|
return callback.apply(null, arr);
|
|
4553
4778
|
};
|
|
4554
4779
|
}
|
|
4555
4780
|
var init_spread = __esm({
|
|
4556
|
-
"node_modules
|
|
4781
|
+
"node_modules/axios/lib/helpers/spread.js"() {
|
|
4557
4782
|
"use strict";
|
|
4558
4783
|
}
|
|
4559
4784
|
});
|
|
4560
4785
|
|
|
4561
|
-
// node_modules
|
|
4786
|
+
// node_modules/axios/lib/helpers/isAxiosError.js
|
|
4562
4787
|
function isAxiosError(payload) {
|
|
4563
4788
|
return utils_default.isObject(payload) && payload.isAxiosError === true;
|
|
4564
4789
|
}
|
|
4565
4790
|
var init_isAxiosError = __esm({
|
|
4566
|
-
"node_modules
|
|
4791
|
+
"node_modules/axios/lib/helpers/isAxiosError.js"() {
|
|
4567
4792
|
"use strict";
|
|
4568
4793
|
init_utils();
|
|
4569
4794
|
}
|
|
4570
4795
|
});
|
|
4571
4796
|
|
|
4572
|
-
// node_modules
|
|
4797
|
+
// node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
4573
4798
|
var HttpStatusCode, HttpStatusCode_default;
|
|
4574
4799
|
var init_HttpStatusCode = __esm({
|
|
4575
|
-
"node_modules
|
|
4800
|
+
"node_modules/axios/lib/helpers/HttpStatusCode.js"() {
|
|
4576
4801
|
HttpStatusCode = {
|
|
4577
4802
|
Continue: 100,
|
|
4578
4803
|
SwitchingProtocols: 101,
|
|
@@ -4645,7 +4870,7 @@ var init_HttpStatusCode = __esm({
|
|
|
4645
4870
|
}
|
|
4646
4871
|
});
|
|
4647
4872
|
|
|
4648
|
-
// node_modules
|
|
4873
|
+
// node_modules/axios/lib/axios.js
|
|
4649
4874
|
function createInstance(defaultConfig) {
|
|
4650
4875
|
const context = new Axios_default(defaultConfig);
|
|
4651
4876
|
const instance = bind(Axios_default.prototype.request, context);
|
|
@@ -4658,7 +4883,7 @@ function createInstance(defaultConfig) {
|
|
|
4658
4883
|
}
|
|
4659
4884
|
var axios, axios_default;
|
|
4660
4885
|
var init_axios = __esm({
|
|
4661
|
-
"node_modules
|
|
4886
|
+
"node_modules/axios/lib/axios.js"() {
|
|
4662
4887
|
"use strict";
|
|
4663
4888
|
init_utils();
|
|
4664
4889
|
init_bind();
|
|
@@ -4699,10 +4924,10 @@ var init_axios = __esm({
|
|
|
4699
4924
|
}
|
|
4700
4925
|
});
|
|
4701
4926
|
|
|
4702
|
-
// node_modules
|
|
4927
|
+
// node_modules/axios/index.js
|
|
4703
4928
|
var Axios2, AxiosError2, CanceledError2, isCancel2, CancelToken2, VERSION2, all2, Cancel, isAxiosError2, spread2, toFormData2, AxiosHeaders2, HttpStatusCode2, formToJSON, mergeConfig2;
|
|
4704
4929
|
var init_axios2 = __esm({
|
|
4705
|
-
"node_modules
|
|
4930
|
+
"node_modules/axios/index.js"() {
|
|
4706
4931
|
init_axios();
|
|
4707
4932
|
({
|
|
4708
4933
|
Axios: Axios2,
|
|
@@ -5978,7 +6203,7 @@ var import_chalk26 = __toESM(require("chalk"));
|
|
|
5978
6203
|
var import_figlet5 = __toESM(require("figlet"));
|
|
5979
6204
|
|
|
5980
6205
|
// package.json
|
|
5981
|
-
var version = "2.0.
|
|
6206
|
+
var version = "2.0.7-beta.1";
|
|
5982
6207
|
|
|
5983
6208
|
// bin/upload.ts
|
|
5984
6209
|
var import_path7 = __toESM(require("path"));
|
|
@@ -6962,7 +7187,8 @@ async function uploadFileChunks(filePath, sessionId, totalChunks, chunkSize, dev
|
|
|
6962
7187
|
async function completeChunkUpload(sessionId, deviceId, options = {}) {
|
|
6963
7188
|
var _a2;
|
|
6964
7189
|
try {
|
|
6965
|
-
const
|
|
7190
|
+
const action = options.action || (options.importAsCar ? "import" : "upload");
|
|
7191
|
+
const requestBody = { session_id: sessionId, uid: deviceId, action };
|
|
6966
7192
|
const projectName = (_a2 = options.projectName) == null ? void 0 : _a2.trim();
|
|
6967
7193
|
const authHeaders = getUploadAuthHeaders();
|
|
6968
7194
|
if (options.importAsCar) {
|
|
@@ -7327,6 +7553,7 @@ async function uploadPath(targetPath, options = {}) {
|
|
|
7327
7553
|
throw new Error("Please login first. Run: pinme login");
|
|
7328
7554
|
}
|
|
7329
7555
|
const result = await uploadToIpfsSplit_default(targetPath, {
|
|
7556
|
+
action: options.action,
|
|
7330
7557
|
importAsCar: options.importAsCar,
|
|
7331
7558
|
projectName: options.projectName,
|
|
7332
7559
|
uid: options.uid || authConfig.address
|
|
@@ -7628,6 +7855,7 @@ var upload_default = async (options) => {
|
|
|
7628
7855
|
let result;
|
|
7629
7856
|
try {
|
|
7630
7857
|
result = await uploadPath(absolutePath, {
|
|
7858
|
+
action: "upload",
|
|
7631
7859
|
projectName,
|
|
7632
7860
|
uid: authConfig == null ? void 0 : authConfig.address
|
|
7633
7861
|
});
|
|
@@ -7748,6 +7976,7 @@ var upload_default = async (options) => {
|
|
|
7748
7976
|
let result;
|
|
7749
7977
|
try {
|
|
7750
7978
|
result = await uploadPath(absolutePath, {
|
|
7979
|
+
action: "upload",
|
|
7751
7980
|
projectName,
|
|
7752
7981
|
uid: authConfig == null ? void 0 : authConfig.address
|
|
7753
7982
|
});
|
|
@@ -7897,6 +8126,7 @@ var importCar_default = async (options) => {
|
|
|
7897
8126
|
console.log(import_chalk8.default.blue(`importing ${absolutePath} to ipfs as CAR...`));
|
|
7898
8127
|
try {
|
|
7899
8128
|
const result = await uploadPath(absolutePath, {
|
|
8129
|
+
action: "import",
|
|
7900
8130
|
importAsCar: true,
|
|
7901
8131
|
uid: getUid2()
|
|
7902
8132
|
});
|
|
@@ -7996,6 +8226,7 @@ var importCar_default = async (options) => {
|
|
|
7996
8226
|
console.log(import_chalk8.default.blue(`importing ${absolutePath} to ipfs as CAR...`));
|
|
7997
8227
|
try {
|
|
7998
8228
|
const result = await uploadPath(absolutePath, {
|
|
8229
|
+
action: "import",
|
|
7999
8230
|
importAsCar: true,
|
|
8000
8231
|
uid: getUid2()
|
|
8001
8232
|
});
|
|
@@ -8898,7 +9129,10 @@ async function bindCmd() {
|
|
|
8898
9129
|
}
|
|
8899
9130
|
const absolutePath = import_path10.default.resolve(targetPath);
|
|
8900
9131
|
console.log(import_chalk17.default.blue(`Uploading: ${absolutePath}`));
|
|
8901
|
-
const up = await uploadPath(absolutePath, {
|
|
9132
|
+
const up = await uploadPath(absolutePath, {
|
|
9133
|
+
action: "bind",
|
|
9134
|
+
uid: authConfig.address
|
|
9135
|
+
});
|
|
8902
9136
|
if (!(up == null ? void 0 : up.contentHash)) {
|
|
8903
9137
|
void tracker_default.trackEvent(TRACK_EVENTS.uploadFailed, TRACK_PAGES.upload, {
|
|
8904
9138
|
a: resolveTrackAction2(TRACK_EVENTS.uploadFailed),
|
|
@@ -9048,6 +9282,7 @@ var import_fs_extra6 = __toESM(require("fs-extra"));
|
|
|
9048
9282
|
var import_path12 = __toESM(require("path"));
|
|
9049
9283
|
var import_inquirer8 = __toESM(require("inquirer"));
|
|
9050
9284
|
init_axios2();
|
|
9285
|
+
var import_adm_zip = __toESM(require("adm-zip"));
|
|
9051
9286
|
var import_child_process4 = require("child_process");
|
|
9052
9287
|
init_webLogin();
|
|
9053
9288
|
|
|
@@ -9257,9 +9492,8 @@ Directory "${projectName}" already exists.`));
|
|
|
9257
9492
|
}
|
|
9258
9493
|
try {
|
|
9259
9494
|
import_fs_extra6.default.ensureDirSync(extractDir);
|
|
9260
|
-
|
|
9261
|
-
|
|
9262
|
-
});
|
|
9495
|
+
const templateZip = new import_adm_zip.default(zipPath);
|
|
9496
|
+
templateZip.extractAllTo(extractDir, true);
|
|
9263
9497
|
const subDir = resolveExtractedTemplateDir(extractDir);
|
|
9264
9498
|
import_fs_extra6.default.copySync(subDir, targetDir);
|
|
9265
9499
|
import_fs_extra6.default.removeSync(zipPath);
|
|
@@ -9284,8 +9518,8 @@ Directory "${projectName}" already exists.`));
|
|
|
9284
9518
|
if (import_fs_extra6.default.existsSync(backendPackageLock)) import_fs_extra6.default.removeSync(backendPackageLock);
|
|
9285
9519
|
console.log(import_chalk20.default.green(` Template downloaded to: ${targetDir}`));
|
|
9286
9520
|
} catch (error) {
|
|
9287
|
-
throw createCommandError("template extraction", `
|
|
9288
|
-
"Check whether
|
|
9521
|
+
throw createCommandError("template extraction", `extract "${zipPath}" to "${extractDir}"`, error, [
|
|
9522
|
+
"Check whether the downloaded template archive is valid and has the expected GitHub archive structure."
|
|
9289
9523
|
]);
|
|
9290
9524
|
}
|
|
9291
9525
|
console.log(import_chalk20.default.blue("\n3. Updating configuration..."));
|
|
@@ -9509,6 +9743,7 @@ Directory "${projectName}" already exists.`));
|
|
|
9509
9743
|
console.log(import_chalk20.default.blue(" Uploading to IPFS..."));
|
|
9510
9744
|
try {
|
|
9511
9745
|
const uploadResult = await uploadPath(import_path12.default.join(frontendDir, "dist"), {
|
|
9746
|
+
action: "project_create",
|
|
9512
9747
|
projectName: workerData.project_name,
|
|
9513
9748
|
uid: headers["token-address"]
|
|
9514
9749
|
});
|
|
@@ -9790,6 +10025,7 @@ async function deployFrontend(projectName) {
|
|
|
9790
10025
|
try {
|
|
9791
10026
|
const headers = getAuthHeaders();
|
|
9792
10027
|
const uploadResult = await uploadPath(import_path13.default.join(PROJECT_DIR2, "frontend", "dist"), {
|
|
10028
|
+
action: "project_save",
|
|
9793
10029
|
projectName,
|
|
9794
10030
|
uid: headers["token-address"]
|
|
9795
10031
|
});
|
|
@@ -10307,6 +10543,7 @@ async function deployFrontend2(projectName) {
|
|
|
10307
10543
|
try {
|
|
10308
10544
|
const headers = getAuthHeaders();
|
|
10309
10545
|
const uploadResult = await uploadPath(import_path16.default.join(PROJECT_DIR5, "frontend", "dist"), {
|
|
10546
|
+
action: "project_update_web",
|
|
10310
10547
|
projectName,
|
|
10311
10548
|
uid: headers["token-address"]
|
|
10312
10549
|
});
|