@mionjs/core 0.8.0-alpha.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/.dist/cjs/index.cjs +245 -0
- package/.dist/cjs/index.cjs.map +1 -0
- package/.dist/cjs/index.d.ts +21 -0
- package/.dist/cjs/package.json +1 -0
- package/.dist/cjs/src/binary/bodyDeserializer.cjs +54 -0
- package/.dist/cjs/src/binary/bodyDeserializer.cjs.map +1 -0
- package/.dist/cjs/src/binary/bodyDeserializer.d.ts +5 -0
- package/.dist/cjs/src/binary/bodySerializer.cjs +49 -0
- package/.dist/cjs/src/binary/bodySerializer.cjs.map +1 -0
- package/.dist/cjs/src/binary/bodySerializer.d.ts +6 -0
- package/.dist/cjs/src/binary/dataView.cjs +212 -0
- package/.dist/cjs/src/binary/dataView.cjs.map +1 -0
- package/.dist/cjs/src/binary/dataView.d.ts +16 -0
- package/.dist/cjs/src/constants.cjs +84 -0
- package/.dist/cjs/src/constants.cjs.map +1 -0
- package/.dist/cjs/src/constants.d.ts +50 -0
- package/.dist/cjs/src/errors.cjs +170 -0
- package/.dist/cjs/src/errors.cjs.map +1 -0
- package/.dist/cjs/src/errors.d.ts +24 -0
- package/.dist/cjs/src/friendlyErrors.cjs +235 -0
- package/.dist/cjs/src/friendlyErrors.cjs.map +1 -0
- package/.dist/cjs/src/friendlyErrors.d.ts +4 -0
- package/.dist/cjs/src/headers.cjs +11 -0
- package/.dist/cjs/src/headers.cjs.map +1 -0
- package/.dist/cjs/src/headers.d.ts +12 -0
- package/.dist/cjs/src/jit/jitUtils.cjs +173 -0
- package/.dist/cjs/src/jit/jitUtils.cjs.map +1 -0
- package/.dist/cjs/src/jit/jitUtils.d.ts +30 -0
- package/.dist/cjs/src/pureFns/pureFn.cjs +80 -0
- package/.dist/cjs/src/pureFns/pureFn.cjs.map +1 -0
- package/.dist/cjs/src/pureFns/pureFn.d.ts +2 -0
- package/.dist/cjs/src/pureFns/pureServerFn.cjs +20 -0
- package/.dist/cjs/src/pureFns/pureServerFn.cjs.map +1 -0
- package/.dist/cjs/src/pureFns/pureServerFn.d.ts +4 -0
- package/.dist/cjs/src/pureFns/quickHash.cjs +62 -0
- package/.dist/cjs/src/pureFns/quickHash.cjs.map +1 -0
- package/.dist/cjs/src/pureFns/quickHash.d.ts +7 -0
- package/.dist/cjs/src/pureFns/restoreJitFns.cjs +88 -0
- package/.dist/cjs/src/pureFns/restoreJitFns.cjs.map +1 -0
- package/.dist/cjs/src/pureFns/restoreJitFns.d.ts +3 -0
- package/.dist/cjs/src/routerUtils.cjs +209 -0
- package/.dist/cjs/src/routerUtils.cjs.map +1 -0
- package/.dist/cjs/src/routerUtils.d.ts +24 -0
- package/.dist/cjs/src/types/formats/formatBrands.types.cjs +45 -0
- package/.dist/cjs/src/types/formats/formatBrands.types.cjs.map +1 -0
- package/.dist/cjs/src/types/formats/formatBrands.types.d.ts +45 -0
- package/.dist/cjs/src/types/formats/formats.types.cjs +27 -0
- package/.dist/cjs/src/types/formats/formats.types.cjs.map +1 -0
- package/.dist/cjs/src/types/formats/formats.types.d.ts +37 -0
- package/.dist/cjs/src/types/formats/formatsParams.types.cjs +60 -0
- package/.dist/cjs/src/types/formats/formatsParams.types.cjs.map +1 -0
- package/.dist/cjs/src/types/formats/formatsParams.types.d.ts +234 -0
- package/.dist/cjs/src/types/formats/friendlyErrors.types.cjs +53 -0
- package/.dist/cjs/src/types/formats/friendlyErrors.types.cjs.map +1 -0
- package/.dist/cjs/src/types/formats/friendlyErrors.types.d.ts +71 -0
- package/.dist/cjs/src/types/general.types.cjs +145 -0
- package/.dist/cjs/src/types/general.types.cjs.map +1 -0
- package/.dist/cjs/src/types/general.types.d.ts +246 -0
- package/.dist/cjs/src/types/method.types.cjs +26 -0
- package/.dist/cjs/src/types/method.types.cjs.map +1 -0
- package/.dist/cjs/src/types/method.types.d.ts +60 -0
- package/.dist/cjs/src/types/pureFunctions.types.cjs +39 -0
- package/.dist/cjs/src/types/pureFunctions.types.cjs.map +1 -0
- package/.dist/cjs/src/types/pureFunctions.types.d.ts +75 -0
- package/.dist/cjs/src/utils.cjs +47 -0
- package/.dist/cjs/src/utils.cjs.map +1 -0
- package/.dist/cjs/src/utils.d.ts +9 -0
- package/.dist/esm/index.d.ts +21 -0
- package/.dist/esm/index.js +245 -0
- package/.dist/esm/index.js.map +1 -0
- package/.dist/esm/src/binary/bodyDeserializer.d.ts +5 -0
- package/.dist/esm/src/binary/bodyDeserializer.js +54 -0
- package/.dist/esm/src/binary/bodyDeserializer.js.map +1 -0
- package/.dist/esm/src/binary/bodySerializer.d.ts +6 -0
- package/.dist/esm/src/binary/bodySerializer.js +49 -0
- package/.dist/esm/src/binary/bodySerializer.js.map +1 -0
- package/.dist/esm/src/binary/dataView.d.ts +16 -0
- package/.dist/esm/src/binary/dataView.js +212 -0
- package/.dist/esm/src/binary/dataView.js.map +1 -0
- package/.dist/esm/src/constants.d.ts +50 -0
- package/.dist/esm/src/constants.js +84 -0
- package/.dist/esm/src/constants.js.map +1 -0
- package/.dist/esm/src/errors.d.ts +24 -0
- package/.dist/esm/src/errors.js +170 -0
- package/.dist/esm/src/errors.js.map +1 -0
- package/.dist/esm/src/friendlyErrors.d.ts +4 -0
- package/.dist/esm/src/friendlyErrors.js +235 -0
- package/.dist/esm/src/friendlyErrors.js.map +1 -0
- package/.dist/esm/src/headers.d.ts +12 -0
- package/.dist/esm/src/headers.js +11 -0
- package/.dist/esm/src/headers.js.map +1 -0
- package/.dist/esm/src/jit/jitUtils.d.ts +30 -0
- package/.dist/esm/src/jit/jitUtils.js +173 -0
- package/.dist/esm/src/jit/jitUtils.js.map +1 -0
- package/.dist/esm/src/pureFns/pureFn.d.ts +2 -0
- package/.dist/esm/src/pureFns/pureFn.js +80 -0
- package/.dist/esm/src/pureFns/pureFn.js.map +1 -0
- package/.dist/esm/src/pureFns/pureServerFn.d.ts +4 -0
- package/.dist/esm/src/pureFns/pureServerFn.js +20 -0
- package/.dist/esm/src/pureFns/pureServerFn.js.map +1 -0
- package/.dist/esm/src/pureFns/quickHash.d.ts +7 -0
- package/.dist/esm/src/pureFns/quickHash.js +62 -0
- package/.dist/esm/src/pureFns/quickHash.js.map +1 -0
- package/.dist/esm/src/pureFns/restoreJitFns.d.ts +3 -0
- package/.dist/esm/src/pureFns/restoreJitFns.js +88 -0
- package/.dist/esm/src/pureFns/restoreJitFns.js.map +1 -0
- package/.dist/esm/src/routerUtils.d.ts +24 -0
- package/.dist/esm/src/routerUtils.js +209 -0
- package/.dist/esm/src/routerUtils.js.map +1 -0
- package/.dist/esm/src/types/formats/formatBrands.types.d.ts +45 -0
- package/.dist/esm/src/types/formats/formatBrands.types.js +45 -0
- package/.dist/esm/src/types/formats/formatBrands.types.js.map +1 -0
- package/.dist/esm/src/types/formats/formats.types.d.ts +37 -0
- package/.dist/esm/src/types/formats/formats.types.js +27 -0
- package/.dist/esm/src/types/formats/formats.types.js.map +1 -0
- package/.dist/esm/src/types/formats/formatsParams.types.d.ts +234 -0
- package/.dist/esm/src/types/formats/formatsParams.types.js +60 -0
- package/.dist/esm/src/types/formats/formatsParams.types.js.map +1 -0
- package/.dist/esm/src/types/formats/friendlyErrors.types.d.ts +71 -0
- package/.dist/esm/src/types/formats/friendlyErrors.types.js +53 -0
- package/.dist/esm/src/types/formats/friendlyErrors.types.js.map +1 -0
- package/.dist/esm/src/types/general.types.d.ts +246 -0
- package/.dist/esm/src/types/general.types.js +145 -0
- package/.dist/esm/src/types/general.types.js.map +1 -0
- package/.dist/esm/src/types/method.types.d.ts +60 -0
- package/.dist/esm/src/types/method.types.js +26 -0
- package/.dist/esm/src/types/method.types.js.map +1 -0
- package/.dist/esm/src/types/pureFunctions.types.d.ts +75 -0
- package/.dist/esm/src/types/pureFunctions.types.js +39 -0
- package/.dist/esm/src/types/pureFunctions.types.js.map +1 -0
- package/.dist/esm/src/utils.d.ts +9 -0
- package/.dist/esm/src/utils.js +47 -0
- package/.dist/esm/src/utils.js.map +1 -0
- package/LICENSE +21 -0
- package/README.md +32 -0
- package/package.json +58 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { __ΩFormatParam as ___FormatParam } from "./formats.types.js";
|
|
2
|
+
const __ΩOmit = ["T", "K", () => __ΩPick, () => __ΩExclude, "Omit", 'b!b"e!!e!!ge!"o$#o##w%y'];
|
|
3
|
+
const __ΩPick = ["T", "K", "Pick", 'l+e#!e"!fRb!b"Pde""N#!w#y'];
|
|
4
|
+
const __ΩExclude = ["T", "U", "Exclude", 'l6!Re$!RPe#!e$"qk#%QRb!b"Pde"!p)w#y'];
|
|
5
|
+
const __ΩSamples = ["Samples", "P&&F9Jw!y"];
|
|
6
|
+
const __ΩStringValidators = ["val", "errorMessage", "desc", "maxLength", "minLength", "length", "ignoreCase", "mockSamples", "disallowedChars", () => __ΩSamples, "disallowedValues", () => __ΩSamples, "pattern", () => __ΩSamples, "allowedChars", () => __ΩSamples, "allowedValues", "StringValidators", `PP'P'4!&4"&4#8MJ4$8P'P'4!&4"&4#8MJ4%8P'P'4!&4"&4#8MJ4&8P&4!&4"&4#8)4'8&4(M4)8P&F94!&4"&4#8)4'8n*4(M4+8PA4!&4"&4#8)4'8n,4(M4-8P&4!&4"&4#8)4'8n.4(8M4/8P&F94!&4"&4#8)4'8n04(8M418Mw2y`];
|
|
7
|
+
const __ΩStringTransformers = ["lowercase", "uppercase", "capitalize", "trim", "searchValue", "replaceValue", "replace", "replaceAll", "StringTransformers", `P)4!8)4"8)4#8)4$8P&4%&4&M4'8P&4%&4&M4(8Mw)y`];
|
|
8
|
+
const __ΩStringParams = [() => __ΩStringValidators, () => __ΩStringTransformers, "StringParams", 'Pn!n"Kw#y'];
|
|
9
|
+
const __ΩDateFmt = ["ISO", "YYYY-MM-DD", "DD-MM-YYYY", "MM-DD-YYYY", "MM-DD", "DD-MM", "YYYY-MM", "DateFmt", `P.!.".#.$.%.&.'Jw(y`];
|
|
10
|
+
const __ΩFormatParams_Date = [() => ___FormatParam, () => __ΩDateFmt, "format", "FormatParams_Date", 'Pn"o!"4#Mw$y'];
|
|
11
|
+
const __ΩTimeFmt = ["ISO", "HH:mm:ss[.mmm]TZ", "HH:mm:ss[.mmm]", "HH:mm:ss", "HH:mm", "mm:ss", "HH", "mm", "ss", "TimeFmt", `P.!.".#.$.%.&.'.(.)Jw*y`];
|
|
12
|
+
const __ΩFormatParams_Time = [() => ___FormatParam, () => __ΩTimeFmt, "format", "FormatParams_Time", 'Pn"o!"4#Mw$y'];
|
|
13
|
+
const __ΩFormatParams_DateTime = [() => __ΩFormatParams_Date, "date", () => __ΩFormatParams_Time, "time", () => ___FormatParam, "splitChar", "FormatParams_DateTime", `Pn!4"n#4$&o%"4&Mw'y`];
|
|
14
|
+
const __ΩFormatParams_EmailPattern = [() => __ΩOmit, () => __ΩStringValidators, "length", "allowedChars", "disallowedChars", "allowedValues", "FormatParams_EmailPattern", `n"P.#.$.%.&Jo!#w'y`];
|
|
15
|
+
const __ΩFormatParams_Email = [() => __ΩFormatParams_EmailPattern, () => __ΩStringValidators, "localPart", () => __ΩFormatParams_Domain, "domain", "FormatParams_Email", 'Pn!Pn"4#8n$4%8MKw&y'];
|
|
16
|
+
const __ΩFormatParams_UrlPattern = [() => __ΩOmit, () => __ΩStringParams, "allowedChars", "disallowedChars", "allowedValues", "disallowedValues", "FormatParams_UrlPattern", `n"P.#.$.%.&Jo!#w'y`];
|
|
17
|
+
const __ΩFormatParams_Url = [() => __ΩFormatParams_UrlPattern, () => __ΩFormatParams_IP, "ip", () => __ΩFormatParams_Domain, "domain", "FormatParams_Url", 'Pn!Pn"4#8n$4%8MKw&y'];
|
|
18
|
+
const __ΩFormatParams_DomainName = [() => __ΩOmit, () => __ΩStringValidators, "length", "allowedChars", "disallowedChars", "FormatParams_DomainName", 'n"P.#.$.%Jo!#w&y'];
|
|
19
|
+
const __ΩFormatParams_Tld = [() => __ΩOmit, () => __ΩStringValidators, "length", "allowedChars", "disallowedChars", "FormatParams_Tld", 'n"P.#.$.%Jo!#w&y'];
|
|
20
|
+
const __ΩFormatParam_Pattern = [() => __ΩStringValidators, "pattern", "FormatParam_Pattern", 'n!."fw#y'];
|
|
21
|
+
const __ΩFormatParams_DomainCore = ["names", "tld", () => __ΩFormatParam_Pattern, "pattern", () => __ΩFormatParams_DomainName, () => __ΩFormatParams_Tld, "FormatParams_DomainCore", `PP!4!8!4"8n#4$MPn%4!n&4"!4$8MJw'y`];
|
|
22
|
+
const __ΩFormatParams_Domain = [() => ___FormatParam, "maxLength", () => ___FormatParam, "minLength", () => ___FormatParam, "maxParts", () => ___FormatParam, "minParts", () => __ΩFormatParams_DomainCore, "FormatParams_Domain", `PP'o!"4"8'o#"4$8'o%"4&8'o'"4(8Mn)Kw*y`];
|
|
23
|
+
const __ΩFormatParams_IP = [() => ___FormatParam, 4, 6, "any", "version", () => ___FormatParam, "allowLocalHost", () => ___FormatParam, "allowPort", "FormatParams_IP", `PP.".#.$Jo!"4%)o&"4'8)o("4)8Mw*y`];
|
|
24
|
+
const __ΩFormatParams_UUID = [() => ___FormatParam, "4", "7", "version", "FormatParams_UUID", 'PP.".#Jo!"4$Mw%y'];
|
|
25
|
+
const __ΩNumberMax = ["val", "errorMessage", "desc", "max", "gt", "NumberMax", `PPP'P'4!&4"&4#8MJ4$8!4%8MP!4$8P'P'4!&4"&4#8MJ4%8MJw&y`];
|
|
26
|
+
const __ΩNumberMin = ["val", "errorMessage", "desc", "min", "lt", "NumberMin", `PPP'P'4!&4"&4#8MJ4$8!4%8MP!4$8P'P'4!&4"&4#8MJ4%8MJw&y`];
|
|
27
|
+
const __ΩNumberType = ["val", "errorMessage", "desc", "integer", "float", "NumberType", 'PPP)P)4!&4"&4#8MJ4$8!4%8MP!4$8P)P)4!&4"&4#8MJ4%8MJw&y'];
|
|
28
|
+
const __ΩFormatParams_Number = [() => __ΩNumberMax, () => __ΩNumberMin, () => __ΩNumberType, "val", "errorMessage", "desc", "multipleOf", "FormatParams_Number", `Pn!n"n#PP'P'4$&4%&4&8MJ4'8MKw(y`];
|
|
29
|
+
const __ΩBigIntMax = ["val", "errorMessage", "desc", "max", "gt", "BigIntMax", 'PPP*P*4!&4"&4#8MJ4$8!4%8MP!4$8P*P*4!&4"&4#8MJ4%8MJw&y'];
|
|
30
|
+
const __ΩBigIntMin = ["val", "errorMessage", "desc", "min", "lt", "BigIntMin", 'PPP*P*4!&4"&4#8MJ4$8!4%8MP!4$8P*P*4!&4"&4#8MJ4%8MJw&y'];
|
|
31
|
+
const __ΩFormatParams_BigInt = [() => __ΩBigIntMax, () => __ΩBigIntMin, "val", "errorMessage", "desc", "multipleOf", "FormatParams_BigInt", `Pn!n"PP*P*4#&4$&4%8MJ4&8MKw'y`];
|
|
32
|
+
const __ΩAnyStringFormatParam = [() => __ΩStringParams, () => __ΩFormatParams_Email, () => __ΩFormatParams_Url, () => __ΩFormatParams_Domain, () => __ΩFormatParams_IP, () => __ΩFormatParams_UUID, () => __ΩFormatParams_DateTime, () => __ΩFormatParams_Date, () => __ΩFormatParams_Time, "AnyStringFormatParam", `Pn!n"n#n$n%n&n'n(n)Jw*y`];
|
|
33
|
+
const __ΩAnyFormatParams = [() => __ΩAnyStringFormatParam, () => __ΩFormatParams_Number, () => __ΩFormatParams_BigInt, "AnyFormatParams", 'Pn!n"n#Jw$y'];
|
|
34
|
+
export {
|
|
35
|
+
__ΩAnyFormatParams,
|
|
36
|
+
__ΩAnyStringFormatParam,
|
|
37
|
+
__ΩDateFmt,
|
|
38
|
+
__ΩFormatParam_Pattern,
|
|
39
|
+
__ΩFormatParams_BigInt,
|
|
40
|
+
__ΩFormatParams_Date,
|
|
41
|
+
__ΩFormatParams_DateTime,
|
|
42
|
+
__ΩFormatParams_Domain,
|
|
43
|
+
__ΩFormatParams_DomainCore,
|
|
44
|
+
__ΩFormatParams_DomainName,
|
|
45
|
+
__ΩFormatParams_Email,
|
|
46
|
+
__ΩFormatParams_EmailPattern,
|
|
47
|
+
__ΩFormatParams_IP,
|
|
48
|
+
__ΩFormatParams_Number,
|
|
49
|
+
__ΩFormatParams_Time,
|
|
50
|
+
__ΩFormatParams_Tld,
|
|
51
|
+
__ΩFormatParams_UUID,
|
|
52
|
+
__ΩFormatParams_Url,
|
|
53
|
+
__ΩFormatParams_UrlPattern,
|
|
54
|
+
__ΩSamples,
|
|
55
|
+
__ΩStringParams,
|
|
56
|
+
__ΩStringTransformers,
|
|
57
|
+
__ΩStringValidators,
|
|
58
|
+
__ΩTimeFmt
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=formatsParams.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatsParams.types.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { RunTypeError, StrNumber } from '../general.types.ts';
|
|
2
|
+
import { AnyFormatParams, AnyStringFormatParam, FormatParams_BigInt, FormatParams_Number, StringParams, FormatParams_Email, FormatParams_Url, FormatParams_Domain, FormatParams_IP, FormatParams_UUID, FormatParams_DateTime, FormatParams_Date, FormatParams_Time } from './formatsParams.types.ts';
|
|
3
|
+
import { ExtractFormatParams, TypeFormatError } from './formats.types.ts';
|
|
4
|
+
import { BrandEmail, BrandUUID, BrandUrl, BrandDomain, BrandIP, BrandDate, BrandTime, BrandDateTime } from './formatBrands.types.ts';
|
|
5
|
+
export type TypeErrorParam = {
|
|
6
|
+
rtError: RunTypeError;
|
|
7
|
+
rtErrors: RunTypeError[];
|
|
8
|
+
propName: string | number;
|
|
9
|
+
index?: number;
|
|
10
|
+
};
|
|
11
|
+
type UnionKeys<T> = T extends unknown ? keyof T : never;
|
|
12
|
+
export type FriendlyErrorParams<T extends AnyFormatParams> = {
|
|
13
|
+
[K in UnionKeys<T>]?: TypeFormatError;
|
|
14
|
+
} & TypeErrorParam;
|
|
15
|
+
export type StringErrorParams = FriendlyErrorParams<StringParams>;
|
|
16
|
+
export type EmailErrorParams = FriendlyErrorParams<FormatParams_Email>;
|
|
17
|
+
export type UrlErrorParams = FriendlyErrorParams<FormatParams_Url>;
|
|
18
|
+
export type DomainErrorParams = FriendlyErrorParams<FormatParams_Domain>;
|
|
19
|
+
export type IPErrorParams = FriendlyErrorParams<FormatParams_IP>;
|
|
20
|
+
export type UUIDErrorParams = FriendlyErrorParams<FormatParams_UUID>;
|
|
21
|
+
export type DateTimeErrorParams = FriendlyErrorParams<FormatParams_DateTime>;
|
|
22
|
+
export type DateErrorParams = FriendlyErrorParams<FormatParams_Date>;
|
|
23
|
+
export type TimeErrorParams = FriendlyErrorParams<FormatParams_Time>;
|
|
24
|
+
export type NumberErrorParams = FriendlyErrorParams<FormatParams_Number>;
|
|
25
|
+
export type BigIntErrorParams = FriendlyErrorParams<FormatParams_BigInt>;
|
|
26
|
+
export type AnyFriendlyErrorParams = FriendlyErrorParams<AnyStringFormatParam> | FriendlyErrorParams<FormatParams_Number> | FriendlyErrorParams<FormatParams_BigInt>;
|
|
27
|
+
export type ExtractErrorParams<T> = ExtractFormatParams<T> extends undefined ? TypeErrorParam : T extends BrandEmail ? EmailErrorParams : T extends BrandUUID ? UUIDErrorParams : T extends BrandUrl ? UrlErrorParams : T extends BrandDomain ? DomainErrorParams : T extends BrandIP ? IPErrorParams : T extends BrandDateTime ? DateTimeErrorParams : T extends BrandDate ? DateErrorParams : T extends BrandTime ? TimeErrorParams : T extends string ? StringErrorParams : T extends number ? NumberErrorParams : T extends bigint ? BigIntErrorParams : TypeErrorParam;
|
|
28
|
+
export type FriendlyErrorHandler<T> = (params: ExtractErrorParams<T>) => string;
|
|
29
|
+
export type MapErrorHandlers<K, V> = {
|
|
30
|
+
$key?: FriendlyErrorHandler<K>;
|
|
31
|
+
$value?: FriendlyErrors<V> | FriendlyErrorHandler<V>;
|
|
32
|
+
};
|
|
33
|
+
export type SetErrorHandlers<T> = {
|
|
34
|
+
$item?: FriendlyErrors<T> | FriendlyErrorHandler<T>;
|
|
35
|
+
};
|
|
36
|
+
export type FriendlyErrors<T> = T extends (infer U)[] ? U extends object ? FriendlyErrors<U> | FriendlyErrorHandler<U> : FriendlyErrorHandler<U> : T extends Map<infer K, infer V> ? MapErrorHandlers<K, V> | FriendlyErrorHandler<V> : T extends Set<infer U> ? SetErrorHandlers<U> | FriendlyErrorHandler<U> : {
|
|
37
|
+
[P in keyof T]?: T[P] extends (infer U)[] ? U extends object ? FriendlyErrors<U> | FriendlyErrorHandler<U> : FriendlyErrorHandler<U> : T[P] extends Map<infer K, infer V> ? MapErrorHandlers<K, V> | FriendlyErrorHandler<V> : T[P] extends Set<infer U> ? SetErrorHandlers<U> | FriendlyErrorHandler<U> : T[P] extends object ? FriendlyErrors<T[P]> | FriendlyErrorHandler<T[P]> : FriendlyErrorHandler<T[P]>;
|
|
38
|
+
};
|
|
39
|
+
export type MapErrorsResult<_K, V> = {
|
|
40
|
+
$keys?: Record<StrNumber, string>;
|
|
41
|
+
$values?: Record<StrNumber, V extends object ? FriendlyErrorsResult<V> : string>;
|
|
42
|
+
};
|
|
43
|
+
export type SetErrorsResult<T> = Record<StrNumber, T extends object ? FriendlyErrorsResult<T> : string>;
|
|
44
|
+
export type FriendlyErrorsResult<T> = T extends (infer U)[] ? Record<StrNumber, U extends object ? FriendlyErrorsResult<U> : string> : T extends Map<infer K, infer V> ? MapErrorsResult<K, V> : T extends Set<infer U> ? SetErrorsResult<U> : T extends object ? {
|
|
45
|
+
[P in keyof T]?: T[P] extends (infer U)[] ? Record<StrNumber, U extends object ? FriendlyErrorsResult<U> : string> : T[P] extends Map<infer K, infer V> ? MapErrorsResult<K, V> : T[P] extends Set<infer U> ? SetErrorsResult<U> : T[P] extends object ? FriendlyErrorsResult<T[P]> : string;
|
|
46
|
+
} & {
|
|
47
|
+
$root?: string;
|
|
48
|
+
} : string;
|
|
49
|
+
export {};
|
|
50
|
+
export declare type __ΩTypeErrorParam = any[];
|
|
51
|
+
export declare type __ΩFriendlyErrorParams = any[];
|
|
52
|
+
export declare type __ΩStringErrorParams = any[];
|
|
53
|
+
export declare type __ΩEmailErrorParams = any[];
|
|
54
|
+
export declare type __ΩUrlErrorParams = any[];
|
|
55
|
+
export declare type __ΩDomainErrorParams = any[];
|
|
56
|
+
export declare type __ΩIPErrorParams = any[];
|
|
57
|
+
export declare type __ΩUUIDErrorParams = any[];
|
|
58
|
+
export declare type __ΩDateTimeErrorParams = any[];
|
|
59
|
+
export declare type __ΩDateErrorParams = any[];
|
|
60
|
+
export declare type __ΩTimeErrorParams = any[];
|
|
61
|
+
export declare type __ΩNumberErrorParams = any[];
|
|
62
|
+
export declare type __ΩBigIntErrorParams = any[];
|
|
63
|
+
export declare type __ΩAnyFriendlyErrorParams = any[];
|
|
64
|
+
export declare type __ΩExtractErrorParams = any[];
|
|
65
|
+
export declare type __ΩFriendlyErrorHandler = any[];
|
|
66
|
+
export declare type __ΩMapErrorHandlers = any[];
|
|
67
|
+
export declare type __ΩSetErrorHandlers = any[];
|
|
68
|
+
export declare type __ΩFriendlyErrors = any[];
|
|
69
|
+
export declare type __ΩMapErrorsResult = any[];
|
|
70
|
+
export declare type __ΩSetErrorsResult = any[];
|
|
71
|
+
export declare type __ΩFriendlyErrorsResult = any[];
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { __ΩRunTypeError as ___RunTypeError, __ΩStrNumber as ___StrNumber } from "../general.types.js";
|
|
2
|
+
import { __ΩAnyStringFormatParam as ___AnyStringFormatParam, __ΩFormatParams_Number as ___FormatParams_Number, __ΩFormatParams_BigInt as ___FormatParams_BigInt, __ΩFormatParams_Date as ___FormatParams_Date, __ΩFormatParams_DateTime as ___FormatParams_DateTime, __ΩFormatParams_Domain as ___FormatParams_Domain, __ΩFormatParams_Email as ___FormatParams_Email, __ΩFormatParams_UUID as ___FormatParams_UUID, __ΩFormatParams_Url as ___FormatParams_Url, __ΩFormatParams_IP as ___FormatParams_IP, __ΩFormatParams_Time as ___FormatParams_Time, __ΩStringParams as ___StringParams } from "./formatsParams.types.js";
|
|
3
|
+
import { __ΩTypeFormatError as ___TypeFormatError, __ΩExtractFormatParams as ___ExtractFormatParams } from "./formats.types.js";
|
|
4
|
+
import { __ΩBrandEmail as ___BrandEmail, __ΩBrandUUID as ___BrandUUID, __ΩBrandUrl as ___BrandUrl, __ΩBrandDomain as ___BrandDomain, __ΩBrandIP as ___BrandIP, __ΩBrandDateTime as ___BrandDateTime, __ΩBrandDate as ___BrandDate, __ΩBrandTime as ___BrandTime } from "./formatBrands.types.js";
|
|
5
|
+
const __ΩRecord = ["K", "T", "Record", `l'e#"Rb!b"Pde"!N#!w#y`];
|
|
6
|
+
const __ΩTypeErrorParam = [() => ___RunTypeError, "rtError", () => ___RunTypeError, "rtErrors", "propName", "index", "TypeErrorParam", `Pn!4"n#F4$P&'J4%'4&8Mw'y`];
|
|
7
|
+
const __ΩUnionKeys = ["T", "UnionKeys", 'l5e$!gR!RPe#!#qk#(QRb!Pde"!p*w"y'];
|
|
8
|
+
const __ΩFriendlyErrorParams = ["T", () => __ΩUnionKeys, () => ___TypeFormatError, () => __ΩTypeErrorParam, "FriendlyErrorParams", 'l&n#Rb!PPde#!o""N#"n$Kw%y'];
|
|
9
|
+
const __ΩStringErrorParams = [() => __ΩFriendlyErrorParams, () => ___StringParams, "StringErrorParams", 'n"o!"w#y'];
|
|
10
|
+
const __ΩEmailErrorParams = [() => __ΩFriendlyErrorParams, () => ___FormatParams_Email, "EmailErrorParams", 'n"o!"w#y'];
|
|
11
|
+
const __ΩUrlErrorParams = [() => __ΩFriendlyErrorParams, () => ___FormatParams_Url, "UrlErrorParams", 'n"o!"w#y'];
|
|
12
|
+
const __ΩDomainErrorParams = [() => __ΩFriendlyErrorParams, () => ___FormatParams_Domain, "DomainErrorParams", 'n"o!"w#y'];
|
|
13
|
+
const __ΩIPErrorParams = [() => __ΩFriendlyErrorParams, () => ___FormatParams_IP, "IPErrorParams", 'n"o!"w#y'];
|
|
14
|
+
const __ΩUUIDErrorParams = [() => __ΩFriendlyErrorParams, () => ___FormatParams_UUID, "UUIDErrorParams", 'n"o!"w#y'];
|
|
15
|
+
const __ΩDateTimeErrorParams = [() => __ΩFriendlyErrorParams, () => ___FormatParams_DateTime, "DateTimeErrorParams", 'n"o!"w#y'];
|
|
16
|
+
const __ΩDateErrorParams = [() => __ΩFriendlyErrorParams, () => ___FormatParams_Date, "DateErrorParams", 'n"o!"w#y'];
|
|
17
|
+
const __ΩTimeErrorParams = [() => __ΩFriendlyErrorParams, () => ___FormatParams_Time, "TimeErrorParams", 'n"o!"w#y'];
|
|
18
|
+
const __ΩNumberErrorParams = [() => __ΩFriendlyErrorParams, () => ___FormatParams_Number, "NumberErrorParams", 'n"o!"w#y'];
|
|
19
|
+
const __ΩBigIntErrorParams = [() => __ΩFriendlyErrorParams, () => ___FormatParams_BigInt, "BigIntErrorParams", 'n"o!"w#y'];
|
|
20
|
+
const __ΩAnyFriendlyErrorParams = [() => __ΩFriendlyErrorParams, () => ___AnyStringFormatParam, () => __ΩFriendlyErrorParams, () => ___FormatParams_Number, () => __ΩFriendlyErrorParams, () => ___FormatParams_BigInt, "AnyFriendlyErrorParams", `Pn"o!"n$o#"n&o%"Jw'y`];
|
|
21
|
+
const __ΩExtractErrorParams = ["T", () => ___ExtractFormatParams, () => __ΩTypeErrorParam, () => ___BrandEmail, () => __ΩEmailErrorParams, () => ___BrandUUID, () => __ΩUUIDErrorParams, () => ___BrandUrl, () => __ΩUrlErrorParams, () => ___BrandDomain, () => __ΩDomainErrorParams, () => ___BrandIP, () => __ΩIPErrorParams, () => ___BrandDateTime, () => __ΩDateTimeErrorParams, () => ___BrandDate, () => __ΩDateErrorParams, () => ___BrandTime, () => __ΩTimeErrorParams, () => __ΩStringErrorParams, () => __ΩNumberErrorParams, () => __ΩBigIntErrorParams, () => __ΩTypeErrorParam, "ExtractErrorParams", `lĮn#Rn%Rn'Rn)Rn+Rn-Rn/Rn1Rn3Rn4Rn5Rn6Rn7RPe#!*qkDGQRPde%!pJRPe#!'qkAUQRPde%!p]RPe#!&qk>hQRPde%!ppRPe#!n2qk;{QRPde%!pRPe#!n0qk8QRPde%!pRPe#!n.qk5£QRPde%!p«RPe#!n,qk2·QRPde%!p¿RPe#!n*qk/ËQRPde%!pÓRPe#!n(qk,ßQRPde%!pçRPe#!n&qk)óQRPde%!pûRPe#!n$qk&ćQRPde&!pďRPe#!-qk#ěQRb!Pde"!o""pģw8y`];
|
|
22
|
+
const __ΩFriendlyErrorHandler = ["T", () => __ΩExtractErrorParams, "params", "", "FriendlyErrorHandler", 'b!Pe"!o""2#&/$w%y'];
|
|
23
|
+
const __ΩMapErrorHandlers = ["K", "V", () => __ΩFriendlyErrorHandler, "$key", () => __ΩFriendlyErrors, () => __ΩFriendlyErrorHandler, "$value", "MapErrorHandlers", `b!b"Pe"!o#"4$8Pe#"o%"e#"o&"J4'8Mw(y`];
|
|
24
|
+
const __ΩSetErrorHandlers = ["T", () => __ΩFriendlyErrors, () => __ΩFriendlyErrorHandler, "$item", "SetErrorHandlers", 'b!PPe#!o""e#!o#"J4$8Mw%y'];
|
|
25
|
+
const __ΩFriendlyErrors = ["T", 0, () => __ΩFriendlyErrorHandler, () => __ΩFriendlyErrorHandler, () => __ΩMapErrorHandlers, () => __ΩFriendlyErrorHandler, () => __ΩSetErrorHandlers, () => __ΩFriendlyErrorHandler, 0, () => __ΩFriendlyErrorHandler, () => __ΩFriendlyErrorHandler, () => __ΩMapErrorHandlers, () => __ΩFriendlyErrorHandler, () => __ΩSetErrorHandlers, () => __ΩFriendlyErrorHandler, 0, () => __ΩFriendlyErrorHandler, () => __ΩFriendlyErrorHandler, "FriendlyErrors", `lūPe%!o""e%!o#"JRe$!o$"RPe#!%qk#2QRPde#!p9RPe#!e#"o%#e#"o&"JRPe+!o'"e+!o("JRPe%!o)"e%!o*"JRe$!o+"RPe#!%qkm|QRPde/!pRPe-!e-"o,#e-"o-"JRPe3!o."e3!o/"JRPe/!e+!fo0"e/!e+!fo1"JRe.!e*!fo2"RPe-!e)!f%qk·ÎQRPe+!e'!fh1!Dqk¨ÙQRPe)!e%!fh+!h+"EqkèQRPe'!e#!fh-!FqkúQRPde%!gNď"RPe#!h)!Dqk^ġQRPde%!pīRPdde#!h!!h!"EqkLĹQRPde%!pŁRPde#!h!!FqkDŔQRb!Pde"!pŜw3y`];
|
|
26
|
+
const __ΩMapErrorsResult = ["_K", "V", () => __ΩRecord, () => ___StrNumber, "$keys", () => __ΩRecord, () => ___StrNumber, () => __ΩFriendlyErrorsResult, "$values", "MapErrorsResult", `l7e$!o("R&RPe#!%qk#*QRb!b"Pn$&o##4%8n'Pde#"p,o)8Mw*y`];
|
|
27
|
+
const __ΩSetErrorsResult = ["T", () => __ΩRecord, () => ___StrNumber, () => __ΩFriendlyErrorsResult, "SetErrorsResult", 'l7e$!o$"R&RPe#!%qk#*QRb!n#Pde"!p,o"#w%y'];
|
|
28
|
+
const __ΩFriendlyErrorsResult = ["T", () => __ΩRecord, () => ___StrNumber, 0, () => __ΩMapErrorsResult, () => __ΩSetErrorsResult, () => __ΩRecord, () => ___StrNumber, 0, () => __ΩMapErrorsResult, () => __ΩSetErrorsResult, 0, "$root", "FriendlyErrorsResult", `lŃe$!o$"R&RPe#!%qk#*QRn#Pde#!p,o"#Re"!e""o%#Re*!o&"Re$!o)"R&RPe#!%qkU\\QRn(Pde4!p^o'#Re1!e1"o*#Re7!o+"Re/!e*!fo,"R&RPe.!e)!f%qkQRPe,!e'!fh6!DqkQRPe*!e%!fh0!h0"Eqkv£QRPe(!e#!fh2!FqkiµQRPPde&!gNÊ"P&4-8MKR&RPe#!%qkÜîQRPde%!pðRPe#!h)!DqkNûQRPde%!păRPdde#!h!!h!"EqkDđQRPde%!pęRPde#!h!!Fqk7ĬQRb!Pde"!pĴw.y`];
|
|
29
|
+
export {
|
|
30
|
+
__ΩAnyFriendlyErrorParams,
|
|
31
|
+
__ΩBigIntErrorParams,
|
|
32
|
+
__ΩDateErrorParams,
|
|
33
|
+
__ΩDateTimeErrorParams,
|
|
34
|
+
__ΩDomainErrorParams,
|
|
35
|
+
__ΩEmailErrorParams,
|
|
36
|
+
__ΩExtractErrorParams,
|
|
37
|
+
__ΩFriendlyErrorHandler,
|
|
38
|
+
__ΩFriendlyErrorParams,
|
|
39
|
+
__ΩFriendlyErrors,
|
|
40
|
+
__ΩFriendlyErrorsResult,
|
|
41
|
+
__ΩIPErrorParams,
|
|
42
|
+
__ΩMapErrorHandlers,
|
|
43
|
+
__ΩMapErrorsResult,
|
|
44
|
+
__ΩNumberErrorParams,
|
|
45
|
+
__ΩSetErrorHandlers,
|
|
46
|
+
__ΩSetErrorsResult,
|
|
47
|
+
__ΩStringErrorParams,
|
|
48
|
+
__ΩTimeErrorParams,
|
|
49
|
+
__ΩTypeErrorParam,
|
|
50
|
+
__ΩUUIDErrorParams,
|
|
51
|
+
__ΩUrlErrorParams
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=friendlyErrors.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"friendlyErrors.types.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { MIME_TYPES } from '../constants.ts';
|
|
2
|
+
import { TypeFormatError } from './formats/formats.types.ts';
|
|
3
|
+
import { JITUtils } from '../jit/jitUtils.ts';
|
|
4
|
+
import { CompiledPureFunction, PersistedPureFunction, PureFunctionData } from './pureFunctions.types.ts';
|
|
5
|
+
export declare const SerializerModes: {
|
|
6
|
+
readonly json: 1;
|
|
7
|
+
readonly binary: 2;
|
|
8
|
+
readonly stringifyJson: 3;
|
|
9
|
+
};
|
|
10
|
+
export type SerializerMode = keyof typeof SerializerModes;
|
|
11
|
+
export type SerializerCode = (typeof SerializerModes)[SerializerMode];
|
|
12
|
+
export type CoreRouterOptions = {
|
|
13
|
+
autoGenerateErrorId: boolean;
|
|
14
|
+
basePath: string;
|
|
15
|
+
suffix: string;
|
|
16
|
+
};
|
|
17
|
+
export interface TypedErrorParams<ErrType extends StrNumber> {
|
|
18
|
+
type: ErrType;
|
|
19
|
+
message?: string;
|
|
20
|
+
originalError?: Error;
|
|
21
|
+
}
|
|
22
|
+
export interface RpcErrorParams<ErrType extends StrNumber, ErrData = any> {
|
|
23
|
+
type: ErrType;
|
|
24
|
+
id?: number | string;
|
|
25
|
+
publicMessage?: string;
|
|
26
|
+
message?: string;
|
|
27
|
+
errorData?: ErrData;
|
|
28
|
+
originalError?: Error;
|
|
29
|
+
statusCode?: number;
|
|
30
|
+
}
|
|
31
|
+
export interface RpcErrorWithPublic<ErrType extends StrNumber, ErrData = any> extends RpcErrorParams<ErrType, ErrData> {
|
|
32
|
+
publicMessage: string;
|
|
33
|
+
}
|
|
34
|
+
export interface RpcErrorWithPrivate<ErrType extends StrNumber, ErrData = any> extends RpcErrorParams<ErrType, ErrData> {
|
|
35
|
+
message: string;
|
|
36
|
+
}
|
|
37
|
+
export interface PublicRpcError<ErrType extends StrNumber, ErrData = any> extends Omit<RpcErrorParams<ErrType, ErrData>, 'message' | 'originalError'> {
|
|
38
|
+
readonly 'mion@isΣrrθr': true;
|
|
39
|
+
type: ErrType;
|
|
40
|
+
errorData?: ErrData;
|
|
41
|
+
publicMessage: string;
|
|
42
|
+
}
|
|
43
|
+
export type AnyErrorParams<ErrType extends StrNumber, ErrData = any> = RpcErrorWithPublic<ErrType, ErrData> | RpcErrorWithPrivate<ErrType, ErrData>;
|
|
44
|
+
export type MapKeyPathSegment = {
|
|
45
|
+
key: unknown;
|
|
46
|
+
index: number;
|
|
47
|
+
failed: 'mapKey';
|
|
48
|
+
};
|
|
49
|
+
export type MapValuePathSegment = {
|
|
50
|
+
key: unknown;
|
|
51
|
+
index: number;
|
|
52
|
+
failed: 'mapVal';
|
|
53
|
+
};
|
|
54
|
+
export type SetItemPathSegment = {
|
|
55
|
+
key: unknown;
|
|
56
|
+
index: number;
|
|
57
|
+
};
|
|
58
|
+
export type PathSegment = StrNumber | MapKeyPathSegment | MapValuePathSegment | SetItemPathSegment;
|
|
59
|
+
export interface RunTypeError {
|
|
60
|
+
path: PathSegment[];
|
|
61
|
+
expected: string;
|
|
62
|
+
format?: TypeFormatError;
|
|
63
|
+
}
|
|
64
|
+
export type JitFnArgs = {
|
|
65
|
+
vλl: string;
|
|
66
|
+
[key: string]: string;
|
|
67
|
+
};
|
|
68
|
+
export interface JitCompiledFnData {
|
|
69
|
+
readonly typeName: string;
|
|
70
|
+
readonly fnID: string;
|
|
71
|
+
readonly jitFnHash: string;
|
|
72
|
+
readonly args: JitFnArgs;
|
|
73
|
+
readonly defaultParamValues: JitFnArgs;
|
|
74
|
+
readonly isNoop?: boolean;
|
|
75
|
+
readonly code: string;
|
|
76
|
+
readonly jitDependencies: Array<string>;
|
|
77
|
+
readonly pureFnDependencies: Array<string>;
|
|
78
|
+
paramNames?: string[];
|
|
79
|
+
}
|
|
80
|
+
export interface JitCompiledFn<Fn extends AnyFn = AnyFn> extends JitCompiledFnData {
|
|
81
|
+
readonly createJitFn: (utl: JITUtils) => Fn;
|
|
82
|
+
readonly fn: Fn;
|
|
83
|
+
}
|
|
84
|
+
export interface PersistedJitFn extends Omit<JitCompiledFn, 'fn'> {
|
|
85
|
+
readonly fn: undefined;
|
|
86
|
+
}
|
|
87
|
+
export interface JitCompiledFunctions {
|
|
88
|
+
isType: JitCompiledFn<IsTypeFn>;
|
|
89
|
+
typeErrors: JitCompiledFn<TypeErrorsFn>;
|
|
90
|
+
prepareForJson: JitCompiledFn<PrepareForJsonFn>;
|
|
91
|
+
restoreFromJson: JitCompiledFn<RestoreFromJsonFn>;
|
|
92
|
+
stringifyJson: JitCompiledFn<JsonStringifyFn>;
|
|
93
|
+
toBinary: JitCompiledFn<ToBinaryFn>;
|
|
94
|
+
fromBinary: JitCompiledFn<FromBinaryFn>;
|
|
95
|
+
}
|
|
96
|
+
export interface SerializableJITFunctions {
|
|
97
|
+
isType: JitCompiledFnData;
|
|
98
|
+
typeErrors: JitCompiledFnData;
|
|
99
|
+
prepareForJson: JitCompiledFnData;
|
|
100
|
+
restoreFromJson: JitCompiledFnData;
|
|
101
|
+
stringifyJson: JitCompiledFnData;
|
|
102
|
+
toBinary: JitCompiledFnData;
|
|
103
|
+
fromBinary: JitCompiledFnData;
|
|
104
|
+
}
|
|
105
|
+
export interface JitFunctionsHashes {
|
|
106
|
+
isType: string;
|
|
107
|
+
typeErrors: string;
|
|
108
|
+
prepareForJson: string;
|
|
109
|
+
restoreFromJson: string;
|
|
110
|
+
stringifyJson: string;
|
|
111
|
+
toBinary: string;
|
|
112
|
+
fromBinary: string;
|
|
113
|
+
}
|
|
114
|
+
export type JsonStringifyFn = (value: any) => JSONString;
|
|
115
|
+
export type RestoreFromJsonFn = (value: JSONValue) => any;
|
|
116
|
+
export type PrepareForJsonFn = (value: any) => JSONValue;
|
|
117
|
+
export type TypeErrorsFn = (value: any) => RunTypeError[];
|
|
118
|
+
export type IsTypeFn = (value: any) => boolean;
|
|
119
|
+
export type ToCodeFn = (value: any) => string;
|
|
120
|
+
export type ToBinaryFn = (value: any, serializer: DataViewSerializer) => void;
|
|
121
|
+
export type FromBinaryFn = (value: undefined, deserializer: DataViewDeserializer) => any;
|
|
122
|
+
export type JitFunctionsCache = Record<string, JitCompiledFn>;
|
|
123
|
+
export type PureFunctionsCache = Record<string, Record<string, CompiledPureFunction>>;
|
|
124
|
+
export type PersistedJitFunctionsCache = Record<string, PersistedJitFn>;
|
|
125
|
+
export type PersistedPureFunctionsCache = Record<string, Record<string, PersistedPureFunction>>;
|
|
126
|
+
export type FnsDataCache = Record<string, JitCompiledFnData>;
|
|
127
|
+
export type PureFnsDataCache = Record<string, Record<string, PureFunctionData>>;
|
|
128
|
+
export interface SrcCodeJitCompiledFn extends JitCompiledFnData {
|
|
129
|
+
readonly createJitFn: (utl: JITUtils) => AnyFn;
|
|
130
|
+
readonly fn: undefined;
|
|
131
|
+
}
|
|
132
|
+
export interface SrcCodeCompiledPureFunction extends PureFunctionData {
|
|
133
|
+
readonly createPureFn: (utl: JITUtils) => AnyFn;
|
|
134
|
+
readonly fn: undefined;
|
|
135
|
+
}
|
|
136
|
+
export type SrcCodeJITCompiledFnsCache = Record<string, SrcCodeJitCompiledFn>;
|
|
137
|
+
export type SrcCodePureFunctionsCache = Record<string, Record<string, SrcCodeCompiledPureFunction>>;
|
|
138
|
+
export type StrNumber = string | number;
|
|
139
|
+
export type AnyFn = (...args: any[]) => any;
|
|
140
|
+
export type AnyObject = Record<string, unknown>;
|
|
141
|
+
export interface AnyClass<T = any> {
|
|
142
|
+
new (...args: any[]): T;
|
|
143
|
+
}
|
|
144
|
+
export interface SerializableClass<T = any> {
|
|
145
|
+
new (): T;
|
|
146
|
+
}
|
|
147
|
+
export type DeserializeClassFn<C extends InstanceType<AnyClass>> = (deserialized: DataOnly<C>) => C;
|
|
148
|
+
export type Mutable<T> = {
|
|
149
|
+
-readonly [P in keyof T]: T[P];
|
|
150
|
+
};
|
|
151
|
+
export type Prettify<T> = {
|
|
152
|
+
[P in keyof T]: T[P];
|
|
153
|
+
} & {};
|
|
154
|
+
export type JSONValue = StrNumber | boolean | null | {
|
|
155
|
+
[key: string]: JSONValue;
|
|
156
|
+
} | Array<JSONValue>;
|
|
157
|
+
export type JSONString = string;
|
|
158
|
+
type Native = Date | RegExp | URL | URLSearchParams | Blob | File | FileList | FormData | ArrayBuffer | SharedArrayBuffer | DataView | Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array;
|
|
159
|
+
export type DataOnly<T> = T extends object ? T extends Native ? T : T extends Function ? never : T extends new (...args: any[]) => any ? never : T extends Array<infer U> ? Array<DataOnly<U>> : T extends Map<infer K, infer V> ? Map<DataOnly<K>, DataOnly<V>> : T extends Set<infer U> ? Set<DataOnly<U>> : {
|
|
160
|
+
[K in keyof T as T[K] extends Function ? never : K]: DataOnly<T[K]>;
|
|
161
|
+
} : T;
|
|
162
|
+
export type StrictArrayBuffer = ArrayBuffer & {
|
|
163
|
+
buffer?: undefined;
|
|
164
|
+
};
|
|
165
|
+
export type BinaryInput = ArrayBuffer | ArrayBufferView;
|
|
166
|
+
export interface DataViewSerializer {
|
|
167
|
+
index: number;
|
|
168
|
+
view: DataView;
|
|
169
|
+
reset: () => void;
|
|
170
|
+
getBuffer: () => StrictArrayBuffer;
|
|
171
|
+
getBufferView: () => Uint8Array;
|
|
172
|
+
markAsEnded: () => void;
|
|
173
|
+
getLength(): number;
|
|
174
|
+
serString(str: string): void;
|
|
175
|
+
serFloat64(n: number): void;
|
|
176
|
+
serEnum(n: number | string): void;
|
|
177
|
+
setBitMask(bitMaskIndex: number, bitIndex: number): void;
|
|
178
|
+
}
|
|
179
|
+
export interface DataViewDeserializer {
|
|
180
|
+
index: number;
|
|
181
|
+
view: DataView;
|
|
182
|
+
reset: () => void;
|
|
183
|
+
setBuffer: (buffer: StrictArrayBuffer, byteOffset?: number, byteLength?: number) => void;
|
|
184
|
+
markAsEnded: () => void;
|
|
185
|
+
getLength(): number;
|
|
186
|
+
desString(): string;
|
|
187
|
+
desFloat64(): number;
|
|
188
|
+
desEnum(): number | string;
|
|
189
|
+
}
|
|
190
|
+
export type MimeTypes = (typeof MIME_TYPES)[keyof typeof MIME_TYPES];
|
|
191
|
+
export {};
|
|
192
|
+
export declare type __ΩSerializerMode = any[];
|
|
193
|
+
export declare type __ΩSerializerCode = any[];
|
|
194
|
+
export declare type __ΩCoreRouterOptions = any[];
|
|
195
|
+
export declare type __ΩTypedErrorParams = any[];
|
|
196
|
+
export declare type __ΩRpcErrorParams = any[];
|
|
197
|
+
export declare type __ΩRpcErrorWithPublic = any[];
|
|
198
|
+
export declare type __ΩRpcErrorWithPrivate = any[];
|
|
199
|
+
export declare type __ΩPublicRpcError = any[];
|
|
200
|
+
export declare type __ΩAnyErrorParams = any[];
|
|
201
|
+
export declare type __ΩMapKeyPathSegment = any[];
|
|
202
|
+
export declare type __ΩMapValuePathSegment = any[];
|
|
203
|
+
export declare type __ΩSetItemPathSegment = any[];
|
|
204
|
+
export declare type __ΩPathSegment = any[];
|
|
205
|
+
export declare type __ΩRunTypeError = any[];
|
|
206
|
+
export declare type __ΩJitFnArgs = any[];
|
|
207
|
+
export declare type __ΩJitCompiledFnData = any[];
|
|
208
|
+
export declare type __ΩJitCompiledFn = any[];
|
|
209
|
+
export declare type __ΩPersistedJitFn = any[];
|
|
210
|
+
export declare type __ΩJitCompiledFunctions = any[];
|
|
211
|
+
export declare type __ΩSerializableJITFunctions = any[];
|
|
212
|
+
export declare type __ΩJitFunctionsHashes = any[];
|
|
213
|
+
export declare type __ΩJsonStringifyFn = any[];
|
|
214
|
+
export declare type __ΩRestoreFromJsonFn = any[];
|
|
215
|
+
export declare type __ΩPrepareForJsonFn = any[];
|
|
216
|
+
export declare type __ΩTypeErrorsFn = any[];
|
|
217
|
+
export declare type __ΩIsTypeFn = any[];
|
|
218
|
+
export declare type __ΩToCodeFn = any[];
|
|
219
|
+
export declare type __ΩToBinaryFn = any[];
|
|
220
|
+
export declare type __ΩFromBinaryFn = any[];
|
|
221
|
+
export declare type __ΩJitFunctionsCache = any[];
|
|
222
|
+
export declare type __ΩPureFunctionsCache = any[];
|
|
223
|
+
export declare type __ΩPersistedJitFunctionsCache = any[];
|
|
224
|
+
export declare type __ΩPersistedPureFunctionsCache = any[];
|
|
225
|
+
export declare type __ΩFnsDataCache = any[];
|
|
226
|
+
export declare type __ΩPureFnsDataCache = any[];
|
|
227
|
+
export declare type __ΩSrcCodeJitCompiledFn = any[];
|
|
228
|
+
export declare type __ΩSrcCodeCompiledPureFunction = any[];
|
|
229
|
+
export declare type __ΩSrcCodeJITCompiledFnsCache = any[];
|
|
230
|
+
export declare type __ΩSrcCodePureFunctionsCache = any[];
|
|
231
|
+
export declare type __ΩStrNumber = any[];
|
|
232
|
+
export declare type __ΩAnyFn = any[];
|
|
233
|
+
export declare type __ΩAnyObject = any[];
|
|
234
|
+
export declare type __ΩAnyClass = any[];
|
|
235
|
+
export declare type __ΩSerializableClass = any[];
|
|
236
|
+
export declare type __ΩDeserializeClassFn = any[];
|
|
237
|
+
export declare type __ΩMutable = any[];
|
|
238
|
+
export declare type __ΩPrettify = any[];
|
|
239
|
+
export declare type __ΩJSONValue = any[];
|
|
240
|
+
export declare type __ΩJSONString = any[];
|
|
241
|
+
export declare type __ΩDataOnly = any[];
|
|
242
|
+
export declare type __ΩStrictArrayBuffer = any[];
|
|
243
|
+
export declare type __ΩBinaryInput = any[];
|
|
244
|
+
export declare type __ΩDataViewSerializer = any[];
|
|
245
|
+
export declare type __ΩDataViewDeserializer = any[];
|
|
246
|
+
export declare type __ΩMimeTypes = any[];
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { MIME_TYPES } from "../constants.js";
|
|
2
|
+
import { __ΩTypeFormatError as ___TypeFormatError } from "./formats/formats.types.js";
|
|
3
|
+
import { __ΩPersistedPureFunction as ___PersistedPureFunction, __ΩPureFunctionData as ___PureFunctionData, __ΩCompiledPureFunction as ___CompiledPureFunction } from "./pureFunctions.types.js";
|
|
4
|
+
const __ΩError = ["name", "message", "stack", "Error", 'P&4!&4"&4#8Mw$y'];
|
|
5
|
+
const __ΩOmit = ["T", "K", () => __ΩPick, () => __ΩExclude, "Omit", 'b!b"e!!e!!ge!"o$#o##w%y'];
|
|
6
|
+
const __ΩRecord = ["K", "T", "Record", `l'e#"Rb!b"Pde"!N#!w#y`];
|
|
7
|
+
const __ΩSharedArrayBuffer = ["byteLength", "begin", "end", 0, "slice", "SharedArrayBuffer", () => Symbol.toStringTag, "SharedArrayBuffer", `P'4!9P'2"8'2#8n$1%.&4'9Mw(y`];
|
|
8
|
+
const __ΩDataView = [() => __ΩArrayBufferLike, "TArrayBuffer", "buffer", "byteLength", "byteOffset", "littleEndian", "getFloat32", "getFloat64", "getInt8", "getInt16", "getInt32", "getUint8", "getUint16", "getUint32", "value", "setFloat32", "setFloat64", "setInt8", "setInt16", "setInt32", "setUint8", "setUint16", "setUint32", "DataView", `n!c"Pe"!4#9'4$9'4%9P'2%)2&8'1'P'2%)2&8'1(P'2%'1)P'2%)2&8'1*P'2%)2&8'1+P'2%'1,P'2%)2&8'1-P'2%)2&8'1.P'2%'2/)2&8$10P'2%'2/)2&8$11P'2%'2/$12P'2%'2/)2&8$13P'2%'2/)2&8$14P'2%'2/$15P'2%'2/)2&8$16P'2%'2/)2&8$17Mw8y`];
|
|
9
|
+
const __ΩBigUint64Array = [() => __ΩArrayBufferLike, "TArrayBuffer", "BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "target", "start", "end", "copyWithin", () => __ΩArrayIterator, "entries", "value", "index", 0, "array", "", "predicate", "thisArg", "every", "fill", 0, 0, "filter", 0, "find", 0, "findIndex", 0, "callbackfn", "forEach", "searchElement", "fromIndex", "includes", "indexOf", "separator", "join", () => __ΩArrayIterator, "keys", "lastIndexOf", "length", 0, 0, "map", "previousValue", "currentValue", "currentIndex", 0, "reduce", 0, "initialValue", 0, "reduceRight", 0, "reverse", () => __ΩArrayLike, "offset", "set", 0, "slice", 0, "some", "a", "b", "compareFn", "sort", "begin", 0, "subarray", "locales", "options", "toLocaleString", "toString", 0, "valueOf", () => __ΩArrayIterator, "values", () => __ΩArrayIterator, () => Symbol.iterator, "BigUint64Array", () => Symbol.toStringTag, "BigUint64Array", `n!c"P'4#9e"!4$9'4%9'4&9P'2''2('2)8!1*PP'*Go+"1,PP*2-'2.e$!o/"20)/122"238)14P*2-'2(8'2)8!15PP*2-'2.e$!o6"20"/122"238_o7"18PP*2-'2.e$!o9"20)/122"238P*-J1:PP*2-'2.e$!o;"20)/122"238'1<PP*2-'2.e$!o="20$/12>"238$1?P*2@'2A8)1BP*2@'2A8'1CP&2D8&1EP'oF"1GP*2@'2A8'1H'4I9PP*2-'2.e$!oJ"20*/12>"238_oK"1LPP*2M*2N'2Oe$!oP"20*/12>*1QPP"2M*2N'2Oe$!oR"20"/12>"2S"1QPP*2M*2N'2Oe$!oT"20*/12>*1UPP"2M*2N'2Oe$!oV"20"/12>"2S"1UP!1WP*oX"20'2Y8$1ZP'2(8'2)8_o["1\\PP*2-'2.e$!o]"20)/122"238)1^PP*2_*2\`P'*J/12a8!1bP'2c8'2)8e#!od"1ePP&&FJ2f8!2g8&1hP&1iPe#!oj"1kP*ol"1mP*on"1o.p4q9'*LMwry`];
|
|
10
|
+
const __ΩArrayBufferView = [() => __ΩArrayBufferLike, "TArrayBuffer", "buffer", "byteLength", "byteOffset", "ArrayBufferView", `n!c"Pe"!4#9'4$9'4%9Mw&y`];
|
|
11
|
+
const __ΩPick = ["T", "K", "Pick", 'l+e#!e"!fRb!b"Pde""N#!w#y'];
|
|
12
|
+
const __ΩExclude = ["T", "U", "Exclude", 'l6!Re$!RPe#!e$"qk#%QRb!b"Pde"!p)w#y'];
|
|
13
|
+
const __ΩArrayBufferLike = [() => __ΩArrayBufferTypes, () => __ΩArrayBufferTypes, "ArrayBufferLike", 'n!n"gfw#y'];
|
|
14
|
+
const __ΩArrayIterator = ["T", () => __ΩIteratorObject, () => __ΩBuiltinIteratorReturn, 0, () => Symbol.iterator, "ArrayIterator", 'b!Pe"!n##o"$Pe#!o$"1%Mw&y'];
|
|
15
|
+
const __ΩArrayLike = ["T", "length", "ArrayLike", `b!P'4"9'e"!LMw#y`];
|
|
16
|
+
const __ΩArrayBufferTypes = ["ArrayBuffer", "ArrayBufferTypes", 'P_4!Mw"y'];
|
|
17
|
+
const __ΩIteratorObject = ["T", "TReturn", "TNext", () => __ΩIterator, 0, () => Symbol.iterator, "IteratorObject", `b!#c"#c#Pe"!e""e"#o$$Pe#!e#"e##o%$1&Mw'y`];
|
|
18
|
+
const __ΩBuiltinIteratorReturn = ["BuiltinIteratorReturn", "!w!y"];
|
|
19
|
+
const __ΩIterator = ["T", "TReturn", "TNext", "param0", () => __ΩIteratorResult, "next", "value", () => __ΩIteratorResult, "return", "e", () => __ΩIteratorResult, "throw", "Iterator", `b!"c""c#PPPPGPe%#GJ@2$e#!e#"o%#1&Pe#"2'8e#!e#"o(#1)8P"2*8e#!e#"o+#1,8Mw-y`];
|
|
20
|
+
const __ΩIteratorResult = ["T", "TReturn", () => __ΩIteratorYieldResult, () => __ΩIteratorReturnResult, "IteratorResult", 'b!"c"Pe"!o#"e""o$"Jw%y'];
|
|
21
|
+
const __ΩIteratorYieldResult = ["TYield", false, "done", "value", "IteratorYieldResult", 'b!P."4#8e"!4$Mw%y'];
|
|
22
|
+
const __ΩIteratorReturnResult = ["TReturn", true, "done", "value", "IteratorReturnResult", 'b!P."4#e"!4$Mw%y'];
|
|
23
|
+
const SerializerModes = {
|
|
24
|
+
/** Use prepareForJson (mutates original objects), and leaves JSON.stringify to the platform adapter */
|
|
25
|
+
json: 1,
|
|
26
|
+
/** Use toBinary JIT function for binary serialization */
|
|
27
|
+
binary: 2,
|
|
28
|
+
/** Use stringifyJson JIT function that do not mutates objects. */
|
|
29
|
+
stringifyJson: 3
|
|
30
|
+
};
|
|
31
|
+
const __ΩSerializerMode = [() => SerializerModes, "SerializerMode", 'i!gw"y'];
|
|
32
|
+
const __ΩSerializerCode = [() => SerializerModes, () => __ΩSerializerMode, "SerializerCode", 'i!n"fw#y'];
|
|
33
|
+
const __ΩCoreRouterOptions = ["autoGenerateErrorId", "basePath", "suffix", "CoreRouterOptions", 'P)4!&4"&4#Mw$y'];
|
|
34
|
+
const __ΩTypedErrorParams = ["ErrType", "type", "message", () => __ΩError, "originalError", "TypedErrorParams", 'b!Pe"!4"&4#8n$4%8Mw&y'];
|
|
35
|
+
const __ΩRpcErrorParams = ["ErrType", "ErrData", "type", "id", "publicMessage", "message", "errorData", () => __ΩError, "originalError", "statusCode", "RpcErrorParams", `b!"c"Pe"!4#P'&J4$8&4%8&4&8e""4'8n(4)8'4*8Mw+y`];
|
|
36
|
+
const __ΩRpcErrorWithPublic = ["ErrType", "ErrData", () => __ΩRpcErrorParams, "publicMessage", "RpcErrorWithPublic", 'b!"c"Pe"!e""o##&4$Mw%y'];
|
|
37
|
+
const __ΩRpcErrorWithPrivate = ["ErrType", "ErrData", () => __ΩRpcErrorParams, "message", "RpcErrorWithPrivate", 'b!"c"Pe"!e""o##&4$Mw%y'];
|
|
38
|
+
const __ΩPublicRpcError = ["ErrType", "ErrData", () => __ΩOmit, () => __ΩRpcErrorParams, "message", "originalError", true, "mion@isΣrrθr", "type", "errorData", "publicMessage", "PublicRpcError", `b!"c"Pe"!e""o$#P.%.&Jo##.'4(9e"!4)e""4*8&4+Mw,y`];
|
|
39
|
+
const __ΩAnyErrorParams = ["ErrType", "ErrData", () => __ΩRpcErrorWithPublic, () => __ΩRpcErrorWithPrivate, "AnyErrorParams", 'b!"c"Pe"!e""o##e"!e""o$#Jw%y'];
|
|
40
|
+
const __ΩMapKeyPathSegment = ["key", "index", "mapKey", "failed", "MapKeyPathSegment", `P#4!'4".#4$Mw%y`];
|
|
41
|
+
const __ΩMapValuePathSegment = ["key", "index", "mapVal", "failed", "MapValuePathSegment", `P#4!'4".#4$Mw%y`];
|
|
42
|
+
const __ΩSetItemPathSegment = ["key", "index", "SetItemPathSegment", `P#4!'4"Mw#y`];
|
|
43
|
+
const __ΩPathSegment = [() => __ΩStrNumber, () => __ΩMapKeyPathSegment, () => __ΩMapValuePathSegment, () => __ΩSetItemPathSegment, "PathSegment", 'Pn!n"n#n$Jw%y'];
|
|
44
|
+
const __ΩRunTypeError = [() => __ΩPathSegment, "path", "expected", () => ___TypeFormatError, "format", "RunTypeError", 'Pn!F4"&4#n$4%8Mw&y'];
|
|
45
|
+
const __ΩJitFnArgs = ["vλl", "JitFnArgs", 'P&4!&&LMw"y'];
|
|
46
|
+
const __ΩJitCompiledFnData = ["typeName", "fnID", "jitFnHash", () => __ΩJitFnArgs, "args", () => __ΩJitFnArgs, "defaultParamValues", "isNoop", "code", "jitDependencies", "pureFnDependencies", "paramNames", "JitCompiledFnData", `P&4!9&4"9&4#9n$4%9n&4'9)4(89&4)9&F4*9&F4+9&F4,8Mw-y`];
|
|
47
|
+
const __ΩJitCompiledFn = [() => __ΩAnyFn, "Fn", () => __ΩJitCompiledFnData, "JITUtils", "utl", "", "createJitFn", "fn", "JitCompiledFn", `n!c"Pn#P"w$2%e#!/&4'9e"!4(9Mw)y`];
|
|
48
|
+
const __ΩPersistedJitFn = [() => __ΩOmit, () => __ΩJitCompiledFn, "fn", "fn", "PersistedJitFn", 'Pn".#o!#-4$9Mw%y'];
|
|
49
|
+
const __ΩJitCompiledFunctions = [() => __ΩJitCompiledFn, () => __ΩIsTypeFn, "isType", () => __ΩJitCompiledFn, () => __ΩTypeErrorsFn, "typeErrors", () => __ΩJitCompiledFn, () => __ΩPrepareForJsonFn, "prepareForJson", () => __ΩJitCompiledFn, () => __ΩRestoreFromJsonFn, "restoreFromJson", () => __ΩJitCompiledFn, () => __ΩJsonStringifyFn, "stringifyJson", () => __ΩJitCompiledFn, () => __ΩToBinaryFn, "toBinary", () => __ΩJitCompiledFn, () => __ΩFromBinaryFn, "fromBinary", "JitCompiledFunctions", `Pn"o!"4#n%o$"4&n(o'"4)n+o*"4,n.o-"4/n1o0"42n4o3"45Mw6y`];
|
|
50
|
+
const __ΩSerializableJITFunctions = [() => __ΩJitCompiledFnData, "isType", () => __ΩJitCompiledFnData, "typeErrors", () => __ΩJitCompiledFnData, "prepareForJson", () => __ΩJitCompiledFnData, "restoreFromJson", () => __ΩJitCompiledFnData, "stringifyJson", () => __ΩJitCompiledFnData, "toBinary", () => __ΩJitCompiledFnData, "fromBinary", "SerializableJITFunctions", `Pn!4"n#4$n%4&n'4(n)4*n+4,n-4.Mw/y`];
|
|
51
|
+
const __ΩJitFunctionsHashes = ["isType", "typeErrors", "prepareForJson", "restoreFromJson", "stringifyJson", "toBinary", "fromBinary", "JitFunctionsHashes", `P&4!&4"&4#&4$&4%&4&&4'Mw(y`];
|
|
52
|
+
const __ΩJsonStringifyFn = ["value", () => __ΩJSONString, "", "JsonStringifyFn", 'P"2!n"/#w$y'];
|
|
53
|
+
const __ΩRestoreFromJsonFn = [() => __ΩJSONValue, "value", "", "RestoreFromJsonFn", 'Pn!2""/#w$y'];
|
|
54
|
+
const __ΩPrepareForJsonFn = ["value", () => __ΩJSONValue, "", "PrepareForJsonFn", 'P"2!n"/#w$y'];
|
|
55
|
+
const __ΩTypeErrorsFn = ["value", () => __ΩRunTypeError, "", "TypeErrorsFn", 'P"2!n"F/#w$y'];
|
|
56
|
+
const __ΩIsTypeFn = ["value", "", "IsTypeFn", 'P"2!)/"w#y'];
|
|
57
|
+
const __ΩToCodeFn = ["value", "", "ToCodeFn", 'P"2!&/"w#y'];
|
|
58
|
+
const __ΩToBinaryFn = ["value", () => __ΩDataViewSerializer, "serializer", "", "ToBinaryFn", 'P"2!n"2#$/$w%y'];
|
|
59
|
+
const __ΩFromBinaryFn = ["value", () => __ΩDataViewDeserializer, "deserializer", "", "FromBinaryFn", 'P-2!n"2#"/$w%y'];
|
|
60
|
+
const __ΩJitFunctionsCache = [() => __ΩRecord, () => __ΩJitCompiledFn, "JitFunctionsCache", '&n"o!#w#y'];
|
|
61
|
+
const __ΩPureFunctionsCache = [() => __ΩRecord, () => __ΩRecord, () => ___CompiledPureFunction, "PureFunctionsCache", '&&n#o"#o!#w$y'];
|
|
62
|
+
const __ΩPersistedJitFunctionsCache = [() => __ΩRecord, () => __ΩPersistedJitFn, "PersistedJitFunctionsCache", '&n"o!#w#y'];
|
|
63
|
+
const __ΩPersistedPureFunctionsCache = [() => __ΩRecord, () => __ΩRecord, () => ___PersistedPureFunction, "PersistedPureFunctionsCache", '&&n#o"#o!#w$y'];
|
|
64
|
+
const __ΩFnsDataCache = [() => __ΩRecord, () => __ΩJitCompiledFnData, "FnsDataCache", '&n"o!#w#y'];
|
|
65
|
+
const __ΩPureFnsDataCache = [() => __ΩRecord, () => __ΩRecord, () => ___PureFunctionData, "PureFnsDataCache", '&&n#o"#o!#w$y'];
|
|
66
|
+
const __ΩSrcCodeJitCompiledFn = [() => __ΩJitCompiledFnData, "JITUtils", "utl", () => __ΩAnyFn, "", "createJitFn", "fn", "SrcCodeJitCompiledFn", `Pn!P"w"2#n$/%4&9-4'9Mw(y`];
|
|
67
|
+
const __ΩSrcCodeCompiledPureFunction = [() => ___PureFunctionData, "JITUtils", "utl", () => __ΩAnyFn, "", "createPureFn", "fn", "SrcCodeCompiledPureFunction", `Pn!P"w"2#n$/%4&9-4'9Mw(y`];
|
|
68
|
+
const __ΩSrcCodeJITCompiledFnsCache = [() => __ΩRecord, () => __ΩSrcCodeJitCompiledFn, "SrcCodeJITCompiledFnsCache", '&n"o!#w#y'];
|
|
69
|
+
const __ΩSrcCodePureFunctionsCache = [() => __ΩRecord, () => __ΩRecord, () => __ΩSrcCodeCompiledPureFunction, "SrcCodePureFunctionsCache", '&&n#o"#o!#w$y'];
|
|
70
|
+
const __ΩStrNumber = ["StrNumber", "P&'Jw!y"];
|
|
71
|
+
const __ΩAnyFn = ["args", "", "AnyFn", 'P"@2!"/"w#y'];
|
|
72
|
+
const __ΩAnyObject = [() => __ΩRecord, "AnyObject", '&#o!#w"y'];
|
|
73
|
+
const __ΩAnyClass = ["T", "args", "new", "AnyClass", '"c!PP"@2"e#!1#Mw$y'];
|
|
74
|
+
const __ΩSerializableClass = ["T", "new", "SerializableClass", '"c!PPe#!1"Mw#y'];
|
|
75
|
+
const __ΩDeserializeClassFn = ["C", () => __ΩDataOnly, "deserialized", "", "DeserializeClassFn", 'b!Pe"!o""2#e"!/$w%y'];
|
|
76
|
+
const __ΩMutable = ["T", "Mutable", 'l+e#!e"!fRb!Pde"!gN#)w"y'];
|
|
77
|
+
const __ΩPrettify = ["T", "Prettify", 'l+e$!e"!fRb!PPde#!gN#!PMKw"y'];
|
|
78
|
+
const __ΩJSONValue = [() => __ΩStrNumber, 0, 0, "JSONValue", 'Pn!),P&n"LMn#FJw$y'];
|
|
79
|
+
const __ΩJSONString = ["JSONString", "&w!y"];
|
|
80
|
+
const __ΩNative = [() => __ΩSharedArrayBuffer, () => __ΩDataView, () => __ΩBigUint64Array, "Native", 'PTA!!!!!!_n!n"UWVXYZ[\\]^n#Jw$y'];
|
|
81
|
+
const __ΩDataOnly = ["T", () => __ΩNative, () => Function, "args", "new", 0, 0, 0, 0, 0, () => Function, "DataOnly", `lĐe$!R!R!Re"!o&"FRe"!o'"e""o("ERe*!o)"DR!Re%!RPe'!e#!fo*"Pe(!e$!fPu+qkIKQGRPde%!gtO!RPe#!h)!DqkAlQRPde%!pvRPdde#!h!!h!"Eqk3QRPde%!pRPde#!h!!Fqk+QRPde%!p§RPe#!P"@2$"/%qk)¶QRPde%!p¾RPe#!Pu#qk'ÐQRPde%!pØRPe#!n"qk#åQRPde%!píRe$!RPe#!%qkùāQRb!Pde"!pąw,y`];
|
|
82
|
+
const __ΩStrictArrayBuffer = ["buffer", "StrictArrayBuffer", 'P_P-4!8MKw"y'];
|
|
83
|
+
const __ΩBinaryInput = [() => __ΩArrayBufferView, "BinaryInput", 'P_n!Jw"y'];
|
|
84
|
+
const __ΩDataViewSerializer = ["index", () => __ΩDataView, "view", "", "reset", () => __ΩStrictArrayBuffer, "getBuffer", "getBufferView", "markAsEnded", "getLength", "str", "serString", "n", "serFloat64", "serEnum", "bitMaskIndex", "bitIndex", "setBitMask", "DataViewSerializer", `P'4!n"4#P$/$4%Pn&/$4'PW/$4(P$/$4)P'1*P&2+$1,P'2-$1.PP'&J2-$1/P'20'21$12Mw3y`];
|
|
85
|
+
const __ΩDataViewDeserializer = ["index", () => __ΩDataView, "view", "", "reset", () => __ΩStrictArrayBuffer, "buffer", "byteOffset", "byteLength", "setBuffer", "markAsEnded", "getLength", "desString", "desFloat64", "desEnum", "DataViewDeserializer", `P'4!n"4#P$/$4%Pn&2''2(8'2)8$/$4*P$/$4+P'1,P&1-P'1.PP'&J1/Mw0y`];
|
|
86
|
+
const __ΩMimeTypes = [() => MIME_TYPES, () => MIME_TYPES, "MimeTypes", 'i!i"gfw#y'];
|
|
87
|
+
export {
|
|
88
|
+
SerializerModes,
|
|
89
|
+
__ΩAnyClass,
|
|
90
|
+
__ΩAnyErrorParams,
|
|
91
|
+
__ΩAnyFn,
|
|
92
|
+
__ΩAnyObject,
|
|
93
|
+
__ΩBinaryInput,
|
|
94
|
+
__ΩCoreRouterOptions,
|
|
95
|
+
__ΩDataOnly,
|
|
96
|
+
__ΩDataViewDeserializer,
|
|
97
|
+
__ΩDataViewSerializer,
|
|
98
|
+
__ΩDeserializeClassFn,
|
|
99
|
+
__ΩFnsDataCache,
|
|
100
|
+
__ΩFromBinaryFn,
|
|
101
|
+
__ΩIsTypeFn,
|
|
102
|
+
__ΩJSONString,
|
|
103
|
+
__ΩJSONValue,
|
|
104
|
+
__ΩJitCompiledFn,
|
|
105
|
+
__ΩJitCompiledFnData,
|
|
106
|
+
__ΩJitCompiledFunctions,
|
|
107
|
+
__ΩJitFnArgs,
|
|
108
|
+
__ΩJitFunctionsCache,
|
|
109
|
+
__ΩJitFunctionsHashes,
|
|
110
|
+
__ΩJsonStringifyFn,
|
|
111
|
+
__ΩMapKeyPathSegment,
|
|
112
|
+
__ΩMapValuePathSegment,
|
|
113
|
+
__ΩMimeTypes,
|
|
114
|
+
__ΩMutable,
|
|
115
|
+
__ΩPathSegment,
|
|
116
|
+
__ΩPersistedJitFn,
|
|
117
|
+
__ΩPersistedJitFunctionsCache,
|
|
118
|
+
__ΩPersistedPureFunctionsCache,
|
|
119
|
+
__ΩPrepareForJsonFn,
|
|
120
|
+
__ΩPrettify,
|
|
121
|
+
__ΩPublicRpcError,
|
|
122
|
+
__ΩPureFnsDataCache,
|
|
123
|
+
__ΩPureFunctionsCache,
|
|
124
|
+
__ΩRestoreFromJsonFn,
|
|
125
|
+
__ΩRpcErrorParams,
|
|
126
|
+
__ΩRpcErrorWithPrivate,
|
|
127
|
+
__ΩRpcErrorWithPublic,
|
|
128
|
+
__ΩRunTypeError,
|
|
129
|
+
__ΩSerializableClass,
|
|
130
|
+
__ΩSerializableJITFunctions,
|
|
131
|
+
__ΩSerializerCode,
|
|
132
|
+
__ΩSerializerMode,
|
|
133
|
+
__ΩSetItemPathSegment,
|
|
134
|
+
__ΩSrcCodeCompiledPureFunction,
|
|
135
|
+
__ΩSrcCodeJITCompiledFnsCache,
|
|
136
|
+
__ΩSrcCodeJitCompiledFn,
|
|
137
|
+
__ΩSrcCodePureFunctionsCache,
|
|
138
|
+
__ΩStrNumber,
|
|
139
|
+
__ΩStrictArrayBuffer,
|
|
140
|
+
__ΩToBinaryFn,
|
|
141
|
+
__ΩToCodeFn,
|
|
142
|
+
__ΩTypeErrorsFn,
|
|
143
|
+
__ΩTypedErrorParams
|
|
144
|
+
};
|
|
145
|
+
//# sourceMappingURL=general.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"general.types.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|