@opra/common 0.20.3 → 0.21.0
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/browser.js +295 -402
- package/cjs/document/api-document.js +8 -0
- package/cjs/document/data-type/mapped-type.js +1 -1
- package/cjs/document/data-type/union-type.js +1 -1
- package/cjs/document/factory/factory.js +3 -2
- package/cjs/document/factory/process-resources.js +22 -7
- package/cjs/document/index.js +1 -0
- package/cjs/document/resource/storage.js +81 -0
- package/cjs/helpers/mixin-utils.js +6 -5
- package/cjs/helpers/responsive-map.js +6 -1
- package/cjs/http/index.js +0 -1
- package/cjs/schema/opra-schema.ns.js +1 -0
- package/cjs/schema/resource/storage.interface.js +7 -0
- package/cjs/schema/type-guards.js +6 -1
- package/esm/document/api-document.js +8 -0
- package/esm/document/data-type/mapped-type.js +2 -2
- package/esm/document/data-type/union-type.js +2 -2
- package/esm/document/factory/factory.js +4 -3
- package/esm/document/factory/process-resources.js +18 -4
- package/esm/document/index.js +1 -0
- package/esm/document/resource/storage.js +77 -0
- package/esm/helpers/mixin-utils.js +4 -3
- package/esm/helpers/responsive-map.js +6 -1
- package/esm/http/index.js +0 -1
- package/esm/schema/opra-schema.ns.js +1 -0
- package/esm/schema/resource/storage.interface.js +4 -0
- package/esm/schema/type-guards.js +4 -0
- package/package.json +2 -2
- package/types/document/api-document.d.ts +3 -10
- package/types/document/factory/factory.d.ts +4 -3
- package/types/document/factory/process-resources.d.ts +4 -2
- package/types/document/index.d.ts +1 -0
- package/types/document/resource/storage.d.ts +44 -0
- package/types/helpers/mixin-utils.d.ts +1 -1
- package/types/http/index.d.ts +0 -1
- package/types/schema/opra-schema.ns.d.ts +1 -0
- package/types/schema/resource/resource.interface.d.ts +3 -2
- package/types/schema/resource/storage.interface.d.ts +18 -0
- package/types/schema/type-guards.d.ts +1 -0
- package/cjs/http/http-headers.js +0 -227
- package/esm/http/http-headers.js +0 -223
- package/types/http/http-headers.d.ts +0 -86
package/browser.js
CHANGED
|
@@ -105,14 +105,14 @@ function isUrl(url) {
|
|
|
105
105
|
__name(isUrl, "isUrl");
|
|
106
106
|
|
|
107
107
|
// ../../build/common/esm/helpers/mixin-utils.js
|
|
108
|
-
function
|
|
109
|
-
for (const k of Object.getOwnPropertyNames(
|
|
108
|
+
function mergePrototype(targetProto, baseProto, filter) {
|
|
109
|
+
for (const k of Object.getOwnPropertyNames(baseProto)) {
|
|
110
110
|
if (k === "constructor" || k === "__proto__" || k === "toJSON" || k === "toString" || filter && !filter(k))
|
|
111
111
|
continue;
|
|
112
|
-
Object.defineProperty(
|
|
112
|
+
Object.defineProperty(targetProto, k, Object.getOwnPropertyDescriptor(baseProto, k) || /* @__PURE__ */ Object.create(null));
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
__name(
|
|
115
|
+
__name(mergePrototype, "mergePrototype");
|
|
116
116
|
function inheritPropertyInitializers(target, sourceClass, isPropertyInherited = (key) => true) {
|
|
117
117
|
try {
|
|
118
118
|
const tempInstance = new sourceClass();
|
|
@@ -281,7 +281,12 @@ var ResponsiveMap = class extends Map {
|
|
|
281
281
|
return super.delete(orgKey);
|
|
282
282
|
}
|
|
283
283
|
sort(compareFn) {
|
|
284
|
-
|
|
284
|
+
if (compareFn)
|
|
285
|
+
this[kKeyOrder].sort(compareFn);
|
|
286
|
+
else if (this[kOptions].caseSensitive)
|
|
287
|
+
this[kKeyOrder].sort();
|
|
288
|
+
else
|
|
289
|
+
this[kKeyOrder].sort((a, b) => a.toLowerCase().localeCompare(b.toLowerCase()));
|
|
285
290
|
return this;
|
|
286
291
|
}
|
|
287
292
|
getProxy(handler) {
|
|
@@ -861,6 +866,7 @@ __export(opra_schema_ns_exports, {
|
|
|
861
866
|
SimpleType: () => SimpleType,
|
|
862
867
|
Singleton: () => Singleton,
|
|
863
868
|
SpecVersion: () => SpecVersion,
|
|
869
|
+
Storage: () => Storage,
|
|
864
870
|
UnionType: () => UnionType,
|
|
865
871
|
isCollection: () => isCollection,
|
|
866
872
|
isComplexType: () => isComplexType,
|
|
@@ -871,6 +877,7 @@ __export(opra_schema_ns_exports, {
|
|
|
871
877
|
isResource: () => isResource,
|
|
872
878
|
isSimpleType: () => isSimpleType,
|
|
873
879
|
isSingleton: () => isSingleton,
|
|
880
|
+
isStorage: () => isStorage,
|
|
874
881
|
isUnionType: () => isUnionType
|
|
875
882
|
});
|
|
876
883
|
|
|
@@ -922,6 +929,12 @@ var Singleton;
|
|
|
922
929
|
Singleton3.Kind = "Singleton";
|
|
923
930
|
})(Singleton || (Singleton = {}));
|
|
924
931
|
|
|
932
|
+
// ../../build/common/esm/schema/resource/storage.interface.js
|
|
933
|
+
var Storage;
|
|
934
|
+
(function(Storage3) {
|
|
935
|
+
Storage3.Kind = "Storage";
|
|
936
|
+
})(Storage || (Storage = {}));
|
|
937
|
+
|
|
925
938
|
// ../../build/common/esm/schema/constants.js
|
|
926
939
|
var SpecVersion = "1.0";
|
|
927
940
|
|
|
@@ -962,6 +975,10 @@ function isSingleton(obj) {
|
|
|
962
975
|
return obj && typeof obj === "object" && obj.kind === Singleton.Kind;
|
|
963
976
|
}
|
|
964
977
|
__name(isSingleton, "isSingleton");
|
|
978
|
+
function isStorage(obj) {
|
|
979
|
+
return obj && typeof obj === "object" && obj.kind === Storage.Kind;
|
|
980
|
+
}
|
|
981
|
+
__name(isStorage, "isStorage");
|
|
965
982
|
function isContainer(obj) {
|
|
966
983
|
return obj && typeof obj === "object" && obj.kind === Container.Kind;
|
|
967
984
|
}
|
|
@@ -1531,6 +1548,14 @@ var ApiDocument = class {
|
|
|
1531
1548
|
return t;
|
|
1532
1549
|
throw new NotAcceptableError(`Resource type "${t.name}" is not a Singleton`);
|
|
1533
1550
|
}
|
|
1551
|
+
getStorage(path2, silent) {
|
|
1552
|
+
const t = this.getResource(path2);
|
|
1553
|
+
if (!t && silent)
|
|
1554
|
+
return;
|
|
1555
|
+
if (t && t.kind === opra_schema_ns_exports.Storage.Kind)
|
|
1556
|
+
return t;
|
|
1557
|
+
throw new NotAcceptableError(`Resource type "${t.name}" is not a Storage`);
|
|
1558
|
+
}
|
|
1534
1559
|
/**
|
|
1535
1560
|
* Export as Opra schema definition object
|
|
1536
1561
|
*/
|
|
@@ -9892,6 +9917,78 @@ Singleton2.Get = createOperationDecorator2("get");
|
|
|
9892
9917
|
Singleton2.Delete = createOperationDecorator2("delete");
|
|
9893
9918
|
Singleton2.Update = createOperationDecorator2("update");
|
|
9894
9919
|
|
|
9920
|
+
// ../../build/common/esm/document/resource/storage.js
|
|
9921
|
+
import omit6 from "lodash.omit";
|
|
9922
|
+
import merge7 from "putil-merge";
|
|
9923
|
+
var NESTJS_INJECTABLE_WATERMARK3 = "__injectable__";
|
|
9924
|
+
var NAME_PATTERN3 = /^(.*)(Resource)$/;
|
|
9925
|
+
var StorageClass = class extends Resource {
|
|
9926
|
+
static {
|
|
9927
|
+
__name(this, "StorageClass");
|
|
9928
|
+
}
|
|
9929
|
+
constructor(document, init) {
|
|
9930
|
+
super(document, init);
|
|
9931
|
+
this.kind = opra_schema_ns_exports.Storage.Kind;
|
|
9932
|
+
this.controller = init.controller;
|
|
9933
|
+
const operations = this.operations = init.operations || {};
|
|
9934
|
+
if (this.controller) {
|
|
9935
|
+
const instance = typeof this.controller == "function" ? new this.controller() : this.controller;
|
|
9936
|
+
for (const operation of Object.values(operations)) {
|
|
9937
|
+
if (!operation.handler && operation.handlerName) {
|
|
9938
|
+
const fn = instance[operation.handlerName];
|
|
9939
|
+
if (!fn)
|
|
9940
|
+
throw new TypeError(`No such operation handler (${operation.handlerName}) found`);
|
|
9941
|
+
operation.handler = fn.bind(instance);
|
|
9942
|
+
}
|
|
9943
|
+
}
|
|
9944
|
+
}
|
|
9945
|
+
}
|
|
9946
|
+
exportSchema() {
|
|
9947
|
+
const out = Resource.prototype.exportSchema.call(this);
|
|
9948
|
+
Object.assign(out, omitUndefined({
|
|
9949
|
+
operations: this.operations
|
|
9950
|
+
}));
|
|
9951
|
+
return out;
|
|
9952
|
+
}
|
|
9953
|
+
};
|
|
9954
|
+
var Storage2 = /* @__PURE__ */ __name(function(...args) {
|
|
9955
|
+
if (!this) {
|
|
9956
|
+
const [options] = args;
|
|
9957
|
+
return function(target) {
|
|
9958
|
+
const name = options?.name || target.name.match(NAME_PATTERN3)?.[1] || target.name;
|
|
9959
|
+
const metadata = Reflect.getOwnMetadata(METADATA_KEY, target) || {};
|
|
9960
|
+
metadata.kind = opra_schema_ns_exports.Storage.Kind;
|
|
9961
|
+
metadata.name = name;
|
|
9962
|
+
const m = Reflect.getMetadata(METADATA_KEY, target);
|
|
9963
|
+
if (m && metadata !== m)
|
|
9964
|
+
Object.assign(metadata, omit6(m), Object.keys(metadata));
|
|
9965
|
+
if (options)
|
|
9966
|
+
Object.assign(metadata, omit6(options, ["kind", "name", "type", "controller"]));
|
|
9967
|
+
Reflect.defineMetadata(METADATA_KEY, metadata, target);
|
|
9968
|
+
Reflect.defineMetadata(NESTJS_INJECTABLE_WATERMARK3, true, target);
|
|
9969
|
+
};
|
|
9970
|
+
}
|
|
9971
|
+
const [document, init] = args;
|
|
9972
|
+
merge7(this, new StorageClass(document, init), { descriptor: true });
|
|
9973
|
+
}, "Storage");
|
|
9974
|
+
Storage2.prototype = StorageClass.prototype;
|
|
9975
|
+
function createOperationDecorator3(operation) {
|
|
9976
|
+
return (options) => (target, propertyKey) => {
|
|
9977
|
+
const metadata = {
|
|
9978
|
+
...options,
|
|
9979
|
+
handlerName: propertyKey
|
|
9980
|
+
};
|
|
9981
|
+
const resourceMetadata = Reflect.getOwnMetadata(METADATA_KEY, target.constructor) || {};
|
|
9982
|
+
resourceMetadata.operations = resourceMetadata.operations || {};
|
|
9983
|
+
resourceMetadata.operations[operation] = metadata;
|
|
9984
|
+
Reflect.defineMetadata(METADATA_KEY, resourceMetadata, target.constructor);
|
|
9985
|
+
};
|
|
9986
|
+
}
|
|
9987
|
+
__name(createOperationDecorator3, "createOperationDecorator");
|
|
9988
|
+
Storage2.Delete = createOperationDecorator3("delete");
|
|
9989
|
+
Storage2.Get = createOperationDecorator3("get");
|
|
9990
|
+
Storage2.Put = createOperationDecorator3("put");
|
|
9991
|
+
|
|
9895
9992
|
// ../../build/common/esm/document/factory/process-resources.js
|
|
9896
9993
|
async function processResourceQueue() {
|
|
9897
9994
|
const { document, resourceQueue } = this;
|
|
@@ -9902,12 +9999,17 @@ async function processResourceQueue() {
|
|
|
9902
9999
|
continue;
|
|
9903
10000
|
try {
|
|
9904
10001
|
if (opra_schema_ns_exports.isCollection(schema)) {
|
|
9905
|
-
const resource = await this.
|
|
10002
|
+
const resource = await this.createCollectionResource(name, schema);
|
|
9906
10003
|
document.resources.set(name, resource);
|
|
9907
10004
|
continue;
|
|
9908
10005
|
}
|
|
9909
10006
|
if (opra_schema_ns_exports.isSingleton(schema)) {
|
|
9910
|
-
const resource = await this.
|
|
10007
|
+
const resource = await this.createSingletonResource(name, schema);
|
|
10008
|
+
document.resources.set(name, resource);
|
|
10009
|
+
continue;
|
|
10010
|
+
}
|
|
10011
|
+
if (opra_schema_ns_exports.isStorage(schema)) {
|
|
10012
|
+
const resource = await this.createFileResource(name, schema);
|
|
9911
10013
|
document.resources.set(name, resource);
|
|
9912
10014
|
continue;
|
|
9913
10015
|
}
|
|
@@ -9919,7 +10021,7 @@ async function processResourceQueue() {
|
|
|
9919
10021
|
}
|
|
9920
10022
|
}
|
|
9921
10023
|
__name(processResourceQueue, "processResourceQueue");
|
|
9922
|
-
async function
|
|
10024
|
+
async function createCollectionResource(name, schema) {
|
|
9923
10025
|
const { document } = this;
|
|
9924
10026
|
const dataType = document.getComplexType(schema.type);
|
|
9925
10027
|
const initArgs = {
|
|
@@ -9929,8 +10031,8 @@ async function createCollection(name, schema) {
|
|
|
9929
10031
|
};
|
|
9930
10032
|
return new Collection2(document, initArgs);
|
|
9931
10033
|
}
|
|
9932
|
-
__name(
|
|
9933
|
-
async function
|
|
10034
|
+
__name(createCollectionResource, "createCollectionResource");
|
|
10035
|
+
async function createSingletonResource(name, schema) {
|
|
9934
10036
|
const { document } = this;
|
|
9935
10037
|
const dataType = document.getComplexType(schema.type);
|
|
9936
10038
|
const initArgs = {
|
|
@@ -9940,11 +10042,20 @@ async function createSingleton(name, schema) {
|
|
|
9940
10042
|
};
|
|
9941
10043
|
return new Singleton2(document, initArgs);
|
|
9942
10044
|
}
|
|
9943
|
-
__name(
|
|
10045
|
+
__name(createSingletonResource, "createSingletonResource");
|
|
10046
|
+
async function createFileResource(name, schema) {
|
|
10047
|
+
const { document } = this;
|
|
10048
|
+
const initArgs = {
|
|
10049
|
+
...schema,
|
|
10050
|
+
name
|
|
10051
|
+
};
|
|
10052
|
+
return new Storage2(document, initArgs);
|
|
10053
|
+
}
|
|
10054
|
+
__name(createFileResource, "createFileResource");
|
|
9944
10055
|
|
|
9945
10056
|
// ../../build/common/esm/document/data-type/mapped-type.js
|
|
9946
10057
|
import "reflect-metadata";
|
|
9947
|
-
import
|
|
10058
|
+
import merge8 from "putil-merge";
|
|
9948
10059
|
import * as vg4 from "valgen";
|
|
9949
10060
|
var MappedTypeClass = class extends DataType {
|
|
9950
10061
|
static {
|
|
@@ -10016,7 +10127,7 @@ var MappedTypeClass = class extends DataType {
|
|
|
10016
10127
|
var MappedType2 = /* @__PURE__ */ __name(function(...args) {
|
|
10017
10128
|
if (this) {
|
|
10018
10129
|
const [document, init] = args;
|
|
10019
|
-
|
|
10130
|
+
merge8(this, new MappedTypeClass(document, init), { descriptor: true });
|
|
10020
10131
|
return;
|
|
10021
10132
|
}
|
|
10022
10133
|
const [source, options] = args;
|
|
@@ -10029,7 +10140,7 @@ var MappedType2 = /* @__PURE__ */ __name(function(...args) {
|
|
|
10029
10140
|
inheritPropertyInitializers(this, source, isInheritedPredicate);
|
|
10030
10141
|
}
|
|
10031
10142
|
}
|
|
10032
|
-
|
|
10143
|
+
mergePrototype(MappedClass.prototype, source.prototype);
|
|
10033
10144
|
const m = Reflect.getOwnMetadata(METADATA_KEY, source);
|
|
10034
10145
|
if (!m)
|
|
10035
10146
|
throw new TypeError(`Class "${source}" doesn't have datatype metadata information`);
|
|
@@ -10052,9 +10163,9 @@ var MappedType2 = /* @__PURE__ */ __name(function(...args) {
|
|
|
10052
10163
|
}, "MappedType");
|
|
10053
10164
|
MappedType2.prototype = MappedTypeClass.prototype;
|
|
10054
10165
|
MappedType2._applyMixin = () => void 0;
|
|
10055
|
-
function getIsInheritedPredicateFn(pick,
|
|
10166
|
+
function getIsInheritedPredicateFn(pick, omit7) {
|
|
10056
10167
|
const pickKeys = pick?.map((x) => String(x).toLowerCase());
|
|
10057
|
-
const omitKeys =
|
|
10168
|
+
const omitKeys = omit7?.map((x) => String(x).toLowerCase());
|
|
10058
10169
|
return (propertyName) => {
|
|
10059
10170
|
if (omitKeys && omitKeys.includes(propertyName.toLowerCase()))
|
|
10060
10171
|
return false;
|
|
@@ -10075,7 +10186,7 @@ __name(OmitType, "OmitType");
|
|
|
10075
10186
|
|
|
10076
10187
|
// ../../build/common/esm/document/data-type/union-type.js
|
|
10077
10188
|
import "reflect-metadata";
|
|
10078
|
-
import
|
|
10189
|
+
import merge9 from "putil-merge";
|
|
10079
10190
|
import * as vg5 from "valgen";
|
|
10080
10191
|
var UnionTypeClass = class extends DataType {
|
|
10081
10192
|
static {
|
|
@@ -10143,7 +10254,7 @@ var UnionTypeClass = class extends DataType {
|
|
|
10143
10254
|
var UnionType2 = /* @__PURE__ */ __name(function(...args) {
|
|
10144
10255
|
if (this) {
|
|
10145
10256
|
const [document, init] = args;
|
|
10146
|
-
|
|
10257
|
+
merge9(this, new UnionTypeClass(document, init), { descriptor: true });
|
|
10147
10258
|
return;
|
|
10148
10259
|
}
|
|
10149
10260
|
const clasRefs = [...args].filter((x) => !!x);
|
|
@@ -10170,7 +10281,7 @@ var UnionType2 = /* @__PURE__ */ __name(function(...args) {
|
|
|
10170
10281
|
if (!(itemMeta && (itemMeta.kind === opra_schema_ns_exports.ComplexType.Kind || itemMeta.kind === opra_schema_ns_exports.UnionType.Kind || itemMeta.kind === opra_schema_ns_exports.MappedType.Kind)))
|
|
10171
10282
|
throw new TypeError(`Class "${c.name}" is not a ${opra_schema_ns_exports.ComplexType.Kind}, ${opra_schema_ns_exports.UnionType.Kind} or ${opra_schema_ns_exports.MappedType.Kind}`);
|
|
10172
10283
|
metadata.types.push(c);
|
|
10173
|
-
|
|
10284
|
+
mergePrototype(UnionClass.prototype, c.prototype);
|
|
10174
10285
|
}
|
|
10175
10286
|
UnionType2._applyMixin(UnionClass, ...clasRefs);
|
|
10176
10287
|
return UnionClass;
|
|
@@ -10398,326 +10509,11 @@ DocumentFactory.designTypeMap = /* @__PURE__ */ new Map();
|
|
|
10398
10509
|
_a2.prototype.extractSingletonSchema = extractSingletonSchema;
|
|
10399
10510
|
_a2.prototype.extractCollectionSchema = extractCollectionSchema;
|
|
10400
10511
|
_a2.prototype.processResourceQueue = processResourceQueue;
|
|
10401
|
-
_a2.prototype.
|
|
10402
|
-
_a2.prototype.
|
|
10512
|
+
_a2.prototype.createCollectionResource = createCollectionResource;
|
|
10513
|
+
_a2.prototype.createSingletonResource = createSingletonResource;
|
|
10514
|
+
_a2.prototype.createFileResource = createFileResource;
|
|
10403
10515
|
})();
|
|
10404
10516
|
|
|
10405
|
-
// ../../build/common/esm/http/enums/http-headers-codes.enum.js
|
|
10406
|
-
var HttpHeaderCodes;
|
|
10407
|
-
(function(HttpHeaderCodes2) {
|
|
10408
|
-
HttpHeaderCodes2["X_Opra_Version"] = "X-OPRA-Version";
|
|
10409
|
-
HttpHeaderCodes2["X_Opra_Data_Type"] = "X-OPRA-Data-Type";
|
|
10410
|
-
HttpHeaderCodes2["X_Opra_Operation"] = "X-OPRA-Operation";
|
|
10411
|
-
HttpHeaderCodes2["X_Opra_Total_Matches"] = "X-OPRA-Total-Matches";
|
|
10412
|
-
HttpHeaderCodes2["WWW_Authenticate"] = "WWW-Authenticate";
|
|
10413
|
-
HttpHeaderCodes2["Authorization"] = "Authorization";
|
|
10414
|
-
HttpHeaderCodes2["Proxy_Authenticate"] = "Proxy-Authenticate";
|
|
10415
|
-
HttpHeaderCodes2["Proxy_Authorization"] = "Proxy-Authorization";
|
|
10416
|
-
HttpHeaderCodes2["Age"] = "Age";
|
|
10417
|
-
HttpHeaderCodes2["Cache_Control"] = "Cache-Control";
|
|
10418
|
-
HttpHeaderCodes2["Clear_Site_Data"] = "Clear-Site-Data";
|
|
10419
|
-
HttpHeaderCodes2["Expires"] = "Expires";
|
|
10420
|
-
HttpHeaderCodes2["Pragma"] = "Pragma";
|
|
10421
|
-
HttpHeaderCodes2["Last_Modified"] = "Last-Modified";
|
|
10422
|
-
HttpHeaderCodes2["ETag"] = "ETag";
|
|
10423
|
-
HttpHeaderCodes2["If_Match"] = "If-Match";
|
|
10424
|
-
HttpHeaderCodes2["If_None_Match"] = "If-None-Match";
|
|
10425
|
-
HttpHeaderCodes2["If_Modified_Since"] = "If-Modified-Since";
|
|
10426
|
-
HttpHeaderCodes2["If_Unmodified_Since"] = "If-Unmodified-Since";
|
|
10427
|
-
HttpHeaderCodes2["Vary"] = "Vary";
|
|
10428
|
-
HttpHeaderCodes2["Connection"] = "Connection";
|
|
10429
|
-
HttpHeaderCodes2["Keep_Alive"] = "Keep-Alive";
|
|
10430
|
-
HttpHeaderCodes2["Accept"] = "Accept";
|
|
10431
|
-
HttpHeaderCodes2["Accept_Encoding"] = "Accept-Encoding";
|
|
10432
|
-
HttpHeaderCodes2["Accept_Language"] = "Accept-Language";
|
|
10433
|
-
HttpHeaderCodes2["Expect"] = "Expect";
|
|
10434
|
-
HttpHeaderCodes2["Cookie"] = "Cookie";
|
|
10435
|
-
HttpHeaderCodes2["Set_Cookie"] = "Set-Cookie";
|
|
10436
|
-
HttpHeaderCodes2["Access_Control_Allow_Origin"] = "Access-Control-Allow-Origin";
|
|
10437
|
-
HttpHeaderCodes2["Access_Control_Allow_Credentials"] = "Access-Control-Allow-Credentials";
|
|
10438
|
-
HttpHeaderCodes2["Access_Control_Allow_Headers"] = "Access-Control-Allow-Headers";
|
|
10439
|
-
HttpHeaderCodes2["Access_Control_Allow_Methods"] = "Access-Control-Allow-Methods";
|
|
10440
|
-
HttpHeaderCodes2["Access_Control_Expose_Headers"] = "Access-Control-Expose-Headers";
|
|
10441
|
-
HttpHeaderCodes2["Access_Control_Max_Age"] = "Access-Control-Max-Age";
|
|
10442
|
-
HttpHeaderCodes2["Access_Control_Request_Headers"] = "Access-Control-Request-Headers";
|
|
10443
|
-
HttpHeaderCodes2["Access_Control_Request_Method"] = "Access-Control-Request-Method";
|
|
10444
|
-
HttpHeaderCodes2["Origin"] = "Origin";
|
|
10445
|
-
HttpHeaderCodes2["Timing_Allow_Origin"] = "Timing-Allow-Origin";
|
|
10446
|
-
HttpHeaderCodes2["Content_Disposition"] = "Content-Disposition";
|
|
10447
|
-
HttpHeaderCodes2["Content_ID"] = "Content-ID";
|
|
10448
|
-
HttpHeaderCodes2["Content_Length"] = "Content-Length";
|
|
10449
|
-
HttpHeaderCodes2["Content_Type"] = "Content-Type";
|
|
10450
|
-
HttpHeaderCodes2["Content_Transfer_Encoding"] = "Content-Transfer-Encoding";
|
|
10451
|
-
HttpHeaderCodes2["Content_Encoding"] = "Content-Encoding";
|
|
10452
|
-
HttpHeaderCodes2["Content_Language"] = "Content-Language";
|
|
10453
|
-
HttpHeaderCodes2["Content_Location"] = "Content-Location";
|
|
10454
|
-
HttpHeaderCodes2["Forwarded"] = "Forwarded";
|
|
10455
|
-
HttpHeaderCodes2["X_Forwarded_For"] = "X-Forwarded-For";
|
|
10456
|
-
HttpHeaderCodes2["X_Forwarded_Host"] = "X-Forwarded-Host";
|
|
10457
|
-
HttpHeaderCodes2["X_Forwarded_Proto"] = "X-Forwarded-Proto";
|
|
10458
|
-
HttpHeaderCodes2["Via"] = "Via";
|
|
10459
|
-
HttpHeaderCodes2["Location"] = "Location";
|
|
10460
|
-
HttpHeaderCodes2["From"] = "From";
|
|
10461
|
-
HttpHeaderCodes2["Host"] = "Host";
|
|
10462
|
-
HttpHeaderCodes2["Referer"] = "Referer";
|
|
10463
|
-
HttpHeaderCodes2["Referrer_Policy"] = "Referrer-Policy";
|
|
10464
|
-
HttpHeaderCodes2["User_Agent"] = "User-Agent";
|
|
10465
|
-
HttpHeaderCodes2["Allow"] = "Allow";
|
|
10466
|
-
HttpHeaderCodes2["Server"] = "Server";
|
|
10467
|
-
HttpHeaderCodes2["Accept_Ranges"] = "Accept-Ranges";
|
|
10468
|
-
HttpHeaderCodes2["Range"] = "Range";
|
|
10469
|
-
HttpHeaderCodes2["If_Range"] = "If-Range";
|
|
10470
|
-
HttpHeaderCodes2["Content_Range"] = "Content-Range";
|
|
10471
|
-
HttpHeaderCodes2["Cross_Origin_Embedder_Policy"] = "Cross-Origin-Embedder-Policy";
|
|
10472
|
-
HttpHeaderCodes2["Cross_Origin_Opener_Policy"] = "Cross-Origin-Opener-Policy";
|
|
10473
|
-
HttpHeaderCodes2["Cross_Origin_Resource_Policy"] = "Cross-Origin-Resource-Policy";
|
|
10474
|
-
HttpHeaderCodes2["Content_Security_Policy"] = "Content-Security-Policy";
|
|
10475
|
-
HttpHeaderCodes2["Content_Security_Policy_Report_Only"] = "Content-Security-Policy-Report-Only";
|
|
10476
|
-
HttpHeaderCodes2["Expect_CT"] = "Expect-CT";
|
|
10477
|
-
HttpHeaderCodes2["Feature_Policy"] = "Feature-Policy";
|
|
10478
|
-
HttpHeaderCodes2["Strict_Transport_Security"] = "Strict-Transport-Security";
|
|
10479
|
-
HttpHeaderCodes2["Upgrade"] = "Upgrade";
|
|
10480
|
-
HttpHeaderCodes2["Upgrade_Insecure_Requests"] = "Upgrade-Insecure-Requests";
|
|
10481
|
-
HttpHeaderCodes2["X_Content_Type_Options"] = "X-Content-Type-Options";
|
|
10482
|
-
HttpHeaderCodes2["X_Download_Options"] = "X-Download-Options";
|
|
10483
|
-
HttpHeaderCodes2["X_Frame_Options"] = "X-Frame-Options";
|
|
10484
|
-
HttpHeaderCodes2["X_Permitted_Cross_Domain_Policies"] = "X-Permitted-Cross-Domain-Policies";
|
|
10485
|
-
HttpHeaderCodes2["X_Powered_By"] = "X-Powered-By";
|
|
10486
|
-
HttpHeaderCodes2["X_XSS_Protection"] = "X-XSS-Protection";
|
|
10487
|
-
HttpHeaderCodes2["Transfer_Encoding"] = "Transfer-Encoding";
|
|
10488
|
-
HttpHeaderCodes2["TE"] = "TE";
|
|
10489
|
-
HttpHeaderCodes2["Trailer"] = "Trailer";
|
|
10490
|
-
HttpHeaderCodes2["Sec_WebSocket_Key"] = "Sec-WebSocket-Key";
|
|
10491
|
-
HttpHeaderCodes2["Sec_WebSocket_Extensions"] = "Sec-WebSocket-Extensions";
|
|
10492
|
-
HttpHeaderCodes2["Sec_WebSocket_Accept"] = "Sec-WebSocket-Accept";
|
|
10493
|
-
HttpHeaderCodes2["Sec_WebSocket_Protocol"] = "Sec-WebSocket-Protocol";
|
|
10494
|
-
HttpHeaderCodes2["Sec_WebSocket_Version"] = "Sec-WebSocket-Version";
|
|
10495
|
-
HttpHeaderCodes2["Date"] = "Date";
|
|
10496
|
-
HttpHeaderCodes2["Retry_After"] = "Retry-After";
|
|
10497
|
-
HttpHeaderCodes2["Server_Timing"] = "Server-Timing";
|
|
10498
|
-
HttpHeaderCodes2["X_DNS_Prefetch_Control"] = "X-DNS-Prefetch-Control";
|
|
10499
|
-
HttpHeaderCodes2["Max_Forwards"] = "Max-Forwards";
|
|
10500
|
-
})(HttpHeaderCodes || (HttpHeaderCodes = {}));
|
|
10501
|
-
|
|
10502
|
-
// ../../build/common/esm/http/http-headers.js
|
|
10503
|
-
var _a3;
|
|
10504
|
-
var knownKeys = Object.values(HttpHeaderCodes);
|
|
10505
|
-
var knownKeysLower = knownKeys.map((x) => x.toLowerCase());
|
|
10506
|
-
var nodeInspectCustom2 = Symbol.for("nodejs.util.inspect.custom");
|
|
10507
|
-
var kEntries = Symbol("kEntries");
|
|
10508
|
-
var kOptions2 = Symbol("kOptions");
|
|
10509
|
-
var HttpHeaders = class _HttpHeaders {
|
|
10510
|
-
static {
|
|
10511
|
-
__name(this, "HttpHeaders");
|
|
10512
|
-
}
|
|
10513
|
-
constructor(init, options) {
|
|
10514
|
-
this[_a3] = new ResponsiveMap();
|
|
10515
|
-
this[kOptions2] = { ...options, onChange: void 0 };
|
|
10516
|
-
if (init) {
|
|
10517
|
-
if (typeof init === "string")
|
|
10518
|
-
this.parse(init);
|
|
10519
|
-
else
|
|
10520
|
-
this.set(init);
|
|
10521
|
-
}
|
|
10522
|
-
this[kOptions2].onChange = options?.onChange;
|
|
10523
|
-
}
|
|
10524
|
-
get size() {
|
|
10525
|
-
return this[kEntries].size;
|
|
10526
|
-
}
|
|
10527
|
-
/**
|
|
10528
|
-
* Appends a new value to the existing set of values for a header
|
|
10529
|
-
* and returns this instance
|
|
10530
|
-
*/
|
|
10531
|
-
append(name, value) {
|
|
10532
|
-
this._append(name, value);
|
|
10533
|
-
this.changed();
|
|
10534
|
-
return this;
|
|
10535
|
-
}
|
|
10536
|
-
/**
|
|
10537
|
-
* Appends multiple values to the existing set of values for a header
|
|
10538
|
-
* and returns this instance
|
|
10539
|
-
*/
|
|
10540
|
-
appendAll(headers) {
|
|
10541
|
-
if (headers.forEach && typeof headers.forEach === "function")
|
|
10542
|
-
headers.forEach((value, name) => this._append(name, value));
|
|
10543
|
-
else
|
|
10544
|
-
Object.keys(headers).forEach((name) => this._append(name, headers[name]));
|
|
10545
|
-
this.changed();
|
|
10546
|
-
return this;
|
|
10547
|
-
}
|
|
10548
|
-
set(arg0, arg1) {
|
|
10549
|
-
if (typeof arg0 === "object") {
|
|
10550
|
-
if (arg0.forEach && typeof arg0.forEach === "function")
|
|
10551
|
-
arg0.forEach((value, name) => this._set(name, value));
|
|
10552
|
-
else
|
|
10553
|
-
Object.keys(arg0).forEach((name) => this._set(name, arg0[name]));
|
|
10554
|
-
} else {
|
|
10555
|
-
if (!arg1 && arg1 !== 0)
|
|
10556
|
-
this[kEntries].delete(arg0);
|
|
10557
|
-
else
|
|
10558
|
-
this._set(arg0, arg1);
|
|
10559
|
-
}
|
|
10560
|
-
this.changed();
|
|
10561
|
-
return this;
|
|
10562
|
-
}
|
|
10563
|
-
parse(init) {
|
|
10564
|
-
this.clear();
|
|
10565
|
-
init.split("\n").forEach((line) => {
|
|
10566
|
-
const index = line.indexOf(":");
|
|
10567
|
-
if (index > 0) {
|
|
10568
|
-
const name = line.slice(0, index);
|
|
10569
|
-
const value = line.slice(index + 1).trim();
|
|
10570
|
-
if (_HttpHeaders.NON_DELIMITED_HEADERS[name])
|
|
10571
|
-
this._append(name, value);
|
|
10572
|
-
else if (_HttpHeaders.SEMICOLON_DELIMITED_HEADERS[name]) {
|
|
10573
|
-
const a = value.split(";");
|
|
10574
|
-
this._append(name, a.length > 1 ? a : value);
|
|
10575
|
-
} else {
|
|
10576
|
-
const a = value.split(",");
|
|
10577
|
-
this._append(name, a.length > 1 ? a : value);
|
|
10578
|
-
}
|
|
10579
|
-
}
|
|
10580
|
-
});
|
|
10581
|
-
}
|
|
10582
|
-
/**
|
|
10583
|
-
* Retrieves value of a given header
|
|
10584
|
-
*/
|
|
10585
|
-
get(name) {
|
|
10586
|
-
return this[kEntries].get(name);
|
|
10587
|
-
}
|
|
10588
|
-
clear() {
|
|
10589
|
-
if (this[kEntries].size) {
|
|
10590
|
-
this[kEntries].clear();
|
|
10591
|
-
this.changed();
|
|
10592
|
-
}
|
|
10593
|
-
}
|
|
10594
|
-
/**
|
|
10595
|
-
* Deletes a header entry
|
|
10596
|
-
*/
|
|
10597
|
-
delete(name) {
|
|
10598
|
-
if (this[kEntries].delete(name)) {
|
|
10599
|
-
this.changed();
|
|
10600
|
-
return true;
|
|
10601
|
-
}
|
|
10602
|
-
return false;
|
|
10603
|
-
}
|
|
10604
|
-
/**
|
|
10605
|
-
* Returns an iterable of key, value pairs for every entry in the map.
|
|
10606
|
-
*/
|
|
10607
|
-
entries() {
|
|
10608
|
-
return this[kEntries].entries();
|
|
10609
|
-
}
|
|
10610
|
-
forEach(callbackFn, thisArg) {
|
|
10611
|
-
const iterator = this.entries();
|
|
10612
|
-
let entry = iterator.next();
|
|
10613
|
-
let v;
|
|
10614
|
-
while (!entry.done) {
|
|
10615
|
-
v = entry.value[1];
|
|
10616
|
-
callbackFn.call(thisArg || this, Array.isArray(v) ? v.join(";") : String(v), entry.value[0], this);
|
|
10617
|
-
entry = iterator.next();
|
|
10618
|
-
}
|
|
10619
|
-
}
|
|
10620
|
-
/**
|
|
10621
|
-
* Retrieves the names of the headers.
|
|
10622
|
-
*/
|
|
10623
|
-
keys() {
|
|
10624
|
-
return this[kEntries].keys();
|
|
10625
|
-
}
|
|
10626
|
-
/**
|
|
10627
|
-
* Checks for existence of a given header.
|
|
10628
|
-
*/
|
|
10629
|
-
has(name) {
|
|
10630
|
-
return this[kEntries].has(name);
|
|
10631
|
-
}
|
|
10632
|
-
sort(compareFn) {
|
|
10633
|
-
this[kEntries].sort(compareFn);
|
|
10634
|
-
this.changed();
|
|
10635
|
-
return this;
|
|
10636
|
-
}
|
|
10637
|
-
toObject() {
|
|
10638
|
-
const out = {};
|
|
10639
|
-
for (const [k, v] of this.entries())
|
|
10640
|
-
out[k] = Array.isArray(v) ? v.join(";") : String(v);
|
|
10641
|
-
return out;
|
|
10642
|
-
}
|
|
10643
|
-
getProxy() {
|
|
10644
|
-
const _this = this;
|
|
10645
|
-
return this[kEntries].getProxy({
|
|
10646
|
-
set(target, p, newValue, receiver) {
|
|
10647
|
-
if (typeof p === "string") {
|
|
10648
|
-
_this.set(p, newValue);
|
|
10649
|
-
return true;
|
|
10650
|
-
}
|
|
10651
|
-
return Reflect.set(target, p, newValue, receiver);
|
|
10652
|
-
}
|
|
10653
|
-
});
|
|
10654
|
-
}
|
|
10655
|
-
[(_a3 = kEntries, nodeInspectCustom2)]() {
|
|
10656
|
-
return this[kEntries];
|
|
10657
|
-
}
|
|
10658
|
-
[Symbol.iterator]() {
|
|
10659
|
-
return this.entries();
|
|
10660
|
-
}
|
|
10661
|
-
get [Symbol.toStringTag]() {
|
|
10662
|
-
return "HttpHeaders";
|
|
10663
|
-
}
|
|
10664
|
-
_append(name, value) {
|
|
10665
|
-
const i = knownKeysLower.indexOf(name.toLowerCase());
|
|
10666
|
-
const normalizedName = knownKeys[i] || name;
|
|
10667
|
-
name = name.toLowerCase();
|
|
10668
|
-
let stored = this[kEntries].get(normalizedName);
|
|
10669
|
-
if (_HttpHeaders.NON_DELIMITED_HEADERS[name]) {
|
|
10670
|
-
value = String(Array.isArray(value) ? value[0] : value);
|
|
10671
|
-
this[kEntries].set(normalizedName, value);
|
|
10672
|
-
return;
|
|
10673
|
-
}
|
|
10674
|
-
if (_HttpHeaders.ARRAY_HEADERS[name]) {
|
|
10675
|
-
stored = (stored ? [stored, value] : [value]).flat().map(String);
|
|
10676
|
-
this[kEntries].set(normalizedName, stored);
|
|
10677
|
-
return;
|
|
10678
|
-
}
|
|
10679
|
-
const arr = stored ? [stored] : [];
|
|
10680
|
-
if (Array.isArray(value))
|
|
10681
|
-
arr.push(...value);
|
|
10682
|
-
else
|
|
10683
|
-
arr.push(value);
|
|
10684
|
-
this[kEntries].set(normalizedName, arr.join(_HttpHeaders.SEMICOLON_DELIMITED_HEADERS[name] ? "; " : ", "));
|
|
10685
|
-
}
|
|
10686
|
-
_set(name, value) {
|
|
10687
|
-
this[kEntries].delete(name);
|
|
10688
|
-
if (!value && value !== 0)
|
|
10689
|
-
return;
|
|
10690
|
-
this._append(name, value);
|
|
10691
|
-
}
|
|
10692
|
-
changed() {
|
|
10693
|
-
if (this[kOptions2].onChange)
|
|
10694
|
-
this[kOptions2].onChange();
|
|
10695
|
-
}
|
|
10696
|
-
};
|
|
10697
|
-
HttpHeaders.kEntries = kEntries;
|
|
10698
|
-
HttpHeaders.kOptions = kOptions2;
|
|
10699
|
-
HttpHeaders.NON_DELIMITED_HEADERS = {
|
|
10700
|
-
"age": true,
|
|
10701
|
-
"from": true,
|
|
10702
|
-
"etag": true,
|
|
10703
|
-
"server": true,
|
|
10704
|
-
"referer": true,
|
|
10705
|
-
"expires": true,
|
|
10706
|
-
"location": true,
|
|
10707
|
-
"user-agent": true,
|
|
10708
|
-
"retry-after": true,
|
|
10709
|
-
"content-type": true,
|
|
10710
|
-
"content-length": true,
|
|
10711
|
-
"max-forwards": true,
|
|
10712
|
-
"last-modified": true,
|
|
10713
|
-
"authorization": true,
|
|
10714
|
-
"proxy-authorization": true,
|
|
10715
|
-
"if-modified-since": true,
|
|
10716
|
-
"if-unmodified-since": true
|
|
10717
|
-
};
|
|
10718
|
-
HttpHeaders.SEMICOLON_DELIMITED_HEADERS = { "cookie": true };
|
|
10719
|
-
HttpHeaders.ARRAY_HEADERS = { "set-cookie": true };
|
|
10720
|
-
|
|
10721
10517
|
// ../../build/common/esm/http/http-params.js
|
|
10722
10518
|
import { splitString as splitString2, tokenize as tokenize2 } from "fast-tokenizer";
|
|
10723
10519
|
|
|
@@ -10867,28 +10663,28 @@ var StringCodec = class {
|
|
|
10867
10663
|
};
|
|
10868
10664
|
|
|
10869
10665
|
// ../../build/common/esm/http/http-params.js
|
|
10870
|
-
var
|
|
10666
|
+
var _a3;
|
|
10871
10667
|
var _b2;
|
|
10872
10668
|
var _c2;
|
|
10873
|
-
var
|
|
10669
|
+
var kEntries = Symbol("kEntries");
|
|
10874
10670
|
var kSize = Symbol("kSize");
|
|
10875
10671
|
var kParamDefs = Symbol("kParamDefs");
|
|
10876
|
-
var
|
|
10672
|
+
var kOptions2 = Symbol("kOptions");
|
|
10877
10673
|
var HttpParams = class _HttpParams {
|
|
10878
10674
|
static {
|
|
10879
10675
|
__name(this, "HttpParams");
|
|
10880
10676
|
}
|
|
10881
10677
|
constructor(init, options) {
|
|
10882
|
-
this[
|
|
10678
|
+
this[_a3] = new ResponsiveMap();
|
|
10883
10679
|
this[_b2] = 0;
|
|
10884
10680
|
this[_c2] = /* @__PURE__ */ new Map();
|
|
10885
|
-
this[
|
|
10681
|
+
this[kOptions2] = { ...options, onChange: void 0 };
|
|
10886
10682
|
const defineParams = options?.params;
|
|
10887
10683
|
if (defineParams)
|
|
10888
10684
|
Object.keys(defineParams).forEach((key) => this.define(key, defineParams[key]));
|
|
10889
10685
|
if (init)
|
|
10890
10686
|
this.appendAll(init);
|
|
10891
|
-
this[
|
|
10687
|
+
this[kOptions2].onChange = options?.onChange;
|
|
10892
10688
|
}
|
|
10893
10689
|
get size() {
|
|
10894
10690
|
return this[kSize];
|
|
@@ -10928,12 +10724,12 @@ var HttpParams = class _HttpParams {
|
|
|
10928
10724
|
return this;
|
|
10929
10725
|
}
|
|
10930
10726
|
changed() {
|
|
10931
|
-
if (this[
|
|
10932
|
-
this[
|
|
10727
|
+
if (this[kOptions2].onChange)
|
|
10728
|
+
this[kOptions2].onChange();
|
|
10933
10729
|
}
|
|
10934
10730
|
clear() {
|
|
10935
|
-
if (this[
|
|
10936
|
-
this[
|
|
10731
|
+
if (this[kEntries].size) {
|
|
10732
|
+
this[kEntries].clear();
|
|
10937
10733
|
this[kSize] = 0;
|
|
10938
10734
|
this.changed();
|
|
10939
10735
|
}
|
|
@@ -10950,7 +10746,7 @@ var HttpParams = class _HttpParams {
|
|
|
10950
10746
|
* Returns an iterable of key, value pairs for every entry in the map.
|
|
10951
10747
|
*/
|
|
10952
10748
|
entries() {
|
|
10953
|
-
const iter = this[
|
|
10749
|
+
const iter = this[kEntries].entries();
|
|
10954
10750
|
let i = 0;
|
|
10955
10751
|
let key;
|
|
10956
10752
|
let values;
|
|
@@ -10991,21 +10787,21 @@ var HttpParams = class _HttpParams {
|
|
|
10991
10787
|
* Retrieves value of a given parameter at given index
|
|
10992
10788
|
*/
|
|
10993
10789
|
get(name, index = 0) {
|
|
10994
|
-
const values = this[
|
|
10790
|
+
const values = this[kEntries].get(name);
|
|
10995
10791
|
return values && values.length > index ? values[index] : null;
|
|
10996
10792
|
}
|
|
10997
10793
|
/**
|
|
10998
10794
|
* Retrieves an array of values for a given parameter.
|
|
10999
10795
|
*/
|
|
11000
10796
|
getAll(name) {
|
|
11001
|
-
const entry = this[
|
|
10797
|
+
const entry = this[kEntries].get(name);
|
|
11002
10798
|
return entry ? entry.slice(0) : null;
|
|
11003
10799
|
}
|
|
11004
10800
|
/**
|
|
11005
10801
|
* Retrieves the names of the parameters.
|
|
11006
10802
|
*/
|
|
11007
10803
|
keys() {
|
|
11008
|
-
return this[
|
|
10804
|
+
return this[kEntries].keys();
|
|
11009
10805
|
}
|
|
11010
10806
|
/**
|
|
11011
10807
|
* Retrieves the names of the parameters.
|
|
@@ -11019,7 +10815,7 @@ var HttpParams = class _HttpParams {
|
|
|
11019
10815
|
* Checks for existence of a parameter.
|
|
11020
10816
|
*/
|
|
11021
10817
|
has(name) {
|
|
11022
|
-
return this[
|
|
10818
|
+
return this[kEntries].has(name);
|
|
11023
10819
|
}
|
|
11024
10820
|
/**
|
|
11025
10821
|
* Sets or modifies a value for a given parameter.
|
|
@@ -11031,7 +10827,7 @@ var HttpParams = class _HttpParams {
|
|
|
11031
10827
|
return this;
|
|
11032
10828
|
}
|
|
11033
10829
|
sort(compareFn) {
|
|
11034
|
-
this[
|
|
10830
|
+
this[kEntries].sort(compareFn);
|
|
11035
10831
|
this.changed();
|
|
11036
10832
|
return this;
|
|
11037
10833
|
}
|
|
@@ -11048,10 +10844,10 @@ var HttpParams = class _HttpParams {
|
|
|
11048
10844
|
}
|
|
11049
10845
|
getProxy() {
|
|
11050
10846
|
const _this = this;
|
|
11051
|
-
return this[
|
|
10847
|
+
return this[kEntries].getProxy({
|
|
11052
10848
|
get(target, p, receiver) {
|
|
11053
10849
|
if (typeof p === "string") {
|
|
11054
|
-
const v = _this[
|
|
10850
|
+
const v = _this[kEntries].get(p);
|
|
11055
10851
|
return v ? v.length > 1 ? v : v[0] : null;
|
|
11056
10852
|
}
|
|
11057
10853
|
return Reflect.get(target, p, receiver);
|
|
@@ -11123,32 +10919,32 @@ var HttpParams = class _HttpParams {
|
|
|
11123
10919
|
}
|
|
11124
10920
|
return decodeURIComponent(value);
|
|
11125
10921
|
}
|
|
11126
|
-
[(
|
|
10922
|
+
[(_a3 = kEntries, _b2 = kSize, _c2 = kParamDefs, Symbol.iterator)]() {
|
|
11127
10923
|
return this.entries();
|
|
11128
10924
|
}
|
|
11129
10925
|
get [Symbol.toStringTag]() {
|
|
11130
10926
|
return "HttpParams";
|
|
11131
10927
|
}
|
|
11132
10928
|
_append(name, value) {
|
|
11133
|
-
let values = this[
|
|
10929
|
+
let values = this[kEntries].get(name);
|
|
11134
10930
|
if (!values) {
|
|
11135
10931
|
values = [];
|
|
11136
|
-
this[
|
|
10932
|
+
this[kEntries].set(name, values);
|
|
11137
10933
|
}
|
|
11138
10934
|
values.push(value ?? null);
|
|
11139
10935
|
this[kSize] += 1;
|
|
11140
10936
|
}
|
|
11141
10937
|
_delete(name, value) {
|
|
11142
|
-
const oldValues = this[
|
|
10938
|
+
const oldValues = this[kEntries].get(name);
|
|
11143
10939
|
if (!oldValues)
|
|
11144
10940
|
return false;
|
|
11145
10941
|
const oldSize = this[kSize];
|
|
11146
10942
|
if (value) {
|
|
11147
10943
|
const newValues = oldValues.filter((x) => x === value);
|
|
11148
|
-
this[
|
|
10944
|
+
this[kEntries].set(name, newValues);
|
|
11149
10945
|
this[kSize] += -oldValues.length + newValues.length;
|
|
11150
10946
|
} else {
|
|
11151
|
-
this[
|
|
10947
|
+
this[kEntries].delete(name);
|
|
11152
10948
|
this[kSize] -= oldValues.length;
|
|
11153
10949
|
}
|
|
11154
10950
|
return oldSize !== this[kSize];
|
|
@@ -11158,14 +10954,14 @@ var HttpParams = class _HttpParams {
|
|
|
11158
10954
|
this._delete(name);
|
|
11159
10955
|
return;
|
|
11160
10956
|
}
|
|
11161
|
-
const values = this[
|
|
10957
|
+
const values = this[kEntries].get(name);
|
|
11162
10958
|
if (!values) {
|
|
11163
|
-
this[
|
|
10959
|
+
this[kEntries].set(name, [value]);
|
|
11164
10960
|
this[kSize] += 1;
|
|
11165
10961
|
return;
|
|
11166
10962
|
}
|
|
11167
10963
|
if (index == null || index < 0) {
|
|
11168
|
-
this[
|
|
10964
|
+
this[kEntries].set(name, [value]);
|
|
11169
10965
|
this[kSize] += -values.length + 1;
|
|
11170
10966
|
return;
|
|
11171
10967
|
}
|
|
@@ -11174,10 +10970,10 @@ var HttpParams = class _HttpParams {
|
|
|
11174
10970
|
this[kSize] += -oldLen + values.length;
|
|
11175
10971
|
}
|
|
11176
10972
|
};
|
|
11177
|
-
HttpParams.kEntries =
|
|
10973
|
+
HttpParams.kEntries = kEntries;
|
|
11178
10974
|
HttpParams.kSize = kSize;
|
|
11179
10975
|
HttpParams.kParamDefs = kParamDefs;
|
|
11180
|
-
HttpParams.kOptions =
|
|
10976
|
+
HttpParams.kOptions = kOptions2;
|
|
11181
10977
|
HttpParams.codecs = {
|
|
11182
10978
|
"boolean": new BooleanCodec(),
|
|
11183
10979
|
"date": new DateCodec(),
|
|
@@ -11202,6 +10998,103 @@ function encodeURIParam(v) {
|
|
|
11202
10998
|
}
|
|
11203
10999
|
__name(encodeURIParam, "encodeURIParam");
|
|
11204
11000
|
|
|
11001
|
+
// ../../build/common/esm/http/enums/http-headers-codes.enum.js
|
|
11002
|
+
var HttpHeaderCodes;
|
|
11003
|
+
(function(HttpHeaderCodes2) {
|
|
11004
|
+
HttpHeaderCodes2["X_Opra_Version"] = "X-OPRA-Version";
|
|
11005
|
+
HttpHeaderCodes2["X_Opra_Data_Type"] = "X-OPRA-Data-Type";
|
|
11006
|
+
HttpHeaderCodes2["X_Opra_Operation"] = "X-OPRA-Operation";
|
|
11007
|
+
HttpHeaderCodes2["X_Opra_Total_Matches"] = "X-OPRA-Total-Matches";
|
|
11008
|
+
HttpHeaderCodes2["WWW_Authenticate"] = "WWW-Authenticate";
|
|
11009
|
+
HttpHeaderCodes2["Authorization"] = "Authorization";
|
|
11010
|
+
HttpHeaderCodes2["Proxy_Authenticate"] = "Proxy-Authenticate";
|
|
11011
|
+
HttpHeaderCodes2["Proxy_Authorization"] = "Proxy-Authorization";
|
|
11012
|
+
HttpHeaderCodes2["Age"] = "Age";
|
|
11013
|
+
HttpHeaderCodes2["Cache_Control"] = "Cache-Control";
|
|
11014
|
+
HttpHeaderCodes2["Clear_Site_Data"] = "Clear-Site-Data";
|
|
11015
|
+
HttpHeaderCodes2["Expires"] = "Expires";
|
|
11016
|
+
HttpHeaderCodes2["Pragma"] = "Pragma";
|
|
11017
|
+
HttpHeaderCodes2["Last_Modified"] = "Last-Modified";
|
|
11018
|
+
HttpHeaderCodes2["ETag"] = "ETag";
|
|
11019
|
+
HttpHeaderCodes2["If_Match"] = "If-Match";
|
|
11020
|
+
HttpHeaderCodes2["If_None_Match"] = "If-None-Match";
|
|
11021
|
+
HttpHeaderCodes2["If_Modified_Since"] = "If-Modified-Since";
|
|
11022
|
+
HttpHeaderCodes2["If_Unmodified_Since"] = "If-Unmodified-Since";
|
|
11023
|
+
HttpHeaderCodes2["Vary"] = "Vary";
|
|
11024
|
+
HttpHeaderCodes2["Connection"] = "Connection";
|
|
11025
|
+
HttpHeaderCodes2["Keep_Alive"] = "Keep-Alive";
|
|
11026
|
+
HttpHeaderCodes2["Accept"] = "Accept";
|
|
11027
|
+
HttpHeaderCodes2["Accept_Encoding"] = "Accept-Encoding";
|
|
11028
|
+
HttpHeaderCodes2["Accept_Language"] = "Accept-Language";
|
|
11029
|
+
HttpHeaderCodes2["Expect"] = "Expect";
|
|
11030
|
+
HttpHeaderCodes2["Cookie"] = "Cookie";
|
|
11031
|
+
HttpHeaderCodes2["Set_Cookie"] = "Set-Cookie";
|
|
11032
|
+
HttpHeaderCodes2["Access_Control_Allow_Origin"] = "Access-Control-Allow-Origin";
|
|
11033
|
+
HttpHeaderCodes2["Access_Control_Allow_Credentials"] = "Access-Control-Allow-Credentials";
|
|
11034
|
+
HttpHeaderCodes2["Access_Control_Allow_Headers"] = "Access-Control-Allow-Headers";
|
|
11035
|
+
HttpHeaderCodes2["Access_Control_Allow_Methods"] = "Access-Control-Allow-Methods";
|
|
11036
|
+
HttpHeaderCodes2["Access_Control_Expose_Headers"] = "Access-Control-Expose-Headers";
|
|
11037
|
+
HttpHeaderCodes2["Access_Control_Max_Age"] = "Access-Control-Max-Age";
|
|
11038
|
+
HttpHeaderCodes2["Access_Control_Request_Headers"] = "Access-Control-Request-Headers";
|
|
11039
|
+
HttpHeaderCodes2["Access_Control_Request_Method"] = "Access-Control-Request-Method";
|
|
11040
|
+
HttpHeaderCodes2["Origin"] = "Origin";
|
|
11041
|
+
HttpHeaderCodes2["Timing_Allow_Origin"] = "Timing-Allow-Origin";
|
|
11042
|
+
HttpHeaderCodes2["Content_Disposition"] = "Content-Disposition";
|
|
11043
|
+
HttpHeaderCodes2["Content_ID"] = "Content-ID";
|
|
11044
|
+
HttpHeaderCodes2["Content_Length"] = "Content-Length";
|
|
11045
|
+
HttpHeaderCodes2["Content_Type"] = "Content-Type";
|
|
11046
|
+
HttpHeaderCodes2["Content_Transfer_Encoding"] = "Content-Transfer-Encoding";
|
|
11047
|
+
HttpHeaderCodes2["Content_Encoding"] = "Content-Encoding";
|
|
11048
|
+
HttpHeaderCodes2["Content_Language"] = "Content-Language";
|
|
11049
|
+
HttpHeaderCodes2["Content_Location"] = "Content-Location";
|
|
11050
|
+
HttpHeaderCodes2["Forwarded"] = "Forwarded";
|
|
11051
|
+
HttpHeaderCodes2["X_Forwarded_For"] = "X-Forwarded-For";
|
|
11052
|
+
HttpHeaderCodes2["X_Forwarded_Host"] = "X-Forwarded-Host";
|
|
11053
|
+
HttpHeaderCodes2["X_Forwarded_Proto"] = "X-Forwarded-Proto";
|
|
11054
|
+
HttpHeaderCodes2["Via"] = "Via";
|
|
11055
|
+
HttpHeaderCodes2["Location"] = "Location";
|
|
11056
|
+
HttpHeaderCodes2["From"] = "From";
|
|
11057
|
+
HttpHeaderCodes2["Host"] = "Host";
|
|
11058
|
+
HttpHeaderCodes2["Referer"] = "Referer";
|
|
11059
|
+
HttpHeaderCodes2["Referrer_Policy"] = "Referrer-Policy";
|
|
11060
|
+
HttpHeaderCodes2["User_Agent"] = "User-Agent";
|
|
11061
|
+
HttpHeaderCodes2["Allow"] = "Allow";
|
|
11062
|
+
HttpHeaderCodes2["Server"] = "Server";
|
|
11063
|
+
HttpHeaderCodes2["Accept_Ranges"] = "Accept-Ranges";
|
|
11064
|
+
HttpHeaderCodes2["Range"] = "Range";
|
|
11065
|
+
HttpHeaderCodes2["If_Range"] = "If-Range";
|
|
11066
|
+
HttpHeaderCodes2["Content_Range"] = "Content-Range";
|
|
11067
|
+
HttpHeaderCodes2["Cross_Origin_Embedder_Policy"] = "Cross-Origin-Embedder-Policy";
|
|
11068
|
+
HttpHeaderCodes2["Cross_Origin_Opener_Policy"] = "Cross-Origin-Opener-Policy";
|
|
11069
|
+
HttpHeaderCodes2["Cross_Origin_Resource_Policy"] = "Cross-Origin-Resource-Policy";
|
|
11070
|
+
HttpHeaderCodes2["Content_Security_Policy"] = "Content-Security-Policy";
|
|
11071
|
+
HttpHeaderCodes2["Content_Security_Policy_Report_Only"] = "Content-Security-Policy-Report-Only";
|
|
11072
|
+
HttpHeaderCodes2["Expect_CT"] = "Expect-CT";
|
|
11073
|
+
HttpHeaderCodes2["Feature_Policy"] = "Feature-Policy";
|
|
11074
|
+
HttpHeaderCodes2["Strict_Transport_Security"] = "Strict-Transport-Security";
|
|
11075
|
+
HttpHeaderCodes2["Upgrade"] = "Upgrade";
|
|
11076
|
+
HttpHeaderCodes2["Upgrade_Insecure_Requests"] = "Upgrade-Insecure-Requests";
|
|
11077
|
+
HttpHeaderCodes2["X_Content_Type_Options"] = "X-Content-Type-Options";
|
|
11078
|
+
HttpHeaderCodes2["X_Download_Options"] = "X-Download-Options";
|
|
11079
|
+
HttpHeaderCodes2["X_Frame_Options"] = "X-Frame-Options";
|
|
11080
|
+
HttpHeaderCodes2["X_Permitted_Cross_Domain_Policies"] = "X-Permitted-Cross-Domain-Policies";
|
|
11081
|
+
HttpHeaderCodes2["X_Powered_By"] = "X-Powered-By";
|
|
11082
|
+
HttpHeaderCodes2["X_XSS_Protection"] = "X-XSS-Protection";
|
|
11083
|
+
HttpHeaderCodes2["Transfer_Encoding"] = "Transfer-Encoding";
|
|
11084
|
+
HttpHeaderCodes2["TE"] = "TE";
|
|
11085
|
+
HttpHeaderCodes2["Trailer"] = "Trailer";
|
|
11086
|
+
HttpHeaderCodes2["Sec_WebSocket_Key"] = "Sec-WebSocket-Key";
|
|
11087
|
+
HttpHeaderCodes2["Sec_WebSocket_Extensions"] = "Sec-WebSocket-Extensions";
|
|
11088
|
+
HttpHeaderCodes2["Sec_WebSocket_Accept"] = "Sec-WebSocket-Accept";
|
|
11089
|
+
HttpHeaderCodes2["Sec_WebSocket_Protocol"] = "Sec-WebSocket-Protocol";
|
|
11090
|
+
HttpHeaderCodes2["Sec_WebSocket_Version"] = "Sec-WebSocket-Version";
|
|
11091
|
+
HttpHeaderCodes2["Date"] = "Date";
|
|
11092
|
+
HttpHeaderCodes2["Retry_After"] = "Retry-After";
|
|
11093
|
+
HttpHeaderCodes2["Server_Timing"] = "Server-Timing";
|
|
11094
|
+
HttpHeaderCodes2["X_DNS_Prefetch_Control"] = "X-DNS-Prefetch-Control";
|
|
11095
|
+
HttpHeaderCodes2["Max_Forwards"] = "Max-Forwards";
|
|
11096
|
+
})(HttpHeaderCodes || (HttpHeaderCodes = {}));
|
|
11097
|
+
|
|
11205
11098
|
// ../../build/common/esm/http/enums/http-status-codes.enum.js
|
|
11206
11099
|
var HttpStatusCodes;
|
|
11207
11100
|
(function(HttpStatusCodes2) {
|
|
@@ -11382,7 +11275,7 @@ function encodePathComponent(resource, key, typeCast) {
|
|
|
11382
11275
|
__name(encodePathComponent, "encodePathComponent");
|
|
11383
11276
|
|
|
11384
11277
|
// ../../build/common/esm/url/opra-url-path-component.js
|
|
11385
|
-
var
|
|
11278
|
+
var nodeInspectCustom2 = Symbol.for("nodejs.util.inspect.custom");
|
|
11386
11279
|
var OpraURLPathComponent = class _OpraURLPathComponent {
|
|
11387
11280
|
static {
|
|
11388
11281
|
__name(this, "OpraURLPathComponent");
|
|
@@ -11399,7 +11292,7 @@ var OpraURLPathComponent = class _OpraURLPathComponent {
|
|
|
11399
11292
|
return obj;
|
|
11400
11293
|
}
|
|
11401
11294
|
/* istanbul ignore next */
|
|
11402
|
-
[
|
|
11295
|
+
[nodeInspectCustom2]() {
|
|
11403
11296
|
const out = {
|
|
11404
11297
|
resource: this.resource
|
|
11405
11298
|
};
|
|
@@ -11448,45 +11341,45 @@ function decodePathComponent(input) {
|
|
|
11448
11341
|
__name(decodePathComponent, "decodePathComponent");
|
|
11449
11342
|
|
|
11450
11343
|
// ../../build/common/esm/url/opra-url-path.js
|
|
11451
|
-
var
|
|
11452
|
-
var
|
|
11453
|
-
var
|
|
11454
|
-
var
|
|
11344
|
+
var _a4;
|
|
11345
|
+
var nodeInspectCustom3 = Symbol.for("nodejs.util.inspect.custom");
|
|
11346
|
+
var kEntries2 = Symbol("kEntries");
|
|
11347
|
+
var kOptions3 = Symbol("kOptions");
|
|
11455
11348
|
var OpraURLPath = class _OpraURLPath {
|
|
11456
11349
|
static {
|
|
11457
11350
|
__name(this, "OpraURLPath");
|
|
11458
11351
|
}
|
|
11459
11352
|
constructor(init, options) {
|
|
11460
|
-
this[
|
|
11461
|
-
this[
|
|
11353
|
+
this[_a4] = [];
|
|
11354
|
+
this[kOptions3] = { ...options, onChange: void 0 };
|
|
11462
11355
|
if (Array.isArray(init))
|
|
11463
11356
|
this.join(...init);
|
|
11464
11357
|
else if (init)
|
|
11465
11358
|
this.join(init);
|
|
11466
|
-
this[
|
|
11359
|
+
this[kOptions3].onChange = options?.onChange;
|
|
11467
11360
|
}
|
|
11468
11361
|
get size() {
|
|
11469
|
-
return this[
|
|
11362
|
+
return this[kEntries2].length;
|
|
11470
11363
|
}
|
|
11471
11364
|
changed() {
|
|
11472
|
-
if (this[
|
|
11473
|
-
this[
|
|
11365
|
+
if (this[kOptions3].onChange)
|
|
11366
|
+
this[kOptions3].onChange();
|
|
11474
11367
|
}
|
|
11475
11368
|
clear() {
|
|
11476
|
-
this[
|
|
11369
|
+
this[kEntries2] = [];
|
|
11477
11370
|
this.changed();
|
|
11478
11371
|
}
|
|
11479
11372
|
get(index) {
|
|
11480
|
-
return this[
|
|
11373
|
+
return this[kEntries2][index];
|
|
11481
11374
|
}
|
|
11482
11375
|
join(...source) {
|
|
11483
|
-
source.forEach((x) => this._join(this[
|
|
11376
|
+
source.forEach((x) => this._join(this[kEntries2], x));
|
|
11484
11377
|
this.changed();
|
|
11485
11378
|
return this;
|
|
11486
11379
|
}
|
|
11487
11380
|
entries() {
|
|
11488
11381
|
let i = -1;
|
|
11489
|
-
const arr = [...this[
|
|
11382
|
+
const arr = [...this[kEntries2]];
|
|
11490
11383
|
return {
|
|
11491
11384
|
[Symbol.iterator]() {
|
|
11492
11385
|
return this;
|
|
@@ -11501,45 +11394,45 @@ var OpraURLPath = class _OpraURLPath {
|
|
|
11501
11394
|
};
|
|
11502
11395
|
}
|
|
11503
11396
|
forEach(callback) {
|
|
11504
|
-
for (const item of this[
|
|
11397
|
+
for (const item of this[kEntries2]) {
|
|
11505
11398
|
callback.call(this, item, this);
|
|
11506
11399
|
}
|
|
11507
11400
|
}
|
|
11508
11401
|
getResource(index) {
|
|
11509
|
-
const v = this[
|
|
11402
|
+
const v = this[kEntries2][index];
|
|
11510
11403
|
return v == null ? void 0 : v.resource;
|
|
11511
11404
|
}
|
|
11512
11405
|
getKey(index) {
|
|
11513
|
-
const v = this[
|
|
11406
|
+
const v = this[kEntries2][index];
|
|
11514
11407
|
return v == null ? void 0 : v.key;
|
|
11515
11408
|
}
|
|
11516
11409
|
pop() {
|
|
11517
|
-
const out = this[
|
|
11410
|
+
const out = this[kEntries2].pop();
|
|
11518
11411
|
this.changed();
|
|
11519
11412
|
return out;
|
|
11520
11413
|
}
|
|
11521
11414
|
shift() {
|
|
11522
|
-
const out = this[
|
|
11415
|
+
const out = this[kEntries2].shift();
|
|
11523
11416
|
this.changed();
|
|
11524
11417
|
return out;
|
|
11525
11418
|
}
|
|
11526
11419
|
slice(start, end) {
|
|
11527
|
-
return new _OpraURLPath(this[
|
|
11420
|
+
return new _OpraURLPath(this[kEntries2].slice(start, end));
|
|
11528
11421
|
}
|
|
11529
11422
|
splice(start, deleteCount, join) {
|
|
11530
11423
|
const items = join ? this._join([], join) : [];
|
|
11531
|
-
this[
|
|
11424
|
+
this[kEntries2].splice(start, deleteCount, ...items);
|
|
11532
11425
|
this.changed();
|
|
11533
11426
|
}
|
|
11534
11427
|
unshift(join) {
|
|
11535
11428
|
return this.splice(0, 0, join);
|
|
11536
11429
|
}
|
|
11537
11430
|
toString() {
|
|
11538
|
-
return this[
|
|
11431
|
+
return this[kEntries2].map((x) => encodePathComponent(x.resource, x.key, x.typeCast)).join("/");
|
|
11539
11432
|
}
|
|
11540
11433
|
values() {
|
|
11541
11434
|
let i = -1;
|
|
11542
|
-
const arr = [...this[
|
|
11435
|
+
const arr = [...this[kEntries2]];
|
|
11543
11436
|
return {
|
|
11544
11437
|
[Symbol.iterator]() {
|
|
11545
11438
|
return this;
|
|
@@ -11567,7 +11460,7 @@ var OpraURLPath = class _OpraURLPath {
|
|
|
11567
11460
|
return;
|
|
11568
11461
|
}
|
|
11569
11462
|
if (source instanceof _OpraURLPath) {
|
|
11570
|
-
target.push(...source[
|
|
11463
|
+
target.push(...source[kEntries2].map((x) => new OpraURLPathComponent(x)));
|
|
11571
11464
|
return;
|
|
11572
11465
|
}
|
|
11573
11466
|
if (typeof source === "object" && source.path instanceof _OpraURLPath) {
|
|
@@ -11585,8 +11478,8 @@ var OpraURLPath = class _OpraURLPath {
|
|
|
11585
11478
|
target.push(new OpraURLPathComponent(source));
|
|
11586
11479
|
}
|
|
11587
11480
|
/* istanbul ignore next */
|
|
11588
|
-
[(
|
|
11589
|
-
return this[
|
|
11481
|
+
[(_a4 = kEntries2, nodeInspectCustom3)]() {
|
|
11482
|
+
return this[kEntries2];
|
|
11590
11483
|
}
|
|
11591
11484
|
[Symbol.iterator]() {
|
|
11592
11485
|
return this.entries();
|
|
@@ -11595,12 +11488,12 @@ var OpraURLPath = class _OpraURLPath {
|
|
|
11595
11488
|
return "OpraURLPath";
|
|
11596
11489
|
}
|
|
11597
11490
|
};
|
|
11598
|
-
OpraURLPath.kEntries =
|
|
11599
|
-
OpraURLPath.kOptions =
|
|
11491
|
+
OpraURLPath.kEntries = kEntries2;
|
|
11492
|
+
OpraURLPath.kOptions = kOptions3;
|
|
11600
11493
|
|
|
11601
11494
|
// ../../build/common/esm/url/opra-url.js
|
|
11602
|
-
var
|
|
11603
|
-
var
|
|
11495
|
+
var _a5;
|
|
11496
|
+
var nodeInspectCustom4 = Symbol.for("nodejs.util.inspect.custom");
|
|
11604
11497
|
var urlRegEx = /^(?:((?:[A-Z][A-Z+-.]+:)+)\/\/([^/?]+))?(.*)?$/i;
|
|
11605
11498
|
var schemeRegEx = /^([A-Z][A-Z+-.]+:?)+$/i;
|
|
11606
11499
|
var hostRegEx = /^([^/:]+)(?::(\d+))?$/;
|
|
@@ -11613,7 +11506,7 @@ var OpraURL = class _OpraURL {
|
|
|
11613
11506
|
__name(this, "OpraURL");
|
|
11614
11507
|
}
|
|
11615
11508
|
constructor(input, base) {
|
|
11616
|
-
this[
|
|
11509
|
+
this[_a5] = {
|
|
11617
11510
|
protocol: "",
|
|
11618
11511
|
username: "",
|
|
11619
11512
|
prefix: "",
|
|
@@ -11820,7 +11713,7 @@ var OpraURL = class _OpraURL {
|
|
|
11820
11713
|
return this.href;
|
|
11821
11714
|
}
|
|
11822
11715
|
/* istanbul ignore next */
|
|
11823
|
-
[(
|
|
11716
|
+
[(_a5 = kContext, nodeInspectCustom4)]() {
|
|
11824
11717
|
return {
|
|
11825
11718
|
protocol: this.protocol,
|
|
11826
11719
|
username: this.username,
|
|
@@ -11907,7 +11800,6 @@ export {
|
|
|
11907
11800
|
FilterCodec,
|
|
11908
11801
|
ForbiddenError,
|
|
11909
11802
|
HttpHeaderCodes,
|
|
11910
|
-
HttpHeaders,
|
|
11911
11803
|
HttpParams,
|
|
11912
11804
|
HttpStatusCodes,
|
|
11913
11805
|
HttpStatusMessages,
|
|
@@ -11936,13 +11828,13 @@ export {
|
|
|
11936
11828
|
ResponsiveMap,
|
|
11937
11829
|
SimpleType2 as SimpleType,
|
|
11938
11830
|
Singleton2 as Singleton,
|
|
11831
|
+
Storage2 as Storage,
|
|
11939
11832
|
StringCodec,
|
|
11940
11833
|
TYPENAME_PATTERN,
|
|
11941
11834
|
UnauthorizedError,
|
|
11942
11835
|
UnionType2 as UnionType,
|
|
11943
11836
|
UnprocessableEntityError,
|
|
11944
11837
|
ValidationError,
|
|
11945
|
-
applyMixins,
|
|
11946
11838
|
cloneObject,
|
|
11947
11839
|
decodePathComponent,
|
|
11948
11840
|
encodePathComponent,
|
|
@@ -11959,6 +11851,7 @@ export {
|
|
|
11959
11851
|
isURL,
|
|
11960
11852
|
isUrl,
|
|
11961
11853
|
joinPath,
|
|
11854
|
+
mergePrototype,
|
|
11962
11855
|
normalizePath,
|
|
11963
11856
|
omitUndefined,
|
|
11964
11857
|
pathToObjectTree,
|