@mirascript/mirascript 0.1.15 → 0.1.17

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 (229) hide show
  1. package/dist/chunk-JG3D67GF.js +1625 -0
  2. package/dist/chunk-JG3D67GF.js.map +6 -0
  3. package/dist/chunk-RIT53WVY.js +1 -0
  4. package/dist/chunk-RLWIIOH5.js +12 -0
  5. package/dist/chunk-RLWIIOH5.js.map +6 -0
  6. package/dist/{chunk-NT235HY3.js → chunk-W2I5XPIE.js} +1490 -608
  7. package/dist/chunk-W2I5XPIE.js.map +6 -0
  8. package/dist/cli/index.js +11 -67
  9. package/dist/cli/index.js.map +2 -2
  10. package/dist/compiler/compile-fast.d.ts +1 -1
  11. package/dist/compiler/compile-fast.d.ts.map +1 -1
  12. package/dist/compiler/create-script.d.ts +10 -1
  13. package/dist/compiler/create-script.d.ts.map +1 -1
  14. package/dist/compiler/diagnostic.d.ts +1 -1
  15. package/dist/compiler/diagnostic.d.ts.map +1 -1
  16. package/dist/compiler/emit/constants.d.ts +3 -0
  17. package/dist/compiler/emit/constants.d.ts.map +1 -0
  18. package/dist/compiler/emit/consts.d.ts +6 -0
  19. package/dist/compiler/emit/consts.d.ts.map +1 -0
  20. package/dist/compiler/emit/globals.d.ts +17 -0
  21. package/dist/compiler/emit/globals.d.ts.map +1 -0
  22. package/dist/compiler/emit/index.d.ts +58 -0
  23. package/dist/compiler/emit/index.d.ts.map +1 -0
  24. package/dist/compiler/emit/sourcemap.d.ts +6 -0
  25. package/dist/compiler/emit/sourcemap.d.ts.map +1 -0
  26. package/dist/compiler/index.d.ts +3 -2
  27. package/dist/compiler/index.d.ts.map +1 -1
  28. package/dist/compiler/worker.js +1 -1
  29. package/dist/helpers/constants.d.ts +10 -0
  30. package/dist/helpers/constants.d.ts.map +1 -1
  31. package/dist/helpers/convert/index.d.ts +5 -0
  32. package/dist/helpers/convert/index.d.ts.map +1 -0
  33. package/dist/helpers/convert/to-boolean.d.ts +4 -0
  34. package/dist/helpers/convert/to-boolean.d.ts.map +1 -0
  35. package/dist/helpers/convert/to-format.d.ts +4 -0
  36. package/dist/helpers/convert/to-format.d.ts.map +1 -0
  37. package/dist/helpers/convert/to-number.d.ts +4 -0
  38. package/dist/helpers/convert/to-number.d.ts.map +1 -0
  39. package/dist/helpers/convert/to-string.d.ts +6 -0
  40. package/dist/helpers/convert/to-string.d.ts.map +1 -0
  41. package/dist/{vm → helpers}/error.d.ts +1 -1
  42. package/dist/helpers/error.d.ts.map +1 -0
  43. package/dist/helpers/serialize.d.ts +13 -4
  44. package/dist/helpers/serialize.d.ts.map +1 -1
  45. package/dist/helpers/types.d.ts +54 -0
  46. package/dist/helpers/types.d.ts.map +1 -0
  47. package/dist/index.js +11 -17
  48. package/dist/subtle.d.ts +4 -3
  49. package/dist/subtle.d.ts.map +1 -1
  50. package/dist/subtle.js +20 -16
  51. package/dist/vm/checkpoint.d.ts +9 -0
  52. package/dist/vm/checkpoint.d.ts.map +1 -0
  53. package/dist/vm/helpers.d.ts +4 -10
  54. package/dist/vm/helpers.d.ts.map +1 -1
  55. package/dist/vm/index.d.ts +3 -3
  56. package/dist/vm/index.d.ts.map +1 -1
  57. package/dist/vm/lib/global/bit.d.ts +7 -7
  58. package/dist/vm/lib/global/bit.d.ts.map +1 -1
  59. package/dist/vm/lib/global/debug.d.ts +2 -2
  60. package/dist/vm/lib/global/debug.d.ts.map +1 -1
  61. package/dist/vm/lib/global/index.d.ts +0 -1
  62. package/dist/vm/lib/global/index.d.ts.map +1 -1
  63. package/dist/vm/lib/global/json.d.ts +2 -2
  64. package/dist/vm/lib/global/json.d.ts.map +1 -1
  65. package/dist/vm/lib/global/math-additional.d.ts +1 -1
  66. package/dist/vm/lib/global/math-additional.d.ts.map +1 -1
  67. package/dist/vm/lib/global/math-arr.d.ts +5 -5
  68. package/dist/vm/lib/global/math-arr.d.ts.map +1 -1
  69. package/dist/vm/lib/global/math-unary.d.ts +26 -26
  70. package/dist/vm/lib/global/math-unary.d.ts.map +1 -1
  71. package/dist/vm/lib/global/math.d.ts +3 -3
  72. package/dist/vm/lib/global/math.d.ts.map +1 -1
  73. package/dist/vm/lib/global/sequence/all-any.d.ts +2 -2
  74. package/dist/vm/lib/global/sequence/all-any.d.ts.map +1 -1
  75. package/dist/vm/lib/global/sequence/entries.d.ts +5 -5
  76. package/dist/vm/lib/global/sequence/entries.d.ts.map +1 -1
  77. package/dist/vm/lib/global/sequence/find.d.ts +3 -3
  78. package/dist/vm/lib/global/sequence/find.d.ts.map +1 -1
  79. package/dist/vm/lib/global/sequence/flatten.d.ts +1 -1
  80. package/dist/vm/lib/global/sequence/flatten.d.ts.map +1 -1
  81. package/dist/vm/lib/global/sequence/len.d.ts +1 -1
  82. package/dist/vm/lib/global/sequence/len.d.ts.map +1 -1
  83. package/dist/vm/lib/global/sequence/map-filter.d.ts +3 -3
  84. package/dist/vm/lib/global/sequence/map-filter.d.ts.map +1 -1
  85. package/dist/vm/lib/global/sequence/repeat.d.ts +1 -1
  86. package/dist/vm/lib/global/sequence/repeat.d.ts.map +1 -1
  87. package/dist/vm/lib/global/sequence/reverse.d.ts +1 -1
  88. package/dist/vm/lib/global/sequence/reverse.d.ts.map +1 -1
  89. package/dist/vm/lib/global/sequence/sort.d.ts +2 -2
  90. package/dist/vm/lib/global/sequence/sort.d.ts.map +1 -1
  91. package/dist/vm/lib/global/sequence/with.d.ts +2 -2
  92. package/dist/vm/lib/global/sequence/with.d.ts.map +1 -1
  93. package/dist/vm/lib/global/sequence/zip.d.ts +1 -1
  94. package/dist/vm/lib/global/sequence/zip.d.ts.map +1 -1
  95. package/dist/vm/lib/global/string.d.ts +10 -10
  96. package/dist/vm/lib/global/string.d.ts.map +1 -1
  97. package/dist/vm/lib/global/time.d.ts +3 -13
  98. package/dist/vm/lib/global/time.d.ts.map +1 -1
  99. package/dist/vm/lib/global/to-primitive.d.ts +4 -4
  100. package/dist/vm/lib/global/to-primitive.d.ts.map +1 -1
  101. package/dist/vm/lib/helpers.d.ts +53 -0
  102. package/dist/vm/lib/helpers.d.ts.map +1 -0
  103. package/dist/vm/lib/index.d.ts +4 -0
  104. package/dist/vm/lib/index.d.ts.map +1 -0
  105. package/dist/vm/lib/{_loader.d.ts → loader.d.ts} +5 -5
  106. package/dist/vm/lib/loader.d.ts.map +1 -0
  107. package/dist/vm/lib/mod/index.d.ts +2 -0
  108. package/dist/vm/lib/mod/index.d.ts.map +1 -0
  109. package/dist/vm/lib/mod/matrix.d.ts +15 -0
  110. package/dist/vm/lib/mod/matrix.d.ts.map +1 -0
  111. package/dist/vm/operations.d.ts +2 -4
  112. package/dist/vm/operations.d.ts.map +1 -1
  113. package/dist/vm/types/boundary.d.ts +1 -1
  114. package/dist/vm/types/boundary.d.ts.map +1 -1
  115. package/dist/vm/types/context.d.ts +4 -17
  116. package/dist/vm/types/context.d.ts.map +1 -1
  117. package/dist/vm/types/extern.d.ts +1 -3
  118. package/dist/vm/types/extern.d.ts.map +1 -1
  119. package/dist/vm/types/function.d.ts +1 -6
  120. package/dist/vm/types/function.d.ts.map +1 -1
  121. package/dist/vm/types/index.d.ts +31 -17
  122. package/dist/vm/types/index.d.ts.map +1 -1
  123. package/dist/vm/types/module.d.ts +2 -4
  124. package/dist/vm/types/module.d.ts.map +1 -1
  125. package/dist/vm/types/wrapper.d.ts +0 -2
  126. package/dist/vm/types/wrapper.d.ts.map +1 -1
  127. package/package.json +7 -3
  128. package/src/cli/index.ts +1 -1
  129. package/src/compiler/compile-fast.ts +1 -2
  130. package/src/compiler/create-script.ts +12 -2
  131. package/src/compiler/diagnostic.ts +17 -8
  132. package/src/compiler/emit/constants.ts +2 -0
  133. package/src/compiler/emit/consts.ts +47 -0
  134. package/src/compiler/emit/globals.ts +39 -0
  135. package/src/compiler/{emit.ts → emit/index.ts} +16 -200
  136. package/src/compiler/emit/sourcemap.ts +168 -0
  137. package/src/compiler/index.ts +9 -9
  138. package/src/compiler/worker.ts +1 -1
  139. package/src/helpers/constants.ts +12 -0
  140. package/src/helpers/convert/index.ts +4 -0
  141. package/src/helpers/convert/to-boolean.ts +12 -0
  142. package/src/helpers/convert/to-format.ts +37 -0
  143. package/src/helpers/convert/to-number.ts +35 -0
  144. package/src/helpers/convert/to-string.ts +55 -0
  145. package/src/{vm → helpers}/error.ts +1 -1
  146. package/src/helpers/serialize.ts +72 -24
  147. package/src/helpers/types.ts +267 -0
  148. package/src/subtle.ts +4 -2
  149. package/src/vm/checkpoint.ts +42 -0
  150. package/src/vm/helpers.ts +9 -53
  151. package/src/vm/index.ts +3 -3
  152. package/src/vm/lib/global/bit.ts +8 -9
  153. package/src/vm/lib/global/debug.ts +5 -4
  154. package/src/vm/lib/global/index.ts +0 -1
  155. package/src/vm/lib/global/json.ts +2 -2
  156. package/src/vm/lib/global/math-additional.ts +2 -4
  157. package/src/vm/lib/global/math-arr.ts +1 -1
  158. package/src/vm/lib/global/math-unary.ts +2 -4
  159. package/src/vm/lib/global/math.ts +3 -4
  160. package/src/vm/lib/global/sequence/all-any.ts +11 -6
  161. package/src/vm/lib/global/sequence/entries.ts +1 -1
  162. package/src/vm/lib/global/sequence/find.ts +4 -3
  163. package/src/vm/lib/global/sequence/flatten.ts +2 -3
  164. package/src/vm/lib/global/sequence/len.ts +1 -1
  165. package/src/vm/lib/global/sequence/map-filter.ts +4 -3
  166. package/src/vm/lib/global/sequence/repeat.ts +2 -4
  167. package/src/vm/lib/global/sequence/reverse.ts +1 -1
  168. package/src/vm/lib/global/sequence/sort.ts +6 -5
  169. package/src/vm/lib/global/sequence/with.ts +21 -20
  170. package/src/vm/lib/global/sequence/zip.ts +3 -3
  171. package/src/vm/lib/global/string.ts +16 -27
  172. package/src/vm/lib/global/time.ts +59 -30
  173. package/src/vm/lib/global/to-primitive.ts +27 -18
  174. package/src/vm/lib/{_helpers.ts → helpers.ts} +132 -44
  175. package/src/vm/lib/index.ts +16 -0
  176. package/src/vm/lib/{_loader.ts → loader.ts} +3 -11
  177. package/src/vm/lib/mod/index.ts +1 -0
  178. package/src/vm/lib/{global/mod → mod}/matrix.ts +9 -7
  179. package/src/vm/operations.ts +41 -137
  180. package/src/vm/types/boundary.ts +10 -13
  181. package/src/vm/types/context.ts +31 -50
  182. package/src/vm/types/extern.ts +8 -15
  183. package/src/vm/types/function.ts +4 -19
  184. package/src/vm/types/index.ts +47 -25
  185. package/src/vm/types/module.ts +3 -7
  186. package/src/vm/types/wrapper.ts +1 -5
  187. package/dist/chunk-35JGBXRE.js +0 -1
  188. package/dist/chunk-JVFUK7AN.js +0 -2324
  189. package/dist/chunk-JVFUK7AN.js.map +0 -6
  190. package/dist/chunk-NT235HY3.js.map +0 -6
  191. package/dist/compiler/emit.d.ts +0 -5
  192. package/dist/compiler/emit.d.ts.map +0 -1
  193. package/dist/vm/error.d.ts.map +0 -1
  194. package/dist/vm/lib/_helpers.d.ts +0 -35
  195. package/dist/vm/lib/_helpers.d.ts.map +0 -1
  196. package/dist/vm/lib/_loader.d.ts.map +0 -1
  197. package/dist/vm/lib/global/mod/index.d.ts +0 -3
  198. package/dist/vm/lib/global/mod/index.d.ts.map +0 -1
  199. package/dist/vm/lib/global/mod/matrix.d.ts +0 -15
  200. package/dist/vm/lib/global/mod/matrix.d.ts.map +0 -1
  201. package/dist/vm/types/any.d.ts +0 -10
  202. package/dist/vm/types/any.d.ts.map +0 -1
  203. package/dist/vm/types/array.d.ts +0 -12
  204. package/dist/vm/types/array.d.ts.map +0 -1
  205. package/dist/vm/types/callable.d.ts +0 -5
  206. package/dist/vm/types/callable.d.ts.map +0 -1
  207. package/dist/vm/types/const.d.ts +0 -15
  208. package/dist/vm/types/const.d.ts.map +0 -1
  209. package/dist/vm/types/immutable.d.ts +0 -15
  210. package/dist/vm/types/immutable.d.ts.map +0 -1
  211. package/dist/vm/types/primitive.d.ts +0 -7
  212. package/dist/vm/types/primitive.d.ts.map +0 -1
  213. package/dist/vm/types/record.d.ts +0 -20
  214. package/dist/vm/types/record.d.ts.map +0 -1
  215. package/dist/vm/types/script.d.ts +0 -14
  216. package/dist/vm/types/script.d.ts.map +0 -1
  217. package/dist/vm/types/value.d.ts +0 -14
  218. package/dist/vm/types/value.d.ts.map +0 -1
  219. package/src/vm/lib/global/mod/index.ts +0 -4
  220. package/src/vm/types/any.ts +0 -33
  221. package/src/vm/types/array.ts +0 -19
  222. package/src/vm/types/callable.ts +0 -10
  223. package/src/vm/types/const.ts +0 -109
  224. package/src/vm/types/immutable.ts +0 -22
  225. package/src/vm/types/primitive.ts +0 -14
  226. package/src/vm/types/record.ts +0 -53
  227. package/src/vm/types/script.ts +0 -18
  228. package/src/vm/types/value.ts +0 -22
  229. /package/dist/{chunk-35JGBXRE.js.map → chunk-RIT53WVY.js.map} +0 -0
