@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.
Files changed (136) hide show
  1. package/.dist/cjs/index.cjs +245 -0
  2. package/.dist/cjs/index.cjs.map +1 -0
  3. package/.dist/cjs/index.d.ts +21 -0
  4. package/.dist/cjs/package.json +1 -0
  5. package/.dist/cjs/src/binary/bodyDeserializer.cjs +54 -0
  6. package/.dist/cjs/src/binary/bodyDeserializer.cjs.map +1 -0
  7. package/.dist/cjs/src/binary/bodyDeserializer.d.ts +5 -0
  8. package/.dist/cjs/src/binary/bodySerializer.cjs +49 -0
  9. package/.dist/cjs/src/binary/bodySerializer.cjs.map +1 -0
  10. package/.dist/cjs/src/binary/bodySerializer.d.ts +6 -0
  11. package/.dist/cjs/src/binary/dataView.cjs +212 -0
  12. package/.dist/cjs/src/binary/dataView.cjs.map +1 -0
  13. package/.dist/cjs/src/binary/dataView.d.ts +16 -0
  14. package/.dist/cjs/src/constants.cjs +84 -0
  15. package/.dist/cjs/src/constants.cjs.map +1 -0
  16. package/.dist/cjs/src/constants.d.ts +50 -0
  17. package/.dist/cjs/src/errors.cjs +170 -0
  18. package/.dist/cjs/src/errors.cjs.map +1 -0
  19. package/.dist/cjs/src/errors.d.ts +24 -0
  20. package/.dist/cjs/src/friendlyErrors.cjs +235 -0
  21. package/.dist/cjs/src/friendlyErrors.cjs.map +1 -0
  22. package/.dist/cjs/src/friendlyErrors.d.ts +4 -0
  23. package/.dist/cjs/src/headers.cjs +11 -0
  24. package/.dist/cjs/src/headers.cjs.map +1 -0
  25. package/.dist/cjs/src/headers.d.ts +12 -0
  26. package/.dist/cjs/src/jit/jitUtils.cjs +173 -0
  27. package/.dist/cjs/src/jit/jitUtils.cjs.map +1 -0
  28. package/.dist/cjs/src/jit/jitUtils.d.ts +30 -0
  29. package/.dist/cjs/src/pureFns/pureFn.cjs +80 -0
  30. package/.dist/cjs/src/pureFns/pureFn.cjs.map +1 -0
  31. package/.dist/cjs/src/pureFns/pureFn.d.ts +2 -0
  32. package/.dist/cjs/src/pureFns/pureServerFn.cjs +20 -0
  33. package/.dist/cjs/src/pureFns/pureServerFn.cjs.map +1 -0
  34. package/.dist/cjs/src/pureFns/pureServerFn.d.ts +4 -0
  35. package/.dist/cjs/src/pureFns/quickHash.cjs +62 -0
  36. package/.dist/cjs/src/pureFns/quickHash.cjs.map +1 -0
  37. package/.dist/cjs/src/pureFns/quickHash.d.ts +7 -0
  38. package/.dist/cjs/src/pureFns/restoreJitFns.cjs +88 -0
  39. package/.dist/cjs/src/pureFns/restoreJitFns.cjs.map +1 -0
  40. package/.dist/cjs/src/pureFns/restoreJitFns.d.ts +3 -0
  41. package/.dist/cjs/src/routerUtils.cjs +209 -0
  42. package/.dist/cjs/src/routerUtils.cjs.map +1 -0
  43. package/.dist/cjs/src/routerUtils.d.ts +24 -0
  44. package/.dist/cjs/src/types/formats/formatBrands.types.cjs +45 -0
  45. package/.dist/cjs/src/types/formats/formatBrands.types.cjs.map +1 -0
  46. package/.dist/cjs/src/types/formats/formatBrands.types.d.ts +45 -0
  47. package/.dist/cjs/src/types/formats/formats.types.cjs +27 -0
  48. package/.dist/cjs/src/types/formats/formats.types.cjs.map +1 -0
  49. package/.dist/cjs/src/types/formats/formats.types.d.ts +37 -0
  50. package/.dist/cjs/src/types/formats/formatsParams.types.cjs +60 -0
  51. package/.dist/cjs/src/types/formats/formatsParams.types.cjs.map +1 -0
  52. package/.dist/cjs/src/types/formats/formatsParams.types.d.ts +234 -0
  53. package/.dist/cjs/src/types/formats/friendlyErrors.types.cjs +53 -0
  54. package/.dist/cjs/src/types/formats/friendlyErrors.types.cjs.map +1 -0
  55. package/.dist/cjs/src/types/formats/friendlyErrors.types.d.ts +71 -0
  56. package/.dist/cjs/src/types/general.types.cjs +145 -0
  57. package/.dist/cjs/src/types/general.types.cjs.map +1 -0
  58. package/.dist/cjs/src/types/general.types.d.ts +246 -0
  59. package/.dist/cjs/src/types/method.types.cjs +26 -0
  60. package/.dist/cjs/src/types/method.types.cjs.map +1 -0
  61. package/.dist/cjs/src/types/method.types.d.ts +60 -0
  62. package/.dist/cjs/src/types/pureFunctions.types.cjs +39 -0
  63. package/.dist/cjs/src/types/pureFunctions.types.cjs.map +1 -0
  64. package/.dist/cjs/src/types/pureFunctions.types.d.ts +75 -0
  65. package/.dist/cjs/src/utils.cjs +47 -0
  66. package/.dist/cjs/src/utils.cjs.map +1 -0
  67. package/.dist/cjs/src/utils.d.ts +9 -0
  68. package/.dist/esm/index.d.ts +21 -0
  69. package/.dist/esm/index.js +245 -0
  70. package/.dist/esm/index.js.map +1 -0
  71. package/.dist/esm/src/binary/bodyDeserializer.d.ts +5 -0
  72. package/.dist/esm/src/binary/bodyDeserializer.js +54 -0
  73. package/.dist/esm/src/binary/bodyDeserializer.js.map +1 -0
  74. package/.dist/esm/src/binary/bodySerializer.d.ts +6 -0
  75. package/.dist/esm/src/binary/bodySerializer.js +49 -0
  76. package/.dist/esm/src/binary/bodySerializer.js.map +1 -0
  77. package/.dist/esm/src/binary/dataView.d.ts +16 -0
  78. package/.dist/esm/src/binary/dataView.js +212 -0
  79. package/.dist/esm/src/binary/dataView.js.map +1 -0
  80. package/.dist/esm/src/constants.d.ts +50 -0
  81. package/.dist/esm/src/constants.js +84 -0
  82. package/.dist/esm/src/constants.js.map +1 -0
  83. package/.dist/esm/src/errors.d.ts +24 -0
  84. package/.dist/esm/src/errors.js +170 -0
  85. package/.dist/esm/src/errors.js.map +1 -0
  86. package/.dist/esm/src/friendlyErrors.d.ts +4 -0
  87. package/.dist/esm/src/friendlyErrors.js +235 -0
  88. package/.dist/esm/src/friendlyErrors.js.map +1 -0
  89. package/.dist/esm/src/headers.d.ts +12 -0
  90. package/.dist/esm/src/headers.js +11 -0
  91. package/.dist/esm/src/headers.js.map +1 -0
  92. package/.dist/esm/src/jit/jitUtils.d.ts +30 -0
  93. package/.dist/esm/src/jit/jitUtils.js +173 -0
  94. package/.dist/esm/src/jit/jitUtils.js.map +1 -0
  95. package/.dist/esm/src/pureFns/pureFn.d.ts +2 -0
  96. package/.dist/esm/src/pureFns/pureFn.js +80 -0
  97. package/.dist/esm/src/pureFns/pureFn.js.map +1 -0
  98. package/.dist/esm/src/pureFns/pureServerFn.d.ts +4 -0
  99. package/.dist/esm/src/pureFns/pureServerFn.js +20 -0
  100. package/.dist/esm/src/pureFns/pureServerFn.js.map +1 -0
  101. package/.dist/esm/src/pureFns/quickHash.d.ts +7 -0
  102. package/.dist/esm/src/pureFns/quickHash.js +62 -0
  103. package/.dist/esm/src/pureFns/quickHash.js.map +1 -0
  104. package/.dist/esm/src/pureFns/restoreJitFns.d.ts +3 -0
  105. package/.dist/esm/src/pureFns/restoreJitFns.js +88 -0
  106. package/.dist/esm/src/pureFns/restoreJitFns.js.map +1 -0
  107. package/.dist/esm/src/routerUtils.d.ts +24 -0
  108. package/.dist/esm/src/routerUtils.js +209 -0
  109. package/.dist/esm/src/routerUtils.js.map +1 -0
  110. package/.dist/esm/src/types/formats/formatBrands.types.d.ts +45 -0
  111. package/.dist/esm/src/types/formats/formatBrands.types.js +45 -0
  112. package/.dist/esm/src/types/formats/formatBrands.types.js.map +1 -0
  113. package/.dist/esm/src/types/formats/formats.types.d.ts +37 -0
  114. package/.dist/esm/src/types/formats/formats.types.js +27 -0
  115. package/.dist/esm/src/types/formats/formats.types.js.map +1 -0
  116. package/.dist/esm/src/types/formats/formatsParams.types.d.ts +234 -0
  117. package/.dist/esm/src/types/formats/formatsParams.types.js +60 -0
  118. package/.dist/esm/src/types/formats/formatsParams.types.js.map +1 -0
  119. package/.dist/esm/src/types/formats/friendlyErrors.types.d.ts +71 -0
  120. package/.dist/esm/src/types/formats/friendlyErrors.types.js +53 -0
  121. package/.dist/esm/src/types/formats/friendlyErrors.types.js.map +1 -0
  122. package/.dist/esm/src/types/general.types.d.ts +246 -0
  123. package/.dist/esm/src/types/general.types.js +145 -0
  124. package/.dist/esm/src/types/general.types.js.map +1 -0
  125. package/.dist/esm/src/types/method.types.d.ts +60 -0
  126. package/.dist/esm/src/types/method.types.js +26 -0
  127. package/.dist/esm/src/types/method.types.js.map +1 -0
  128. package/.dist/esm/src/types/pureFunctions.types.d.ts +75 -0
  129. package/.dist/esm/src/types/pureFunctions.types.js +39 -0
  130. package/.dist/esm/src/types/pureFunctions.types.js.map +1 -0
  131. package/.dist/esm/src/utils.d.ts +9 -0
  132. package/.dist/esm/src/utils.js +47 -0
  133. package/.dist/esm/src/utils.js.map +1 -0
  134. package/LICENSE +21 -0
  135. package/README.md +32 -0
  136. package/package.json +58 -0
