@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,234 @@
|
|
|
1
|
+
import { FormatParam } from './formats.types.ts';
|
|
2
|
+
export type Samples = string | readonly string[];
|
|
3
|
+
export type StringValidators = {
|
|
4
|
+
maxLength?: number | {
|
|
5
|
+
val: number;
|
|
6
|
+
errorMessage: string;
|
|
7
|
+
desc?: string;
|
|
8
|
+
};
|
|
9
|
+
minLength?: number | {
|
|
10
|
+
val: number;
|
|
11
|
+
errorMessage: string;
|
|
12
|
+
desc?: string;
|
|
13
|
+
};
|
|
14
|
+
length?: number | {
|
|
15
|
+
val: number;
|
|
16
|
+
errorMessage: string;
|
|
17
|
+
desc?: string;
|
|
18
|
+
};
|
|
19
|
+
disallowedChars?: {
|
|
20
|
+
val: string;
|
|
21
|
+
errorMessage: string;
|
|
22
|
+
desc?: string;
|
|
23
|
+
ignoreCase?: boolean;
|
|
24
|
+
mockSamples: string;
|
|
25
|
+
};
|
|
26
|
+
disallowedValues?: {
|
|
27
|
+
val: readonly string[];
|
|
28
|
+
errorMessage: string;
|
|
29
|
+
desc?: string;
|
|
30
|
+
ignoreCase?: boolean;
|
|
31
|
+
mockSamples: Samples;
|
|
32
|
+
};
|
|
33
|
+
pattern?: {
|
|
34
|
+
val: RegExp;
|
|
35
|
+
errorMessage: string;
|
|
36
|
+
desc?: string;
|
|
37
|
+
ignoreCase?: boolean;
|
|
38
|
+
mockSamples: Samples;
|
|
39
|
+
};
|
|
40
|
+
allowedChars?: {
|
|
41
|
+
val: string;
|
|
42
|
+
errorMessage: string;
|
|
43
|
+
desc?: string;
|
|
44
|
+
ignoreCase?: boolean;
|
|
45
|
+
mockSamples?: Samples;
|
|
46
|
+
};
|
|
47
|
+
allowedValues?: {
|
|
48
|
+
val: readonly string[];
|
|
49
|
+
errorMessage: string;
|
|
50
|
+
desc?: string;
|
|
51
|
+
ignoreCase?: boolean;
|
|
52
|
+
mockSamples?: Samples;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export type StringTransformers = {
|
|
56
|
+
lowercase?: boolean;
|
|
57
|
+
uppercase?: boolean;
|
|
58
|
+
capitalize?: boolean;
|
|
59
|
+
trim?: boolean;
|
|
60
|
+
replace?: {
|
|
61
|
+
searchValue: string;
|
|
62
|
+
replaceValue: string;
|
|
63
|
+
};
|
|
64
|
+
replaceAll?: {
|
|
65
|
+
searchValue: string;
|
|
66
|
+
replaceValue: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
export type StringParams = StringValidators & StringTransformers;
|
|
70
|
+
export type DateFmt = 'ISO' | 'YYYY-MM-DD' | 'DD-MM-YYYY' | 'MM-DD-YYYY' | 'MM-DD' | 'DD-MM' | 'YYYY-MM';
|
|
71
|
+
export type FormatParams_Date = {
|
|
72
|
+
format: FormatParam<DateFmt>;
|
|
73
|
+
};
|
|
74
|
+
export type TimeFmt = 'ISO' | 'HH:mm:ss[.mmm]TZ' | 'HH:mm:ss[.mmm]' | 'HH:mm:ss' | 'HH:mm' | 'mm:ss' | 'HH' | 'mm' | 'ss';
|
|
75
|
+
export type FormatParams_Time = {
|
|
76
|
+
format: FormatParam<TimeFmt>;
|
|
77
|
+
};
|
|
78
|
+
export type FormatParams_DateTime = {
|
|
79
|
+
date: FormatParams_Date;
|
|
80
|
+
time: FormatParams_Time;
|
|
81
|
+
splitChar: FormatParam<string>;
|
|
82
|
+
};
|
|
83
|
+
export type FormatParams_EmailPattern = Omit<StringValidators, 'length' | 'allowedChars' | 'disallowedChars' | 'allowedValues'>;
|
|
84
|
+
export type FormatParams_Email = FormatParams_EmailPattern & {
|
|
85
|
+
localPart?: StringValidators;
|
|
86
|
+
domain?: FormatParams_Domain;
|
|
87
|
+
};
|
|
88
|
+
export type FormatParams_UrlPattern = Omit<StringParams, 'allowedChars' | 'disallowedChars' | 'allowedValues' | 'disallowedValues'>;
|
|
89
|
+
export type FormatParams_Url = FormatParams_UrlPattern & {
|
|
90
|
+
ip?: FormatParams_IP;
|
|
91
|
+
domain?: FormatParams_Domain;
|
|
92
|
+
};
|
|
93
|
+
export type FormatParams_DomainName = Omit<StringValidators, 'length' | 'allowedChars' | 'disallowedChars'>;
|
|
94
|
+
export type FormatParams_Tld = Omit<StringValidators, 'length' | 'allowedChars' | 'disallowedChars'>;
|
|
95
|
+
export type FormatParam_Pattern = StringValidators['pattern'];
|
|
96
|
+
export type FormatParams_DomainCore = {
|
|
97
|
+
names?: never;
|
|
98
|
+
tld?: never;
|
|
99
|
+
pattern: FormatParam_Pattern;
|
|
100
|
+
} | {
|
|
101
|
+
names: FormatParams_DomainName;
|
|
102
|
+
tld: FormatParams_Tld;
|
|
103
|
+
pattern?: never;
|
|
104
|
+
};
|
|
105
|
+
export type FormatParams_Domain = {
|
|
106
|
+
maxLength?: FormatParam<number>;
|
|
107
|
+
minLength?: FormatParam<number>;
|
|
108
|
+
maxParts?: FormatParam<number>;
|
|
109
|
+
minParts?: FormatParam<number>;
|
|
110
|
+
} & FormatParams_DomainCore;
|
|
111
|
+
export type FormatParams_IP = {
|
|
112
|
+
version: FormatParam<4 | 6 | 'any'>;
|
|
113
|
+
allowLocalHost?: FormatParam<boolean>;
|
|
114
|
+
allowPort?: FormatParam<boolean>;
|
|
115
|
+
};
|
|
116
|
+
export type FormatParams_UUID = {
|
|
117
|
+
version: FormatParam<'4' | '7'>;
|
|
118
|
+
};
|
|
119
|
+
type NumberMax = {
|
|
120
|
+
max?: number | {
|
|
121
|
+
val: number;
|
|
122
|
+
errorMessage: string;
|
|
123
|
+
desc?: string;
|
|
124
|
+
};
|
|
125
|
+
gt?: never;
|
|
126
|
+
} | {
|
|
127
|
+
max?: never;
|
|
128
|
+
gt?: number | {
|
|
129
|
+
val: number;
|
|
130
|
+
errorMessage: string;
|
|
131
|
+
desc?: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
type NumberMin = {
|
|
135
|
+
min?: number | {
|
|
136
|
+
val: number;
|
|
137
|
+
errorMessage: string;
|
|
138
|
+
desc?: string;
|
|
139
|
+
};
|
|
140
|
+
lt?: never;
|
|
141
|
+
} | {
|
|
142
|
+
min?: never;
|
|
143
|
+
lt?: number | {
|
|
144
|
+
val: number;
|
|
145
|
+
errorMessage: string;
|
|
146
|
+
desc?: string;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
type NumberType = {
|
|
150
|
+
integer?: boolean | {
|
|
151
|
+
val: boolean;
|
|
152
|
+
errorMessage: string;
|
|
153
|
+
desc?: string;
|
|
154
|
+
};
|
|
155
|
+
float?: never;
|
|
156
|
+
} | {
|
|
157
|
+
integer?: never;
|
|
158
|
+
float?: boolean | {
|
|
159
|
+
val: boolean;
|
|
160
|
+
errorMessage: string;
|
|
161
|
+
desc?: string;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
export type FormatParams_Number = NumberMax & NumberMin & NumberType & {
|
|
165
|
+
multipleOf?: number | {
|
|
166
|
+
val: number;
|
|
167
|
+
errorMessage: string;
|
|
168
|
+
desc?: string;
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
type BigIntMax = {
|
|
172
|
+
max?: bigint | {
|
|
173
|
+
val: bigint;
|
|
174
|
+
errorMessage: string;
|
|
175
|
+
desc?: string;
|
|
176
|
+
};
|
|
177
|
+
gt?: never;
|
|
178
|
+
} | {
|
|
179
|
+
max?: never;
|
|
180
|
+
gt?: bigint | {
|
|
181
|
+
val: bigint;
|
|
182
|
+
errorMessage: string;
|
|
183
|
+
desc?: string;
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
type BigIntMin = {
|
|
187
|
+
min?: bigint | {
|
|
188
|
+
val: bigint;
|
|
189
|
+
errorMessage: string;
|
|
190
|
+
desc?: string;
|
|
191
|
+
};
|
|
192
|
+
lt?: never;
|
|
193
|
+
} | {
|
|
194
|
+
min?: never;
|
|
195
|
+
lt?: bigint | {
|
|
196
|
+
val: bigint;
|
|
197
|
+
errorMessage: string;
|
|
198
|
+
desc?: string;
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
export type FormatParams_BigInt = BigIntMax & BigIntMin & {
|
|
202
|
+
multipleOf?: bigint | {
|
|
203
|
+
val: bigint;
|
|
204
|
+
errorMessage: string;
|
|
205
|
+
desc?: string;
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
export type AnyStringFormatParam = StringParams | FormatParams_Email | FormatParams_Url | FormatParams_Domain | FormatParams_IP | FormatParams_UUID | FormatParams_DateTime | FormatParams_Date | FormatParams_Time;
|
|
209
|
+
export type AnyFormatParams = AnyStringFormatParam | FormatParams_Number | FormatParams_BigInt;
|
|
210
|
+
export {};
|
|
211
|
+
export declare type __ΩSamples = any[];
|
|
212
|
+
export declare type __ΩStringValidators = any[];
|
|
213
|
+
export declare type __ΩStringTransformers = any[];
|
|
214
|
+
export declare type __ΩStringParams = any[];
|
|
215
|
+
export declare type __ΩDateFmt = any[];
|
|
216
|
+
export declare type __ΩFormatParams_Date = any[];
|
|
217
|
+
export declare type __ΩTimeFmt = any[];
|
|
218
|
+
export declare type __ΩFormatParams_Time = any[];
|
|
219
|
+
export declare type __ΩFormatParams_DateTime = any[];
|
|
220
|
+
export declare type __ΩFormatParams_EmailPattern = any[];
|
|
221
|
+
export declare type __ΩFormatParams_Email = any[];
|
|
222
|
+
export declare type __ΩFormatParams_UrlPattern = any[];
|
|
223
|
+
export declare type __ΩFormatParams_Url = any[];
|
|
224
|
+
export declare type __ΩFormatParams_DomainName = any[];
|
|
225
|
+
export declare type __ΩFormatParams_Tld = any[];
|
|
226
|
+
export declare type __ΩFormatParam_Pattern = any[];
|
|
227
|
+
export declare type __ΩFormatParams_DomainCore = any[];
|
|
228
|
+
export declare type __ΩFormatParams_Domain = any[];
|
|
229
|
+
export declare type __ΩFormatParams_IP = any[];
|
|
230
|
+
export declare type __ΩFormatParams_UUID = any[];
|
|
231
|
+
export declare type __ΩFormatParams_Number = any[];
|
|
232
|
+
export declare type __ΩFormatParams_BigInt = any[];
|
|
233
|
+
export declare type __ΩAnyStringFormatParam = any[];
|
|
234
|
+
export declare type __ΩAnyFormatParams = any[];
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const src_types_general_types = require("../general.types.cjs");
|
|
4
|
+
const src_types_formats_formatsParams_types = require("./formatsParams.types.cjs");
|
|
5
|
+
const src_types_formats_formats_types = require("./formats.types.cjs");
|
|
6
|
+
const src_types_formats_formatBrands_types = require("./formatBrands.types.cjs");
|
|
7
|
+
const __ΩRecord = ["K", "T", "Record", `l'e#"Rb!b"Pde"!N#!w#y`];
|
|
8
|
+
const __ΩTypeErrorParam = [() => src_types_general_types.__ΩRunTypeError, "rtError", () => src_types_general_types.__ΩRunTypeError, "rtErrors", "propName", "index", "TypeErrorParam", `Pn!4"n#F4$P&'J4%'4&8Mw'y`];
|
|
9
|
+
const __ΩUnionKeys = ["T", "UnionKeys", 'l5e$!gR!RPe#!#qk#(QRb!Pde"!p*w"y'];
|
|
10
|
+
const __ΩFriendlyErrorParams = ["T", () => __ΩUnionKeys, () => src_types_formats_formats_types.__ΩTypeFormatError, () => __ΩTypeErrorParam, "FriendlyErrorParams", 'l&n#Rb!PPde#!o""N#"n$Kw%y'];
|
|
11
|
+
const __ΩStringErrorParams = [() => __ΩFriendlyErrorParams, () => src_types_formats_formatsParams_types.__ΩStringParams, "StringErrorParams", 'n"o!"w#y'];
|
|
12
|
+
const __ΩEmailErrorParams = [() => __ΩFriendlyErrorParams, () => src_types_formats_formatsParams_types.__ΩFormatParams_Email, "EmailErrorParams", 'n"o!"w#y'];
|
|
13
|
+
const __ΩUrlErrorParams = [() => __ΩFriendlyErrorParams, () => src_types_formats_formatsParams_types.__ΩFormatParams_Url, "UrlErrorParams", 'n"o!"w#y'];
|
|
14
|
+
const __ΩDomainErrorParams = [() => __ΩFriendlyErrorParams, () => src_types_formats_formatsParams_types.__ΩFormatParams_Domain, "DomainErrorParams", 'n"o!"w#y'];
|
|
15
|
+
const __ΩIPErrorParams = [() => __ΩFriendlyErrorParams, () => src_types_formats_formatsParams_types.__ΩFormatParams_IP, "IPErrorParams", 'n"o!"w#y'];
|
|
16
|
+
const __ΩUUIDErrorParams = [() => __ΩFriendlyErrorParams, () => src_types_formats_formatsParams_types.__ΩFormatParams_UUID, "UUIDErrorParams", 'n"o!"w#y'];
|
|
17
|
+
const __ΩDateTimeErrorParams = [() => __ΩFriendlyErrorParams, () => src_types_formats_formatsParams_types.__ΩFormatParams_DateTime, "DateTimeErrorParams", 'n"o!"w#y'];
|
|
18
|
+
const __ΩDateErrorParams = [() => __ΩFriendlyErrorParams, () => src_types_formats_formatsParams_types.__ΩFormatParams_Date, "DateErrorParams", 'n"o!"w#y'];
|
|
19
|
+
const __ΩTimeErrorParams = [() => __ΩFriendlyErrorParams, () => src_types_formats_formatsParams_types.__ΩFormatParams_Time, "TimeErrorParams", 'n"o!"w#y'];
|
|
20
|
+
const __ΩNumberErrorParams = [() => __ΩFriendlyErrorParams, () => src_types_formats_formatsParams_types.__ΩFormatParams_Number, "NumberErrorParams", 'n"o!"w#y'];
|
|
21
|
+
const __ΩBigIntErrorParams = [() => __ΩFriendlyErrorParams, () => src_types_formats_formatsParams_types.__ΩFormatParams_BigInt, "BigIntErrorParams", 'n"o!"w#y'];
|
|
22
|
+
const __ΩAnyFriendlyErrorParams = [() => __ΩFriendlyErrorParams, () => src_types_formats_formatsParams_types.__ΩAnyStringFormatParam, () => __ΩFriendlyErrorParams, () => src_types_formats_formatsParams_types.__ΩFormatParams_Number, () => __ΩFriendlyErrorParams, () => src_types_formats_formatsParams_types.__ΩFormatParams_BigInt, "AnyFriendlyErrorParams", `Pn"o!"n$o#"n&o%"Jw'y`];
|
|
23
|
+
const __ΩExtractErrorParams = ["T", () => src_types_formats_formats_types.__ΩExtractFormatParams, () => __ΩTypeErrorParam, () => src_types_formats_formatBrands_types.__ΩBrandEmail, () => __ΩEmailErrorParams, () => src_types_formats_formatBrands_types.__ΩBrandUUID, () => __ΩUUIDErrorParams, () => src_types_formats_formatBrands_types.__ΩBrandUrl, () => __ΩUrlErrorParams, () => src_types_formats_formatBrands_types.__ΩBrandDomain, () => __ΩDomainErrorParams, () => src_types_formats_formatBrands_types.__ΩBrandIP, () => __ΩIPErrorParams, () => src_types_formats_formatBrands_types.__ΩBrandDateTime, () => __ΩDateTimeErrorParams, () => src_types_formats_formatBrands_types.__ΩBrandDate, () => __ΩDateErrorParams, () => src_types_formats_formatBrands_types.__Ω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`];
|
|
24
|
+
const __ΩFriendlyErrorHandler = ["T", () => __ΩExtractErrorParams, "params", "", "FriendlyErrorHandler", 'b!Pe"!o""2#&/$w%y'];
|
|
25
|
+
const __ΩMapErrorHandlers = ["K", "V", () => __ΩFriendlyErrorHandler, "$key", () => __ΩFriendlyErrors, () => __ΩFriendlyErrorHandler, "$value", "MapErrorHandlers", `b!b"Pe"!o#"4$8Pe#"o%"e#"o&"J4'8Mw(y`];
|
|
26
|
+
const __ΩSetErrorHandlers = ["T", () => __ΩFriendlyErrors, () => __ΩFriendlyErrorHandler, "$item", "SetErrorHandlers", 'b!PPe#!o""e#!o#"J4$8Mw%y'];
|
|
27
|
+
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`];
|
|
28
|
+
const __ΩMapErrorsResult = ["_K", "V", () => __ΩRecord, () => src_types_general_types.__ΩStrNumber, "$keys", () => __ΩRecord, () => src_types_general_types.__ΩStrNumber, () => __ΩFriendlyErrorsResult, "$values", "MapErrorsResult", `l7e$!o("R&RPe#!%qk#*QRb!b"Pn$&o##4%8n'Pde#"p,o)8Mw*y`];
|
|
29
|
+
const __ΩSetErrorsResult = ["T", () => __ΩRecord, () => src_types_general_types.__ΩStrNumber, () => __ΩFriendlyErrorsResult, "SetErrorsResult", 'l7e$!o$"R&RPe#!%qk#*QRb!n#Pde"!p,o"#w%y'];
|
|
30
|
+
const __ΩFriendlyErrorsResult = ["T", () => __ΩRecord, () => src_types_general_types.__ΩStrNumber, 0, () => __ΩMapErrorsResult, () => __ΩSetErrorsResult, () => __ΩRecord, () => src_types_general_types.__Ω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`];
|
|
31
|
+
exports.__ΩAnyFriendlyErrorParams = __ΩAnyFriendlyErrorParams;
|
|
32
|
+
exports.__ΩBigIntErrorParams = __ΩBigIntErrorParams;
|
|
33
|
+
exports.__ΩDateErrorParams = __ΩDateErrorParams;
|
|
34
|
+
exports.__ΩDateTimeErrorParams = __ΩDateTimeErrorParams;
|
|
35
|
+
exports.__ΩDomainErrorParams = __ΩDomainErrorParams;
|
|
36
|
+
exports.__ΩEmailErrorParams = __ΩEmailErrorParams;
|
|
37
|
+
exports.__ΩExtractErrorParams = __ΩExtractErrorParams;
|
|
38
|
+
exports.__ΩFriendlyErrorHandler = __ΩFriendlyErrorHandler;
|
|
39
|
+
exports.__ΩFriendlyErrorParams = __ΩFriendlyErrorParams;
|
|
40
|
+
exports.__ΩFriendlyErrors = __ΩFriendlyErrors;
|
|
41
|
+
exports.__ΩFriendlyErrorsResult = __ΩFriendlyErrorsResult;
|
|
42
|
+
exports.__ΩIPErrorParams = __ΩIPErrorParams;
|
|
43
|
+
exports.__ΩMapErrorHandlers = __ΩMapErrorHandlers;
|
|
44
|
+
exports.__ΩMapErrorsResult = __ΩMapErrorsResult;
|
|
45
|
+
exports.__ΩNumberErrorParams = __ΩNumberErrorParams;
|
|
46
|
+
exports.__ΩSetErrorHandlers = __ΩSetErrorHandlers;
|
|
47
|
+
exports.__ΩSetErrorsResult = __ΩSetErrorsResult;
|
|
48
|
+
exports.__ΩStringErrorParams = __ΩStringErrorParams;
|
|
49
|
+
exports.__ΩTimeErrorParams = __ΩTimeErrorParams;
|
|
50
|
+
exports.__ΩTypeErrorParam = __ΩTypeErrorParam;
|
|
51
|
+
exports.__ΩUUIDErrorParams = __ΩUUIDErrorParams;
|
|
52
|
+
exports.__ΩUrlErrorParams = __ΩUrlErrorParams;
|
|
53
|
+
//# sourceMappingURL=friendlyErrors.types.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"friendlyErrors.types.cjs","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,145 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const src_constants = require("../constants.cjs");
|
|
4
|
+
const src_types_formats_formats_types = require("./formats/formats.types.cjs");
|
|
5
|
+
const src_types_pureFunctions_types = require("./pureFunctions.types.cjs");
|
|
6
|
+
const __ΩError = ["name", "message", "stack", "Error", 'P&4!&4"&4#8Mw$y'];
|
|
7
|
+
const __ΩOmit = ["T", "K", () => __ΩPick, () => __ΩExclude, "Omit", 'b!b"e!!e!!ge!"o$#o##w%y'];
|
|
8
|
+
const __ΩRecord = ["K", "T", "Record", `l'e#"Rb!b"Pde"!N#!w#y`];
|
|
9
|
+
const __ΩSharedArrayBuffer = ["byteLength", "begin", "end", 0, "slice", "SharedArrayBuffer", () => Symbol.toStringTag, "SharedArrayBuffer", `P'4!9P'2"8'2#8n$1%.&4'9Mw(y`];
|
|
10
|
+
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`];
|
|
11
|
+
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`];
|
|
12
|
+
const __ΩArrayBufferView = [() => __ΩArrayBufferLike, "TArrayBuffer", "buffer", "byteLength", "byteOffset", "ArrayBufferView", `n!c"Pe"!4#9'4$9'4%9Mw&y`];
|
|
13
|
+
const __ΩPick = ["T", "K", "Pick", 'l+e#!e"!fRb!b"Pde""N#!w#y'];
|
|
14
|
+
const __ΩExclude = ["T", "U", "Exclude", 'l6!Re$!RPe#!e$"qk#%QRb!b"Pde"!p)w#y'];
|
|
15
|
+
const __ΩArrayBufferLike = [() => __ΩArrayBufferTypes, () => __ΩArrayBufferTypes, "ArrayBufferLike", 'n!n"gfw#y'];
|
|
16
|
+
const __ΩArrayIterator = ["T", () => __ΩIteratorObject, () => __ΩBuiltinIteratorReturn, 0, () => Symbol.iterator, "ArrayIterator", 'b!Pe"!n##o"$Pe#!o$"1%Mw&y'];
|
|
17
|
+
const __ΩArrayLike = ["T", "length", "ArrayLike", `b!P'4"9'e"!LMw#y`];
|
|
18
|
+
const __ΩArrayBufferTypes = ["ArrayBuffer", "ArrayBufferTypes", 'P_4!Mw"y'];
|
|
19
|
+
const __ΩIteratorObject = ["T", "TReturn", "TNext", () => __ΩIterator, 0, () => Symbol.iterator, "IteratorObject", `b!#c"#c#Pe"!e""e"#o$$Pe#!e#"e##o%$1&Mw'y`];
|
|
20
|
+
const __ΩBuiltinIteratorReturn = ["BuiltinIteratorReturn", "!w!y"];
|
|
21
|
+
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`];
|
|
22
|
+
const __ΩIteratorResult = ["T", "TReturn", () => __ΩIteratorYieldResult, () => __ΩIteratorReturnResult, "IteratorResult", 'b!"c"Pe"!o#"e""o$"Jw%y'];
|
|
23
|
+
const __ΩIteratorYieldResult = ["TYield", false, "done", "value", "IteratorYieldResult", 'b!P."4#8e"!4$Mw%y'];
|
|
24
|
+
const __ΩIteratorReturnResult = ["TReturn", true, "done", "value", "IteratorReturnResult", 'b!P."4#e"!4$Mw%y'];
|
|
25
|
+
const SerializerModes = {
|
|
26
|
+
/** Use prepareForJson (mutates original objects), and leaves JSON.stringify to the platform adapter */
|
|
27
|
+
json: 1,
|
|
28
|
+
/** Use toBinary JIT function for binary serialization */
|
|
29
|
+
binary: 2,
|
|
30
|
+
/** Use stringifyJson JIT function that do not mutates objects. */
|
|
31
|
+
stringifyJson: 3
|
|
32
|
+
};
|
|
33
|
+
const __ΩSerializerMode = [() => SerializerModes, "SerializerMode", 'i!gw"y'];
|
|
34
|
+
const __ΩSerializerCode = [() => SerializerModes, () => __ΩSerializerMode, "SerializerCode", 'i!n"fw#y'];
|
|
35
|
+
const __ΩCoreRouterOptions = ["autoGenerateErrorId", "basePath", "suffix", "CoreRouterOptions", 'P)4!&4"&4#Mw$y'];
|
|
36
|
+
const __ΩTypedErrorParams = ["ErrType", "type", "message", () => __ΩError, "originalError", "TypedErrorParams", 'b!Pe"!4"&4#8n$4%8Mw&y'];
|
|
37
|
+
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`];
|
|
38
|
+
const __ΩRpcErrorWithPublic = ["ErrType", "ErrData", () => __ΩRpcErrorParams, "publicMessage", "RpcErrorWithPublic", 'b!"c"Pe"!e""o##&4$Mw%y'];
|
|
39
|
+
const __ΩRpcErrorWithPrivate = ["ErrType", "ErrData", () => __ΩRpcErrorParams, "message", "RpcErrorWithPrivate", 'b!"c"Pe"!e""o##&4$Mw%y'];
|
|
40
|
+
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`];
|
|
41
|
+
const __ΩAnyErrorParams = ["ErrType", "ErrData", () => __ΩRpcErrorWithPublic, () => __ΩRpcErrorWithPrivate, "AnyErrorParams", 'b!"c"Pe"!e""o##e"!e""o$#Jw%y'];
|
|
42
|
+
const __ΩMapKeyPathSegment = ["key", "index", "mapKey", "failed", "MapKeyPathSegment", `P#4!'4".#4$Mw%y`];
|
|
43
|
+
const __ΩMapValuePathSegment = ["key", "index", "mapVal", "failed", "MapValuePathSegment", `P#4!'4".#4$Mw%y`];
|
|
44
|
+
const __ΩSetItemPathSegment = ["key", "index", "SetItemPathSegment", `P#4!'4"Mw#y`];
|
|
45
|
+
const __ΩPathSegment = [() => __ΩStrNumber, () => __ΩMapKeyPathSegment, () => __ΩMapValuePathSegment, () => __ΩSetItemPathSegment, "PathSegment", 'Pn!n"n#n$Jw%y'];
|
|
46
|
+
const __ΩRunTypeError = [() => __ΩPathSegment, "path", "expected", () => src_types_formats_formats_types.__ΩTypeFormatError, "format", "RunTypeError", 'Pn!F4"&4#n$4%8Mw&y'];
|
|
47
|
+
const __ΩJitFnArgs = ["vλl", "JitFnArgs", 'P&4!&&LMw"y'];
|
|
48
|
+
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`];
|
|
49
|
+
const __ΩJitCompiledFn = [() => __ΩAnyFn, "Fn", () => __ΩJitCompiledFnData, "JITUtils", "utl", "", "createJitFn", "fn", "JitCompiledFn", `n!c"Pn#P"w$2%e#!/&4'9e"!4(9Mw)y`];
|
|
50
|
+
const __ΩPersistedJitFn = [() => __ΩOmit, () => __ΩJitCompiledFn, "fn", "fn", "PersistedJitFn", 'Pn".#o!#-4$9Mw%y'];
|
|
51
|
+
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`];
|
|
52
|
+
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`];
|
|
53
|
+
const __ΩJitFunctionsHashes = ["isType", "typeErrors", "prepareForJson", "restoreFromJson", "stringifyJson", "toBinary", "fromBinary", "JitFunctionsHashes", `P&4!&4"&4#&4$&4%&4&&4'Mw(y`];
|
|
54
|
+
const __ΩJsonStringifyFn = ["value", () => __ΩJSONString, "", "JsonStringifyFn", 'P"2!n"/#w$y'];
|
|
55
|
+
const __ΩRestoreFromJsonFn = [() => __ΩJSONValue, "value", "", "RestoreFromJsonFn", 'Pn!2""/#w$y'];
|
|
56
|
+
const __ΩPrepareForJsonFn = ["value", () => __ΩJSONValue, "", "PrepareForJsonFn", 'P"2!n"/#w$y'];
|
|
57
|
+
const __ΩTypeErrorsFn = ["value", () => __ΩRunTypeError, "", "TypeErrorsFn", 'P"2!n"F/#w$y'];
|
|
58
|
+
const __ΩIsTypeFn = ["value", "", "IsTypeFn", 'P"2!)/"w#y'];
|
|
59
|
+
const __ΩToCodeFn = ["value", "", "ToCodeFn", 'P"2!&/"w#y'];
|
|
60
|
+
const __ΩToBinaryFn = ["value", () => __ΩDataViewSerializer, "serializer", "", "ToBinaryFn", 'P"2!n"2#$/$w%y'];
|
|
61
|
+
const __ΩFromBinaryFn = ["value", () => __ΩDataViewDeserializer, "deserializer", "", "FromBinaryFn", 'P-2!n"2#"/$w%y'];
|
|
62
|
+
const __ΩJitFunctionsCache = [() => __ΩRecord, () => __ΩJitCompiledFn, "JitFunctionsCache", '&n"o!#w#y'];
|
|
63
|
+
const __ΩPureFunctionsCache = [() => __ΩRecord, () => __ΩRecord, () => src_types_pureFunctions_types.__ΩCompiledPureFunction, "PureFunctionsCache", '&&n#o"#o!#w$y'];
|
|
64
|
+
const __ΩPersistedJitFunctionsCache = [() => __ΩRecord, () => __ΩPersistedJitFn, "PersistedJitFunctionsCache", '&n"o!#w#y'];
|
|
65
|
+
const __ΩPersistedPureFunctionsCache = [() => __ΩRecord, () => __ΩRecord, () => src_types_pureFunctions_types.__ΩPersistedPureFunction, "PersistedPureFunctionsCache", '&&n#o"#o!#w$y'];
|
|
66
|
+
const __ΩFnsDataCache = [() => __ΩRecord, () => __ΩJitCompiledFnData, "FnsDataCache", '&n"o!#w#y'];
|
|
67
|
+
const __ΩPureFnsDataCache = [() => __ΩRecord, () => __ΩRecord, () => src_types_pureFunctions_types.__ΩPureFunctionData, "PureFnsDataCache", '&&n#o"#o!#w$y'];
|
|
68
|
+
const __ΩSrcCodeJitCompiledFn = [() => __ΩJitCompiledFnData, "JITUtils", "utl", () => __ΩAnyFn, "", "createJitFn", "fn", "SrcCodeJitCompiledFn", `Pn!P"w"2#n$/%4&9-4'9Mw(y`];
|
|
69
|
+
const __ΩSrcCodeCompiledPureFunction = [() => src_types_pureFunctions_types.__ΩPureFunctionData, "JITUtils", "utl", () => __ΩAnyFn, "", "createPureFn", "fn", "SrcCodeCompiledPureFunction", `Pn!P"w"2#n$/%4&9-4'9Mw(y`];
|
|
70
|
+
const __ΩSrcCodeJITCompiledFnsCache = [() => __ΩRecord, () => __ΩSrcCodeJitCompiledFn, "SrcCodeJITCompiledFnsCache", '&n"o!#w#y'];
|
|
71
|
+
const __ΩSrcCodePureFunctionsCache = [() => __ΩRecord, () => __ΩRecord, () => __ΩSrcCodeCompiledPureFunction, "SrcCodePureFunctionsCache", '&&n#o"#o!#w$y'];
|
|
72
|
+
const __ΩStrNumber = ["StrNumber", "P&'Jw!y"];
|
|
73
|
+
const __ΩAnyFn = ["args", "", "AnyFn", 'P"@2!"/"w#y'];
|
|
74
|
+
const __ΩAnyObject = [() => __ΩRecord, "AnyObject", '&#o!#w"y'];
|
|
75
|
+
const __ΩAnyClass = ["T", "args", "new", "AnyClass", '"c!PP"@2"e#!1#Mw$y'];
|
|
76
|
+
const __ΩSerializableClass = ["T", "new", "SerializableClass", '"c!PPe#!1"Mw#y'];
|
|
77
|
+
const __ΩDeserializeClassFn = ["C", () => __ΩDataOnly, "deserialized", "", "DeserializeClassFn", 'b!Pe"!o""2#e"!/$w%y'];
|
|
78
|
+
const __ΩMutable = ["T", "Mutable", 'l+e#!e"!fRb!Pde"!gN#)w"y'];
|
|
79
|
+
const __ΩPrettify = ["T", "Prettify", 'l+e$!e"!fRb!PPde#!gN#!PMKw"y'];
|
|
80
|
+
const __ΩJSONValue = [() => __ΩStrNumber, 0, 0, "JSONValue", 'Pn!),P&n"LMn#FJw$y'];
|
|
81
|
+
const __ΩJSONString = ["JSONString", "&w!y"];
|
|
82
|
+
const __ΩNative = [() => __ΩSharedArrayBuffer, () => __ΩDataView, () => __ΩBigUint64Array, "Native", 'PTA!!!!!!_n!n"UWVXYZ[\\]^n#Jw$y'];
|
|
83
|
+
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`];
|
|
84
|
+
const __ΩStrictArrayBuffer = ["buffer", "StrictArrayBuffer", 'P_P-4!8MKw"y'];
|
|
85
|
+
const __ΩBinaryInput = [() => __ΩArrayBufferView, "BinaryInput", 'P_n!Jw"y'];
|
|
86
|
+
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`];
|
|
87
|
+
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`];
|
|
88
|
+
const __ΩMimeTypes = [() => src_constants.MIME_TYPES, () => src_constants.MIME_TYPES, "MimeTypes", 'i!i"gfw#y'];
|
|
89
|
+
exports.SerializerModes = SerializerModes;
|
|
90
|
+
exports.__ΩAnyClass = __ΩAnyClass;
|
|
91
|
+
exports.__ΩAnyErrorParams = __ΩAnyErrorParams;
|
|
92
|
+
exports.__ΩAnyFn = __ΩAnyFn;
|
|
93
|
+
exports.__ΩAnyObject = __ΩAnyObject;
|
|
94
|
+
exports.__ΩBinaryInput = __ΩBinaryInput;
|
|
95
|
+
exports.__ΩCoreRouterOptions = __ΩCoreRouterOptions;
|
|
96
|
+
exports.__ΩDataOnly = __ΩDataOnly;
|
|
97
|
+
exports.__ΩDataViewDeserializer = __ΩDataViewDeserializer;
|
|
98
|
+
exports.__ΩDataViewSerializer = __ΩDataViewSerializer;
|
|
99
|
+
exports.__ΩDeserializeClassFn = __ΩDeserializeClassFn;
|
|
100
|
+
exports.__ΩFnsDataCache = __ΩFnsDataCache;
|
|
101
|
+
exports.__ΩFromBinaryFn = __ΩFromBinaryFn;
|
|
102
|
+
exports.__ΩIsTypeFn = __ΩIsTypeFn;
|
|
103
|
+
exports.__ΩJSONString = __ΩJSONString;
|
|
104
|
+
exports.__ΩJSONValue = __ΩJSONValue;
|
|
105
|
+
exports.__ΩJitCompiledFn = __ΩJitCompiledFn;
|
|
106
|
+
exports.__ΩJitCompiledFnData = __ΩJitCompiledFnData;
|
|
107
|
+
exports.__ΩJitCompiledFunctions = __ΩJitCompiledFunctions;
|
|
108
|
+
exports.__ΩJitFnArgs = __ΩJitFnArgs;
|
|
109
|
+
exports.__ΩJitFunctionsCache = __ΩJitFunctionsCache;
|
|
110
|
+
exports.__ΩJitFunctionsHashes = __ΩJitFunctionsHashes;
|
|
111
|
+
exports.__ΩJsonStringifyFn = __ΩJsonStringifyFn;
|
|
112
|
+
exports.__ΩMapKeyPathSegment = __ΩMapKeyPathSegment;
|
|
113
|
+
exports.__ΩMapValuePathSegment = __ΩMapValuePathSegment;
|
|
114
|
+
exports.__ΩMimeTypes = __ΩMimeTypes;
|
|
115
|
+
exports.__ΩMutable = __ΩMutable;
|
|
116
|
+
exports.__ΩPathSegment = __ΩPathSegment;
|
|
117
|
+
exports.__ΩPersistedJitFn = __ΩPersistedJitFn;
|
|
118
|
+
exports.__ΩPersistedJitFunctionsCache = __ΩPersistedJitFunctionsCache;
|
|
119
|
+
exports.__ΩPersistedPureFunctionsCache = __ΩPersistedPureFunctionsCache;
|
|
120
|
+
exports.__ΩPrepareForJsonFn = __ΩPrepareForJsonFn;
|
|
121
|
+
exports.__ΩPrettify = __ΩPrettify;
|
|
122
|
+
exports.__ΩPublicRpcError = __ΩPublicRpcError;
|
|
123
|
+
exports.__ΩPureFnsDataCache = __ΩPureFnsDataCache;
|
|
124
|
+
exports.__ΩPureFunctionsCache = __ΩPureFunctionsCache;
|
|
125
|
+
exports.__ΩRestoreFromJsonFn = __ΩRestoreFromJsonFn;
|
|
126
|
+
exports.__ΩRpcErrorParams = __ΩRpcErrorParams;
|
|
127
|
+
exports.__ΩRpcErrorWithPrivate = __ΩRpcErrorWithPrivate;
|
|
128
|
+
exports.__ΩRpcErrorWithPublic = __ΩRpcErrorWithPublic;
|
|
129
|
+
exports.__ΩRunTypeError = __ΩRunTypeError;
|
|
130
|
+
exports.__ΩSerializableClass = __ΩSerializableClass;
|
|
131
|
+
exports.__ΩSerializableJITFunctions = __ΩSerializableJITFunctions;
|
|
132
|
+
exports.__ΩSerializerCode = __ΩSerializerCode;
|
|
133
|
+
exports.__ΩSerializerMode = __ΩSerializerMode;
|
|
134
|
+
exports.__ΩSetItemPathSegment = __ΩSetItemPathSegment;
|
|
135
|
+
exports.__ΩSrcCodeCompiledPureFunction = __ΩSrcCodeCompiledPureFunction;
|
|
136
|
+
exports.__ΩSrcCodeJITCompiledFnsCache = __ΩSrcCodeJITCompiledFnsCache;
|
|
137
|
+
exports.__ΩSrcCodeJitCompiledFn = __ΩSrcCodeJitCompiledFn;
|
|
138
|
+
exports.__ΩSrcCodePureFunctionsCache = __ΩSrcCodePureFunctionsCache;
|
|
139
|
+
exports.__ΩStrNumber = __ΩStrNumber;
|
|
140
|
+
exports.__ΩStrictArrayBuffer = __ΩStrictArrayBuffer;
|
|
141
|
+
exports.__ΩToBinaryFn = __ΩToBinaryFn;
|
|
142
|
+
exports.__ΩToCodeFn = __ΩToCodeFn;
|
|
143
|
+
exports.__ΩTypeErrorsFn = __ΩTypeErrorsFn;
|
|
144
|
+
exports.__ΩTypedErrorParams = __ΩTypedErrorParams;
|
|
145
|
+
//# sourceMappingURL=general.types.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"general.types.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|