@sockethub/platform-feeds 4.0.0-alpha.24 → 4.0.0-alpha.25
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 +361 -352
- package/dist/index.js.map +6 -5
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@ var __toESM = (mod, isNodeMode, target) => {
|
|
|
18
18
|
return cached;
|
|
19
19
|
}
|
|
20
20
|
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
21
|
-
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
21
|
+
const to = isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
22
22
|
if (mod && typeof mod === "object" || typeof mod === "function") {
|
|
23
23
|
for (let key of __getOwnPropNames(mod))
|
|
24
24
|
if (!__hasOwnProp.call(to, key))
|
|
@@ -201,9 +201,9 @@ var require_scope = __commonJS(function(exports) {
|
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
var UsedValueState;
|
|
204
|
-
(function(
|
|
205
|
-
|
|
206
|
-
|
|
204
|
+
(function(UsedValueState) {
|
|
205
|
+
UsedValueState[UsedValueState["Started"] = 0] = "Started";
|
|
206
|
+
UsedValueState[UsedValueState["Completed"] = 1] = "Completed";
|
|
207
207
|
})(UsedValueState || (exports.UsedValueState = UsedValueState = {}));
|
|
208
208
|
exports.varKinds = {
|
|
209
209
|
const: new code_1.Name("const"),
|
|
@@ -1185,9 +1185,9 @@ var require_util = __commonJS(function(exports) {
|
|
|
1185
1185
|
}
|
|
1186
1186
|
exports.useFunc = useFunc;
|
|
1187
1187
|
var Type;
|
|
1188
|
-
(function(
|
|
1189
|
-
|
|
1190
|
-
|
|
1188
|
+
(function(Type) {
|
|
1189
|
+
Type[Type["Num"] = 0] = "Num";
|
|
1190
|
+
Type[Type["Str"] = 1] = "Str";
|
|
1191
1191
|
})(Type || (exports.Type = Type = {}));
|
|
1192
1192
|
function getErrorPath(dataProp, dataPropType, jsPropertySyntax) {
|
|
1193
1193
|
if (dataProp instanceof codegen_1.Name) {
|
|
@@ -1457,9 +1457,9 @@ var require_dataType = __commonJS(function(exports) {
|
|
|
1457
1457
|
var codegen_1 = require_codegen();
|
|
1458
1458
|
var util_1 = require_util();
|
|
1459
1459
|
var DataType;
|
|
1460
|
-
(function(
|
|
1461
|
-
|
|
1462
|
-
|
|
1460
|
+
(function(DataType) {
|
|
1461
|
+
DataType[DataType["Correct"] = 0] = "Correct";
|
|
1462
|
+
DataType[DataType["Wrong"] = 1] = "Wrong";
|
|
1463
1463
|
})(DataType || (exports.DataType = DataType = {}));
|
|
1464
1464
|
function getSchemaTypes(schema) {
|
|
1465
1465
|
const types = getJSONTypes(schema.type);
|
|
@@ -1855,8 +1855,8 @@ var require_keyword = __commonJS(function(exports) {
|
|
|
1855
1855
|
gen.assign(valid, (0, codegen_1._)`${_await}${(0, code_1.callValidateCode)(cxt, validateRef, passCxt, passSchema)}`, def.modifying);
|
|
1856
1856
|
}
|
|
1857
1857
|
function reportErrs(errors) {
|
|
1858
|
-
var
|
|
1859
|
-
gen.if((0, codegen_1.not)((
|
|
1858
|
+
var _a;
|
|
1859
|
+
gen.if((0, codegen_1.not)((_a = def.valid) !== null && _a !== undefined ? _a : valid), errors);
|
|
1860
1860
|
}
|
|
1861
1861
|
}
|
|
1862
1862
|
exports.funcKeywordCode = funcKeywordCode;
|
|
@@ -5890,9 +5890,9 @@ var require_types = __commonJS(function(exports) {
|
|
|
5890
5890
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5891
5891
|
exports.DiscrError = undefined;
|
|
5892
5892
|
var DiscrError;
|
|
5893
|
-
(function(
|
|
5894
|
-
|
|
5895
|
-
|
|
5893
|
+
(function(DiscrError) {
|
|
5894
|
+
DiscrError["Tag"] = "tag";
|
|
5895
|
+
DiscrError["Mapping"] = "mapping";
|
|
5896
5896
|
})(DiscrError || (exports.DiscrError = DiscrError = {}));
|
|
5897
5897
|
});
|
|
5898
5898
|
|
|
@@ -6529,9 +6529,9 @@ var require_scope2 = __commonJS(function(exports) {
|
|
|
6529
6529
|
}
|
|
6530
6530
|
}
|
|
6531
6531
|
var UsedValueState;
|
|
6532
|
-
(function(
|
|
6533
|
-
|
|
6534
|
-
|
|
6532
|
+
(function(UsedValueState) {
|
|
6533
|
+
UsedValueState[UsedValueState["Started"] = 0] = "Started";
|
|
6534
|
+
UsedValueState[UsedValueState["Completed"] = 1] = "Completed";
|
|
6535
6535
|
})(UsedValueState = exports.UsedValueState || (exports.UsedValueState = {}));
|
|
6536
6536
|
exports.varKinds = {
|
|
6537
6537
|
const: new code_1.Name("const"),
|
|
@@ -7513,9 +7513,9 @@ var require_util2 = __commonJS(function(exports) {
|
|
|
7513
7513
|
}
|
|
7514
7514
|
exports.useFunc = useFunc;
|
|
7515
7515
|
var Type;
|
|
7516
|
-
(function(
|
|
7517
|
-
|
|
7518
|
-
|
|
7516
|
+
(function(Type) {
|
|
7517
|
+
Type[Type["Num"] = 0] = "Num";
|
|
7518
|
+
Type[Type["Str"] = 1] = "Str";
|
|
7519
7519
|
})(Type = exports.Type || (exports.Type = {}));
|
|
7520
7520
|
function getErrorPath(dataProp, dataPropType, jsPropertySyntax) {
|
|
7521
7521
|
if (dataProp instanceof codegen_1.Name) {
|
|
@@ -7785,9 +7785,9 @@ var require_dataType2 = __commonJS(function(exports) {
|
|
|
7785
7785
|
var codegen_1 = require_codegen2();
|
|
7786
7786
|
var util_1 = require_util2();
|
|
7787
7787
|
var DataType;
|
|
7788
|
-
(function(
|
|
7789
|
-
|
|
7790
|
-
|
|
7788
|
+
(function(DataType) {
|
|
7789
|
+
DataType[DataType["Correct"] = 0] = "Correct";
|
|
7790
|
+
DataType[DataType["Wrong"] = 1] = "Wrong";
|
|
7791
7791
|
})(DataType = exports.DataType || (exports.DataType = {}));
|
|
7792
7792
|
function getSchemaTypes(schema) {
|
|
7793
7793
|
const types = getJSONTypes(schema.type);
|
|
@@ -8183,8 +8183,8 @@ var require_keyword2 = __commonJS(function(exports) {
|
|
|
8183
8183
|
gen.assign(valid, (0, codegen_1._)`${_await}${(0, code_1.callValidateCode)(cxt, validateRef, passCxt, passSchema)}`, def.modifying);
|
|
8184
8184
|
}
|
|
8185
8185
|
function reportErrs(errors) {
|
|
8186
|
-
var
|
|
8187
|
-
gen.if((0, codegen_1.not)((
|
|
8186
|
+
var _a;
|
|
8187
|
+
gen.if((0, codegen_1.not)((_a = def.valid) !== null && _a !== undefined ? _a : valid), errors);
|
|
8188
8188
|
}
|
|
8189
8189
|
}
|
|
8190
8190
|
exports.funcKeywordCode = funcKeywordCode;
|
|
@@ -8420,15 +8420,15 @@ var require_resolve2 = __commonJS(function(exports) {
|
|
|
8420
8420
|
if (parentJsonPtr === undefined)
|
|
8421
8421
|
return;
|
|
8422
8422
|
const fullPath = pathPrefix + jsonPtr;
|
|
8423
|
-
let
|
|
8423
|
+
let baseId = baseIds[parentJsonPtr];
|
|
8424
8424
|
if (typeof sch[schemaId] == "string")
|
|
8425
|
-
|
|
8425
|
+
baseId = addRef.call(this, sch[schemaId]);
|
|
8426
8426
|
addAnchor.call(this, sch.$anchor);
|
|
8427
8427
|
addAnchor.call(this, sch.$dynamicAnchor);
|
|
8428
|
-
baseIds[jsonPtr] =
|
|
8428
|
+
baseIds[jsonPtr] = baseId;
|
|
8429
8429
|
function addRef(ref) {
|
|
8430
8430
|
const _resolve = this.opts.uriResolver.resolve;
|
|
8431
|
-
ref = normalizeId(
|
|
8431
|
+
ref = normalizeId(baseId ? _resolve(baseId, ref) : ref);
|
|
8432
8432
|
if (schemaRefs.has(ref))
|
|
8433
8433
|
throw ambiguos(ref);
|
|
8434
8434
|
schemaRefs.add(ref);
|
|
@@ -9281,22 +9281,22 @@ var require_uri_all = __commonJS(function(exports, module) {
|
|
|
9281
9281
|
}
|
|
9282
9282
|
return obj;
|
|
9283
9283
|
}
|
|
9284
|
-
function buildExps(
|
|
9285
|
-
var ALPHA$$ = "[A-Za-z]", CR$ = "[\\x0D]", DIGIT$$ = "[0-9]", DQUOTE$$ = "[\\x22]", HEXDIG$$
|
|
9284
|
+
function buildExps(isIRI) {
|
|
9285
|
+
var ALPHA$$ = "[A-Za-z]", CR$ = "[\\x0D]", DIGIT$$ = "[0-9]", DQUOTE$$ = "[\\x22]", HEXDIG$$ = merge(DIGIT$$, "[A-Fa-f]"), LF$$ = "[\\x0A]", SP$$ = "[\\x20]", PCT_ENCODED$ = subexp(subexp("%[EFef]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%" + HEXDIG$$ + HEXDIG$$)), GEN_DELIMS$$ = "[\\:\\/\\?\\#\\[\\]\\@]", SUB_DELIMS$$ = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", RESERVED$$ = merge(GEN_DELIMS$$, SUB_DELIMS$$), UCSCHAR$$ = isIRI ? "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]" : "[]", IPRIVATE$$ = isIRI ? "[\\uE000-\\uF8FF]" : "[]", UNRESERVED$$ = merge(ALPHA$$, DIGIT$$, "[\\-\\.\\_\\~]", UCSCHAR$$), SCHEME$ = subexp(ALPHA$$ + merge(ALPHA$$, DIGIT$$, "[\\+\\-\\.]") + "*"), USERINFO$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]")) + "*"), DEC_OCTET$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("[1-9]" + DIGIT$$) + "|" + DIGIT$$), DEC_OCTET_RELAXED$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("0?[1-9]" + DIGIT$$) + "|0?0?" + DIGIT$$), IPV4ADDRESS$ = subexp(DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$), H16$ = subexp(HEXDIG$$ + "{1,4}"), LS32$ = subexp(subexp(H16$ + "\\:" + H16$) + "|" + IPV4ADDRESS$), IPV6ADDRESS1$ = subexp(subexp(H16$ + "\\:") + "{6}" + LS32$), IPV6ADDRESS2$ = subexp("\\:\\:" + subexp(H16$ + "\\:") + "{5}" + LS32$), IPV6ADDRESS3$ = subexp(subexp(H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{4}" + LS32$), IPV6ADDRESS4$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,1}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{3}" + LS32$), IPV6ADDRESS5$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,2}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{2}" + LS32$), IPV6ADDRESS6$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,3}" + H16$) + "?\\:\\:" + H16$ + "\\:" + LS32$), IPV6ADDRESS7$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,4}" + H16$) + "?\\:\\:" + LS32$), IPV6ADDRESS8$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,5}" + H16$) + "?\\:\\:" + H16$), IPV6ADDRESS9$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,6}" + H16$) + "?\\:\\:"), IPV6ADDRESS$ = subexp([IPV6ADDRESS1$, IPV6ADDRESS2$, IPV6ADDRESS3$, IPV6ADDRESS4$, IPV6ADDRESS5$, IPV6ADDRESS6$, IPV6ADDRESS7$, IPV6ADDRESS8$, IPV6ADDRESS9$].join("|")), ZONEID$ = subexp(subexp(UNRESERVED$$ + "|" + PCT_ENCODED$) + "+"), IPV6ADDRZ$ = subexp(IPV6ADDRESS$ + "\\%25" + ZONEID$), IPV6ADDRZ_RELAXED$ = subexp(IPV6ADDRESS$ + subexp("\\%25|\\%(?!" + HEXDIG$$ + "{2})") + ZONEID$), IPVFUTURE$ = subexp("[vV]" + HEXDIG$$ + "+\\." + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]") + "+"), IP_LITERAL$ = subexp("\\[" + subexp(IPV6ADDRZ_RELAXED$ + "|" + IPV6ADDRESS$ + "|" + IPVFUTURE$) + "\\]"), REG_NAME$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$)) + "*"), HOST$ = subexp(IP_LITERAL$ + "|" + IPV4ADDRESS$ + "(?!" + REG_NAME$ + ")" + "|" + REG_NAME$), PORT$ = subexp(DIGIT$$ + "*"), AUTHORITY$ = subexp(subexp(USERINFO$ + "@") + "?" + HOST$ + subexp("\\:" + PORT$) + "?"), PCHAR$ = subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@]")), SEGMENT$ = subexp(PCHAR$ + "*"), SEGMENT_NZ$ = subexp(PCHAR$ + "+"), SEGMENT_NZ_NC$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\@]")) + "+"), PATH_ABEMPTY$ = subexp(subexp("\\/" + SEGMENT$) + "*"), PATH_ABSOLUTE$ = subexp("\\/" + subexp(SEGMENT_NZ$ + PATH_ABEMPTY$) + "?"), PATH_NOSCHEME$ = subexp(SEGMENT_NZ_NC$ + PATH_ABEMPTY$), PATH_ROOTLESS$ = subexp(SEGMENT_NZ$ + PATH_ABEMPTY$), PATH_EMPTY$ = "(?!" + PCHAR$ + ")", PATH$ = subexp(PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$), QUERY$ = subexp(subexp(PCHAR$ + "|" + merge("[\\/\\?]", IPRIVATE$$)) + "*"), FRAGMENT$ = subexp(subexp(PCHAR$ + "|[\\/\\?]") + "*"), HIER_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$), URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"), RELATIVE_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$), RELATIVE$ = subexp(RELATIVE_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"), URI_REFERENCE$ = subexp(URI$ + "|" + RELATIVE$), ABSOLUTE_URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?"), GENERIC_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", RELATIVE_REF$ = "^(){0}" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", ABSOLUTE_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?$", SAMEDOC_REF$ = "^" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", AUTHORITY_REF$ = "^" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?$";
|
|
9286
9286
|
return {
|
|
9287
9287
|
NOT_SCHEME: new RegExp(merge("[^]", ALPHA$$, DIGIT$$, "[\\+\\-\\.]"), "g"),
|
|
9288
|
-
NOT_USERINFO: new RegExp(merge("[^\\%\\:]", UNRESERVED
|
|
9289
|
-
NOT_HOST: new RegExp(merge("[^\\%\\[\\]\\:]", UNRESERVED
|
|
9290
|
-
NOT_PATH: new RegExp(merge("[^\\%\\/\\:\\@]", UNRESERVED
|
|
9291
|
-
NOT_PATH_NOSCHEME: new RegExp(merge("[^\\%\\/\\@]", UNRESERVED
|
|
9292
|
-
NOT_QUERY: new RegExp(merge("[^\\%]", UNRESERVED
|
|
9293
|
-
NOT_FRAGMENT: new RegExp(merge("[^\\%]", UNRESERVED
|
|
9294
|
-
ESCAPE: new RegExp(merge("[^]", UNRESERVED
|
|
9295
|
-
UNRESERVED: new RegExp(UNRESERVED
|
|
9296
|
-
OTHER_CHARS: new RegExp(merge("[^\\%]", UNRESERVED
|
|
9297
|
-
PCT_ENCODED: new RegExp(PCT_ENCODED
|
|
9288
|
+
NOT_USERINFO: new RegExp(merge("[^\\%\\:]", UNRESERVED$$, SUB_DELIMS$$), "g"),
|
|
9289
|
+
NOT_HOST: new RegExp(merge("[^\\%\\[\\]\\:]", UNRESERVED$$, SUB_DELIMS$$), "g"),
|
|
9290
|
+
NOT_PATH: new RegExp(merge("[^\\%\\/\\:\\@]", UNRESERVED$$, SUB_DELIMS$$), "g"),
|
|
9291
|
+
NOT_PATH_NOSCHEME: new RegExp(merge("[^\\%\\/\\@]", UNRESERVED$$, SUB_DELIMS$$), "g"),
|
|
9292
|
+
NOT_QUERY: new RegExp(merge("[^\\%]", UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@\\/\\?]", IPRIVATE$$), "g"),
|
|
9293
|
+
NOT_FRAGMENT: new RegExp(merge("[^\\%]", UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@\\/\\?]"), "g"),
|
|
9294
|
+
ESCAPE: new RegExp(merge("[^]", UNRESERVED$$, SUB_DELIMS$$), "g"),
|
|
9295
|
+
UNRESERVED: new RegExp(UNRESERVED$$, "g"),
|
|
9296
|
+
OTHER_CHARS: new RegExp(merge("[^\\%]", UNRESERVED$$, RESERVED$$), "g"),
|
|
9297
|
+
PCT_ENCODED: new RegExp(PCT_ENCODED$, "g"),
|
|
9298
9298
|
IPV4ADDRESS: new RegExp("^(" + IPV4ADDRESS$ + ")$"),
|
|
9299
|
-
IPV6ADDRESS: new RegExp("^\\[?(" + IPV6ADDRESS$ + ")" + subexp(subexp("\\%25|\\%(?!" + HEXDIG$$
|
|
9299
|
+
IPV6ADDRESS: new RegExp("^\\[?(" + IPV6ADDRESS$ + ")" + subexp(subexp("\\%25|\\%(?!" + HEXDIG$$ + "{2})") + "(" + ZONEID$ + ")") + "?\\]?$")
|
|
9300
9300
|
};
|
|
9301
9301
|
}
|
|
9302
9302
|
var URI_PROTOCOL = buildExps(false);
|
|
@@ -9409,10 +9409,10 @@ var require_uri_all = __commonJS(function(exports, module) {
|
|
|
9409
9409
|
}
|
|
9410
9410
|
return output;
|
|
9411
9411
|
}
|
|
9412
|
-
var ucs2encode = function
|
|
9412
|
+
var ucs2encode = function ucs2encode(array) {
|
|
9413
9413
|
return String.fromCodePoint.apply(String, toConsumableArray(array));
|
|
9414
9414
|
};
|
|
9415
|
-
var basicToDigit = function
|
|
9415
|
+
var basicToDigit = function basicToDigit(codePoint) {
|
|
9416
9416
|
if (codePoint - 48 < 10) {
|
|
9417
9417
|
return codePoint - 22;
|
|
9418
9418
|
}
|
|
@@ -9424,10 +9424,10 @@ var require_uri_all = __commonJS(function(exports, module) {
|
|
|
9424
9424
|
}
|
|
9425
9425
|
return base;
|
|
9426
9426
|
};
|
|
9427
|
-
var digitToBasic = function
|
|
9427
|
+
var digitToBasic = function digitToBasic(digit, flag) {
|
|
9428
9428
|
return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
|
|
9429
9429
|
};
|
|
9430
|
-
var adapt = function
|
|
9430
|
+
var adapt = function adapt(delta, numPoints, firstTime) {
|
|
9431
9431
|
var k = 0;
|
|
9432
9432
|
delta = firstTime ? floor(delta / damp) : delta >> 1;
|
|
9433
9433
|
delta += floor(delta / numPoints);
|
|
@@ -9436,7 +9436,7 @@ var require_uri_all = __commonJS(function(exports, module) {
|
|
|
9436
9436
|
}
|
|
9437
9437
|
return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
|
|
9438
9438
|
};
|
|
9439
|
-
var decode = function
|
|
9439
|
+
var decode = function decode(input) {
|
|
9440
9440
|
var output = [];
|
|
9441
9441
|
var inputLength = input.length;
|
|
9442
9442
|
var i = 0;
|
|
@@ -9484,7 +9484,7 @@ var require_uri_all = __commonJS(function(exports, module) {
|
|
|
9484
9484
|
}
|
|
9485
9485
|
return String.fromCodePoint.apply(String, output);
|
|
9486
9486
|
};
|
|
9487
|
-
var encode = function
|
|
9487
|
+
var encode = function encode(input) {
|
|
9488
9488
|
var output = [];
|
|
9489
9489
|
input = ucs2decode(input);
|
|
9490
9490
|
var inputLength = input.length;
|
|
@@ -9598,12 +9598,12 @@ var require_uri_all = __commonJS(function(exports, module) {
|
|
|
9598
9598
|
}
|
|
9599
9599
|
return output.join("");
|
|
9600
9600
|
};
|
|
9601
|
-
var toUnicode = function
|
|
9601
|
+
var toUnicode = function toUnicode(input) {
|
|
9602
9602
|
return mapDomain(input, function(string) {
|
|
9603
9603
|
return regexPunycode.test(string) ? decode(string.slice(4).toLowerCase()) : string;
|
|
9604
9604
|
});
|
|
9605
9605
|
};
|
|
9606
|
-
var toASCII = function
|
|
9606
|
+
var toASCII = function toASCII(input) {
|
|
9607
9607
|
return mapDomain(input, function(string) {
|
|
9608
9608
|
return regexNonASCII.test(string) ? "xn--" + encode(string) : string;
|
|
9609
9609
|
});
|
|
@@ -9667,22 +9667,22 @@ var require_uri_all = __commonJS(function(exports, module) {
|
|
|
9667
9667
|
return newStr;
|
|
9668
9668
|
}
|
|
9669
9669
|
function _normalizeComponentEncoding(components, protocol) {
|
|
9670
|
-
function
|
|
9670
|
+
function decodeUnreserved(str) {
|
|
9671
9671
|
var decStr = pctDecChars(str);
|
|
9672
9672
|
return !decStr.match(protocol.UNRESERVED) ? str : decStr;
|
|
9673
9673
|
}
|
|
9674
9674
|
if (components.scheme)
|
|
9675
|
-
components.scheme = String(components.scheme).replace(protocol.PCT_ENCODED,
|
|
9675
|
+
components.scheme = String(components.scheme).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_SCHEME, "");
|
|
9676
9676
|
if (components.userinfo !== undefined)
|
|
9677
|
-
components.userinfo = String(components.userinfo).replace(protocol.PCT_ENCODED,
|
|
9677
|
+
components.userinfo = String(components.userinfo).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_USERINFO, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
|
|
9678
9678
|
if (components.host !== undefined)
|
|
9679
|
-
components.host = String(components.host).replace(protocol.PCT_ENCODED,
|
|
9679
|
+
components.host = String(components.host).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_HOST, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
|
|
9680
9680
|
if (components.path !== undefined)
|
|
9681
|
-
components.path = String(components.path).replace(protocol.PCT_ENCODED,
|
|
9681
|
+
components.path = String(components.path).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(components.scheme ? protocol.NOT_PATH : protocol.NOT_PATH_NOSCHEME, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
|
|
9682
9682
|
if (components.query !== undefined)
|
|
9683
|
-
components.query = String(components.query).replace(protocol.PCT_ENCODED,
|
|
9683
|
+
components.query = String(components.query).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_QUERY, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
|
|
9684
9684
|
if (components.fragment !== undefined)
|
|
9685
|
-
components.fragment = String(components.fragment).replace(protocol.PCT_ENCODED,
|
|
9685
|
+
components.fragment = String(components.fragment).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_FRAGMENT, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
|
|
9686
9686
|
return components;
|
|
9687
9687
|
}
|
|
9688
9688
|
function _stripLeadingZeros(str) {
|
|
@@ -9911,12 +9911,12 @@ var require_uri_all = __commonJS(function(exports, module) {
|
|
|
9911
9911
|
}
|
|
9912
9912
|
return uriTokens.join("");
|
|
9913
9913
|
}
|
|
9914
|
-
function resolveComponents(
|
|
9914
|
+
function resolveComponents(base, relative) {
|
|
9915
9915
|
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
9916
9916
|
var skipNormalization = arguments[3];
|
|
9917
9917
|
var target = {};
|
|
9918
9918
|
if (!skipNormalization) {
|
|
9919
|
-
|
|
9919
|
+
base = parse(serialize(base, options), options);
|
|
9920
9920
|
relative = parse(serialize(relative, options), options);
|
|
9921
9921
|
}
|
|
9922
9922
|
options = options || {};
|
|
@@ -9936,32 +9936,32 @@ var require_uri_all = __commonJS(function(exports, module) {
|
|
|
9936
9936
|
target.query = relative.query;
|
|
9937
9937
|
} else {
|
|
9938
9938
|
if (!relative.path) {
|
|
9939
|
-
target.path =
|
|
9939
|
+
target.path = base.path;
|
|
9940
9940
|
if (relative.query !== undefined) {
|
|
9941
9941
|
target.query = relative.query;
|
|
9942
9942
|
} else {
|
|
9943
|
-
target.query =
|
|
9943
|
+
target.query = base.query;
|
|
9944
9944
|
}
|
|
9945
9945
|
} else {
|
|
9946
9946
|
if (relative.path.charAt(0) === "/") {
|
|
9947
9947
|
target.path = removeDotSegments(relative.path);
|
|
9948
9948
|
} else {
|
|
9949
|
-
if ((
|
|
9949
|
+
if ((base.userinfo !== undefined || base.host !== undefined || base.port !== undefined) && !base.path) {
|
|
9950
9950
|
target.path = "/" + relative.path;
|
|
9951
|
-
} else if (!
|
|
9951
|
+
} else if (!base.path) {
|
|
9952
9952
|
target.path = relative.path;
|
|
9953
9953
|
} else {
|
|
9954
|
-
target.path =
|
|
9954
|
+
target.path = base.path.slice(0, base.path.lastIndexOf("/") + 1) + relative.path;
|
|
9955
9955
|
}
|
|
9956
9956
|
target.path = removeDotSegments(target.path);
|
|
9957
9957
|
}
|
|
9958
9958
|
target.query = relative.query;
|
|
9959
9959
|
}
|
|
9960
|
-
target.userinfo =
|
|
9961
|
-
target.host =
|
|
9962
|
-
target.port =
|
|
9960
|
+
target.userinfo = base.userinfo;
|
|
9961
|
+
target.host = base.host;
|
|
9962
|
+
target.port = base.port;
|
|
9963
9963
|
}
|
|
9964
|
-
target.scheme =
|
|
9964
|
+
target.scheme = base.scheme;
|
|
9965
9965
|
}
|
|
9966
9966
|
target.fragment = relative.fragment;
|
|
9967
9967
|
return target;
|
|
@@ -10000,13 +10000,13 @@ var require_uri_all = __commonJS(function(exports, module) {
|
|
|
10000
10000
|
var handler = {
|
|
10001
10001
|
scheme: "http",
|
|
10002
10002
|
domainHost: true,
|
|
10003
|
-
parse: function
|
|
10003
|
+
parse: function parse(components, options) {
|
|
10004
10004
|
if (!components.host) {
|
|
10005
10005
|
components.error = components.error || "HTTP URIs must have a host.";
|
|
10006
10006
|
}
|
|
10007
10007
|
return components;
|
|
10008
10008
|
},
|
|
10009
|
-
serialize: function
|
|
10009
|
+
serialize: function serialize(components, options) {
|
|
10010
10010
|
var secure = String(components.scheme).toLowerCase() === "https";
|
|
10011
10011
|
if (components.port === (secure ? 443 : 80) || components.port === "") {
|
|
10012
10012
|
components.port = undefined;
|
|
@@ -10029,7 +10029,7 @@ var require_uri_all = __commonJS(function(exports, module) {
|
|
|
10029
10029
|
var handler$2 = {
|
|
10030
10030
|
scheme: "ws",
|
|
10031
10031
|
domainHost: true,
|
|
10032
|
-
parse: function
|
|
10032
|
+
parse: function parse(components, options) {
|
|
10033
10033
|
var wsComponents = components;
|
|
10034
10034
|
wsComponents.secure = isSecure(wsComponents);
|
|
10035
10035
|
wsComponents.resourceName = (wsComponents.path || "/") + (wsComponents.query ? "?" + wsComponents.query : "");
|
|
@@ -10037,7 +10037,7 @@ var require_uri_all = __commonJS(function(exports, module) {
|
|
|
10037
10037
|
wsComponents.query = undefined;
|
|
10038
10038
|
return wsComponents;
|
|
10039
10039
|
},
|
|
10040
|
-
serialize: function
|
|
10040
|
+
serialize: function serialize(wsComponents, options) {
|
|
10041
10041
|
if (wsComponents.port === (isSecure(wsComponents) ? 443 : 80) || wsComponents.port === "") {
|
|
10042
10042
|
wsComponents.port = undefined;
|
|
10043
10043
|
}
|
|
@@ -10205,7 +10205,7 @@ var require_uri_all = __commonJS(function(exports, module) {
|
|
|
10205
10205
|
var UUID = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/;
|
|
10206
10206
|
var handler$6 = {
|
|
10207
10207
|
scheme: "urn:uuid",
|
|
10208
|
-
parse: function
|
|
10208
|
+
parse: function parse(urnComponents, options) {
|
|
10209
10209
|
var uuidComponents = urnComponents;
|
|
10210
10210
|
uuidComponents.uuid = uuidComponents.nss;
|
|
10211
10211
|
uuidComponents.nss = undefined;
|
|
@@ -10214,7 +10214,7 @@ var require_uri_all = __commonJS(function(exports, module) {
|
|
|
10214
10214
|
}
|
|
10215
10215
|
return uuidComponents;
|
|
10216
10216
|
},
|
|
10217
|
-
serialize: function
|
|
10217
|
+
serialize: function serialize(uuidComponents, options) {
|
|
10218
10218
|
var urnComponents = uuidComponents;
|
|
10219
10219
|
urnComponents.nss = (uuidComponents.uuid || "").toLowerCase();
|
|
10220
10220
|
return urnComponents;
|
|
@@ -10358,7 +10358,7 @@ var require_core3 = __commonJS(function(exports) {
|
|
|
10358
10358
|
};
|
|
10359
10359
|
}
|
|
10360
10360
|
|
|
10361
|
-
class
|
|
10361
|
+
class Ajv {
|
|
10362
10362
|
constructor(opts = {}) {
|
|
10363
10363
|
this.schemas = {};
|
|
10364
10364
|
this.refs = {};
|
|
@@ -10715,9 +10715,9 @@ var require_core3 = __commonJS(function(exports) {
|
|
|
10715
10715
|
}
|
|
10716
10716
|
}
|
|
10717
10717
|
}
|
|
10718
|
-
exports.default =
|
|
10719
|
-
|
|
10720
|
-
|
|
10718
|
+
exports.default = Ajv;
|
|
10719
|
+
Ajv.ValidationError = validation_error_1.default;
|
|
10720
|
+
Ajv.MissingRefError = ref_error_1.default;
|
|
10721
10721
|
function checkOptions(checkOpts, options, msg, log = "error") {
|
|
10722
10722
|
for (const key in checkOpts) {
|
|
10723
10723
|
const opt = key;
|
|
@@ -12408,9 +12408,9 @@ var require_types2 = __commonJS(function(exports) {
|
|
|
12408
12408
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12409
12409
|
exports.DiscrError = undefined;
|
|
12410
12410
|
var DiscrError;
|
|
12411
|
-
(function(
|
|
12412
|
-
|
|
12413
|
-
|
|
12411
|
+
(function(DiscrError) {
|
|
12412
|
+
DiscrError["Tag"] = "tag";
|
|
12413
|
+
DiscrError["Mapping"] = "mapping";
|
|
12414
12414
|
})(DiscrError = exports.DiscrError || (exports.DiscrError = {}));
|
|
12415
12415
|
});
|
|
12416
12416
|
|
|
@@ -12678,7 +12678,7 @@ var require_ajv2 = __commonJS(function(exports, module) {
|
|
|
12678
12678
|
var META_SUPPORT_DATA = ["/properties"];
|
|
12679
12679
|
var META_SCHEMA_ID = "http://json-schema.org/draft-07/schema";
|
|
12680
12680
|
|
|
12681
|
-
class
|
|
12681
|
+
class Ajv extends core_1.default {
|
|
12682
12682
|
_addVocabularies() {
|
|
12683
12683
|
super._addVocabularies();
|
|
12684
12684
|
draft7_1.default.forEach((v) => this.addVocabulary(v));
|
|
@@ -12697,9 +12697,9 @@ var require_ajv2 = __commonJS(function(exports, module) {
|
|
|
12697
12697
|
return this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined);
|
|
12698
12698
|
}
|
|
12699
12699
|
}
|
|
12700
|
-
module.exports = exports =
|
|
12700
|
+
module.exports = exports = Ajv;
|
|
12701
12701
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12702
|
-
exports.default =
|
|
12702
|
+
exports.default = Ajv;
|
|
12703
12703
|
var validate_1 = require_validate2();
|
|
12704
12704
|
Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function() {
|
|
12705
12705
|
return validate_1.KeywordCxt;
|
|
@@ -12795,9 +12795,9 @@ var require_limit = __commonJS(function(exports) {
|
|
|
12795
12795
|
},
|
|
12796
12796
|
dependencies: ["format"]
|
|
12797
12797
|
};
|
|
12798
|
-
var formatLimitPlugin = (
|
|
12799
|
-
|
|
12800
|
-
return
|
|
12798
|
+
var formatLimitPlugin = (ajv) => {
|
|
12799
|
+
ajv.addKeyword(exports.formatLimitDefinition);
|
|
12800
|
+
return ajv;
|
|
12801
12801
|
};
|
|
12802
12802
|
exports.default = formatLimitPlugin;
|
|
12803
12803
|
});
|
|
@@ -12810,17 +12810,17 @@ var require_dist = __commonJS(function(exports, module) {
|
|
|
12810
12810
|
var codegen_1 = require_codegen2();
|
|
12811
12811
|
var fullName = new codegen_1.Name("fullFormats");
|
|
12812
12812
|
var fastName = new codegen_1.Name("fastFormats");
|
|
12813
|
-
var formatsPlugin = (
|
|
12813
|
+
var formatsPlugin = (ajv, opts = { keywords: true }) => {
|
|
12814
12814
|
if (Array.isArray(opts)) {
|
|
12815
|
-
addFormats(
|
|
12816
|
-
return
|
|
12815
|
+
addFormats(ajv, opts, formats_1.fullFormats, fullName);
|
|
12816
|
+
return ajv;
|
|
12817
12817
|
}
|
|
12818
12818
|
const [formats, exportName] = opts.mode === "fast" ? [formats_1.fastFormats, fastName] : [formats_1.fullFormats, fullName];
|
|
12819
12819
|
const list = opts.formats || formats_1.formatNames;
|
|
12820
|
-
addFormats(
|
|
12820
|
+
addFormats(ajv, list, formats, exportName);
|
|
12821
12821
|
if (opts.keywords)
|
|
12822
|
-
limit_1.default(
|
|
12823
|
-
return
|
|
12822
|
+
limit_1.default(ajv);
|
|
12823
|
+
return ajv;
|
|
12824
12824
|
};
|
|
12825
12825
|
formatsPlugin.get = (name, mode = "full") => {
|
|
12826
12826
|
const formats = mode === "fast" ? formats_1.fastFormats : formats_1.fullFormats;
|
|
@@ -12829,12 +12829,12 @@ var require_dist = __commonJS(function(exports, module) {
|
|
|
12829
12829
|
throw new Error(`Unknown format "${name}"`);
|
|
12830
12830
|
return f;
|
|
12831
12831
|
};
|
|
12832
|
-
function addFormats(
|
|
12832
|
+
function addFormats(ajv, list, fs, exportName) {
|
|
12833
12833
|
var _a;
|
|
12834
12834
|
var _b;
|
|
12835
|
-
(_a = (_b =
|
|
12835
|
+
(_a = (_b = ajv.opts.code).formats) !== null && _a !== undefined || (_b.formats = codegen_1._`require("ajv-formats/dist/formats").${exportName}`);
|
|
12836
12836
|
for (const f of list)
|
|
12837
|
-
|
|
12837
|
+
ajv.addFormat(f, fs[f]);
|
|
12838
12838
|
}
|
|
12839
12839
|
module.exports = exports = formatsPlugin;
|
|
12840
12840
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -13552,13 +13552,13 @@ var require_extend = __commonJS(function(exports, module) {
|
|
|
13552
13552
|
var toStr = Object.prototype.toString;
|
|
13553
13553
|
var defineProperty = Object.defineProperty;
|
|
13554
13554
|
var gOPD = Object.getOwnPropertyDescriptor;
|
|
13555
|
-
var isArray = function
|
|
13555
|
+
var isArray = function isArray(arr) {
|
|
13556
13556
|
if (typeof Array.isArray === "function") {
|
|
13557
13557
|
return Array.isArray(arr);
|
|
13558
13558
|
}
|
|
13559
13559
|
return toStr.call(arr) === "[object Array]";
|
|
13560
13560
|
};
|
|
13561
|
-
var isPlainObject = function
|
|
13561
|
+
var isPlainObject = function isPlainObject(obj) {
|
|
13562
13562
|
if (!obj || toStr.call(obj) !== "[object Object]") {
|
|
13563
13563
|
return false;
|
|
13564
13564
|
}
|
|
@@ -13571,7 +13571,7 @@ var require_extend = __commonJS(function(exports, module) {
|
|
|
13571
13571
|
for (key in obj) {}
|
|
13572
13572
|
return typeof key === "undefined" || hasOwn.call(obj, key);
|
|
13573
13573
|
};
|
|
13574
|
-
var setProperty = function
|
|
13574
|
+
var setProperty = function setProperty(target, options) {
|
|
13575
13575
|
if (defineProperty && options.name === "__proto__") {
|
|
13576
13576
|
defineProperty(target, options.name, {
|
|
13577
13577
|
enumerable: true,
|
|
@@ -13583,7 +13583,7 @@ var require_extend = __commonJS(function(exports, module) {
|
|
|
13583
13583
|
target[options.name] = options.newValue;
|
|
13584
13584
|
}
|
|
13585
13585
|
};
|
|
13586
|
-
var getProperty = function
|
|
13586
|
+
var getProperty = function getProperty(obj, name) {
|
|
13587
13587
|
if (name === "__proto__") {
|
|
13588
13588
|
if (!hasOwn.call(obj, name)) {
|
|
13589
13589
|
return;
|
|
@@ -15745,7 +15745,7 @@ var require_formats2 = __commonJS(function(exports, module) {
|
|
|
15745
15745
|
// ../../node_modules/ajv-formats-draft2019/index.js
|
|
15746
15746
|
var require_ajv_formats_draft2019 = __commonJS(function(exports, module) {
|
|
15747
15747
|
var formats = require_formats2();
|
|
15748
|
-
module.exports = (
|
|
15748
|
+
module.exports = (ajv, options = {}) => {
|
|
15749
15749
|
const allFormats = Object.keys(formats);
|
|
15750
15750
|
let formatsToInstall = allFormats;
|
|
15751
15751
|
if (options.formats) {
|
|
@@ -15754,9 +15754,9 @@ var require_ajv_formats_draft2019 = __commonJS(function(exports, module) {
|
|
|
15754
15754
|
formatsToInstall = options.formats;
|
|
15755
15755
|
}
|
|
15756
15756
|
allFormats.filter((format) => formatsToInstall.includes(format)).forEach((key) => {
|
|
15757
|
-
|
|
15757
|
+
ajv.addFormat(key, formats[key]);
|
|
15758
15758
|
});
|
|
15759
|
-
return
|
|
15759
|
+
return ajv;
|
|
15760
15760
|
};
|
|
15761
15761
|
});
|
|
15762
15762
|
|
|
@@ -16726,9 +16726,9 @@ var require_util3 = __commonJS(function(exports, module) {
|
|
|
16726
16726
|
}
|
|
16727
16727
|
function getHostname(host) {
|
|
16728
16728
|
if (host[0] === "[") {
|
|
16729
|
-
const
|
|
16730
|
-
assert(
|
|
16731
|
-
return host.substring(1,
|
|
16729
|
+
const idx = host.indexOf("]");
|
|
16730
|
+
assert(idx !== -1);
|
|
16731
|
+
return host.substring(1, idx);
|
|
16732
16732
|
}
|
|
16733
16733
|
const idx = host.indexOf(":");
|
|
16734
16734
|
if (idx === -1)
|
|
@@ -16771,22 +16771,22 @@ var require_util3 = __commonJS(function(exports, module) {
|
|
|
16771
16771
|
function isDestroyed(body) {
|
|
16772
16772
|
return body && !!(body.destroyed || body[kDestroyed] || stream.isDestroyed?.(body));
|
|
16773
16773
|
}
|
|
16774
|
-
function destroy(
|
|
16775
|
-
if (
|
|
16774
|
+
function destroy(stream, err) {
|
|
16775
|
+
if (stream == null || !isStream(stream) || isDestroyed(stream)) {
|
|
16776
16776
|
return;
|
|
16777
16777
|
}
|
|
16778
|
-
if (typeof
|
|
16779
|
-
if (Object.getPrototypeOf(
|
|
16780
|
-
|
|
16778
|
+
if (typeof stream.destroy === "function") {
|
|
16779
|
+
if (Object.getPrototypeOf(stream).constructor === IncomingMessage) {
|
|
16780
|
+
stream.socket = null;
|
|
16781
16781
|
}
|
|
16782
|
-
|
|
16782
|
+
stream.destroy(err);
|
|
16783
16783
|
} else if (err) {
|
|
16784
16784
|
queueMicrotask(() => {
|
|
16785
|
-
|
|
16785
|
+
stream.emit("error", err);
|
|
16786
16786
|
});
|
|
16787
16787
|
}
|
|
16788
|
-
if (
|
|
16789
|
-
|
|
16788
|
+
if (stream.destroyed !== true) {
|
|
16789
|
+
stream[kDestroyed] = true;
|
|
16790
16790
|
}
|
|
16791
16791
|
}
|
|
16792
16792
|
var KEEPALIVE_TIMEOUT_EXPR = /timeout=(\d+)/;
|
|
@@ -17257,8 +17257,8 @@ var require_util3 = __commonJS(function(exports, module) {
|
|
|
17257
17257
|
try {
|
|
17258
17258
|
request.onError(err);
|
|
17259
17259
|
assert(request.aborted);
|
|
17260
|
-
} catch (
|
|
17261
|
-
client.emit("error",
|
|
17260
|
+
} catch (err) {
|
|
17261
|
+
client.emit("error", err);
|
|
17262
17262
|
}
|
|
17263
17263
|
}
|
|
17264
17264
|
var setupConnectTimeout = process.platform === "win32" ? (socketWeakRef, opts) => {
|
|
@@ -18152,8 +18152,8 @@ var require_dispatcher_base = __commonJS(function(exports, module) {
|
|
|
18152
18152
|
}
|
|
18153
18153
|
if (callback === undefined) {
|
|
18154
18154
|
return new Promise((resolve, reject) => {
|
|
18155
|
-
this.destroy(err, (
|
|
18156
|
-
return
|
|
18155
|
+
this.destroy(err, (err, data) => {
|
|
18156
|
+
return err ? reject(err) : resolve(data);
|
|
18157
18157
|
});
|
|
18158
18158
|
});
|
|
18159
18159
|
}
|
|
@@ -18252,7 +18252,7 @@ var require_connect = __commonJS(function(exports, module) {
|
|
|
18252
18252
|
const sessionCache = new SessionCache(maxCachedSessions == null ? 100 : maxCachedSessions);
|
|
18253
18253
|
timeout = timeout == null ? 1e4 : timeout;
|
|
18254
18254
|
allowH2 = allowH2 != null ? allowH2 : false;
|
|
18255
|
-
return function
|
|
18255
|
+
return function connect2({ hostname, host, protocol, port, servername, localAddress, httpSocket }, callback) {
|
|
18256
18256
|
let socket;
|
|
18257
18257
|
if (protocol === "https:") {
|
|
18258
18258
|
if (!tls) {
|
|
@@ -18274,8 +18274,8 @@ var require_connect = __commonJS(function(exports, module) {
|
|
|
18274
18274
|
port,
|
|
18275
18275
|
host: hostname
|
|
18276
18276
|
});
|
|
18277
|
-
socket.on("session", function(
|
|
18278
|
-
sessionCache.set(sessionKey,
|
|
18277
|
+
socket.on("session", function(session) {
|
|
18278
|
+
sessionCache.set(sessionKey, session);
|
|
18279
18279
|
});
|
|
18280
18280
|
} else {
|
|
18281
18281
|
assert(!httpSocket, "httpSocket can only be sent on TLS update");
|
|
@@ -19562,7 +19562,7 @@ var require_runtime_features = __commonJS(function(exports, module) {
|
|
|
19562
19562
|
|
|
19563
19563
|
// ../../node_modules/undici/lib/web/webidl/index.js
|
|
19564
19564
|
var require_webidl = __commonJS(function(exports, module) {
|
|
19565
|
-
var { types
|
|
19565
|
+
var { types, inspect } = __require("node:util");
|
|
19566
19566
|
var { runtimeFeatures } = require_runtime_features();
|
|
19567
19567
|
var UNDEFINED = 1;
|
|
19568
19568
|
var BOOLEAN = 2;
|
|
@@ -19763,10 +19763,10 @@ var require_webidl = __commonJS(function(exports, module) {
|
|
|
19763
19763
|
}
|
|
19764
19764
|
};
|
|
19765
19765
|
webidl.util.IsResizableArrayBuffer = function(V) {
|
|
19766
|
-
if (
|
|
19766
|
+
if (types.isArrayBuffer(V)) {
|
|
19767
19767
|
return V.resizable;
|
|
19768
19768
|
}
|
|
19769
|
-
if (
|
|
19769
|
+
if (types.isSharedArrayBuffer(V)) {
|
|
19770
19770
|
return V.growable;
|
|
19771
19771
|
}
|
|
19772
19772
|
throw webidl.errors.exception({
|
|
@@ -19813,9 +19813,9 @@ var require_webidl = __commonJS(function(exports, module) {
|
|
|
19813
19813
|
});
|
|
19814
19814
|
}
|
|
19815
19815
|
const result = {};
|
|
19816
|
-
if (!
|
|
19817
|
-
const
|
|
19818
|
-
for (const key of
|
|
19816
|
+
if (!types.isProxy(O)) {
|
|
19817
|
+
const keys = [...Object.getOwnPropertyNames(O), ...Object.getOwnPropertySymbols(O)];
|
|
19818
|
+
for (const key of keys) {
|
|
19819
19819
|
const keyName = webidl.util.Stringify(key);
|
|
19820
19820
|
const typedKey = keyConverter(key, prefix, `Key ${keyName} in ${argument}`);
|
|
19821
19821
|
const typedValue = valueConverter(O[key], prefix, `${argument}[${keyName}]`);
|
|
@@ -19903,7 +19903,7 @@ var require_webidl = __commonJS(function(exports, module) {
|
|
|
19903
19903
|
webidl.is.AbortSignal = webidl.util.MakeTypeAssertion(AbortSignal);
|
|
19904
19904
|
webidl.is.MessagePort = webidl.util.MakeTypeAssertion(MessagePort);
|
|
19905
19905
|
webidl.is.BufferSource = function(V) {
|
|
19906
|
-
return
|
|
19906
|
+
return types.isArrayBuffer(V) || ArrayBuffer.isView(V) && types.isArrayBuffer(V.buffer);
|
|
19907
19907
|
};
|
|
19908
19908
|
webidl.converters.DOMString = function(V, prefix, argument, flags) {
|
|
19909
19909
|
if (V === null && webidl.util.HasFlag(flags, webidl.attributes.LegacyNullToEmptyString)) {
|
|
@@ -19962,7 +19962,7 @@ var require_webidl = __commonJS(function(exports, module) {
|
|
|
19962
19962
|
return x;
|
|
19963
19963
|
};
|
|
19964
19964
|
webidl.converters.ArrayBuffer = function(V, prefix, argument, flags) {
|
|
19965
|
-
if (webidl.util.Type(V) !== OBJECT || !
|
|
19965
|
+
if (webidl.util.Type(V) !== OBJECT || !types.isArrayBuffer(V)) {
|
|
19966
19966
|
throw webidl.errors.conversionFailed({
|
|
19967
19967
|
prefix,
|
|
19968
19968
|
argument: `${argument} ("${webidl.util.Stringify(V)}")`,
|
|
@@ -19978,7 +19978,7 @@ var require_webidl = __commonJS(function(exports, module) {
|
|
|
19978
19978
|
return V;
|
|
19979
19979
|
};
|
|
19980
19980
|
webidl.converters.SharedArrayBuffer = function(V, prefix, argument, flags) {
|
|
19981
|
-
if (webidl.util.Type(V) !== OBJECT || !
|
|
19981
|
+
if (webidl.util.Type(V) !== OBJECT || !types.isSharedArrayBuffer(V)) {
|
|
19982
19982
|
throw webidl.errors.conversionFailed({
|
|
19983
19983
|
prefix,
|
|
19984
19984
|
argument: `${argument} ("${webidl.util.Stringify(V)}")`,
|
|
@@ -19994,14 +19994,14 @@ var require_webidl = __commonJS(function(exports, module) {
|
|
|
19994
19994
|
return V;
|
|
19995
19995
|
};
|
|
19996
19996
|
webidl.converters.TypedArray = function(V, T, prefix, argument, flags) {
|
|
19997
|
-
if (webidl.util.Type(V) !== OBJECT || !
|
|
19997
|
+
if (webidl.util.Type(V) !== OBJECT || !types.isTypedArray(V) || V.constructor.name !== T.name) {
|
|
19998
19998
|
throw webidl.errors.conversionFailed({
|
|
19999
19999
|
prefix,
|
|
20000
20000
|
argument: `${argument} ("${webidl.util.Stringify(V)}")`,
|
|
20001
20001
|
types: [T.name]
|
|
20002
20002
|
});
|
|
20003
20003
|
}
|
|
20004
|
-
if (!webidl.util.HasFlag(flags, webidl.attributes.AllowShared) &&
|
|
20004
|
+
if (!webidl.util.HasFlag(flags, webidl.attributes.AllowShared) && types.isSharedArrayBuffer(V.buffer)) {
|
|
20005
20005
|
throw webidl.errors.exception({
|
|
20006
20006
|
header: prefix,
|
|
20007
20007
|
message: `${argument} cannot be a view on a shared array buffer.`
|
|
@@ -20016,14 +20016,14 @@ var require_webidl = __commonJS(function(exports, module) {
|
|
|
20016
20016
|
return V;
|
|
20017
20017
|
};
|
|
20018
20018
|
webidl.converters.DataView = function(V, prefix, argument, flags) {
|
|
20019
|
-
if (webidl.util.Type(V) !== OBJECT || !
|
|
20019
|
+
if (webidl.util.Type(V) !== OBJECT || !types.isDataView(V)) {
|
|
20020
20020
|
throw webidl.errors.conversionFailed({
|
|
20021
20021
|
prefix,
|
|
20022
20022
|
argument: `${argument} ("${webidl.util.Stringify(V)}")`,
|
|
20023
20023
|
types: ["DataView"]
|
|
20024
20024
|
});
|
|
20025
20025
|
}
|
|
20026
|
-
if (!webidl.util.HasFlag(flags, webidl.attributes.AllowShared) &&
|
|
20026
|
+
if (!webidl.util.HasFlag(flags, webidl.attributes.AllowShared) && types.isSharedArrayBuffer(V.buffer)) {
|
|
20027
20027
|
throw webidl.errors.exception({
|
|
20028
20028
|
header: prefix,
|
|
20029
20029
|
message: `${argument} cannot be a view on a shared array buffer.`
|
|
@@ -20038,14 +20038,14 @@ var require_webidl = __commonJS(function(exports, module) {
|
|
|
20038
20038
|
return V;
|
|
20039
20039
|
};
|
|
20040
20040
|
webidl.converters.ArrayBufferView = function(V, prefix, argument, flags) {
|
|
20041
|
-
if (webidl.util.Type(V) !== OBJECT || !
|
|
20041
|
+
if (webidl.util.Type(V) !== OBJECT || !types.isArrayBufferView(V)) {
|
|
20042
20042
|
throw webidl.errors.conversionFailed({
|
|
20043
20043
|
prefix,
|
|
20044
20044
|
argument: `${argument} ("${webidl.util.Stringify(V)}")`,
|
|
20045
20045
|
types: ["ArrayBufferView"]
|
|
20046
20046
|
});
|
|
20047
20047
|
}
|
|
20048
|
-
if (!webidl.util.HasFlag(flags, webidl.attributes.AllowShared) &&
|
|
20048
|
+
if (!webidl.util.HasFlag(flags, webidl.attributes.AllowShared) && types.isSharedArrayBuffer(V.buffer)) {
|
|
20049
20049
|
throw webidl.errors.exception({
|
|
20050
20050
|
header: prefix,
|
|
20051
20051
|
message: `${argument} cannot be a view on a shared array buffer.`
|
|
@@ -20060,14 +20060,14 @@ var require_webidl = __commonJS(function(exports, module) {
|
|
|
20060
20060
|
return V;
|
|
20061
20061
|
};
|
|
20062
20062
|
webidl.converters.BufferSource = function(V, prefix, argument, flags) {
|
|
20063
|
-
if (
|
|
20063
|
+
if (types.isArrayBuffer(V)) {
|
|
20064
20064
|
return webidl.converters.ArrayBuffer(V, prefix, argument, flags);
|
|
20065
20065
|
}
|
|
20066
|
-
if (
|
|
20066
|
+
if (types.isArrayBufferView(V)) {
|
|
20067
20067
|
flags &= ~webidl.attributes.AllowShared;
|
|
20068
20068
|
return webidl.converters.ArrayBufferView(V, prefix, argument, flags);
|
|
20069
20069
|
}
|
|
20070
|
-
if (
|
|
20070
|
+
if (types.isSharedArrayBuffer(V)) {
|
|
20071
20071
|
throw webidl.errors.exception({
|
|
20072
20072
|
header: prefix,
|
|
20073
20073
|
message: `${argument} cannot be a SharedArrayBuffer.`
|
|
@@ -20080,13 +20080,13 @@ var require_webidl = __commonJS(function(exports, module) {
|
|
|
20080
20080
|
});
|
|
20081
20081
|
};
|
|
20082
20082
|
webidl.converters.AllowSharedBufferSource = function(V, prefix, argument, flags) {
|
|
20083
|
-
if (
|
|
20083
|
+
if (types.isArrayBuffer(V)) {
|
|
20084
20084
|
return webidl.converters.ArrayBuffer(V, prefix, argument, flags);
|
|
20085
20085
|
}
|
|
20086
|
-
if (
|
|
20086
|
+
if (types.isSharedArrayBuffer(V)) {
|
|
20087
20087
|
return webidl.converters.SharedArrayBuffer(V, prefix, argument, flags);
|
|
20088
20088
|
}
|
|
20089
|
-
if (
|
|
20089
|
+
if (types.isArrayBufferView(V)) {
|
|
20090
20090
|
flags |= webidl.attributes.AllowShared;
|
|
20091
20091
|
return webidl.converters.ArrayBufferView(V, prefix, argument, flags);
|
|
20092
20092
|
}
|
|
@@ -20926,12 +20926,12 @@ var require_formdata = __commonJS(function(exports, module) {
|
|
|
20926
20926
|
value = webidl.converters.USVString(value);
|
|
20927
20927
|
}
|
|
20928
20928
|
const entry = makeEntry(name, value, filename);
|
|
20929
|
-
const idx = this.#state.findIndex((
|
|
20929
|
+
const idx = this.#state.findIndex((entry) => entry.name === name);
|
|
20930
20930
|
if (idx !== -1) {
|
|
20931
20931
|
this.#state = [
|
|
20932
20932
|
...this.#state.slice(0, idx),
|
|
20933
20933
|
entry,
|
|
20934
|
-
...this.#state.slice(idx + 1).filter((
|
|
20934
|
+
...this.#state.slice(idx + 1).filter((entry) => entry.name !== name)
|
|
20935
20935
|
];
|
|
20936
20936
|
} else {
|
|
20937
20937
|
this.#state.push(entry);
|
|
@@ -21340,20 +21340,20 @@ Content-Disposition: form-data`;
|
|
|
21340
21340
|
let hasUnknownSizeValue = false;
|
|
21341
21341
|
for (const [name, value] of object) {
|
|
21342
21342
|
if (typeof value === "string") {
|
|
21343
|
-
const
|
|
21343
|
+
const chunk = textEncoder.encode(prefix + `; name="${formdataEscape(normalizeLinefeeds(name))}"` + `\r
|
|
21344
21344
|
\r
|
|
21345
21345
|
${normalizeLinefeeds(value)}\r
|
|
21346
21346
|
`);
|
|
21347
|
-
blobParts.push(
|
|
21348
|
-
length +=
|
|
21347
|
+
blobParts.push(chunk);
|
|
21348
|
+
length += chunk.byteLength;
|
|
21349
21349
|
} else {
|
|
21350
|
-
const
|
|
21350
|
+
const chunk = textEncoder.encode(`${prefix}; name="${formdataEscape(normalizeLinefeeds(name))}"` + (value.name ? `; filename="${formdataEscape(value.name)}"` : "") + `\r
|
|
21351
21351
|
` + `Content-Type: ${value.type || "application/octet-stream"}\r
|
|
21352
21352
|
\r
|
|
21353
21353
|
`);
|
|
21354
|
-
blobParts.push(
|
|
21354
|
+
blobParts.push(chunk, value, rn);
|
|
21355
21355
|
if (typeof value.size === "number") {
|
|
21356
|
-
length +=
|
|
21356
|
+
length += chunk.byteLength + value.size + rn.byteLength;
|
|
21357
21357
|
} else {
|
|
21358
21358
|
hasUnknownSizeValue = true;
|
|
21359
21359
|
}
|
|
@@ -21482,8 +21482,8 @@ ${normalizeLinefeeds(value)}\r
|
|
|
21482
21482
|
case "application/x-www-form-urlencoded": {
|
|
21483
21483
|
const entries = new URLSearchParams(value.toString());
|
|
21484
21484
|
const fd = new FormData;
|
|
21485
|
-
for (const [name,
|
|
21486
|
-
fd.append(name,
|
|
21485
|
+
for (const [name, value] of entries) {
|
|
21486
|
+
fd.append(name, value);
|
|
21487
21487
|
}
|
|
21488
21488
|
return fd;
|
|
21489
21489
|
}
|
|
@@ -22216,8 +22216,8 @@ var require_client_h1 = __commonJS(function(exports, module) {
|
|
|
22216
22216
|
if (body && typeof body.read === "function") {
|
|
22217
22217
|
body.read(0);
|
|
22218
22218
|
}
|
|
22219
|
-
const
|
|
22220
|
-
contentLength =
|
|
22219
|
+
const bodyLength2 = util.bodyLength(body);
|
|
22220
|
+
contentLength = bodyLength2 ?? contentLength;
|
|
22221
22221
|
if (contentLength === null) {
|
|
22222
22222
|
contentLength = request.contentLength;
|
|
22223
22223
|
}
|
|
@@ -22300,7 +22300,7 @@ upgrade: ${upgrade}\r
|
|
|
22300
22300
|
if (channels.sendHeaders.hasSubscribers) {
|
|
22301
22301
|
channels.sendHeaders.publish({ request, headers: header, socket });
|
|
22302
22302
|
}
|
|
22303
|
-
if (!body ||
|
|
22303
|
+
if (!body || bodyLength2 === 0) {
|
|
22304
22304
|
writeBuffer(abort, null, client, request, socket, contentLength, header, expectsPayload);
|
|
22305
22305
|
} else if (util.isBuffer(body)) {
|
|
22306
22306
|
writeBuffer(abort, body, client, request, socket, contentLength, header, expectsPayload);
|
|
@@ -22925,8 +22925,8 @@ var require_client_h2 = __commonJS(function(exports, module) {
|
|
|
22925
22925
|
}
|
|
22926
22926
|
stream = session.request(headers, { endStream: false, signal });
|
|
22927
22927
|
stream[kHTTP2Stream] = true;
|
|
22928
|
-
stream.once("response", (
|
|
22929
|
-
const { [HTTP2_HEADER_STATUS]: statusCode, ...realHeaders } =
|
|
22928
|
+
stream.once("response", (headers, _flags) => {
|
|
22929
|
+
const { [HTTP2_HEADER_STATUS]: statusCode, ...realHeaders } = headers;
|
|
22930
22930
|
request.onUpgrade(statusCode, parseH2Headers(realHeaders), stream);
|
|
22931
22931
|
++session[kOpenStreams];
|
|
22932
22932
|
client[kQueue][client[kRunningIdx]++] = null;
|
|
@@ -22946,8 +22946,8 @@ var require_client_h2 = __commonJS(function(exports, module) {
|
|
|
22946
22946
|
}
|
|
22947
22947
|
stream = session.request(headers, { endStream: false, signal });
|
|
22948
22948
|
stream[kHTTP2Stream] = true;
|
|
22949
|
-
stream.on("response", (
|
|
22950
|
-
const { [HTTP2_HEADER_STATUS]: statusCode, ...realHeaders } =
|
|
22949
|
+
stream.on("response", (headers) => {
|
|
22950
|
+
const { [HTTP2_HEADER_STATUS]: statusCode, ...realHeaders } = headers;
|
|
22951
22951
|
request.onUpgrade(statusCode, parseH2Headers(realHeaders), stream);
|
|
22952
22952
|
++session[kOpenStreams];
|
|
22953
22953
|
client[kQueue][client[kRunningIdx]++] = null;
|
|
@@ -23016,8 +23016,8 @@ var require_client_h2 = __commonJS(function(exports, module) {
|
|
|
23016
23016
|
}
|
|
23017
23017
|
++session[kOpenStreams];
|
|
23018
23018
|
stream.setTimeout(requestTimeout);
|
|
23019
|
-
stream.once("response", (
|
|
23020
|
-
const { [HTTP2_HEADER_STATUS]: statusCode, ...realHeaders } =
|
|
23019
|
+
stream.once("response", (headers) => {
|
|
23020
|
+
const { [HTTP2_HEADER_STATUS]: statusCode, ...realHeaders } = headers;
|
|
23021
23021
|
request.onResponseStarted();
|
|
23022
23022
|
if (request.aborted) {
|
|
23023
23023
|
stream.removeAllListeners("data");
|
|
@@ -23298,7 +23298,7 @@ var require_client = __commonJS(function(exports, module) {
|
|
|
23298
23298
|
tls,
|
|
23299
23299
|
strictContentLength,
|
|
23300
23300
|
maxCachedSessions,
|
|
23301
|
-
connect
|
|
23301
|
+
connect,
|
|
23302
23302
|
maxRequestsPerClient,
|
|
23303
23303
|
localAddress,
|
|
23304
23304
|
maxResponseSize,
|
|
@@ -23353,7 +23353,7 @@ var require_client = __commonJS(function(exports, module) {
|
|
|
23353
23353
|
if (bodyTimeout != null && (!Number.isInteger(bodyTimeout) || bodyTimeout < 0)) {
|
|
23354
23354
|
throw new InvalidArgumentError("bodyTimeout must be a positive integer or zero");
|
|
23355
23355
|
}
|
|
23356
|
-
if (
|
|
23356
|
+
if (connect != null && typeof connect !== "function" && typeof connect !== "object") {
|
|
23357
23357
|
throw new InvalidArgumentError("connect must be a function or an object");
|
|
23358
23358
|
}
|
|
23359
23359
|
if (maxRequestsPerClient != null && (!Number.isInteger(maxRequestsPerClient) || maxRequestsPerClient < 0)) {
|
|
@@ -23384,8 +23384,8 @@ var require_client = __commonJS(function(exports, module) {
|
|
|
23384
23384
|
throw new InvalidArgumentError("connectionWindowSize must be a positive integer, greater than 0");
|
|
23385
23385
|
}
|
|
23386
23386
|
super();
|
|
23387
|
-
if (typeof
|
|
23388
|
-
|
|
23387
|
+
if (typeof connect !== "function") {
|
|
23388
|
+
connect = buildConnector({
|
|
23389
23389
|
...tls,
|
|
23390
23390
|
maxCachedSessions,
|
|
23391
23391
|
allowH2,
|
|
@@ -23393,11 +23393,11 @@ var require_client = __commonJS(function(exports, module) {
|
|
|
23393
23393
|
socketPath,
|
|
23394
23394
|
timeout: connectTimeout,
|
|
23395
23395
|
...typeof autoSelectFamily === "boolean" ? { autoSelectFamily, autoSelectFamilyAttemptTimeout } : undefined,
|
|
23396
|
-
...
|
|
23396
|
+
...connect
|
|
23397
23397
|
});
|
|
23398
23398
|
}
|
|
23399
23399
|
this[kUrl] = util.parseOrigin(url);
|
|
23400
|
-
this[kConnector] =
|
|
23400
|
+
this[kConnector] = connect;
|
|
23401
23401
|
this[kPipelining] = pipelining != null ? pipelining : 1;
|
|
23402
23402
|
this[kMaxHeadersSize] = maxHeaderSize;
|
|
23403
23403
|
this[kKeepAliveDefaultTimeout] = keepAliveTimeout == null ? 4000 : keepAliveTimeout;
|
|
@@ -23560,9 +23560,9 @@ var require_client = __commonJS(function(exports, module) {
|
|
|
23560
23560
|
assert(socket);
|
|
23561
23561
|
try {
|
|
23562
23562
|
client[kHTTPContext] = socket.alpnProtocol === "h2" ? connectH2(client, socket) : connectH1(client, socket);
|
|
23563
|
-
} catch (
|
|
23563
|
+
} catch (err) {
|
|
23564
23564
|
socket.destroy().on("error", noop);
|
|
23565
|
-
handleConnectError(client,
|
|
23565
|
+
handleConnectError(client, err, { host, hostname, protocol, port });
|
|
23566
23566
|
client[kResume]();
|
|
23567
23567
|
return;
|
|
23568
23568
|
}
|
|
@@ -23991,14 +23991,14 @@ var require_pool = __commonJS(function(exports, module) {
|
|
|
23991
23991
|
this[kOptions] = { ...util.deepClone(options), connect, allowH2, clientTtl };
|
|
23992
23992
|
this[kOptions].interceptors = options.interceptors ? { ...options.interceptors } : undefined;
|
|
23993
23993
|
this[kFactory] = factory;
|
|
23994
|
-
this.on("connect", (
|
|
23994
|
+
this.on("connect", (origin, targets) => {
|
|
23995
23995
|
if (clientTtl != null && clientTtl > 0) {
|
|
23996
23996
|
for (const target of targets) {
|
|
23997
23997
|
Object.assign(target, { ttl: Date.now() });
|
|
23998
23998
|
}
|
|
23999
23999
|
}
|
|
24000
24000
|
});
|
|
24001
|
-
this.on("connectionError", (
|
|
24001
|
+
this.on("connectionError", (origin, targets, error) => {
|
|
24002
24002
|
for (const target of targets) {
|
|
24003
24003
|
const idx = this[kClients].indexOf(target);
|
|
24004
24004
|
if (idx !== -1) {
|
|
@@ -24087,7 +24087,7 @@ var require_balanced_pool = __commonJS(function(exports, module) {
|
|
|
24087
24087
|
}
|
|
24088
24088
|
addUpstream(upstream) {
|
|
24089
24089
|
const upstreamOrigin = parseOrigin(upstream).origin;
|
|
24090
|
-
if (this[kClients].find((
|
|
24090
|
+
if (this[kClients].find((pool) => pool[kUrl].origin === upstreamOrigin && pool.closed !== true && pool.destroyed !== true)) {
|
|
24091
24091
|
return this;
|
|
24092
24092
|
}
|
|
24093
24093
|
const pool = this[kFactory](upstreamOrigin, Object.assign({}, this[kOptions]));
|
|
@@ -24121,7 +24121,7 @@ var require_balanced_pool = __commonJS(function(exports, module) {
|
|
|
24121
24121
|
}
|
|
24122
24122
|
removeUpstream(upstream) {
|
|
24123
24123
|
const upstreamOrigin = parseOrigin(upstream).origin;
|
|
24124
|
-
const pool = this[kClients].find((
|
|
24124
|
+
const pool = this[kClients].find((pool) => pool[kUrl].origin === upstreamOrigin && pool.closed !== true && pool.destroyed !== true);
|
|
24125
24125
|
if (pool) {
|
|
24126
24126
|
this[kRemoveClient](pool);
|
|
24127
24127
|
}
|
|
@@ -24138,7 +24138,7 @@ var require_balanced_pool = __commonJS(function(exports, module) {
|
|
|
24138
24138
|
if (this[kClients].length === 0) {
|
|
24139
24139
|
throw new BalancedPoolMissingUpstreamError;
|
|
24140
24140
|
}
|
|
24141
|
-
const dispatcher = this[kClients].find((
|
|
24141
|
+
const dispatcher = this[kClients].find((dispatcher) => !dispatcher[kNeedDrain] && dispatcher.closed !== true && dispatcher.destroyed !== true);
|
|
24142
24142
|
if (!dispatcher) {
|
|
24143
24143
|
return;
|
|
24144
24144
|
}
|
|
@@ -24239,14 +24239,14 @@ var require_round_robin_pool = __commonJS(function(exports, module) {
|
|
|
24239
24239
|
this[kOptions].interceptors = options.interceptors ? { ...options.interceptors } : undefined;
|
|
24240
24240
|
this[kFactory] = factory;
|
|
24241
24241
|
this[kIndex] = -1;
|
|
24242
|
-
this.on("connect", (
|
|
24242
|
+
this.on("connect", (origin, targets) => {
|
|
24243
24243
|
if (clientTtl != null && clientTtl > 0) {
|
|
24244
24244
|
for (const target of targets) {
|
|
24245
24245
|
Object.assign(target, { ttl: Date.now() });
|
|
24246
24246
|
}
|
|
24247
24247
|
}
|
|
24248
24248
|
});
|
|
24249
|
-
this.on("connectionError", (
|
|
24249
|
+
this.on("connectionError", (origin, targets, error) => {
|
|
24250
24250
|
for (const target of targets) {
|
|
24251
24251
|
const idx = this[kClients].indexOf(target);
|
|
24252
24252
|
if (idx !== -1) {
|
|
@@ -24359,21 +24359,21 @@ var require_agent = __commonJS(function(exports, module) {
|
|
|
24359
24359
|
let dispatcher = result && result.dispatcher;
|
|
24360
24360
|
if (!dispatcher) {
|
|
24361
24361
|
const closeClientIfUnused = (connected) => {
|
|
24362
|
-
const
|
|
24363
|
-
if (
|
|
24362
|
+
const result = this[kClients].get(key);
|
|
24363
|
+
if (result) {
|
|
24364
24364
|
if (connected)
|
|
24365
|
-
|
|
24366
|
-
if (
|
|
24365
|
+
result.count -= 1;
|
|
24366
|
+
if (result.count <= 0) {
|
|
24367
24367
|
this[kClients].delete(key);
|
|
24368
|
-
|
|
24368
|
+
result.dispatcher.close();
|
|
24369
24369
|
}
|
|
24370
24370
|
this[kOrigins].delete(key);
|
|
24371
24371
|
}
|
|
24372
24372
|
};
|
|
24373
24373
|
dispatcher = this[kFactory](opts.origin, this[kOptions]).on("drain", this[kOnDrain]).on("connect", (origin, targets) => {
|
|
24374
|
-
const
|
|
24375
|
-
if (
|
|
24376
|
-
|
|
24374
|
+
const result = this[kClients].get(key);
|
|
24375
|
+
if (result) {
|
|
24376
|
+
result.count += 1;
|
|
24377
24377
|
}
|
|
24378
24378
|
this[kOnConnect](origin, targets);
|
|
24379
24379
|
}).on("disconnect", (origin, targets, err) => {
|
|
@@ -24525,36 +24525,36 @@ var require_proxy_agent = __commonJS(function(exports, module) {
|
|
|
24525
24525
|
const connect = buildConnector({ ...opts.proxyTls });
|
|
24526
24526
|
this[kConnectEndpoint] = buildConnector({ ...opts.requestTls });
|
|
24527
24527
|
const agentFactory = opts.factory || defaultAgentFactory;
|
|
24528
|
-
const factory = (
|
|
24529
|
-
const { protocol
|
|
24530
|
-
if (!this[kTunnelProxy] &&
|
|
24528
|
+
const factory = (origin, options) => {
|
|
24529
|
+
const { protocol } = new URL(origin);
|
|
24530
|
+
if (!this[kTunnelProxy] && protocol === "http:" && this[kProxy].protocol === "http:") {
|
|
24531
24531
|
return new Http1ProxyWrapper(this[kProxy].uri, {
|
|
24532
24532
|
headers: this[kProxyHeaders],
|
|
24533
24533
|
connect,
|
|
24534
24534
|
factory: agentFactory
|
|
24535
24535
|
});
|
|
24536
24536
|
}
|
|
24537
|
-
return agentFactory(
|
|
24537
|
+
return agentFactory(origin, options);
|
|
24538
24538
|
};
|
|
24539
24539
|
this[kClient] = clientFactory(url, { connect });
|
|
24540
24540
|
this[kAgent] = new Agent({
|
|
24541
24541
|
...opts,
|
|
24542
24542
|
factory,
|
|
24543
|
-
connect: async (
|
|
24544
|
-
let requestedPath =
|
|
24545
|
-
if (!
|
|
24546
|
-
requestedPath += `:${defaultProtocolPort(
|
|
24543
|
+
connect: async (opts, callback) => {
|
|
24544
|
+
let requestedPath = opts.host;
|
|
24545
|
+
if (!opts.port) {
|
|
24546
|
+
requestedPath += `:${defaultProtocolPort(opts.protocol)}`;
|
|
24547
24547
|
}
|
|
24548
24548
|
try {
|
|
24549
24549
|
const connectParams = {
|
|
24550
24550
|
origin,
|
|
24551
24551
|
port,
|
|
24552
24552
|
path: requestedPath,
|
|
24553
|
-
signal:
|
|
24553
|
+
signal: opts.signal,
|
|
24554
24554
|
headers: {
|
|
24555
24555
|
...this[kProxyHeaders],
|
|
24556
|
-
host:
|
|
24557
|
-
...
|
|
24556
|
+
host: opts.host,
|
|
24557
|
+
...opts.connections == null || opts.connections > 0 ? { "proxy-connection": "keep-alive" } : {}
|
|
24558
24558
|
},
|
|
24559
24559
|
servername: this[kProxyTls]?.servername || proxyHostname
|
|
24560
24560
|
};
|
|
@@ -24570,7 +24570,7 @@ var require_proxy_agent = __commonJS(function(exports, module) {
|
|
|
24570
24570
|
connectParams
|
|
24571
24571
|
});
|
|
24572
24572
|
}
|
|
24573
|
-
if (
|
|
24573
|
+
if (opts.protocol !== "https:") {
|
|
24574
24574
|
callback(null, socket);
|
|
24575
24575
|
return;
|
|
24576
24576
|
}
|
|
@@ -24578,9 +24578,9 @@ var require_proxy_agent = __commonJS(function(exports, module) {
|
|
|
24578
24578
|
if (this[kRequestTls]) {
|
|
24579
24579
|
servername = this[kRequestTls].servername;
|
|
24580
24580
|
} else {
|
|
24581
|
-
servername =
|
|
24581
|
+
servername = opts.servername;
|
|
24582
24582
|
}
|
|
24583
|
-
this[kConnectEndpoint]({ ...
|
|
24583
|
+
this[kConnectEndpoint]({ ...opts, servername, httpSocket: socket }, callback);
|
|
24584
24584
|
} catch (err) {
|
|
24585
24585
|
if (err.code === "ERR_TLS_CERT_ALTNAME_INVALID") {
|
|
24586
24586
|
callback(new SecureProxyConnectionError(err));
|
|
@@ -25313,31 +25313,31 @@ var require_readable = __commonJS(function(exports, module) {
|
|
|
25313
25313
|
}
|
|
25314
25314
|
});
|
|
25315
25315
|
}
|
|
25316
|
-
function consumeStart(
|
|
25317
|
-
if (
|
|
25316
|
+
function consumeStart(consume) {
|
|
25317
|
+
if (consume.body === null) {
|
|
25318
25318
|
return;
|
|
25319
25319
|
}
|
|
25320
|
-
const { _readableState: state } =
|
|
25320
|
+
const { _readableState: state } = consume.stream;
|
|
25321
25321
|
if (state.bufferIndex) {
|
|
25322
25322
|
const start = state.bufferIndex;
|
|
25323
25323
|
const end = state.buffer.length;
|
|
25324
25324
|
for (let n = start;n < end; n++) {
|
|
25325
|
-
consumePush(
|
|
25325
|
+
consumePush(consume, state.buffer[n]);
|
|
25326
25326
|
}
|
|
25327
25327
|
} else {
|
|
25328
25328
|
for (const chunk of state.buffer) {
|
|
25329
|
-
consumePush(
|
|
25329
|
+
consumePush(consume, chunk);
|
|
25330
25330
|
}
|
|
25331
25331
|
}
|
|
25332
25332
|
if (state.endEmitted) {
|
|
25333
25333
|
consumeEnd(this[kConsume], this._readableState.encoding);
|
|
25334
25334
|
} else {
|
|
25335
|
-
|
|
25335
|
+
consume.stream.on("end", function() {
|
|
25336
25336
|
consumeEnd(this[kConsume], this._readableState.encoding);
|
|
25337
25337
|
});
|
|
25338
25338
|
}
|
|
25339
|
-
|
|
25340
|
-
while (
|
|
25339
|
+
consume.stream.resume();
|
|
25340
|
+
while (consume.stream.read() != null) {}
|
|
25341
25341
|
}
|
|
25342
25342
|
function chunksDecode(chunks, length, encoding) {
|
|
25343
25343
|
if (chunks.length === 0 || length === 0) {
|
|
@@ -25368,8 +25368,8 @@ var require_readable = __commonJS(function(exports, module) {
|
|
|
25368
25368
|
}
|
|
25369
25369
|
return buffer;
|
|
25370
25370
|
}
|
|
25371
|
-
function consumeEnd(
|
|
25372
|
-
const { type, body, resolve, stream, length } =
|
|
25371
|
+
function consumeEnd(consume, encoding) {
|
|
25372
|
+
const { type, body, resolve, stream, length } = consume;
|
|
25373
25373
|
try {
|
|
25374
25374
|
if (type === "text") {
|
|
25375
25375
|
resolve(chunksDecode(body, length, encoding));
|
|
@@ -25382,30 +25382,30 @@ var require_readable = __commonJS(function(exports, module) {
|
|
|
25382
25382
|
} else if (type === "bytes") {
|
|
25383
25383
|
resolve(chunksConcat(body, length));
|
|
25384
25384
|
}
|
|
25385
|
-
consumeFinish(
|
|
25385
|
+
consumeFinish(consume);
|
|
25386
25386
|
} catch (err) {
|
|
25387
25387
|
stream.destroy(err);
|
|
25388
25388
|
}
|
|
25389
25389
|
}
|
|
25390
|
-
function consumePush(
|
|
25391
|
-
|
|
25392
|
-
|
|
25390
|
+
function consumePush(consume, chunk) {
|
|
25391
|
+
consume.length += chunk.length;
|
|
25392
|
+
consume.body.push(chunk);
|
|
25393
25393
|
}
|
|
25394
|
-
function consumeFinish(
|
|
25395
|
-
if (
|
|
25394
|
+
function consumeFinish(consume, err) {
|
|
25395
|
+
if (consume.body === null) {
|
|
25396
25396
|
return;
|
|
25397
25397
|
}
|
|
25398
25398
|
if (err) {
|
|
25399
|
-
|
|
25399
|
+
consume.reject(err);
|
|
25400
25400
|
} else {
|
|
25401
|
-
|
|
25401
|
+
consume.resolve();
|
|
25402
25402
|
}
|
|
25403
|
-
|
|
25404
|
-
|
|
25405
|
-
|
|
25406
|
-
|
|
25407
|
-
|
|
25408
|
-
|
|
25403
|
+
consume.type = null;
|
|
25404
|
+
consume.stream = null;
|
|
25405
|
+
consume.resolve = null;
|
|
25406
|
+
consume.reject = null;
|
|
25407
|
+
consume.length = 0;
|
|
25408
|
+
consume.body = null;
|
|
25409
25409
|
}
|
|
25410
25410
|
module.exports = {
|
|
25411
25411
|
Readable: BodyReadable,
|
|
@@ -25724,13 +25724,13 @@ var require_api_stream = __commonJS(function(exports, module) {
|
|
|
25724
25724
|
throw new InvalidReturnValueError("expected Writable");
|
|
25725
25725
|
}
|
|
25726
25726
|
finished(res, { readable: false }, (err) => {
|
|
25727
|
-
const { callback, res
|
|
25727
|
+
const { callback, res, opaque, trailers, abort } = this;
|
|
25728
25728
|
this.res = null;
|
|
25729
|
-
if (err || !
|
|
25730
|
-
util.destroy(
|
|
25729
|
+
if (err || !res?.readable) {
|
|
25730
|
+
util.destroy(res, err);
|
|
25731
25731
|
}
|
|
25732
25732
|
this.callback = null;
|
|
25733
|
-
this.runInAsyncScope(callback, null, err || null, { opaque
|
|
25733
|
+
this.runInAsyncScope(callback, null, err || null, { opaque, trailers });
|
|
25734
25734
|
if (err) {
|
|
25735
25735
|
abort();
|
|
25736
25736
|
}
|
|
@@ -25950,9 +25950,9 @@ var require_api_pipeline = __commonJS(function(exports, module) {
|
|
|
25950
25950
|
throw new InvalidReturnValueError("expected Readable");
|
|
25951
25951
|
}
|
|
25952
25952
|
body.on("data", (chunk) => {
|
|
25953
|
-
const { ret, body
|
|
25954
|
-
if (!ret.push(chunk) &&
|
|
25955
|
-
|
|
25953
|
+
const { ret, body } = this;
|
|
25954
|
+
if (!ret.push(chunk) && body.pause) {
|
|
25955
|
+
body.pause();
|
|
25956
25956
|
}
|
|
25957
25957
|
}).on("error", (err) => {
|
|
25958
25958
|
const { ret } = this;
|
|
@@ -26298,20 +26298,20 @@ var require_mock_utils = __commonJS(function(exports, module) {
|
|
|
26298
26298
|
}
|
|
26299
26299
|
return Object.fromEntries(entries);
|
|
26300
26300
|
}
|
|
26301
|
-
function matchHeaders(
|
|
26302
|
-
if (typeof
|
|
26301
|
+
function matchHeaders(mockDispatch, headers) {
|
|
26302
|
+
if (typeof mockDispatch.headers === "function") {
|
|
26303
26303
|
if (Array.isArray(headers)) {
|
|
26304
26304
|
headers = buildHeadersFromArray(headers);
|
|
26305
26305
|
}
|
|
26306
|
-
return
|
|
26306
|
+
return mockDispatch.headers(headers ? lowerCaseEntries(headers) : {});
|
|
26307
26307
|
}
|
|
26308
|
-
if (typeof
|
|
26308
|
+
if (typeof mockDispatch.headers === "undefined") {
|
|
26309
26309
|
return true;
|
|
26310
26310
|
}
|
|
26311
|
-
if (typeof headers !== "object" || typeof
|
|
26311
|
+
if (typeof headers !== "object" || typeof mockDispatch.headers !== "object") {
|
|
26312
26312
|
return false;
|
|
26313
26313
|
}
|
|
26314
|
-
for (const [matchHeaderName, matchHeaderValue] of Object.entries(
|
|
26314
|
+
for (const [matchHeaderName, matchHeaderValue] of Object.entries(mockDispatch.headers)) {
|
|
26315
26315
|
const headerValue = getHeaderByName(headers, matchHeaderName);
|
|
26316
26316
|
if (!matchValue(matchHeaderValue, headerValue)) {
|
|
26317
26317
|
return false;
|
|
@@ -26355,11 +26355,11 @@ var require_mock_utils = __commonJS(function(exports, module) {
|
|
|
26355
26355
|
qp.sort();
|
|
26356
26356
|
return [...pathSegments, qp.toString()].join("?");
|
|
26357
26357
|
}
|
|
26358
|
-
function matchKey(
|
|
26359
|
-
const pathMatch = matchValue(
|
|
26360
|
-
const methodMatch = matchValue(
|
|
26361
|
-
const bodyMatch = typeof
|
|
26362
|
-
const headersMatch = matchHeaders(
|
|
26358
|
+
function matchKey(mockDispatch, { path, method, body, headers }) {
|
|
26359
|
+
const pathMatch = matchValue(mockDispatch.path, path);
|
|
26360
|
+
const methodMatch = matchValue(mockDispatch.method, method);
|
|
26361
|
+
const bodyMatch = typeof mockDispatch.body !== "undefined" ? matchValue(mockDispatch.body, body) : true;
|
|
26362
|
+
const headersMatch = matchHeaders(mockDispatch, headers);
|
|
26363
26363
|
return pathMatch && methodMatch && bodyMatch && headersMatch;
|
|
26364
26364
|
}
|
|
26365
26365
|
function getResponseData(data) {
|
|
@@ -26395,7 +26395,7 @@ var require_mock_utils = __commonJS(function(exports, module) {
|
|
|
26395
26395
|
if (matchedMockDispatches.length === 0) {
|
|
26396
26396
|
throw new MockNotMatchedError(`Mock dispatch not matched for body '${key.body}' on path '${resolvedPath}'`);
|
|
26397
26397
|
}
|
|
26398
|
-
matchedMockDispatches = matchedMockDispatches.filter((
|
|
26398
|
+
matchedMockDispatches = matchedMockDispatches.filter((mockDispatch) => matchHeaders(mockDispatch, key.headers));
|
|
26399
26399
|
if (matchedMockDispatches.length === 0) {
|
|
26400
26400
|
const headers = typeof key.headers === "object" ? JSON.stringify(key.headers) : key.headers;
|
|
26401
26401
|
throw new MockNotMatchedError(`Mock dispatch not matched for headers '${headers}' on path '${resolvedPath}'`);
|
|
@@ -26468,15 +26468,15 @@ var require_mock_utils = __commonJS(function(exports, module) {
|
|
|
26468
26468
|
}
|
|
26469
26469
|
function mockDispatch(opts, handler) {
|
|
26470
26470
|
const key = buildKey(opts);
|
|
26471
|
-
const
|
|
26472
|
-
|
|
26473
|
-
if (
|
|
26474
|
-
|
|
26475
|
-
}
|
|
26476
|
-
const { data: { statusCode, data, headers, trailers, error }, delay, persist } =
|
|
26477
|
-
const { timesInvoked, times } =
|
|
26478
|
-
|
|
26479
|
-
|
|
26471
|
+
const mockDispatch = getMockDispatch(this[kDispatches], key);
|
|
26472
|
+
mockDispatch.timesInvoked++;
|
|
26473
|
+
if (mockDispatch.data.callback) {
|
|
26474
|
+
mockDispatch.data = { ...mockDispatch.data, ...mockDispatch.data.callback(opts) };
|
|
26475
|
+
}
|
|
26476
|
+
const { data: { statusCode, data, headers, trailers, error }, delay, persist } = mockDispatch;
|
|
26477
|
+
const { timesInvoked, times } = mockDispatch;
|
|
26478
|
+
mockDispatch.consumed = !persist && timesInvoked >= times;
|
|
26479
|
+
mockDispatch.pending = timesInvoked < times;
|
|
26480
26480
|
if (error !== null) {
|
|
26481
26481
|
deleteMockDispatch(this[kDispatches], key);
|
|
26482
26482
|
handler.onError(error);
|
|
@@ -26677,14 +26677,14 @@ var require_mock_interceptor = __commonJS(function(exports, module) {
|
|
|
26677
26677
|
if (typeof resolvedData !== "object" || resolvedData === null) {
|
|
26678
26678
|
throw new InvalidArgumentError("reply options callback must return an object");
|
|
26679
26679
|
}
|
|
26680
|
-
const
|
|
26681
|
-
this.validateReplyParameters(
|
|
26680
|
+
const replyParameters = { data: "", responseOptions: {}, ...resolvedData };
|
|
26681
|
+
this.validateReplyParameters(replyParameters);
|
|
26682
26682
|
return {
|
|
26683
|
-
...this.createMockScopeDispatchData(
|
|
26683
|
+
...this.createMockScopeDispatchData(replyParameters)
|
|
26684
26684
|
};
|
|
26685
26685
|
};
|
|
26686
|
-
const
|
|
26687
|
-
return new MockScope(
|
|
26686
|
+
const newMockDispatch = addMockDispatch(this[kDispatches], this[kDispatchKey], wrappedDefaultsCallback, { ignoreTrailingSlash: this[kIgnoreTrailingSlash] });
|
|
26687
|
+
return new MockScope(newMockDispatch);
|
|
26688
26688
|
}
|
|
26689
26689
|
const replyParameters = {
|
|
26690
26690
|
statusCode: replyOptionsCallbackOrStatusCode,
|
|
@@ -27212,11 +27212,11 @@ var require_mock_agent = __commonJS(function(exports, module) {
|
|
|
27212
27212
|
this[kMockAgentSet](origin, dispatcher);
|
|
27213
27213
|
return dispatcher;
|
|
27214
27214
|
}
|
|
27215
|
-
for (const [keyMatcher,
|
|
27216
|
-
if (
|
|
27215
|
+
for (const [keyMatcher, result] of Array.from(this[kClients])) {
|
|
27216
|
+
if (result && typeof keyMatcher !== "string" && matchValue(keyMatcher, origin)) {
|
|
27217
27217
|
const dispatcher = this[kFactory](origin);
|
|
27218
27218
|
this[kMockAgentSet](origin, dispatcher);
|
|
27219
|
-
dispatcher[kDispatches] =
|
|
27219
|
+
dispatcher[kDispatches] = result.dispatcher[kDispatches];
|
|
27220
27220
|
return dispatcher;
|
|
27221
27221
|
}
|
|
27222
27222
|
}
|
|
@@ -29760,13 +29760,13 @@ var require_memory_cache_store = __commonJS(function(exports, module) {
|
|
|
29760
29760
|
});
|
|
29761
29761
|
store.#hasEmittedMaxSizeEvent = true;
|
|
29762
29762
|
}
|
|
29763
|
-
for (const [
|
|
29764
|
-
for (const
|
|
29765
|
-
store.#size -=
|
|
29763
|
+
for (const [key, entries] of store.#entries) {
|
|
29764
|
+
for (const entry of entries.splice(0, entries.length / 2)) {
|
|
29765
|
+
store.#size -= entry.size;
|
|
29766
29766
|
store.#count -= 1;
|
|
29767
29767
|
}
|
|
29768
|
-
if (
|
|
29769
|
-
store.#entries.delete(
|
|
29768
|
+
if (entries.length === 0) {
|
|
29769
|
+
store.#entries.delete(key);
|
|
29770
29770
|
}
|
|
29771
29771
|
}
|
|
29772
29772
|
if (store.#size < store.#maxSize && store.#count < store.#maxCount) {
|
|
@@ -29957,7 +29957,7 @@ var require_cache2 = __commonJS(function(exports, module) {
|
|
|
29957
29957
|
}
|
|
29958
29958
|
return dispatch(opts, new CacheHandler(globalOpts, cacheKey, handler));
|
|
29959
29959
|
}
|
|
29960
|
-
function sendCachedValue(handler, opts, result, age, context,
|
|
29960
|
+
function sendCachedValue(handler, opts, result, age, context, isStale) {
|
|
29961
29961
|
const stream = util.isStream(result.body) ? result.body : Readable.from(result.body ?? []);
|
|
29962
29962
|
assert(!stream.destroyed, "stream should not be destroyed");
|
|
29963
29963
|
assert(!stream.readableDidRead, "stream should not be readableDidRead");
|
|
@@ -29999,7 +29999,7 @@ var require_cache2 = __commonJS(function(exports, module) {
|
|
|
29999
29999
|
return;
|
|
30000
30000
|
}
|
|
30001
30001
|
const headers = { ...result.headers, age: String(age) };
|
|
30002
|
-
if (
|
|
30002
|
+
if (isStale) {
|
|
30003
30003
|
headers.warning = '110 - "response is stale"';
|
|
30004
30004
|
}
|
|
30005
30005
|
handler.onResponseStart?.(controller, result.statusCode, headers, result.statusMessage);
|
|
@@ -30032,22 +30032,22 @@ var require_cache2 = __commonJS(function(exports, module) {
|
|
|
30032
30032
|
if (!revalidate && withinStaleWhileRevalidateWindow(result)) {
|
|
30033
30033
|
sendCachedValue(handler, opts, result, age, null, true);
|
|
30034
30034
|
queueMicrotask(() => {
|
|
30035
|
-
let
|
|
30035
|
+
let headers = {
|
|
30036
30036
|
...opts.headers,
|
|
30037
30037
|
"if-modified-since": new Date(result.cachedAt).toUTCString()
|
|
30038
30038
|
};
|
|
30039
30039
|
if (result.etag) {
|
|
30040
|
-
|
|
30040
|
+
headers["if-none-match"] = result.etag;
|
|
30041
30041
|
}
|
|
30042
30042
|
if (result.vary) {
|
|
30043
|
-
|
|
30044
|
-
...
|
|
30043
|
+
headers = {
|
|
30044
|
+
...headers,
|
|
30045
30045
|
...result.vary
|
|
30046
30046
|
};
|
|
30047
30047
|
}
|
|
30048
30048
|
dispatch({
|
|
30049
30049
|
...opts,
|
|
30050
|
-
headers
|
|
30050
|
+
headers
|
|
30051
30051
|
}, new CacheHandler(globalOpts, cacheKey, {
|
|
30052
30052
|
onRequestStart() {},
|
|
30053
30053
|
onRequestUpgrade() {},
|
|
@@ -30121,12 +30121,12 @@ var require_cache2 = __commonJS(function(exports, module) {
|
|
|
30121
30121
|
};
|
|
30122
30122
|
const safeMethodsToNotCache = util.safeHTTPMethods.filter((method) => methods.includes(method) === false);
|
|
30123
30123
|
return (dispatch) => {
|
|
30124
|
-
return (
|
|
30125
|
-
if (!
|
|
30126
|
-
return dispatch(
|
|
30124
|
+
return (opts, handler) => {
|
|
30125
|
+
if (!opts.origin || safeMethodsToNotCache.includes(opts.method)) {
|
|
30126
|
+
return dispatch(opts, handler);
|
|
30127
30127
|
}
|
|
30128
30128
|
if (origins !== undefined) {
|
|
30129
|
-
const requestOrigin =
|
|
30129
|
+
const requestOrigin = opts.origin.toString().toLowerCase();
|
|
30130
30130
|
let isAllowed = false;
|
|
30131
30131
|
for (let i = 0;i < origins.length; i++) {
|
|
30132
30132
|
const allowed = origins[i];
|
|
@@ -30141,23 +30141,23 @@ var require_cache2 = __commonJS(function(exports, module) {
|
|
|
30141
30141
|
}
|
|
30142
30142
|
}
|
|
30143
30143
|
if (!isAllowed) {
|
|
30144
|
-
return dispatch(
|
|
30144
|
+
return dispatch(opts, handler);
|
|
30145
30145
|
}
|
|
30146
30146
|
}
|
|
30147
|
-
|
|
30148
|
-
...
|
|
30149
|
-
headers: normalizeHeaders(
|
|
30147
|
+
opts = {
|
|
30148
|
+
...opts,
|
|
30149
|
+
headers: normalizeHeaders(opts)
|
|
30150
30150
|
};
|
|
30151
|
-
const reqCacheControl =
|
|
30151
|
+
const reqCacheControl = opts.headers?.["cache-control"] ? parseCacheControlHeader(opts.headers["cache-control"]) : undefined;
|
|
30152
30152
|
if (reqCacheControl?.["no-store"]) {
|
|
30153
|
-
return dispatch(
|
|
30153
|
+
return dispatch(opts, handler);
|
|
30154
30154
|
}
|
|
30155
|
-
const cacheKey = makeCacheKey(
|
|
30155
|
+
const cacheKey = makeCacheKey(opts);
|
|
30156
30156
|
const result = store.get(cacheKey);
|
|
30157
30157
|
if (result && typeof result.then === "function") {
|
|
30158
|
-
return result.then((
|
|
30158
|
+
return result.then((result) => handleResult(dispatch, globalOpts, cacheKey, handler, opts, reqCacheControl, result));
|
|
30159
30159
|
} else {
|
|
30160
|
-
return handleResult(dispatch, globalOpts, cacheKey, handler,
|
|
30160
|
+
return handleResult(dispatch, globalOpts, cacheKey, handler, opts, reqCacheControl, result);
|
|
30161
30161
|
}
|
|
30162
30162
|
};
|
|
30163
30163
|
};
|
|
@@ -30460,22 +30460,22 @@ var require_deduplicate = __commonJS(function(exports, module) {
|
|
|
30460
30460
|
const safeMethodsToNotDeduplicate = util.safeHTTPMethods.filter((method) => methods.includes(method) === false);
|
|
30461
30461
|
const pendingRequests = new Map;
|
|
30462
30462
|
return (dispatch) => {
|
|
30463
|
-
return (
|
|
30464
|
-
if (!
|
|
30465
|
-
return dispatch(
|
|
30463
|
+
return (opts, handler) => {
|
|
30464
|
+
if (!opts.origin || safeMethodsToNotDeduplicate.includes(opts.method)) {
|
|
30465
|
+
return dispatch(opts, handler);
|
|
30466
30466
|
}
|
|
30467
|
-
|
|
30468
|
-
...
|
|
30469
|
-
headers: normalizeHeaders(
|
|
30467
|
+
opts = {
|
|
30468
|
+
...opts,
|
|
30469
|
+
headers: normalizeHeaders(opts)
|
|
30470
30470
|
};
|
|
30471
30471
|
if (skipHeaderNamesSet.size > 0) {
|
|
30472
|
-
for (const headerName of Object.keys(
|
|
30472
|
+
for (const headerName of Object.keys(opts.headers)) {
|
|
30473
30473
|
if (skipHeaderNamesSet.has(headerName.toLowerCase())) {
|
|
30474
|
-
return dispatch(
|
|
30474
|
+
return dispatch(opts, handler);
|
|
30475
30475
|
}
|
|
30476
30476
|
}
|
|
30477
30477
|
}
|
|
30478
|
-
const cacheKey = makeCacheKey(
|
|
30478
|
+
const cacheKey = makeCacheKey(opts);
|
|
30479
30479
|
const dedupeKey = makeDeduplicationKey(cacheKey, excludeHeaderNamesSet);
|
|
30480
30480
|
const pendingHandler = pendingRequests.get(dedupeKey);
|
|
30481
30481
|
if (pendingHandler) {
|
|
@@ -30492,7 +30492,7 @@ var require_deduplicate = __commonJS(function(exports, module) {
|
|
|
30492
30492
|
if (pendingRequestsChannel.hasSubscribers) {
|
|
30493
30493
|
pendingRequestsChannel.publish({ size: pendingRequests.size, key: dedupeKey, type: "added" });
|
|
30494
30494
|
}
|
|
30495
|
-
return dispatch(
|
|
30495
|
+
return dispatch(opts, deduplicationHandler);
|
|
30496
30496
|
};
|
|
30497
30497
|
};
|
|
30498
30498
|
};
|
|
@@ -32275,11 +32275,11 @@ var require_subresource_integrity = __commonJS(function(exports, module) {
|
|
|
32275
32275
|
if (algorithmAndValue[1]) {
|
|
32276
32276
|
base64Value = algorithmAndValue[1];
|
|
32277
32277
|
}
|
|
32278
|
-
const
|
|
32278
|
+
const metadata = {
|
|
32279
32279
|
alg: algorithm,
|
|
32280
32280
|
val: base64Value
|
|
32281
32281
|
};
|
|
32282
|
-
result.push(
|
|
32282
|
+
result.push(metadata);
|
|
32283
32283
|
}
|
|
32284
32284
|
return result;
|
|
32285
32285
|
}
|
|
@@ -33675,8 +33675,8 @@ var require_cache3 = __commonJS(function(exports, module) {
|
|
|
33675
33675
|
}
|
|
33676
33676
|
queueMicrotask(() => {
|
|
33677
33677
|
const requestList = [];
|
|
33678
|
-
for (const
|
|
33679
|
-
const requestObject = fromInnerRequest(
|
|
33678
|
+
for (const request of requests) {
|
|
33679
|
+
const requestObject = fromInnerRequest(request, undefined, new AbortController().signal, "immutable");
|
|
33680
33680
|
requestList.push(requestObject);
|
|
33681
33681
|
}
|
|
33682
33682
|
promise.resolve(Object.freeze(requestList));
|
|
@@ -33925,8 +33925,8 @@ var require_cachestorage = __commonJS(function(exports, module) {
|
|
|
33925
33925
|
webidl.argumentLengthCheck(arguments, 1, prefix);
|
|
33926
33926
|
cacheName = webidl.converters.DOMString(cacheName, prefix, "cacheName");
|
|
33927
33927
|
if (this.#caches.has(cacheName)) {
|
|
33928
|
-
const
|
|
33929
|
-
return new Cache(kConstruct,
|
|
33928
|
+
const cache = this.#caches.get(cacheName);
|
|
33929
|
+
return new Cache(kConstruct, cache);
|
|
33930
33930
|
}
|
|
33931
33931
|
const cache = [];
|
|
33932
33932
|
this.#caches.set(cacheName, cache);
|
|
@@ -34840,11 +34840,11 @@ var require_frame = __commonJS(function(exports, module) {
|
|
|
34840
34840
|
var BUFFER_SIZE = 8 * 1024;
|
|
34841
34841
|
var buffer = null;
|
|
34842
34842
|
var bufIdx = BUFFER_SIZE;
|
|
34843
|
-
var randomFillSync = runtimeFeatures.has("crypto") ? __require("node:crypto").randomFillSync : function
|
|
34844
|
-
for (let i = 0;i <
|
|
34845
|
-
|
|
34843
|
+
var randomFillSync = runtimeFeatures.has("crypto") ? __require("node:crypto").randomFillSync : function randomFillSync(buffer, _offset, _size) {
|
|
34844
|
+
for (let i = 0;i < buffer.length; ++i) {
|
|
34845
|
+
buffer[i] = Math.random() * 255 | 0;
|
|
34846
34846
|
}
|
|
34847
|
-
return
|
|
34847
|
+
return buffer;
|
|
34848
34848
|
};
|
|
34849
34849
|
function generateMask() {
|
|
34850
34850
|
if (bufIdx === BUFFER_SIZE) {
|
|
@@ -34871,33 +34871,33 @@ var require_frame = __commonJS(function(exports, module) {
|
|
|
34871
34871
|
offset += 2;
|
|
34872
34872
|
payloadLength = 126;
|
|
34873
34873
|
}
|
|
34874
|
-
const
|
|
34875
|
-
|
|
34876
|
-
|
|
34877
|
-
|
|
34874
|
+
const buffer = Buffer.allocUnsafe(bodyLength + offset);
|
|
34875
|
+
buffer[0] = buffer[1] = 0;
|
|
34876
|
+
buffer[0] |= 128;
|
|
34877
|
+
buffer[0] = (buffer[0] & 240) + opcode;
|
|
34878
34878
|
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */
|
|
34879
|
-
|
|
34880
|
-
|
|
34881
|
-
|
|
34882
|
-
|
|
34883
|
-
|
|
34879
|
+
buffer[offset - 4] = maskKey[0];
|
|
34880
|
+
buffer[offset - 3] = maskKey[1];
|
|
34881
|
+
buffer[offset - 2] = maskKey[2];
|
|
34882
|
+
buffer[offset - 1] = maskKey[3];
|
|
34883
|
+
buffer[1] = payloadLength;
|
|
34884
34884
|
if (payloadLength === 126) {
|
|
34885
|
-
|
|
34885
|
+
buffer.writeUInt16BE(bodyLength, 2);
|
|
34886
34886
|
} else if (payloadLength === 127) {
|
|
34887
|
-
|
|
34888
|
-
|
|
34887
|
+
buffer[2] = buffer[3] = 0;
|
|
34888
|
+
buffer.writeUIntBE(bodyLength, 4, 6);
|
|
34889
34889
|
}
|
|
34890
|
-
|
|
34890
|
+
buffer[1] |= 128;
|
|
34891
34891
|
for (let i = 0;i < bodyLength; ++i) {
|
|
34892
|
-
|
|
34892
|
+
buffer[offset + i] = frameData[i] ^ maskKey[i & 3];
|
|
34893
34893
|
}
|
|
34894
|
-
return
|
|
34894
|
+
return buffer;
|
|
34895
34895
|
}
|
|
34896
|
-
static createFastTextFrame(
|
|
34896
|
+
static createFastTextFrame(buffer) {
|
|
34897
34897
|
const maskKey = generateMask();
|
|
34898
|
-
const bodyLength =
|
|
34898
|
+
const bodyLength = buffer.length;
|
|
34899
34899
|
for (let i = 0;i < bodyLength; ++i) {
|
|
34900
|
-
|
|
34900
|
+
buffer[i] ^= maskKey[i & 3];
|
|
34901
34901
|
}
|
|
34902
34902
|
let payloadLength = bodyLength;
|
|
34903
34903
|
let offset = 6;
|
|
@@ -34921,7 +34921,7 @@ var require_frame = __commonJS(function(exports, module) {
|
|
|
34921
34921
|
head[2] = head[3] = 0;
|
|
34922
34922
|
head.writeUIntBE(bodyLength, 4, 6);
|
|
34923
34923
|
}
|
|
34924
|
-
return [head,
|
|
34924
|
+
return [head, buffer];
|
|
34925
34925
|
}
|
|
34926
34926
|
}
|
|
34927
34927
|
module.exports = {
|
|
@@ -35393,12 +35393,12 @@ var require_receiver = __commonJS(function(exports, module) {
|
|
|
35393
35393
|
return false;
|
|
35394
35394
|
}
|
|
35395
35395
|
if (!this.#handler.closeState.has(sentCloseFrameState.SENT) && !this.#handler.closeState.has(sentCloseFrameState.RECEIVED)) {
|
|
35396
|
-
let
|
|
35396
|
+
let body = emptyBuffer;
|
|
35397
35397
|
if (this.#info.closeInfo.code) {
|
|
35398
|
-
|
|
35399
|
-
|
|
35398
|
+
body = Buffer.allocUnsafe(2);
|
|
35399
|
+
body.writeUInt16BE(this.#info.closeInfo.code, 0);
|
|
35400
35400
|
}
|
|
35401
|
-
const closeFrame = new WebsocketFrameSend(
|
|
35401
|
+
const closeFrame = new WebsocketFrameSend(body);
|
|
35402
35402
|
this.#handler.socket.write(closeFrame.createFrame(opcodes.CLOSE));
|
|
35403
35403
|
this.#handler.closeState.add(sentCloseFrameState.SENT);
|
|
35404
35404
|
}
|
|
@@ -35451,12 +35451,12 @@ var require_sender = __commonJS(function(exports, module) {
|
|
|
35451
35451
|
this.#socket.write(createFrame(item, hint), cb);
|
|
35452
35452
|
}
|
|
35453
35453
|
} else {
|
|
35454
|
-
const
|
|
35454
|
+
const node = {
|
|
35455
35455
|
promise: null,
|
|
35456
35456
|
callback: cb,
|
|
35457
35457
|
frame: createFrame(item, hint)
|
|
35458
35458
|
};
|
|
35459
|
-
this.#queue.push(
|
|
35459
|
+
this.#queue.push(node);
|
|
35460
35460
|
}
|
|
35461
35461
|
return;
|
|
35462
35462
|
}
|
|
@@ -38691,7 +38691,7 @@ var ActivityStreamSchema = {
|
|
|
38691
38691
|
var package_default = {
|
|
38692
38692
|
name: "@sockethub/schemas",
|
|
38693
38693
|
description: "JSON schema files for validating Sockethub Activity Streams",
|
|
38694
|
-
version: "3.0.0-alpha.
|
|
38694
|
+
version: "3.0.0-alpha.25",
|
|
38695
38695
|
type: "module",
|
|
38696
38696
|
private: false,
|
|
38697
38697
|
author: "Nick Jennings <nick@silverbucket.net>",
|
|
@@ -38722,11 +38722,20 @@ var package_default = {
|
|
|
38722
38722
|
import: "./dist/examples-config.js",
|
|
38723
38723
|
default: "./dist/examples-config.js"
|
|
38724
38724
|
},
|
|
38725
|
+
"./service-descriptor": {
|
|
38726
|
+
types: "./dist/service-descriptor.d.ts",
|
|
38727
|
+
bun: "./src/service-descriptor.ts",
|
|
38728
|
+
import: "./dist/service-descriptor.js",
|
|
38729
|
+
default: "./dist/service-descriptor.js"
|
|
38730
|
+
},
|
|
38725
38731
|
"./schemas/json/sockethub-config.json": {
|
|
38726
38732
|
default: "./dist/schemas/json/sockethub-config.json"
|
|
38727
38733
|
},
|
|
38728
38734
|
"./schemas/json/examples-config.json": {
|
|
38729
38735
|
default: "./dist/schemas/json/examples-config.json"
|
|
38736
|
+
},
|
|
38737
|
+
"./schemas/json/service-descriptor.json": {
|
|
38738
|
+
default: "./dist/schemas/json/service-descriptor.json"
|
|
38730
38739
|
}
|
|
38731
38740
|
},
|
|
38732
38741
|
files: [
|
|
@@ -38752,7 +38761,7 @@ var package_default = {
|
|
|
38752
38761
|
"@types/bun": "latest"
|
|
38753
38762
|
},
|
|
38754
38763
|
scripts: {
|
|
38755
|
-
build: "bun ./scripts/export-json-schema.ts && bun ./scripts/export-canonical-assets.ts && bun build src/index.ts src/object-types.ts --outdir dist --target node --format esm --sourcemap=external && bun build src/context.ts src/activity-stream-helper.ts src/examples-config.ts --outdir dist --target browser --format esm --sourcemap=external",
|
|
38764
|
+
build: "bun ./scripts/export-json-schema.ts && bun ./scripts/export-canonical-assets.ts && bun build src/index.ts src/object-types.ts --outdir dist --target node --format esm --sourcemap=external && bun build src/context.ts src/activity-stream-helper.ts src/examples-config.ts src/service-descriptor.ts --outdir dist --target browser --format esm --sourcemap=external",
|
|
38756
38765
|
clean: "rm -rf dist",
|
|
38757
38766
|
"clean:deps": "rm -rf node_modules"
|
|
38758
38767
|
},
|
|
@@ -38761,7 +38770,7 @@ var package_default = {
|
|
|
38761
38770
|
"ajv-formats": "^2.1.1",
|
|
38762
38771
|
"ajv-formats-draft2019": "^1.6.1"
|
|
38763
38772
|
},
|
|
38764
|
-
gitHead: "
|
|
38773
|
+
gitHead: "45acaca6570f8e8429d996ec1d3b95979e8c54a9",
|
|
38765
38774
|
types: "./dist/index.d.ts"
|
|
38766
38775
|
};
|
|
38767
38776
|
|
|
@@ -39154,29 +39163,33 @@ var SockethubConfigSchema = {
|
|
|
39154
39163
|
};
|
|
39155
39164
|
var SockethubConfigSchemaId = versionedSchemaId(SockethubConfigSchema.$id, package_default.version);
|
|
39156
39165
|
|
|
39157
|
-
// ../schemas/src/
|
|
39166
|
+
// ../schemas/src/service-descriptor.ts
|
|
39158
39167
|
var import_ajv2 = __toESM(require_ajv(), 1);
|
|
39168
|
+
var ajv2 = new import_ajv2.default({ strictTypes: false, allErrors: true });
|
|
39169
|
+
|
|
39170
|
+
// ../schemas/src/validator.ts
|
|
39171
|
+
var import_ajv3 = __toESM(require_ajv(), 1);
|
|
39159
39172
|
var import_ajv_formats = __toESM(require_dist(), 1);
|
|
39160
39173
|
var import_ajv_formats_draft2019 = __toESM(require_ajv_formats_draft2019(), 1);
|
|
39161
|
-
var
|
|
39162
|
-
import_ajv_formats.default(
|
|
39163
|
-
import_ajv_formats_draft2019.default(
|
|
39174
|
+
var ajv3 = new import_ajv3.default({ strictTypes: false, allErrors: true });
|
|
39175
|
+
import_ajv_formats.default(ajv3);
|
|
39176
|
+
import_ajv_formats_draft2019.default(ajv3);
|
|
39164
39177
|
var schemaURL = "https://sockethub.org/schemas/v0";
|
|
39165
39178
|
var schemas = {};
|
|
39166
39179
|
var systemContextsRegistered = false;
|
|
39167
39180
|
schemas[`${schemaURL}/activity-stream`] = ActivityStreamSchema;
|
|
39168
39181
|
for (const uri in schemas) {
|
|
39169
|
-
|
|
39182
|
+
ajv3.addSchema(schemas[uri], uri);
|
|
39170
39183
|
}
|
|
39171
39184
|
function registerSystemContext(platformId, contextUrl) {
|
|
39172
39185
|
registerPlatformContext(platformId, contextUrl, `${schemaURL}/context/${platformId}/messages`, `${schemaURL}/context/${platformId}/credentials`);
|
|
39173
39186
|
const messageSchemaRef = `${schemaURL}/context/${platformId}/messages`;
|
|
39174
|
-
if (!
|
|
39175
|
-
|
|
39187
|
+
if (!ajv3.getSchema(messageSchemaRef)) {
|
|
39188
|
+
ajv3.addSchema({}, messageSchemaRef);
|
|
39176
39189
|
}
|
|
39177
39190
|
const credentialsSchemaRef = `${schemaURL}/context/${platformId}/credentials`;
|
|
39178
|
-
if (!
|
|
39179
|
-
|
|
39191
|
+
if (!ajv3.getSchema(credentialsSchemaRef)) {
|
|
39192
|
+
ajv3.addSchema({}, credentialsSchemaRef);
|
|
39180
39193
|
}
|
|
39181
39194
|
}
|
|
39182
39195
|
function registerSystemPlatformContexts() {
|
|
@@ -39245,10 +39258,6 @@ var $cacheStores = {
|
|
|
39245
39258
|
var SqliteCacheStore = require_sqlite_cache_store();
|
|
39246
39259
|
$cacheStores.SqliteCacheStore = SqliteCacheStore;
|
|
39247
39260
|
var $buildConnector = buildConnector;
|
|
39248
|
-
var $util = {
|
|
39249
|
-
parseHeaders: util.parseHeaders,
|
|
39250
|
-
headerNameToString: util.headerNameToString
|
|
39251
|
-
};
|
|
39252
39261
|
function makeDispatcher(fn) {
|
|
39253
39262
|
return (url, opts, handler) => {
|
|
39254
39263
|
if (typeof opts === "function") {
|
|
@@ -39626,7 +39635,7 @@ var import_podparse = __toESM(require_podparse(), 1);
|
|
|
39626
39635
|
var package_default2 = {
|
|
39627
39636
|
name: "@sockethub/platform-feeds",
|
|
39628
39637
|
description: "A sockethub platform module implementing RSS/Atom functionality",
|
|
39629
|
-
version: "4.0.0-alpha.
|
|
39638
|
+
version: "4.0.0-alpha.25",
|
|
39630
39639
|
type: "module",
|
|
39631
39640
|
private: false,
|
|
39632
39641
|
author: "Nick Jennings <nick@silverbucket.net>",
|
|
@@ -39671,24 +39680,24 @@ var package_default2 = {
|
|
|
39671
39680
|
"clean:deps": "rm -rf node_modules"
|
|
39672
39681
|
},
|
|
39673
39682
|
dependencies: {
|
|
39674
|
-
"@sockethub/util": "^1.0.0-alpha.
|
|
39683
|
+
"@sockethub/util": "^1.0.0-alpha.13",
|
|
39675
39684
|
"html-tags": "^3.3.1",
|
|
39676
39685
|
htmlparser2: "^9.1.0",
|
|
39677
39686
|
podparse: "^1.6.0"
|
|
39678
39687
|
},
|
|
39679
39688
|
devDependencies: {
|
|
39680
|
-
"@sockethub/schemas": "^3.0.0-alpha.
|
|
39689
|
+
"@sockethub/schemas": "^3.0.0-alpha.25",
|
|
39681
39690
|
"@types/bun": "latest"
|
|
39682
39691
|
},
|
|
39683
39692
|
peerDependencies: {
|
|
39684
|
-
"@sockethub/server": "5.0.0-alpha.
|
|
39693
|
+
"@sockethub/server": "5.0.0-alpha.25"
|
|
39685
39694
|
},
|
|
39686
39695
|
peerDependenciesMeta: {
|
|
39687
39696
|
"@sockethub/server": {
|
|
39688
39697
|
optional: true
|
|
39689
39698
|
}
|
|
39690
39699
|
},
|
|
39691
|
-
gitHead: "
|
|
39700
|
+
gitHead: "45acaca6570f8e8429d996ec1d3b95979e8c54a9",
|
|
39692
39701
|
types: "./dist/index.d.ts"
|
|
39693
39702
|
};
|
|
39694
39703
|
|
|
@@ -39953,4 +39962,4 @@ export {
|
|
|
39953
39962
|
extractFetchParams
|
|
39954
39963
|
};
|
|
39955
39964
|
|
|
39956
|
-
//# debugId=
|
|
39965
|
+
//# debugId=3E8CC821A7A9684864756E2164756E21
|