@@ -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,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const src_types_general_types = require("./general.types.cjs");
4
+ const __ΩRecord = ["K", "T", "Record", `l'e#"Rb!b"Pde"!N#!w#y`];
5
+ const __ΩPick = ["T", "K", "Pick", 'l+e#!e"!fRb!b"Pde""N#!w#y'];
6
+ const __ΩMethodMetadata = ["type", "id", "isAsync", "hasReturnData", "paramNames", "paramsJitHash", "returnJitHash", () => __ΩHeadersMetaData, "headersParam", () => __ΩHeadersMetaData, "headersReturn", "middleFnIds", "pointer", "nestLevel", "MethodMetadata", `P'4!&4")4#)4$&F4%8&4&&4'n(4)8n*4+8&F4,8&F4-'4.Mw/y`];
7
+ const __ΩRemoteMethodOpts = ["runOnError", "validateParams", "validateReturn", "description", () => src_types_general_types.__ΩSerializerMode, "serializer", "isMutation", "RemoteMethodOpts", `P)4!8)4"8)4#8&4$8n%4&8P)-J4'8Mw(y`];
8
+ const __ΩRouteOnlyOptions = [() => __ΩRemoteMethodOpts, false, "runOnError", () => src_types_general_types.__ΩSerializerMode, "serializer", "RouteOnlyOptions", 'Pn!."4#n$4%Mw&y'];
9
+ const __ΩMethodWithOptions = [() => __ΩMethodMetadata, () => __ΩRemoteMethodOpts, "options", "MethodWithOptions", 'Pn!n"4#Mw$y'];
10
+ const __ΩMethodsCache = [() => __ΩRecord, () => __ΩMethodWithOptions, "MethodsCache", '&n"o!#w#y'];
11
+ const __ΩHeadersMetaData = ["headerNames", "jitHash", "HeadersMetaData", 'P&F4!&4"Mw#y'];
12
+ const __ΩSerializableMethodsData = [() => __ΩMethodsCache, "methods", () => src_types_general_types.__ΩFnsDataCache, "deps", () => src_types_general_types.__ΩPureFnsDataCache, "purFnDeps", "SerializableMethodsData", `Pn!4"n#4$n%4&Mw'y`];
13
+ const __ΩHeadersMethodWithJitFns = [() => __ΩHeadersMetaData, () => __ΩPick, () => src_types_general_types.__ΩJitCompiledFunctions, "isType", "typeErrors", "jitFns", "HeadersMethodWithJitFns", `Pn!n#P.$.%Jo"#4&Mw'y`];
14
+ const __ΩMethodWithJitFns = [() => __ΩMethodMetadata, () => src_types_general_types.__ΩJitCompiledFunctions, "paramsJitFns", () => src_types_general_types.__ΩJitCompiledFunctions, "returnJitFns", () => __ΩHeadersMethodWithJitFns, "headersParam", () => __ΩHeadersMethodWithJitFns, "headersReturn", "MethodWithJitFns", `Pn!n"4#n$4%n&4'8n(4)8Mw*y`];
15
+ const __ΩMethodWithOptsAndJitFns = [() => __ΩMethodWithOptions, () => __ΩMethodWithJitFns, "MethodWithOptsAndJitFns", 'Pn!n"Kw#y'];
16
+ exports.__ΩHeadersMetaData = __ΩHeadersMetaData;
17
+ exports.__ΩHeadersMethodWithJitFns = __ΩHeadersMethodWithJitFns;
18
+ exports.__ΩMethodMetadata = __ΩMethodMetadata;
19
+ exports.__ΩMethodWithJitFns = __ΩMethodWithJitFns;
20
+ exports.__ΩMethodWithOptions = __ΩMethodWithOptions;
21
+ exports.__ΩMethodWithOptsAndJitFns = __ΩMethodWithOptsAndJitFns;
22
+ exports.__ΩMethodsCache = __ΩMethodsCache;
23
+ exports.__ΩRemoteMethodOpts = __ΩRemoteMethodOpts;
24
+ exports.__ΩRouteOnlyOptions = __ΩRouteOnlyOptions;
25
+ exports.__ΩSerializableMethodsData = __ΩSerializableMethodsData;
26
+ //# sourceMappingURL=method.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"method.types.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,60 @@
1
+ import { FnsDataCache, PureFnsDataCache, JitCompiledFunctions, SerializerMode } from './general.types.ts';
2
+ export interface MethodMetadata {
3
+ type: number;
4
+ id: string;
5
+ isAsync: boolean;
6
+ hasReturnData: boolean;
7
+ paramNames?: string[];
8
+ paramsJitHash: string;
9
+ returnJitHash: string;
10
+ headersParam?: HeadersMetaData;
11
+ headersReturn?: HeadersMetaData;
12
+ middleFnIds?: string[];
13
+ pointer: string[];
14
+ nestLevel: number;
15
+ }
16
+ export interface RemoteMethodOpts {
17
+ runOnError?: boolean;
18
+ validateParams?: boolean;
19
+ validateReturn?: boolean;
20
+ description?: string;
21
+ serializer?: SerializerMode;
22
+ isMutation?: boolean | undefined;
23
+ }
24
+ export interface RouteOnlyOptions extends RemoteMethodOpts {
25
+ runOnError: false;
26
+ serializer: SerializerMode;
27
+ }
28
+ export interface MethodWithOptions extends MethodMetadata {
29
+ options: RemoteMethodOpts;
30
+ }
31
+ export type MethodsCache = Record<string, MethodWithOptions>;
32
+ export interface HeadersMetaData {
33
+ headerNames: string[];
34
+ jitHash: string;
35
+ }
36
+ export interface SerializableMethodsData {
37
+ methods: MethodsCache;
38
+ deps: FnsDataCache;
39
+ purFnDeps: PureFnsDataCache;
40
+ }
41
+ export interface HeadersMethodWithJitFns extends HeadersMetaData {
42
+ jitFns: Pick<JitCompiledFunctions, 'isType' | 'typeErrors'>;
43
+ }
44
+ export interface MethodWithJitFns extends MethodMetadata {
45
+ paramsJitFns: JitCompiledFunctions;
46
+ returnJitFns: JitCompiledFunctions;
47
+ headersParam?: HeadersMethodWithJitFns;
48
+ headersReturn?: HeadersMethodWithJitFns;
49
+ }
50
+ export type MethodWithOptsAndJitFns = MethodWithOptions & MethodWithJitFns;
51
+ export declare type __ΩMethodMetadata = any[];
52
+ export declare type __ΩRemoteMethodOpts = any[];
53
+ export declare type __ΩRouteOnlyOptions = any[];
54
+ export declare type __ΩMethodWithOptions = any[];
55
+ export declare type __ΩMethodsCache = any[];
56
+ export declare type __ΩHeadersMetaData = any[];
57
+ export declare type __ΩSerializableMethodsData = any[];
58
+ export declare type __ΩHeadersMethodWithJitFns = any[];
59
+ export declare type __ΩMethodWithJitFns = any[];
60
+ export declare type __ΩMethodWithOptsAndJitFns = any[];
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const src_types_general_types = require("./general.types.cjs");
4
+ const __ΩRecord = ["K", "T", "Record", `l'e#"Rb!b"Pde"!N#!w#y`];
5
+ const __ΩRequired = ["T", "Required", 'l+e#!e"!fRb!Pde"!gN##w"y'];
6
+ const __ΩReturnType = ["T", "args", "", "ReturnType", `l>e"!R"RPde#!P"@2"h"!/#qk#'QRb!Pde"!p)w$y`];
7
+ const __ΩPick = ["T", "K", "Pick", 'l+e#!e"!fRb!b"Pde""N#!w#y'];
8
+ const __ΩStrNumber = ["StrNumber", "P&'Jw!y"];
9
+ const __ΩPureFunctionDeps = [() => __ΩRecord, () => __ΩPureFunction, "PureFunctionDeps", '&n"o!#w#y'];
10
+ const __ΩGenericPureFunction = ["P", "val", "formatParams", () => __ΩPureFunctionDeps, "deps", "", "GenericPureFunction", `b!P"2"e"!2#n$2%"/&w'y`];
11
+ const __ΩErrorsPureFunction = ["P", "val", () => __ΩStrNumber, "pλth", () => src_types_general_types.__ΩRunTypeError, "εrr", "expected", "formatName", "formatParams", () => __ΩStrNumber, "formatPath", () => __ΩPureFunctionDeps, "deps", () => __ΩStrNumber, "accessPath", () => __ΩStrNumber, "fmtAccessPath", () => src_types_general_types.__ΩRunTypeError, "", "ErrorsPureFunction", `b!P"2"n#F2$n%F2&&2'&2(e"!2)n*F2+n,2-n.F2/8n0F218n2F/3w4y`];
12
+ const __ΩPureFunction = ["args", "", "PureFunction", 'P"@2!"/"w#y'];
13
+ const __ΩPureFunctionFactory = ["JITUtils", "jitUtils", () => __ΩPureFunction, "", "PureFunctionFactory", 'P"w!2"n#/$w%y'];
14
+ const __ΩPureFunctionData = ["namespace", "paramNames", "code", "fnName", "bodyHash", "pureFnDependencies", "PureFunctionData", `P&4!9&F4"9&4#9&4$9&4%9&F4&9Mw'y`];
15
+ const __ΩCompiledPureFunction = [() => __ΩPureFunctionData, () => __ΩPureFunctionFactory, "createPureFn", () => __ΩPureFunction, "fn", "CompiledPureFunction", 'Pn!n"4#n$4%8Mw&y'];
16
+ const __ΩPersistedPureFunction = [() => __ΩCompiledPureFunction, "fn", "PersistedPureFunction", 'Pn!-4"Mw#y'];
17
+ const __ΩPureFnDef = ["args", "", "F", "namespace", "fnName", "isFactory", "pureFn", "PureFnDef", `P"@2!"/"c#P&4$89&4%89)4&8e"!4'9Mw(y`];
18
+ const __ΩParsedFactoryFn = ["bodyHash", "paramNames", "code", "ParsedFactoryFn", 'P&4!9&F4"9&4#9Mw$y'];
19
+ const __ΩPureServerFnRef = ["args", "", "F", () => __ΩRequired, () => __ΩPureFnDef, "namespace", "fnName", "bodyHash", "pureFnDependencies", "PureServerFnRef", `P"@2!"/"c#Pe"!o%"o$"&4&9&4'9&4(9&F4)8Mw*y`];
20
+ const __ΩMapFromServerFnRef = ["args", "", "F", () => __ΩPureServerFnRef, "fromRequestId", "toRequestId", "paramIndex", "mapFromSymbol", () => __ΩReturnType, "type", "MapFromServerFnRef", `P"@2!"/"c#Pe"!o$"&4%&4&'4'+4(Pe#!o)"1*Mw+y`];
21
+ const __ΩMapFromRef = [() => __ΩPick, () => __ΩMapFromServerFnRef, "fromRequestId", "toRequestId", "fnName", "namespace", "paramIndex", "MapFromRef", `"o""P.#.$.%.&.'Jo!#w(y`];
22
+ const __ΩRoutesFlowQuery = ["routes", () => __ΩRoutesFlowMapping, "mappings", "RoutesFlowQuery", 'P&F4!n"F4#8Mw$y'];
23
+ const __ΩRoutesFlowMapping = ["fromId", "toId", "bodyHash", "paramIndex", "RoutesFlowMapping", `P&4!&4"&4#'4$Mw%y`];
24
+ exports.__ΩCompiledPureFunction = __ΩCompiledPureFunction;
25
+ exports.__ΩErrorsPureFunction = __ΩErrorsPureFunction;
26
+ exports.__ΩGenericPureFunction = __ΩGenericPureFunction;
27
+ exports.__ΩMapFromRef = __ΩMapFromRef;
28
+ exports.__ΩMapFromServerFnRef = __ΩMapFromServerFnRef;
29
+ exports.__ΩParsedFactoryFn = __ΩParsedFactoryFn;
30
+ exports.__ΩPersistedPureFunction = __ΩPersistedPureFunction;
31
+ exports.__ΩPureFnDef = __ΩPureFnDef;
32
+ exports.__ΩPureFunction = __ΩPureFunction;
33
+ exports.__ΩPureFunctionData = __ΩPureFunctionData;
34
+ exports.__ΩPureFunctionDeps = __ΩPureFunctionDeps;
35
+ exports.__ΩPureFunctionFactory = __ΩPureFunctionFactory;
36
+ exports.__ΩPureServerFnRef = __ΩPureServerFnRef;
37
+ exports.__ΩRoutesFlowMapping = __ΩRoutesFlowMapping;
38
+ exports.__ΩRoutesFlowQuery = __ΩRoutesFlowQuery;
39
+ //# sourceMappingURL=pureFunctions.types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pureFunctions.types.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,75 @@
1
+ import { TypeFormatValue } from './formats/formats.types.ts';
2
+ import { RunTypeError } from './general.types.ts';
3
+ import { JITUtils } from '../jit/jitUtils.ts';
4
+ type StrNumber = string | number;
5
+ export type PureFunctionDeps = Record<string, PureFunction>;
6
+ export type GenericPureFunction<P extends TypeFormatValue> = (val: any, formatParams: P, deps: PureFunctionDeps) => any;
7
+ export type ErrorsPureFunction<P extends TypeFormatValue> = (val: any, pλth: StrNumber[], εrr: RunTypeError[], expected: string, formatName: string, formatParams: P, formatPath: StrNumber[], deps: PureFunctionDeps, accessPath?: StrNumber[], fmtAccessPath?: StrNumber[]) => RunTypeError[];
8
+ export type PureFunction = (...args: any[]) => any;
9
+ export type PureFunctionFactory = (jitUtils: JITUtils) => PureFunction;
10
+ export interface PureFunctionData {
11
+ readonly namespace: string;
12
+ readonly paramNames: string[];
13
+ readonly code: string;
14
+ readonly fnName: string;
15
+ readonly bodyHash: string;
16
+ readonly pureFnDependencies: Array<string>;
17
+ }
18
+ export interface CompiledPureFunction extends PureFunctionData {
19
+ createPureFn: PureFunctionFactory;
20
+ fn?: PureFunction;
21
+ }
22
+ export interface PersistedPureFunction extends CompiledPureFunction {
23
+ fn: undefined;
24
+ }
25
+ export interface PureFnDef<F extends (...args: any[]) => any = (...args: any[]) => any> {
26
+ readonly namespace?: string;
27
+ readonly fnName?: string;
28
+ isFactory?: boolean;
29
+ readonly pureFn: F;
30
+ }
31
+ export interface ParsedFactoryFn {
32
+ readonly bodyHash: string;
33
+ readonly paramNames: string[];
34
+ readonly code: string;
35
+ }
36
+ export interface PureServerFnRef<F extends (...args: any[]) => any = (...args: any[]) => any> extends Required<PureFnDef<F>> {
37
+ readonly namespace: string;
38
+ readonly fnName: string;
39
+ readonly bodyHash: string;
40
+ pureFnDependencies?: Array<string>;
41
+ }
42
+ export interface MapFromServerFnRef<F extends (...args: any[]) => any = (...args: any[]) => any> extends PureServerFnRef<F> {
43
+ fromRequestId: string;
44
+ toRequestId: string;
45
+ paramIndex: number;
46
+ mapFromSymbol: symbol;
47
+ type(): ReturnType<F>;
48
+ }
49
+ export type MapFromRef = Pick<MapFromServerFnRef<any>, 'fromRequestId' | 'toRequestId' | 'fnName' | 'namespace' | 'paramIndex'>;
50
+ export interface RoutesFlowQuery {
51
+ routes: string[];
52
+ mappings?: RoutesFlowMapping[];
53
+ }
54
+ export interface RoutesFlowMapping {
55
+ fromId: string;
56
+ toId: string;
57
+ bodyHash: string;
58
+ paramIndex: number;
59
+ }
60
+ export {};
61
+ export declare type __ΩPureFunctionDeps = any[];
62
+ export declare type __ΩGenericPureFunction = any[];
63
+ export declare type __ΩErrorsPureFunction = any[];
64
+ export declare type __ΩPureFunction = any[];
65
+ export declare type __ΩPureFunctionFactory = any[];
66
+ export declare type __ΩPureFunctionData = any[];
67
+ export declare type __ΩCompiledPureFunction = any[];
68
+ export declare type __ΩPersistedPureFunction = any[];
69
+ export declare type __ΩPureFnDef = any[];
70
+ export declare type __ΩParsedFactoryFn = any[];
71
+ export declare type __ΩPureServerFnRef = any[];
72
+ export declare type __ΩMapFromServerFnRef = any[];
73
+ export declare type __ΩMapFromRef = any[];
74
+ export declare type __ΩRoutesFlowQuery = any[];
75
+ export declare type __ΩRoutesFlowMapping = any[];
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const src_jit_jitUtils = require("./jit/jitUtils.cjs");
4
+ function randomUUID_V7() {
5
+ const uuid = crypto.randomUUID();
6
+ const tHex = Date.now().toString(16).padStart(12, "0");
7
+ return `${tHex.substring(0, 8)}-${tHex.substring(8)}-7${uuid.substring(15)}`;
8
+ }
9
+ function getENV(key) {
10
+ if (typeof process !== "undefined" && process.env) {
11
+ return process.env[key];
12
+ }
13
+ return void 0;
14
+ }
15
+ function toBase64Url(str) {
16
+ return btoa(str).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
17
+ }
18
+ function fromBase64Url(encoded) {
19
+ return atob(encoded.replace(/-/g, "+").replace(/_/g, "/"));
20
+ }
21
+ let isTest = void 0;
22
+ function isMionCompileMode() {
23
+ const val = getENV("MION_COMPILE");
24
+ return val === "onlyAOT" || val === "viteSSR";
25
+ }
26
+ function isMionAOTEmitMode() {
27
+ const val = getENV("MION_COMPILE");
28
+ return val === "onlyAOT" || val === "viteSSR" || val === "serve";
29
+ }
30
+ function isTestEnv() {
31
+ if (isTest !== void 0) return isTest;
32
+ isTest = getENV("VITEST") !== void 0 || getENV("NODE_ENV") === "test";
33
+ return isTest;
34
+ }
35
+ function initPureFunction(compiled) {
36
+ if (compiled.fn) return;
37
+ compiled.fn = compiled.createPureFn(src_jit_jitUtils.getJitUtils());
38
+ }
39
+ exports.fromBase64Url = fromBase64Url;
40
+ exports.getENV = getENV;
41
+ exports.initPureFunction = initPureFunction;
42
+ exports.isMionAOTEmitMode = isMionAOTEmitMode;
43
+ exports.isMionCompileMode = isMionCompileMode;
44
+ exports.isTestEnv = isTestEnv;
45
+ exports.randomUUID_V7 = randomUUID_V7;
46
+ exports.toBase64Url = toBase64Url;
47
+ //# sourceMappingURL=utils.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.cjs","sources":["../../../src/utils.ts"],"sourcesContent":["/* ###############\n * 2025 mion\n * Author: Ma-jerez\n * License: MIT\n * The software is provided \"as is\", without warranty of any kind.\n * ############### */\n\nimport {getJitUtils} from './jit/jitUtils.ts';\nimport type {CompiledPureFunction} from './types/pureFunctions.types.ts';\n\n/** Generates a random UUID V7 (RFC 9562),\n * uses crypto.randomUUID() (v4) as random source as it's a native C++ binding that batches entropy,\n * might be faster than allocating typed arrays via crypto.getRandomValues */\nexport function randomUUID_V7(): string {\n const uuid = crypto.randomUUID();\n const tHex = Date.now().toString(16).padStart(12, '0');\n return `${tHex.substring(0, 8)}-${tHex.substring(8)}-7${uuid.substring(15)}`;\n}\n\n/**\n * Browser-safe function to access environment variables.\n * Returns undefined when running in browser environments where process is not available.\n * @param key - The environment variable key to retrieve\n * @returns The environment variable value or undefined if not available/in browser\n */\nexport function getENV(key: string): string | undefined {\n if (typeof process !== 'undefined' && process.env) {\n return process.env[key];\n }\n return undefined;\n}\n\n// ############# Base64 URL #############\n\n/** Encodes a string to URL-safe base64 (RFC 4648 §5) without padding */\nexport function toBase64Url(str: string): string {\n return btoa(str).replace(/\\+/g, '-').replace(/\\//g, '_').replace(/=+$/, '');\n}\n\n/** Decodes a URL-safe base64 string (RFC 4648 §5) back to a string */\nexport function fromBase64Url(encoded: string): string {\n return atob(encoded.replace(/-/g, '+').replace(/_/g, '/'));\n}\n\nlet isTest: boolean | undefined = undefined;\n/** Whether the process is in mion compile mode (onlyAOT or viteSSR).\n * In these modes platform adapters skip server.listen() — the server does NOT start. */\nexport function isMionCompileMode(): boolean {\n const val = getENV('MION_COMPILE');\n return val === 'onlyAOT' || val === 'viteSSR';\n}\n\n/** Whether AOT caches should be generated and emitted (onlyAOT, viteSSR, or serve).\n * Unlike isMionCompileMode(), this also includes 'serve' mode where the server DOES start\n * and keeps running after emitting AOT caches via IPC. */\nexport function isMionAOTEmitMode(): boolean {\n const val = getENV('MION_COMPILE');\n return val === 'onlyAOT' || val === 'viteSSR' || val === 'serve';\n}\n\nexport function isTestEnv() {\n if (isTest !== undefined) return isTest;\n isTest = getENV('VITEST') !== undefined || getENV('NODE_ENV') === 'test';\n return isTest;\n}\n\n/**\n * Restores the full state of a compiled pure function,\n * The pure function itself can't be compiled to code as it contains references to context code and jitUtils.\n * So we need to restore it manually by invoking the closure function.\n * */\nexport function initPureFunction(compiled: CompiledPureFunction): asserts compiled is Required<CompiledPureFunction> {\n if (compiled.fn) return;\n compiled.fn = compiled.createPureFn(getJitUtils());\n}\n"],"names":["getJitUtils"],"mappings":";;;AAaO,SAAS,gBAAwB;AACpC,QAAM,OAAO,OAAO,WAAA;AACpB,QAAM,OAAO,KAAK,MAAM,SAAS,EAAE,EAAE,SAAS,IAAI,GAAG;AACrD,SAAO,GAAG,KAAK,UAAU,GAAG,CAAC,CAAC,IAAI,KAAK,UAAU,CAAC,CAAC,KAAK,KAAK,UAAU,EAAE,CAAC;AAC9E;AAQO,SAAS,OAAO,KAAiC;AACpD,MAAI,OAAO,YAAY,eAAe,QAAQ,KAAK;AAC/C,WAAO,QAAQ,IAAI,GAAG;AAAA,EAC1B;AACA,SAAO;AACX;AAKO,SAAS,YAAY,KAAqB;AAC7C,SAAO,KAAK,GAAG,EAAE,QAAQ,OAAO,GAAG,EAAE,QAAQ,OAAO,GAAG,EAAE,QAAQ,OAAO,EAAE;AAC9E;AAGO,SAAS,cAAc,SAAyB;AACnD,SAAO,KAAK,QAAQ,QAAQ,MAAM,GAAG,EAAE,QAAQ,MAAM,GAAG,CAAC;AAC7D;AAEA,IAAI,SAA8B;AAG3B,SAAS,oBAA6B;AACzC,QAAM,MAAM,OAAO,cAAc;AACjC,SAAO,QAAQ,aAAa,QAAQ;AACxC;AAKO,SAAS,oBAA6B;AACzC,QAAM,MAAM,OAAO,cAAc;AACjC,SAAO,QAAQ,aAAa,QAAQ,aAAa,QAAQ;AAC7D;AAEO,SAAS,YAAY;AACxB,MAAI,WAAW,OAAW,QAAO;AACjC,WAAS,OAAO,QAAQ,MAAM,UAAa,OAAO,UAAU,MAAM;AAClE,SAAO;AACX;AAOO,SAAS,iBAAiB,UAAoF;AACjH,MAAI,SAAS,GAAI;AACjB,WAAS,KAAK,SAAS,aAAaA,iBAAAA,YAAA,CAAa;AACrD;;;;;;;;;"}
@@ -0,0 +1,9 @@
1
+ import { CompiledPureFunction } from './types/pureFunctions.types.ts';
2
+ export declare function randomUUID_V7(): string;
3
+ export declare function getENV(key: string): string | undefined;
4
+ export declare function toBase64Url(str: string): string;
5
+ export declare function fromBase64Url(encoded: string): string;
6
+ export declare function isMionCompileMode(): boolean;
7
+ export declare function isMionAOTEmitMode(): boolean;
8
+ export declare function isTestEnv(): boolean;
9
+ export declare function initPureFunction(compiled: CompiledPureFunction): asserts compiled is Required<CompiledPureFunction>;
@@ -0,0 +1,21 @@
1
+ export * from './src/types/general.types.ts';
2
+ export * from './src/types/method.types.ts';
3
+ export * from './src/types/pureFunctions.types.ts';
4
+ export * from './src/types/formats/formats.types.ts';
5
+ export * from './src/types/formats/formatsParams.types.ts';
6
+ export * from './src/types/formats/friendlyErrors.types.ts';
7
+ export * from './src/types/formats/formatBrands.types.ts';
8
+ export * from './src/binary/dataView.ts';
9
+ export * from './src/binary/bodySerializer.ts';
10
+ export * from './src/binary/bodyDeserializer.ts';
11
+ export * from './src/binary/bodyDeserializer.ts';
12
+ export * from './src/constants.ts';
13
+ export * from './src/errors.ts';
14
+ export * from './src/friendlyErrors.ts';
15
+ export * from './src/jit/jitUtils.ts';
16
+ export * from './src/routerUtils.ts';
17
+ export * from './src/utils.ts';
18
+ export * from './src/headers.ts';
19
+ export * from './src/pureFns/pureFn.ts';
20
+ export * from './src/pureFns/pureServerFn.ts';
21
+ export * from './src/pureFns/quickHash.ts';