@@ -1,4 +1,5 @@
1
- import { type VmArray, type VmExtern, type VmFunction, type VmModule, type VmAny, type VmRecord } from '../vm/index.js';
1
+ import type { VmArray, VmExtern, VmFunction, VmModule, VmAny, VmRecord } from '../vm/index.js';
2
+ import type { VmWrapper } from '../vm/types/wrapper.js';
2
3
  /** 序列化设置 */
3
4
  export interface SerializeOptions {
4
5
  /** 最大递归深度,超过该深度的值将被序列化为 `nil`,默认值为 128 */
@@ -43,11 +44,19 @@ export declare function serializeBoolean(value: boolean): string;
43
44
  /** 序列化数字 */
44
45
  export declare function serializeNumber(value: number): string;
45
46
  /** 序列化数组 */
46
- export declare function serializeArray(value: VmArray, depth: number, options: SerializeOptions): string;
47
+ export declare function serializeArray(value: VmArray, depth: number, options: Readonly<SerializeOptions>): string;
47
48
  /** 序列化记录 */
48
- export declare function serializeRecord(value: VmRecord, depth: number, options: SerializeOptions): string;
49
+ export declare function serializeRecord(value: VmRecord, depth: number, options: Readonly<SerializeOptions>): string;
49
50
  /**
50
- * 将 MiraScript 值序列化为 MiraScript 字面量字符串,非常量值将被转换为 `nil`。
51
+ * 将 MiraScript 值序列化为 MiraScript 字面量字符串,非常量值默认转换为 `nil`。
51
52
  */
52
53
  export declare function serialize(value: VmAny, options?: Partial<SerializeOptions>): string;
54
+ /** 将 MiraScript function 转化为 MiraScript 字符串 */
55
+ export declare function displayFunction(value: VmFunction): string;
56
+ /** 将 MiraScript module 转化为 MiraScript 字符串 */
57
+ export declare function displayWrapper(value: VmWrapper<object>, useBraces: boolean, fallback: string): string;
58
+ /**
59
+ * 将 MiraScript 值转化为 MiraScript 字符串。
60
+ */
61
+ export declare function display(value: VmAny, options?: Partial<SerializeOptions>): string;
53
62
  //# sourceMappingURL=serialize.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"serialize.d.ts","sourceRoot":"","sources":["../../src/helpers/serialize.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,KAAK,EACV,KAAK,QAAQ,EAKhB,MAAM,gBAAgB,CAAC;AAOxB,YAAY;AACZ,MAAM,WAAW,gBAAgB;IAC7B,0CAA0C;IAC1C,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB;IAChB,YAAY,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,MAAM,CAAC;IACpD,aAAa;IACb,gBAAgB,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,gBAAgB,KAAK,MAAM,CAAC;IACxE,YAAY;IACZ,eAAe,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,KAAK,MAAM,CAAC;IACtE,aAAa;IACb,eAAe,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,KAAK,MAAM,CAAC;IACtE,eAAe;IACf,oBAAoB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,gBAAgB,KAAK,MAAM,CAAC;IAC1F,iBAAiB;IACjB,qBAAqB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,KAAK,MAAM,CAAC;IAC5E,iBA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AgB,YAAY,IAAI,MAAM,CAErC;AAED,aAAa;AACb,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAEvD;AAED,YAAY;AACZ,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAQrD;AAED,YAAY;AACZ,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,gBAAgB,CAAC,GAAG,MAAM,CAUzG;AAkBD,YAAY;AACZ,wBAAgB,eAAe,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,gBAAgB,CAAC,GAAG,MAAM,CA4B3G;AAoCD;;GAEG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,MAAM,CAEnF;AAED,+CAA+C;AAC/C,wBAAgB,eAAe,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAQzD;AACD,6CAA6C;AAC7C,wBAAgB,cAAc,CAAC,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAMrG;AAiBD;;GAEG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,MAAM,CAGjF"}
@@ -0,0 +1,54 @@
1
+ import type { VmScript } from '../compiler/index.js';
2
+ import type { VmAny, VmArray, VmConst, VmContext, VmExtern, VmFunction, VmFunctionInfo, VmFunctionLike, VmImmutable, VmModule, VmPrimitive, VmRecord, VmValue } from '../vm/types/index.js';
3
+ import type { VmWrapper } from '../vm/types/wrapper.js';
4
+ /** 检查是否为 Mirascript 脚本 */
5
+ export declare function isVmScript(value: unknown): value is VmScript;
6
+ /** 检查是否为执行上下文 */
7
+ export declare function isVmContext(context: unknown): context is VmContext;
8
+ /** 检查是否为 Mirascript 函数 */
9
+ export declare function isVmFunction<T extends VmFunctionLike>(value: unknown): value is VmFunction<T>;
10
+ /** 检查是否为 Mirascript 函数,并获取其信息 */
11
+ export declare function getVmFunctionInfo(value: unknown): VmFunctionInfo | undefined;
12
+ /** 检查值是否为 MiraScript 包装器 */
13
+ export declare function isVmWrapper<T extends object>(value: unknown): value is VmWrapper<T>;
14
+ /** 检查值是否为 Mirascript 模块 */
15
+ export declare function isVmModule<T extends Record<string, VmImmutable>>(value: unknown): value is VmModule<T>;
16
+ /** 检查值是否为 Mirascript 外部值 */
17
+ export declare function isVmExtern<T extends object>(value: unknown): value is VmExtern<T>;
18
+ /** 检查值是否为 Mirascript 可调用值 */
19
+ export declare function isVmCallable<E extends Function, F extends VmFunctionLike>(value: unknown): value is VmFunction<F> | VmExtern<E>;
20
+ /** 检查值是否为 Mirascript 原始值 */
21
+ export declare function isVmPrimitive(value: unknown): value is VmPrimitive;
22
+ /** 检查值是否为 Mirascript 数组 */
23
+ export declare function isVmArray(value: VmAny): value is VmArray;
24
+ /** 检查值是否为 Mirascript 记录 */
25
+ export declare function isVmRecord(value: VmAny): value is VmRecord;
26
+ /** 检查是否为仅包含从 0 开始的连续数字键的 MiraScript 记录 */
27
+ export declare function isVmArrayLikeRecordByEntires(entries: ReadonlyArray<readonly [string, unknown]>): boolean;
28
+ /** 检查是否为仅包含从 0 开始的连续数字键的 MiraScript 记录 */
29
+ export declare function isVmArrayLikeRecordByKeys(keys: readonly string[]): boolean;
30
+ /** 检查是否为仅包含从 0 开始的连续数字键的 MiraScript 记录 */
31
+ export declare function isVmArrayLikeRecord(value: VmRecord): boolean;
32
+ /**
33
+ * 检查是否为 Mirascript 值语义值
34
+ */
35
+ export declare function isVmConst(value: VmAny): value is VmConst;
36
+ /**
37
+ * 检查是否为 Mirascript 值语义值
38
+ */
39
+ export declare function isVmConst(value: unknown, checkDeep: boolean): value is VmConst;
40
+ /**
41
+ * 检查是否为 Mirascript 不可变值
42
+ */
43
+ export declare function isVmImmutable(value: VmAny): value is VmImmutable;
44
+ /**
45
+ * 检查是否为 Mirascript 不可变值
46
+ */
47
+ export declare function isVmImmutable(value: unknown, checkDeep: boolean): value is VmImmutable;
48
+ /** 检查是否为 Mirascript 值 */
49
+ export declare function isVmAny(value: unknown, checkDeep: boolean): value is VmAny;
50
+ /** 检查是否为 Mirascript 合法值 */
51
+ export declare function isVmValue(value: VmAny): value is VmValue;
52
+ /** 检查是否为 Mirascript 合法值 */
53
+ export declare function isVmValue(value: unknown, checkDeep: boolean): value is VmValue;
54
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/helpers/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EACR,KAAK,EACL,OAAO,EACP,OAAO,EACP,SAAS,EACT,QAAQ,EACR,UAAU,EACV,cAAc,EACd,cAAc,EACd,WAAW,EACX,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,OAAO,EACV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAYxD,0BAA0B;AAC1B,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,QAAQ,CAE5D;AAED,iBAAiB;AACjB,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,IAAI,SAAS,CAElE;AACD,0BAA0B;AAC1B,wBAAgB,YAAY,CAAC,CAAC,SAAS,cAAc,EAAE,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,UAAU,CAAC,CAAC,CAAC,CAE7F;AACD,iCAAiC;AACjC,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,cAAc,GAAG,SAAS,CAG5E;A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K,EAAE,KAAK,GAAG,KAAK,IAAI,OAAO,CAAC;AAC1D;;GAEG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,GAAG,KAAK,IAAI,OAAO,CAAC;AA+BhF;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,IAAI,WAAW,CAAC;AAClE;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,GAAG,KAAK,IAAI,WAAW,CAAC;AAQxF,yBAAyB;AACzB,wBAAgB,OAAO,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,GAAG,KAAK,IAAI,KAAK,CAkB1E;AAED,2BAA2B;AAC3B,wBAAgB,SAAS,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,IAAI,OAAO,CAAC;AAC1D,2BAA2B;AAC3B,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,GAAG,KAAK,IAAI,OAAO,CAAC"}
package/dist/index.js CHANGED
@@ -1,20 +1,19 @@
1
- import "./chunk-35JGBXRE.js";
1
+ import "./chunk-RIT53WVY.js";
2
2
  import {
3
- compile,
4
- compileSync,
5
- emitScript,
6
- serialize
7
- } from "./chunk-NT235HY3.js";
8
- import {
9
- VM_ARRAY_MAX_LENGTH,
10
- VmError,
11
3
  VmExtern,
12
4
  VmFunction,
13
5
  VmModule,
6
+ compile,
7
+ compileSync,
14
8
  configCheckpoint,
15
9
  createVmContext,
16
10
  defineVmContextValue,
17
- fromVmFunctionProxy,
11
+ emitScript,
12
+ unwrapFromVmValue,
13
+ wrapToVmValue
14
+ } from "./chunk-W2I5XPIE.js";
15
+ import {
16
+ VmError,
18
17
  generateBytecode,
19
18
  generateBytecodeSync,
20
19
  getVmFunctionInfo,
@@ -35,12 +34,9 @@ import {
35
34
  isVmScript,
36
35
  isVmValue,
37
36
  isVmWrapper,
38
- toVmFunctionProxy,
39
- unwrapFromVmValue,
40
- wrapToVmValue
41
- } from "./chunk-JVFUK7AN.js";
37
+ serialize
38
+ } from "./chunk-JG3D67GF.js";
42
39
  export {
43
- VM_ARRAY_MAX_LENGTH,
44
40
  VmError,
45
41
  VmExtern,
46
42
  VmFunction,
@@ -51,7 +47,6 @@ export {
51
47
  createVmContext,
52
48
  defineVmContextValue,
53
49
  emitScript,
54
- fromVmFunctionProxy,
55
50
  generateBytecode,
56
51
  generateBytecodeSync,
57
52
  getVmFunctionInfo,
@@ -73,7 +68,6 @@ export {
73
68
  isVmValue,
74
69
  isVmWrapper,
75
70
  serialize,
76
- toVmFunctionProxy,
77
71
  unwrapFromVmValue,
78
72
  wrapToVmValue
79
73
  };
package/dist/subtle.d.ts CHANGED
@@ -1,8 +1,9 @@
1
1
  export * as constants from './helpers/constants.js';
2
- export { VmSharedContext, DefaultVmContext } from './vm/types/context.js';
2
+ export * as convert from './helpers/convert/index.js';
3
+ export { DefaultVmContext } from './vm/types/context.js';
3
4
  export * as operations from './vm/operations.js';
4
- export { serialize, serializeNil, serializeBoolean, serializeNumber, serializeString, serializeRecordKey, serializeArray, serializeRecord, type SerializeOptions, } from './helpers/serialize.js';
5
- export { lib } from './vm/lib/_loader.js';
5
+ export { display as serializeForDisplay, serialize, serializeNil, serializeBoolean, serializeNumber, serializeString, serializeRecordKey, serializeArray, serializeRecord, type SerializeOptions, } from './helpers/serialize.js';
6
+ export { lib } from './vm/lib/index.js';
6
7
  export * from './compiler/diagnostic.js';
7
8
  export { generateBytecode, generateBytecodeSync, emitScript } from './compiler/index.js';
8
9
  /** 所有 MiraScript 关键字 */
@@ -1 +1 @@
1
- {"version":3,"file":"subtle.d.ts","sourceRoot":"","sources":["../src/subtle.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,SAAS,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC1E,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,EACH,SAAS,EACT,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,KAAK,gBAAgB,GACxB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEzF,wBAAwB;AACxB,eAAO,IAAI,QAAQ,EAAE,MAAM,SAAS,MAAM,EAIzC,CAAC"}
1
+ {"version":3,"file":"subtle.d.ts","sourceRoot":"","sources":["../src/subtle.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,SAAS,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,OAAO,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,EACH,OAAO,IAAI,mBAAmB,EAC9B,SAAS,EACT,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,KAAK,gBAAgB,GACxB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEzF,wBAAwB;AACxB,eAAO,IAAI,QAAQ,EAAE,MAAM,SAAS,MAAM,EAIzC,CAAC"}
package/dist/subtle.js CHANGED
@@ -1,8 +1,22 @@
1
1
  import {
2
- constants_exports,
2
+ keywords
3
+ } from "./chunk-RLWIIOH5.js";
4
+ import {
5
+ DefaultVmContext,
6
+ convert_exports,
3
7
  emitScript,
4
- keywords,
5
8
  lib,
9
+ operations_exports
10
+ } from "./chunk-W2I5XPIE.js";
11
+ import {
12
+ DiagnosticCode,
13
+ constants_exports,
14
+ display,
15
+ formatDiagnostics,
16
+ generateBytecode,
17
+ generateBytecodeSync,
18
+ getDiagnosticMessage,
19
+ parseDiagnostics,
6
20
  serialize,
7
21
  serializeArray,
8
22
  serializeBoolean,
@@ -11,25 +25,14 @@ import {
11
25
  serializeRecord,
12
26
  serializeRecordKey,
13
27
  serializeString
14
- } from "./chunk-NT235HY3.js";
15
- import {
16
- DefaultVmContext,
17
- DiagnosticCode,
18
- VmSharedContext,
19
- formatDiagnostic,
20
- generateBytecode,
21
- generateBytecodeSync,
22
- getDiagnosticMessage,
23
- operations_exports,
24
- parseDiagnostics
25
- } from "./chunk-JVFUK7AN.js";
28
+ } from "./chunk-JG3D67GF.js";
26
29
  export {
27
30
  DefaultVmContext,
28
31
  DiagnosticCode,
29
- VmSharedContext,
30
32
  constants_exports as constants,
33
+ convert_exports as convert,
31
34
  emitScript,
32
- formatDiagnostic,
35
+ formatDiagnostics,
33
36
  generateBytecode,
34
37
  generateBytecodeSync,
35
38
  getDiagnosticMessage,
@@ -40,6 +43,7 @@ export {
40
43
  serialize,
41
44
  serializeArray,
42
45
  serializeBoolean,
46
+ display as serializeForDisplay,
43
47
  serializeNil,
44
48
  serializeNumber,
45
49
  serializeRecord,
@@ -0,0 +1,9 @@
1
+ /** 检查点 */
2
+ export declare function Cp(): void;
3
+ /** 检查点 */
4
+ export declare function CpEnter(): void;
5
+ /** 检查点 */
6
+ export declare function CpExit(): void;
7
+ /** 设置检查点超时时间 */
8
+ export declare function configCheckpoint(timeout?: number): void;
9
+ //# sourceMappingURL=checkpoint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkpoint.d.ts","sourceRoot":"","sources":["../../src/vm/checkpoint.ts"],"names":[],"mappings":"AAKA,UAAU;AACV,wBAAgB,EAAE,IAAI,IAAI,CAMzB;AACD,UAAU;AACV,wBAAgB,OAAO,IAAI,IAAI,CAU9B;AACD,UAAU;AACV,wBAAgB,MAAM,IAAI,IAAI,CAQ7B;AACD,gBAAgB;AAChB,wBAAgB,gBAAgB,CAAC,OAAO,SAAM,GAAG,IAAI,CAKpD"}
@@ -1,21 +1,15 @@
1
1
  import type { VmFunctionLike } from './types/function.js';
2
2
  import { type VmContext } from './types/context.js';
3
- import { VmFunction, type VmConst, type VmAny, type VmArray, type VmValue } from './types/index.js';
3
+ import type { VmConst, VmAny, VmArray, VmValue } from './types/index.js';
4
+ import { VmFunction } from './types/function.js';
5
+ export { Cp, CpEnter, CpExit } from './checkpoint.js';
4
6
  export declare const Vargs: (varags: VmAny[]) => VmArray;
5
7
  export declare const Element: (value: VmAny) => VmConst;
6
8
  export declare const ElementOpt: (key: string, value: VmAny) => VmConst;
7
- export declare const Function: (fn: VmFunctionLike) => VmFunction;
9
+ export declare const Function: (fn: VmFunctionLike, name?: string) => VmFunction;
8
10
  export declare const Upvalue: (value: VmAny) => VmValue;
9
11
  export declare const ArrayRange: (start: VmAny, end: VmAny) => VmArray;
10
12
  export declare const ArrayRangeExclusive: (start: VmAny, end: VmAny) => VmArray;
11
- /** 检查点 */
12
- export declare function Cp(): void;
13
- /** 检查点 */
14
- export declare function CpEnter(): void;
15
- /** 检查点 */
16
- export declare function CpExit(): void;
17
- /** 设置检查点超时时间 */
18
- export declare function configCheckpoint(timeout?: number): void;
19
13
  /** 默认执行上下文 */
20
14
  export declare function GlobalFallback(): VmContext;
21
15
  //# sourceMappingURL=helpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/vm/helpers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAEH,UAAU,EACV,KAAK,OAAO,EACZ,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M,iBAAiB,CAAC;AAEtD,eAAO,MAAM,KAAK,GAAI,QAAQ,KAAK,EAAE,KAAG,OAQvC,CAAC;AACF,eAAO,MAAM,OAAO,GAAI,OAAO,KAAK,KAAG,OAItC,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,KAAK,MAAM,EAAE,OAAO,KAAK,KAAG,OAItD,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,IAAI,cAAc,EAAE,OAAM,MAAmC,KAAG,UAGxF,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,OAAO,KAAK,KAAG,OAGtC,CAAC;AAUF,eAAO,MAAM,UAAU,GAAI,OAAO,KAAK,EAAE,KAAK,KAAK,KAAG,OAUrD,CAAC;AACF,eAAO,MAAM,mBAAmB,GAAI,OAAO,KAAK,EAAE,KAAK,KAAK,KAAG,OAU9D,CAAC;AAEF,cAAc;AACd,wBAAgB,cAAc,IAAI,SAAS,CAE1C"}
@@ -1,5 +1,5 @@
1
- import './lib/_loader.js';
2
- export * from './error.js';
1
+ import './lib/index.js';
2
+ export { VmError } from '../helpers/error.js';
3
3
  export * from './types/index.js';
4
- export { configCheckpoint } from './helpers.js';
4
+ export { configCheckpoint } from './checkpoint.js';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/vm/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/vm/index.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,CAAC;AAExB,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC"}
@@ -1,8 +1,8 @@
1
- export declare const b_and: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
2
- export declare const b_or: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
3
- export declare const b_not: ((x: import("../../index.js").VmValue | undefined) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
4
- export declare const b_xor: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
5
- export declare const shl: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
6
- export declare const sar: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
7
- export declare const shr: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
1
+ export declare const b_and: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
2
+ export declare const b_or: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
3
+ export declare const b_not: ((x: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
4
+ export declare const b_xor: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
5
+ export declare const shl: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
6
+ export declare const sar: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
7
+ export declare const shr: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
8
8
  //# sourceMappingURL=bit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bit.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/bit.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,iLAWjB,CAAC;AAEF,eAAO,MAAM,IAAI,iLAWhB,CAAC;AAEF,eAAO,MAAM,KAAK,gIAWjB,CAAC;AAEF,eAAO,MAAM,KAAK,iLAWjB,CAAC;AAEF,eAAO,MAAM,GAAG,iLAWf,CAAC;AAEF,eAAO,MAAM,GAAG,iLAWf,CAAC;AAEF,eAAO,MAAM,GAAG,iLAWf,CAAC"}
1
+ {"version":3,"file":"bit.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/bit.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK,6KAWjB,CAAC;AAEF,eAAO,MAAM,IAAI,6KAWhB,CAAC;AAEF,eAAO,MAAM,KAAK,4HAWjB,CAAC;AAEF,eAAO,MAAM,KAAK,6KAWjB,CAAC;AAEF,eAAO,MAAM,GAAG,6KAWf,CAAC;AAEF,eAAO,MAAM,GAAG,6KAWf,CAAC;AAEF,eAAO,MAAM,GAAG,6KAWf,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import type { VmAny } from '../../types/index.js';
2
- export declare const debug_print: ((...args: readonly (import("../../types/value.js").VmValue | undefined)[]) => void) & import("../_helpers.js").VmLibOption & {
2
+ export declare const debug_print: ((...args: readonly (import("../../types/index.js").VmValue | undefined)[]) => void) & import("../helpers.js").VmLibOption & {
3
3
  prefix: readonly string[];
4
4
  };
5
- export declare const panic: ((message: VmAny) => never) & import("../_helpers.js").VmLibOption & {
5
+ export declare const panic: ((message: VmAny) => never) & import("../helpers.js").VmLibOption & {
6
6
  prefix: readonly string[];
7
7
  };
8
8
  //# sourceMappingURL=debug.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/debug.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAGlD,eAAO,MAAM,WAAW;YAaU,SAAS,MAAM,EAAE;CAElD,CAAC;AAEF,eAAO,MAAM,KAAK,aACJ,KAAK;YAgBe,SAAS,MAAM,EAAE;CAElD,CAAC"}
1
+ {"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/debug.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAGlD,eAAO,MAAM,WAAW;YAaU,SAAS,MAAM,EAAE;CAElD,CAAC;AAEF,eAAO,MAAM,KAAK,aACJ,KAAK;YAiBe,SAAS,MAAM,EAAE;CAElD,CAAC"}
@@ -6,5 +6,4 @@ export * from './json.js';
6
6
  export * from './to-primitive.js';
7
7
  export * from './string.js';
8
8
  export * from './time.js';
9
- export * from './mod/index.js';
10
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC"}
@@ -1,3 +1,3 @@
1
- export declare const to_json: ((data: import("../../types/value.js").VmValue | undefined) => string | null) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
2
- export declare const from_json: ((json: import("../../types/value.js").VmValue | undefined, fallback: import("../../types/value.js").VmValue | undefined) => string | number | boolean | import("../../types/record.js").VmRecord | import("../../types/array.js").VmArray | import("../../types/function.js").VmFunction | import("../../types/module.js").VmModule<Record<string, import("../../types/value.js").VmValue>> | import("../../types/extern.js").VmExtern<object> | null) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
1
+ export declare const to_json: ((data: import("../../types/index.js").VmValue | undefined) => string | null) & import("../helpers.js").VmLibOption & Record<never, never>;
2
+ export declare const from_json: ((json: import("../../types/index.js").VmValue | undefined, fallback: import("../../types/index.js").VmValue | undefined) => string | number | boolean | import("../../types/index.js").VmRecord | import("../../types/index.js").VmArray | import("../../types/function.js").VmFunction | import("../../types/module.js").VmModule<Record<string, import("../../types/index.js").VmImmutable>> | import("../../types/extern.js").VmExtern<object> | null) & import("../helpers.js").VmLibOption & Record<never, never>;
3
3
  //# sourceMappingURL=json.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/json.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,OAAO,gJAoBnB,CAAC;AAEF,eAAO,MAAM,SAAS,0fAkBrB,CAAC"}
1
+ {"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/json.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,OAAO,4IAoBnB,CAAC;AAEF,eAAO,MAAM,SAAS,yfAkBrB,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const factorial: ((x: import("../../index.js").VmValue | undefined) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
1
+ export declare const factorial: ((x: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
2
2
  //# sourceMappingURL=math-additional.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"math-additional.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/math-additional.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,SAAS,wDACb,MAAM,kEAmDd,CAAC"}
1
+ {"version":3,"file":"math-additional.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/math-additional.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,SAAS,wDACb,MAAM,8DAkDd,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import type { VmAny } from '../../types/index.js';
2
- export declare const max: ((...values: readonly VmAny[]) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
3
- export declare const min: ((...values: readonly VmAny[]) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
4
- export declare const hypot: ((...values: readonly VmAny[]) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
5
- export declare const sum: ((...values: readonly VmAny[]) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
6
- export declare const product: ((...values: readonly VmAny[]) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
2
+ export declare const max: ((...values: readonly VmAny[]) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
3
+ export declare const min: ((...values: readonly VmAny[]) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
4
+ export declare const hypot: ((...values: readonly VmAny[]) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
5
+ export declare const sum: ((...values: readonly VmAny[]) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
6
+ export declare const product: ((...values: readonly VmAny[]) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
7
7
  //# sourceMappingURL=math-arr.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"math-arr.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/math-arr.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAWlD,eAAO,MAAM,GAAG,eAPyD,SAAS,KAAK,EAAE,KAAK,MAAM,kEAalG,CAAC;AAEH,eAAO,MAAM,GAAG,eAfyD,SAAS,KAAK,EAAE,KAAK,MAAM,kEAqBlG,CAAC;AAEH,eAAO,MAAM,KAAK,eAvBuD,SAAS,KAAK,EAAE,KAAK,MAAM,kEA6BlG,CAAC;AAEH,eAAO,MAAM,GAAG,eACA,SAAS,KAAK,EAAE,6EAW/B,CAAC;AAEF,eAAO,MAAM,OAAO,eACJ,SAAS,KAAK,EAAE,6EAW/B,CAAC"}
1
+ {"version":3,"file":"math-arr.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/math-arr.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAWlD,eAAO,MAAM,GAAG,eAPyD,SAAS,KAAK,EAAE,KAAK,MAAM,8DAalG,CAAC;AAEH,eAAO,MAAM,GAAG,eAfyD,SAAS,KAAK,EAAE,KAAK,MAAM,8DAqBlG,CAAC;AAEH,eAAO,MAAM,KAAK,eAvBuD,SAAS,KAAK,EAAE,KAAK,MAAM,8DA6BlG,CAAC;AAEH,eAAO,MAAM,GAAG,eACA,SAAS,KAAK,EAAE,yEAW/B,CAAC;AAEF,eAAO,MAAM,OAAO,eACJ,SAAS,KAAK,EAAE,yEAW/B,CAAC"}
@@ -1,28 +1,28 @@
1
1
  import type { VmAny } from '../../index.js';
2
- export declare const trunc: ((x: VmAny) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
3
- export declare const floor: ((x: VmAny) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
4
- export declare const ceil: ((x: VmAny) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
5
- export declare const round: ((x: VmAny) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
6
- export declare const sign: ((x: VmAny) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
7
- export declare const abs: ((x: VmAny) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
8
- export declare const acos: ((x: VmAny) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
9
- export declare const acosh: ((x: VmAny) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
10
- export declare const asin: ((x: VmAny) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
11
- export declare const asinh: ((x: VmAny) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
12
- export declare const atan: ((x: VmAny) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
13
- export declare const atanh: ((x: VmAny) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
14
- export declare const cos: ((x: VmAny) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
15
- export declare const cosh: ((x: VmAny) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
16
- export declare const sin: ((x: VmAny) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
17
- export declare const sinh: ((x: VmAny) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
18
- export declare const tan: ((x: VmAny) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
19
- export declare const tanh: ((x: VmAny) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
20
- export declare const exp: ((x: VmAny) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
21
- export declare const expm1: ((x: VmAny) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
22
- export declare const log: ((x: VmAny) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
23
- export declare const log10: ((x: VmAny) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
24
- export declare const log1p: ((x: VmAny) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
25
- export declare const log2: ((x: VmAny) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
26
- export declare const sqrt: ((x: VmAny) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
27
- export declare const cbrt: ((x: VmAny) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
2
+ export declare const trunc: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
3
+ export declare const floor: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
4
+ export declare const ceil: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
5
+ export declare const round: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
6
+ export declare const sign: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
7
+ export declare const abs: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
8
+ export declare const acos: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
9
+ export declare const acosh: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
10
+ export declare const asin: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
11
+ export declare const asinh: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
12
+ export declare const atan: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
13
+ export declare const atanh: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
14
+ export declare const cos: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
15
+ export declare const cosh: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
16
+ export declare const sin: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
17
+ export declare const sinh: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
18
+ export declare const tan: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
19
+ export declare const tanh: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
20
+ export declare const exp: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
21
+ export declare const expm1: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
22
+ export declare const log: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
23
+ export declare const log10: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
24
+ export declare const log1p: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
25
+ export declare const log2: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
26
+ export declare const sqrt: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
27
+ export declare const cbrt: ((x: VmAny) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
28
28
  //# sourceMappingURL=math-unary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"math-unary.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/math-unary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAY5C,eAAO,MAAM,KAAK,OAP4B,KAAK,KAAK,MAAM,kEAY5D,CAAC;AACH,eAAO,MAAM,KAAK,OAb4B,KAAK,KAAK,MAAM,kEAkB5D,CAAC;AACH,eAAO,MAAM,IAAI,OAnB6B,KAAK,KAAK,MAAM,kEAwB5D,CAAC;AAIH,eAAO,MAAM,KAAK,OA5B4B,KAAK,KAAK,MAAM,kEA4C7D,CAAC;AACF,eAAO,MAAM,IAAI,OA7C6B,KAAK,KAAK,MAAM,kEAkD5D,CAAC;AACH,eAAO,MAAM,GAAG,OAnD8B,KAAK,KAAK,MAAM,kEAwD5D,CAAC;AAEH,eAAO,MAAM,IAAI,OA1D6B,KAAK,KAAK,MAAM,kEA+D5D,CAAC;AACH,eAAO,MAAM,KAAK,OAhE4B,KAAK,KAAK,MAAM,kEAqE5D,CAAC;AACH,eAAO,MAAM,IAAI,OAtE6B,KAAK,KAAK,MAAM,kEA2E5D,CAAC;AACH,eAAO,MAAM,KAAK,OA5E4B,KAAK,KAA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AAK,OAxI4B,KAAK,KAAK,MAAM,8DA6I5D,CAAC;AACH,eAAO,MAAM,GAAG,OA9I8B,KAAK,KAAK,MAAM,8DAmJ5D,CAAC;AACH,eAAO,MAAM,KAAK,OApJ4B,KAAK,KAAK,MAAM,8DAyJ5D,CAAC;AACH,eAAO,MAAM,KAAK,OA1J4B,KAAK,KAAK,MAAM,8DA+J5D,CAAC;AACH,eAAO,MAAM,IAAI,OAhK6B,KAAK,KAAK,MAAM,8DAqK5D,CAAC;AAEH,eAAO,MAAM,IAAI,OAvK6B,KAAK,KAAK,MAAM,8DA4K5D,CAAC;AACH,eAAO,MAAM,IAAI,OA7K6B,KAAK,KAAK,MAAM,8DAkL5D,CAAC"}
@@ -1,6 +1,6 @@
1
- export declare const atan2: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
2
- export declare const pow: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
3
- export declare const random: (() => number) & import("../_helpers.js").VmLibOption & Record<string, unknown>;
1
+ export declare const atan2: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
2
+ export declare const pow: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<never, never>;
3
+ export declare const random: (() => number) & import("../helpers.js").VmLibOption & Record<never, never>;
4
4
  export * from './math-arr.js';
5
5
  export * from './math-const.js';
6
6
  export * from './math-unary.js';
@@ -1 +1 @@
1
- {"version":3,"file":"math.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/math.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,KAAK,iLAKhB,CAAC;AACH,eAAO,MAAM,GAAG,iLAKd,CAAC;AACH,eAAO,MAAM,MAAM,iFAKjB,CAAC;AAEH,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"math.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/math.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,6KAKhB,CAAC;AACH,eAAO,MAAM,GAAG,6KAKd,CAAC;AACH,eAAO,MAAM,MAAM,6EAKjB,CAAC;AAEH,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC"}
@@ -1,3 +1,3 @@
1
- export declare const all: ((data: import("../../../types/value.js").VmValue | undefined, predicate: import("../../../types/value.js").VmValue | undefined) => boolean) & import("../../_helpers.js").VmLibOption & Record<string, unknown>;
2
- export declare const any: ((data: import("../../../types/value.js").VmValue | undefined, predicate: import("../../../types/value.js").VmValue | undefined) => boolean) & import("../../_helpers.js").VmLibOption & Record<string, unknown>;
1
+ export declare const all: ((data: import("../../../types/index.js").VmValue | undefined, predicate: import("../../../types/index.js").VmValue | undefined) => boolean) & import("../../helpers.js").VmLibOption & Record<never, never>;
2
+ export declare const any: ((data: import("../../../types/index.js").VmValue | undefined, predicate: import("../../../types/index.js").VmValue | undefined) => boolean) & import("../../helpers.js").VmLibOption & Record<never, never>;
3
3
  //# sourceMappingURL=all-any.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"all-any.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/all-any.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,GAAG,kNAgCf,CAAC;AAEF,eAAO,MAAM,GAAG,kNAgCf,CAAC"}
1
+ {"version":3,"file":"all-any.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/all-any.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,GAAG,8MAkCf,CAAC;AAEF,eAAO,MAAM,GAAG,8MAkCf,CAAC"}
@@ -1,11 +1,11 @@
1
1
  import { type VmConst } from '../../../types/index.js';
2
- export declare const keys: ((data: import("../../../types/value.js").VmValue | undefined) => string[] | number[]) & import("../../_helpers.js").VmLibOption & Record<string, unknown>;
3
- export declare const values: ((data: import("../../../types/value.js").VmValue | undefined) => import("../../../types/array.js").VmArray) & import("../../_helpers.js").VmLibOption & Record<string, unknown>;
4
- export declare const entries: ((data: import("../../../types/value.js").VmValue | undefined) => {
2
+ export declare const keys: ((data: import("../../../types/index.js").VmValue | undefined) => string[] | number[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
3
+ export declare const values: ((data: import("../../../types/index.js").VmValue | undefined) => import("../../../types/index.js").VmArray) & import("../../helpers.js").VmLibOption & Record<never, never>;
4
+ export declare const entries: ((data: import("../../../types/index.js").VmValue | undefined) => {
5
5
  0: number;
6
6
  1: VmConst;
7
7
  }[] | {
8
8
  0: string;
9
- 1: string | number | boolean | import("../../../types/record.js").VmRecord | import("../../../types/array.js").VmArray | null;
10
- }[]) & import("../../_helpers.js").VmLibOption & Record<string, unknown>;
9
+ 1: string | number | boolean | import("../../../types/index.js").VmRecord | import("../../../types/index.js").VmArray | null;
10
+ }[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
11
11
  //# sourceMappingURL=entries.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"entries.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/entries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAI9E,eAAO,MAAM,IAAI,4JAuBhB,CAAC;AAEF,eAAO,MAAM,MAAM,kLAelB,CAAC;AAEF,eAAO,MAAM,OAAO;OAIc,MAAM;OAAK,OAAO;;;;wEAgBnD,CAAC"}
1
+ {"version":3,"file":"entries.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/entries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAI9E,eAAO,MAAM,IAAI,wJAuBhB,CAAC;AAEF,eAAO,MAAM,MAAM,8KAelB,CAAC;AAEF,eAAO,MAAM,OAAO;OAIc,MAAM;OAAK,OAAO;;;;oEAgBnD,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import { type VmValue } from '../../../types/index.js';
2
2
  export declare const find: ((data: VmValue | undefined, predicate: VmValue | undefined) => {
3
3
  0: number;
4
- 1: string | number | boolean | import("../../../types/record.js").VmRecord | import("../../../types/array.js").VmArray | null;
4
+ 1: string | number | boolean | import("../../../types/index.js").VmRecord | import("../../../types/index.js").VmArray | null;
5
5
  } | {
6
6
  0: string;
7
- 1: string | number | boolean | import("../../../types/record.js").VmRecord | import("../../../types/array.js").VmArray | null;
8
- } | null) & import("../../_helpers.js").VmLibOption & Record<string, unknown>;
7
+ 1: string | number | boolean | import("../../../types/index.js").VmRecord | import("../../../types/index.js").VmArray | null;
8
+ } | null) & import("../../helpers.js").VmLibOption & Record<never, never>;
9
9
  //# sourceMappingURL=find.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/find.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,OAAO,EAA2B,MAAM,yBAAyB,CAAC;AAGhF,eAAO,MAAM,IAAI;;;;;;6EA4ChB,CAAC"}
1
+ {"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/find.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,OAAO,EAA2B,MAAM,yBAAyB,CAAC;AAGhF,eAAO,MAAM,IAAI;;;;;;yEA4ChB,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const flatten: ((data: import("../../../index.js").VmValue | undefined, depth?: import("../../../index.js").VmValue | undefined) => (string | number | boolean | import("../../../index.js").VmRecord | import("../../../index.js").VmArray | null | undefined)[]) & import("../../_helpers.js").VmLibOption & Record<string, unknown>;
1
+ export declare const flatten: ((data: import("../../../index.js").VmValue | undefined, depth?: import("../../../index.js").VmValue | undefined) => (string | number | boolean | import("../../../index.js").VmRecord | import("../../../index.js").VmArray | null | undefined)[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
2
2
  //# sourceMappingURL=flatten.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"flatten.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/flatten.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,yTAYnB,CAAC"}
1
+ {"version":3,"file":"flatten.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/flatten.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,qTAYnB,CAAC"}