@mirascript/mirascript 0.1.15 → 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-NT235HY3.js → chunk-LU4ZKFF6.js} +1411 -608
- package/dist/chunk-LU4ZKFF6.js.map +6 -0
- package/dist/chunk-RIT53WVY.js +1 -0
- package/dist/chunk-RLWIIOH5.js +12 -0
- package/dist/chunk-RLWIIOH5.js.map +6 -0
- package/dist/{chunk-JVFUK7AN.js → chunk-YZGL3D7L.js} +739 -1366
- package/dist/chunk-YZGL3D7L.js.map +6 -0
- package/dist/cli/index.js +11 -67
- package/dist/cli/index.js.map +2 -2
- package/dist/compiler/compile-fast.d.ts +1 -1
- package/dist/compiler/compile-fast.d.ts.map +1 -1
- package/dist/compiler/create-script.d.ts +10 -1
- package/dist/compiler/create-script.d.ts.map +1 -1
- package/dist/compiler/diagnostic.d.ts +1 -1
- package/dist/compiler/diagnostic.d.ts.map +1 -1
- package/dist/compiler/emit/constants.d.ts +3 -0
- package/dist/compiler/emit/constants.d.ts.map +1 -0
- package/dist/compiler/emit/consts.d.ts +6 -0
- package/dist/compiler/emit/consts.d.ts.map +1 -0
- package/dist/compiler/emit/globals.d.ts +17 -0
- package/dist/compiler/emit/globals.d.ts.map +1 -0
- package/dist/compiler/emit/index.d.ts +58 -0
- package/dist/compiler/emit/index.d.ts.map +1 -0
- package/dist/compiler/emit/sourcemap.d.ts +6 -0
- package/dist/compiler/emit/sourcemap.d.ts.map +1 -0
- package/dist/compiler/index.d.ts +3 -2
- package/dist/compiler/index.d.ts.map +1 -1
- package/dist/compiler/worker.js +1 -1
- package/dist/helpers/constants.d.ts +10 -0
- package/dist/helpers/constants.d.ts.map +1 -1
- package/dist/helpers/convert.d.ts +12 -0
- package/dist/helpers/convert.d.ts.map +1 -0
- package/dist/{vm → helpers}/error.d.ts +1 -1
- package/dist/helpers/error.d.ts.map +1 -0
- package/dist/helpers/serialize.d.ts +13 -4
- package/dist/helpers/serialize.d.ts.map +1 -1
- package/dist/helpers/types.d.ts +54 -0
- package/dist/helpers/types.d.ts.map +1 -0
- package/dist/index.js +11 -17
- package/dist/subtle.d.ts +3 -2
- package/dist/subtle.d.ts.map +1 -1
- package/dist/subtle.js +21 -15
- package/dist/vm/checkpoint.d.ts +9 -0
- package/dist/vm/checkpoint.d.ts.map +1 -0
- package/dist/vm/helpers.d.ts +4 -10
- package/dist/vm/helpers.d.ts.map +1 -1
- package/dist/vm/index.d.ts +3 -3
- package/dist/vm/index.d.ts.map +1 -1
- package/dist/vm/lib/global/bit.d.ts +7 -7
- package/dist/vm/lib/global/bit.d.ts.map +1 -1
- package/dist/vm/lib/global/debug.d.ts +2 -2
- package/dist/vm/lib/global/debug.d.ts.map +1 -1
- package/dist/vm/lib/global/index.d.ts +0 -1
- package/dist/vm/lib/global/index.d.ts.map +1 -1
- package/dist/vm/lib/global/json.d.ts +2 -2
- package/dist/vm/lib/global/json.d.ts.map +1 -1
- package/dist/vm/lib/global/math-additional.d.ts +1 -1
- package/dist/vm/lib/global/math-additional.d.ts.map +1 -1
- package/dist/vm/lib/global/math-arr.d.ts +5 -5
- package/dist/vm/lib/global/math-arr.d.ts.map +1 -1
- package/dist/vm/lib/global/math-unary.d.ts +26 -26
- package/dist/vm/lib/global/math-unary.d.ts.map +1 -1
- package/dist/vm/lib/global/math.d.ts +3 -3
- package/dist/vm/lib/global/math.d.ts.map +1 -1
- package/dist/vm/lib/global/sequence/all-any.d.ts +2 -2
- package/dist/vm/lib/global/sequence/all-any.d.ts.map +1 -1
- package/dist/vm/lib/global/sequence/entries.d.ts +5 -5
- package/dist/vm/lib/global/sequence/entries.d.ts.map +1 -1
- package/dist/vm/lib/global/sequence/find.d.ts +3 -3
- package/dist/vm/lib/global/sequence/find.d.ts.map +1 -1
- package/dist/vm/lib/global/sequence/flatten.d.ts +1 -1
- package/dist/vm/lib/global/sequence/flatten.d.ts.map +1 -1
- package/dist/vm/lib/global/sequence/len.d.ts +1 -1
- package/dist/vm/lib/global/sequence/len.d.ts.map +1 -1
- package/dist/vm/lib/global/sequence/map-filter.d.ts +3 -3
- package/dist/vm/lib/global/sequence/map-filter.d.ts.map +1 -1
- package/dist/vm/lib/global/sequence/repeat.d.ts +1 -1
- package/dist/vm/lib/global/sequence/repeat.d.ts.map +1 -1
- package/dist/vm/lib/global/sequence/reverse.d.ts +1 -1
- package/dist/vm/lib/global/sequence/reverse.d.ts.map +1 -1
- package/dist/vm/lib/global/sequence/sort.d.ts +2 -2
- package/dist/vm/lib/global/sequence/sort.d.ts.map +1 -1
- package/dist/vm/lib/global/sequence/with.d.ts +2 -2
- package/dist/vm/lib/global/sequence/with.d.ts.map +1 -1
- package/dist/vm/lib/global/sequence/zip.d.ts +1 -1
- package/dist/vm/lib/global/sequence/zip.d.ts.map +1 -1
- package/dist/vm/lib/global/string.d.ts +10 -10
- package/dist/vm/lib/global/string.d.ts.map +1 -1
- package/dist/vm/lib/global/time.d.ts +3 -13
- package/dist/vm/lib/global/time.d.ts.map +1 -1
- package/dist/vm/lib/global/to-primitive.d.ts +4 -4
- package/dist/vm/lib/global/to-primitive.d.ts.map +1 -1
- package/dist/vm/lib/helpers.d.ts +53 -0
- package/dist/vm/lib/helpers.d.ts.map +1 -0
- package/dist/vm/lib/index.d.ts +4 -0
- package/dist/vm/lib/index.d.ts.map +1 -0
- package/dist/vm/lib/{_loader.d.ts → loader.d.ts} +5 -5
- package/dist/vm/lib/loader.d.ts.map +1 -0
- package/dist/vm/lib/mod/index.d.ts +2 -0
- package/dist/vm/lib/mod/index.d.ts.map +1 -0
- package/dist/vm/lib/mod/matrix.d.ts +15 -0
- package/dist/vm/lib/mod/matrix.d.ts.map +1 -0
- package/dist/vm/operations.d.ts +2 -4
- package/dist/vm/operations.d.ts.map +1 -1
- package/dist/vm/types/boundary.d.ts +1 -1
- package/dist/vm/types/boundary.d.ts.map +1 -1
- package/dist/vm/types/context.d.ts +10 -9
- package/dist/vm/types/context.d.ts.map +1 -1
- package/dist/vm/types/extern.d.ts +1 -3
- package/dist/vm/types/extern.d.ts.map +1 -1
- package/dist/vm/types/function.d.ts +1 -6
- package/dist/vm/types/function.d.ts.map +1 -1
- package/dist/vm/types/index.d.ts +31 -17
- package/dist/vm/types/index.d.ts.map +1 -1
- package/dist/vm/types/module.d.ts +2 -4
- package/dist/vm/types/module.d.ts.map +1 -1
- package/dist/vm/types/wrapper.d.ts +0 -2
- package/dist/vm/types/wrapper.d.ts.map +1 -1
- package/package.json +7 -3
- package/src/cli/index.ts +1 -1
- package/src/compiler/compile-fast.ts +1 -2
- package/src/compiler/create-script.ts +12 -2
- package/src/compiler/diagnostic.ts +17 -8
- package/src/compiler/emit/constants.ts +2 -0
- package/src/compiler/emit/consts.ts +47 -0
- package/src/compiler/emit/globals.ts +39 -0
- package/src/compiler/{emit.ts → emit/index.ts} +16 -200
- package/src/compiler/emit/sourcemap.ts +163 -0
- package/src/compiler/index.ts +9 -9
- package/src/compiler/worker.ts +1 -1
- package/src/helpers/constants.ts +12 -0
- package/src/helpers/convert.ts +128 -0
- package/src/{vm → helpers}/error.ts +1 -1
- package/src/helpers/serialize.ts +71 -24
- package/src/helpers/types.ts +267 -0
- package/src/subtle.ts +3 -1
- package/src/vm/checkpoint.ts +42 -0
- package/src/vm/helpers.ts +9 -53
- package/src/vm/index.ts +3 -3
- package/src/vm/lib/global/bit.ts +8 -9
- package/src/vm/lib/global/debug.ts +5 -4
- package/src/vm/lib/global/index.ts +0 -1
- package/src/vm/lib/global/json.ts +2 -2
- package/src/vm/lib/global/math-additional.ts +2 -4
- package/src/vm/lib/global/math-arr.ts +1 -1
- package/src/vm/lib/global/math-unary.ts +2 -4
- package/src/vm/lib/global/math.ts +3 -4
- package/src/vm/lib/global/sequence/all-any.ts +11 -6
- package/src/vm/lib/global/sequence/entries.ts +1 -1
- package/src/vm/lib/global/sequence/find.ts +4 -3
- package/src/vm/lib/global/sequence/flatten.ts +2 -3
- package/src/vm/lib/global/sequence/len.ts +1 -1
- package/src/vm/lib/global/sequence/map-filter.ts +4 -3
- package/src/vm/lib/global/sequence/repeat.ts +2 -4
- package/src/vm/lib/global/sequence/reverse.ts +1 -1
- package/src/vm/lib/global/sequence/sort.ts +6 -5
- package/src/vm/lib/global/sequence/with.ts +21 -20
- package/src/vm/lib/global/sequence/zip.ts +3 -3
- package/src/vm/lib/global/string.ts +16 -27
- package/src/vm/lib/global/time.ts +59 -30
- package/src/vm/lib/global/to-primitive.ts +27 -18
- package/src/vm/lib/{_helpers.ts → helpers.ts} +129 -41
- package/src/vm/lib/index.ts +16 -0
- package/src/vm/lib/{_loader.ts → loader.ts} +3 -11
- package/src/vm/lib/mod/index.ts +1 -0
- package/src/vm/lib/{global/mod → mod}/matrix.ts +9 -7
- package/src/vm/operations.ts +31 -126
- package/src/vm/types/boundary.ts +10 -13
- package/src/vm/types/context.ts +17 -24
- package/src/vm/types/extern.ts +8 -15
- package/src/vm/types/function.ts +4 -19
- package/src/vm/types/index.ts +47 -25
- package/src/vm/types/module.ts +3 -7
- package/src/vm/types/wrapper.ts +1 -5
- package/dist/chunk-35JGBXRE.js +0 -1
- package/dist/chunk-JVFUK7AN.js.map +0 -6
- package/dist/chunk-NT235HY3.js.map +0 -6
- package/dist/compiler/emit.d.ts +0 -5
- package/dist/compiler/emit.d.ts.map +0 -1
- package/dist/vm/error.d.ts.map +0 -1
- package/dist/vm/lib/_helpers.d.ts +0 -35
- package/dist/vm/lib/_helpers.d.ts.map +0 -1
- package/dist/vm/lib/_loader.d.ts.map +0 -1
- package/dist/vm/lib/global/mod/index.d.ts +0 -3
- package/dist/vm/lib/global/mod/index.d.ts.map +0 -1
- package/dist/vm/lib/global/mod/matrix.d.ts +0 -15
- package/dist/vm/lib/global/mod/matrix.d.ts.map +0 -1
- package/dist/vm/types/any.d.ts +0 -10
- package/dist/vm/types/any.d.ts.map +0 -1
- package/dist/vm/types/array.d.ts +0 -12
- package/dist/vm/types/array.d.ts.map +0 -1
- package/dist/vm/types/callable.d.ts +0 -5
- package/dist/vm/types/callable.d.ts.map +0 -1
- package/dist/vm/types/const.d.ts +0 -15
- package/dist/vm/types/const.d.ts.map +0 -1
- package/dist/vm/types/immutable.d.ts +0 -15
- package/dist/vm/types/immutable.d.ts.map +0 -1
- package/dist/vm/types/primitive.d.ts +0 -7
- package/dist/vm/types/primitive.d.ts.map +0 -1
- package/dist/vm/types/record.d.ts +0 -20
- package/dist/vm/types/record.d.ts.map +0 -1
- package/dist/vm/types/script.d.ts +0 -14
- package/dist/vm/types/script.d.ts.map +0 -1
- package/dist/vm/types/value.d.ts +0 -14
- package/dist/vm/types/value.d.ts.map +0 -1
- package/src/vm/lib/global/mod/index.ts +0 -4
- package/src/vm/types/any.ts +0 -33
- package/src/vm/types/array.ts +0 -19
- package/src/vm/types/callable.ts +0 -10
- package/src/vm/types/const.ts +0 -109
- package/src/vm/types/immutable.ts +0 -22
- package/src/vm/types/primitive.ts +0 -14
- package/src/vm/types/record.ts +0 -53
- package/src/vm/types/script.ts +0 -18
- package/src/vm/types/value.ts +0 -22
- /package/dist/{chunk-35JGBXRE.js.map → chunk-RIT53WVY.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import "./chunk-
|
|
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
|
-
|
|
11
|
+
emitScript,
|
|
12
|
+
unwrapFromVmValue,
|
|
13
|
+
wrapToVmValue
|
|
14
|
+
} from "./chunk-LU4ZKFF6.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
|
-
|
|
39
|
-
|
|
40
|
-
wrapToVmValue
|
|
41
|
-
} from "./chunk-JVFUK7AN.js";
|
|
37
|
+
serialize
|
|
38
|
+
} from "./chunk-YZGL3D7L.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 * as convert from './helpers/convert.js';
|
|
2
3
|
export { VmSharedContext, 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/
|
|
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 关键字 */
|
package/dist/subtle.d.ts.map
CHANGED
|
@@ -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,
|
|
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,sBAAsB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC1E,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,23 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
keywords
|
|
3
|
+
} from "./chunk-RLWIIOH5.js";
|
|
4
|
+
import {
|
|
5
|
+
DefaultVmContext,
|
|
6
|
+
VmSharedContext,
|
|
3
7
|
emitScript,
|
|
4
|
-
keywords,
|
|
5
8
|
lib,
|
|
9
|
+
operations_exports
|
|
10
|
+
} from "./chunk-LU4ZKFF6.js";
|
|
11
|
+
import {
|
|
12
|
+
DiagnosticCode,
|
|
13
|
+
constants_exports,
|
|
14
|
+
convert_exports,
|
|
15
|
+
display,
|
|
16
|
+
formatDiagnostics,
|
|
17
|
+
generateBytecode,
|
|
18
|
+
generateBytecodeSync,
|
|
19
|
+
getDiagnosticMessage,
|
|
20
|
+
parseDiagnostics,
|
|
6
21
|
serialize,
|
|
7
22
|
serializeArray,
|
|
8
23
|
serializeBoolean,
|
|
@@ -11,25 +26,15 @@ import {
|
|
|
11
26
|
serializeRecord,
|
|
12
27
|
serializeRecordKey,
|
|
13
28
|
serializeString
|
|
14
|
-
} from "./chunk-
|
|
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";
|
|
29
|
+
} from "./chunk-YZGL3D7L.js";
|
|
26
30
|
export {
|
|
27
31
|
DefaultVmContext,
|
|
28
32
|
DiagnosticCode,
|
|
29
33
|
VmSharedContext,
|
|
30
34
|
constants_exports as constants,
|
|
35
|
+
convert_exports as convert,
|
|
31
36
|
emitScript,
|
|
32
|
-
|
|
37
|
+
formatDiagnostics,
|
|
33
38
|
generateBytecode,
|
|
34
39
|
generateBytecodeSync,
|
|
35
40
|
getDiagnosticMessage,
|
|
@@ -40,6 +45,7 @@ export {
|
|
|
40
45
|
serialize,
|
|
41
46
|
serializeArray,
|
|
42
47
|
serializeBoolean,
|
|
48
|
+
display as serializeForDisplay,
|
|
43
49
|
serializeNil,
|
|
44
50
|
serializeNumber,
|
|
45
51
|
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"}
|
package/dist/vm/helpers.d.ts
CHANGED
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
import type { VmFunctionLike } from './types/function.js';
|
|
2
2
|
import { type VmContext } from './types/context.js';
|
|
3
|
-
import {
|
|
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
|
package/dist/vm/helpers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/vm/helpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/vm/helpers.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,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,aAAiC,KAAG,UAGhF,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"}
|
package/dist/vm/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import './lib/
|
|
2
|
-
export
|
|
1
|
+
import './lib/index.js';
|
|
2
|
+
export { VmError } from '../helpers/error.js';
|
|
3
3
|
export * from './types/index.js';
|
|
4
|
-
export { configCheckpoint } from './
|
|
4
|
+
export { configCheckpoint } from './checkpoint.js';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/vm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/vm/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
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("../
|
|
2
|
-
export declare const b_or: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../
|
|
3
|
-
export declare const b_not: ((x: import("../../index.js").VmValue | undefined) => number) & import("../
|
|
4
|
-
export declare const b_xor: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../
|
|
5
|
-
export declare const shl: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../
|
|
6
|
-
export declare const sar: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../
|
|
7
|
-
export declare const shr: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../
|
|
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>;
|
|
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":"
|
|
1
|
+
{"version":3,"file":"bit.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/bit.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK,gLAWjB,CAAC;AAEF,eAAO,MAAM,IAAI,gLAWhB,CAAC;AAEF,eAAO,MAAM,KAAK,+HAWjB,CAAC;AAEF,eAAO,MAAM,KAAK,gLAWjB,CAAC;AAEF,eAAO,MAAM,GAAG,gLAWf,CAAC;AAEF,eAAO,MAAM,GAAG,gLAWf,CAAC;AAEF,eAAO,MAAM,GAAG,gLAWf,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { VmAny } from '../../types/index.js';
|
|
2
|
-
export declare const debug_print: ((...args: readonly (import("../../types/
|
|
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("../
|
|
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;
|
|
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"}
|
|
@@ -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
|
|
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/
|
|
2
|
-
export declare const from_json: ((json: import("../../types/
|
|
1
|
+
export declare const to_json: ((data: import("../../types/index.js").VmValue | undefined) => string | null) & import("../helpers.js").VmLibOption & Record<string, unknown>;
|
|
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<string, unknown>;
|
|
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,
|
|
1
|
+
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/json.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,OAAO,+IAoBnB,CAAC;AAEF,eAAO,MAAM,SAAS,4fAkBrB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const factorial: ((x: import("../../index.js").VmValue | undefined) => number) & import("../
|
|
1
|
+
export declare const factorial: ((x: import("../../index.js").VmValue | undefined) => number) & import("../helpers.js").VmLibOption & Record<string, unknown>;
|
|
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":"
|
|
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,iEAkDd,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { VmAny } from '../../types/index.js';
|
|
2
|
-
export declare const max: ((...values: readonly VmAny[]) => number) & import("../
|
|
3
|
-
export declare const min: ((...values: readonly VmAny[]) => number) & import("../
|
|
4
|
-
export declare const hypot: ((...values: readonly VmAny[]) => number) & import("../
|
|
5
|
-
export declare const sum: ((...values: readonly VmAny[]) => number) & import("../
|
|
6
|
-
export declare const product: ((...values: readonly VmAny[]) => number) & import("../
|
|
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>;
|
|
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,
|
|
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,iEAalG,CAAC;AAEH,eAAO,MAAM,GAAG,eAfyD,SAAS,KAAK,EAAE,KAAK,MAAM,iEAqBlG,CAAC;AAEH,eAAO,MAAM,KAAK,eAvBuD,SAAS,KAAK,EAAE,KAAK,MAAM,iEA6BlG,CAAC;AAEH,eAAO,MAAM,GAAG,eACA,SAAS,KAAK,EAAE,4EAW/B,CAAC;AAEF,eAAO,MAAM,OAAO,eACJ,SAAS,KAAK,EAAE,4EAW/B,CAAC"}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import type { VmAny } from '../../index.js';
|
|
2
|
-
export declare const trunc: ((x: VmAny) => number) & import("../
|
|
3
|
-
export declare const floor: ((x: VmAny) => number) & import("../
|
|
4
|
-
export declare const ceil: ((x: VmAny) => number) & import("../
|
|
5
|
-
export declare const round: ((x: VmAny) => number) & import("../
|
|
6
|
-
export declare const sign: ((x: VmAny) => number) & import("../
|
|
7
|
-
export declare const abs: ((x: VmAny) => number) & import("../
|
|
8
|
-
export declare const acos: ((x: VmAny) => number) & import("../
|
|
9
|
-
export declare const acosh: ((x: VmAny) => number) & import("../
|
|
10
|
-
export declare const asin: ((x: VmAny) => number) & import("../
|
|
11
|
-
export declare const asinh: ((x: VmAny) => number) & import("../
|
|
12
|
-
export declare const atan: ((x: VmAny) => number) & import("../
|
|
13
|
-
export declare const atanh: ((x: VmAny) => number) & import("../
|
|
14
|
-
export declare const cos: ((x: VmAny) => number) & import("../
|
|
15
|
-
export declare const cosh: ((x: VmAny) => number) & import("../
|
|
16
|
-
export declare const sin: ((x: VmAny) => number) & import("../
|
|
17
|
-
export declare const sinh: ((x: VmAny) => number) & import("../
|
|
18
|
-
export declare const tan: ((x: VmAny) => number) & import("../
|
|
19
|
-
export declare const tanh: ((x: VmAny) => number) & import("../
|
|
20
|
-
export declare const exp: ((x: VmAny) => number) & import("../
|
|
21
|
-
export declare const expm1: ((x: VmAny) => number) & import("../
|
|
22
|
-
export declare const log: ((x: VmAny) => number) & import("../
|
|
23
|
-
export declare const log10: ((x: VmAny) => number) & import("../
|
|
24
|
-
export declare const log1p: ((x: VmAny) => number) & import("../
|
|
25
|
-
export declare const log2: ((x: VmAny) => number) & import("../
|
|
26
|
-
export declare const sqrt: ((x: VmAny) => number) & import("../
|
|
27
|
-
export declare const cbrt: ((x: VmAny) => number) & import("../
|
|
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>;
|
|
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;
|
|
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;AAU5C,eAAO,MAAM,KAAK,OAN4B,KAAK,KAAK,MAAM,iEAW5D,CAAC;AACH,eAAO,MAAM,KAAK,OAZ4B,KAAK,KAAK,MAAM,iEAiB5D,CAAC;AACH,eAAO,MAAM,IAAI,OAlB6B,KAAK,KAAK,MAAM,iEAuB5D,CAAC;AAIH,eAAO,MAAM,KAAK,OA3B4B,KAAK,KAAK,MAAM,iEA2C7D,CAAC;AACF,eAAO,MAAM,IAAI,OA5C6B,KAAK,KAAK,MAAM,iEAiD5D,CAAC;AACH,eAAO,MAAM,GAAG,OAlD8B,KAAK,KAAK,MAAM,iEAuD5D,CAAC;AAEH,eAAO,MAAM,IAAI,OAzD6B,KAAK,KAAK,MAAM,iEA8D5D,CAAC;AACH,eAAO,MAAM,KAAK,OA/D4B,KAAK,KAAK,MAAM,iEAoE5D,CAAC;AACH,eAAO,MAAM,IAAI,OArE6B,KAAK,KAAK,MAAM,iEA0E5D,CAAC;AACH,eAAO,MAAM,KAAK,OA3E4B,KAAK,KAAK,MAAM,iEAgF5D,CAAC;AACH,eAAO,MAAM,IAAI,OAjF6B,KAAK,KAAK,MAAM,iEAsF5D,CAAC;AACH,eAAO,MAAM,KAAK,OAvF4B,KAAK,KAAK,MAAM,iEA4F5D,CAAC;AACH,eAAO,MAAM,GAAG,OA7F8B,KAAK,KAAK,MAAM,iEAkG5D,CAAC;AACH,eAAO,MAAM,IAAI,OAnG6B,KAAK,KAAK,MAAM,iEAwG5D,CAAC;AACH,eAAO,MAAM,GAAG,OAzG8B,KAAK,KAAK,MAAM,iEA8G5D,CAAC;AACH,eAAO,MAAM,IAAI,OA/G6B,KAAK,KAAK,MAAM,iEAoH5D,CAAC;AACH,eAAO,MAAM,GAAG,OArH8B,KAAK,KAAK,MAAM,iEA0H5D,CAAC;AACH,eAAO,MAAM,IAAI,OA3H6B,KAAK,KAAK,MAAM,iEAgI5D,CAAC;AAEH,eAAO,MAAM,GAAG,OAlI8B,KAAK,KAAK,MAAM,iEAuI5D,CAAC;AACH,eAAO,MAAM,KAAK,OAxI4B,KAAK,KAAK,MAAM,iEA6I5D,CAAC;AACH,eAAO,MAAM,GAAG,OA9I8B,KAAK,KAAK,MAAM,iEAmJ5D,CAAC;AACH,eAAO,MAAM,KAAK,OApJ4B,KAAK,KAAK,MAAM,iEAyJ5D,CAAC;AACH,eAAO,MAAM,KAAK,OA1J4B,KAAK,KAAK,MAAM,iEA+J5D,CAAC;AACH,eAAO,MAAM,IAAI,OAhK6B,KAAK,KAAK,MAAM,iEAqK5D,CAAC;AAEH,eAAO,MAAM,IAAI,OAvK6B,KAAK,KAAK,MAAM,iEA4K5D,CAAC;AACH,eAAO,MAAM,IAAI,OA7K6B,KAAK,KAAK,MAAM,iEAkL5D,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const atan2: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../
|
|
2
|
-
export declare const pow: ((x: import("../../index.js").VmValue | undefined, y: import("../../index.js").VmValue | undefined) => number) & import("../
|
|
3
|
-
export declare const random: (() => number) & import("../
|
|
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>;
|
|
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":"
|
|
1
|
+
{"version":3,"file":"math.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/math.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,gLAKhB,CAAC;AACH,eAAO,MAAM,GAAG,gLAKd,CAAC;AACH,eAAO,MAAM,MAAM,gFAKjB,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/
|
|
2
|
-
export declare const any: ((data: import("../../../types/
|
|
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<string, unknown>;
|
|
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<string, unknown>;
|
|
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":"
|
|
1
|
+
{"version":3,"file":"all-any.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/all-any.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,GAAG,iNAkCf,CAAC;AAEF,eAAO,MAAM,GAAG,iNAkCf,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { type VmConst } from '../../../types/index.js';
|
|
2
|
-
export declare const keys: ((data: import("../../../types/
|
|
3
|
-
export declare const values: ((data: import("../../../types/
|
|
4
|
-
export declare const entries: ((data: import("../../../types/
|
|
2
|
+
export declare const keys: ((data: import("../../../types/index.js").VmValue | undefined) => string[] | number[]) & import("../../helpers.js").VmLibOption & Record<string, unknown>;
|
|
3
|
+
export declare const values: ((data: import("../../../types/index.js").VmValue | undefined) => import("../../../types/index.js").VmArray) & import("../../helpers.js").VmLibOption & Record<string, unknown>;
|
|
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/
|
|
10
|
-
}[]) & import("../../
|
|
9
|
+
1: string | number | boolean | import("../../../types/index.js").VmRecord | import("../../../types/index.js").VmArray | null;
|
|
10
|
+
}[]) & import("../../helpers.js").VmLibOption & Record<string, unknown>;
|
|
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,
|
|
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,2JAuBhB,CAAC;AAEF,eAAO,MAAM,MAAM,iLAelB,CAAC;AAEF,eAAO,MAAM,OAAO;OAIc,MAAM;OAAK,OAAO;;;;uEAgBnD,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/
|
|
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/
|
|
8
|
-
} | null) & import("../../
|
|
7
|
+
1: string | number | boolean | import("../../../types/index.js").VmRecord | import("../../../types/index.js").VmArray | null;
|
|
8
|
+
} | null) & import("../../helpers.js").VmLibOption & Record<string, unknown>;
|
|
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":"
|
|
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;;;;;;4EA4ChB,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("../../
|
|
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>;
|
|
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":"
|
|
1
|
+
{"version":3,"file":"flatten.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/flatten.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,wTAYnB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const len: ((arr: import("../../../index.js").VmValue | undefined) => number) & import("../../
|
|
1
|
+
export declare const len: ((arr: import("../../../index.js").VmValue | undefined) => number) & import("../../helpers.js").VmLibOption & Record<string, unknown>;
|
|
2
2
|
//# sourceMappingURL=len.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"len.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/len.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"len.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/len.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,GAAG,uIAYf,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { type VmValue } from '../../../types/index.js';
|
|
|
2
2
|
export * from './with.js';
|
|
3
3
|
export * from './entries.js';
|
|
4
4
|
export * from './len.js';
|
|
5
|
-
export declare const map: ((data: VmValue | undefined, f: VmValue | undefined) => VmValue) & import("../../
|
|
6
|
-
export declare const filter: ((data: VmValue | undefined, predicate: VmValue | undefined) => VmValue) & import("../../
|
|
7
|
-
export declare const filter_map: ((data: VmValue | undefined, f: VmValue | undefined) => VmValue) & import("../../
|
|
5
|
+
export declare const map: ((data: VmValue | undefined, f: VmValue | undefined) => VmValue) & import("../../helpers.js").VmLibOption & Record<string, unknown>;
|
|
6
|
+
export declare const filter: ((data: VmValue | undefined, predicate: VmValue | undefined) => VmValue) & import("../../helpers.js").VmLibOption & Record<string, unknown>;
|
|
7
|
+
export declare const filter_map: ((data: VmValue | undefined, f: VmValue | undefined) => VmValue) & import("../../helpers.js").VmLibOption & Record<string, unknown>;
|
|
8
8
|
//# sourceMappingURL=map-filter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"map-filter.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/map-filter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"map-filter.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/map-filter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAyB,KAAK,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAG9E,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AAkBzB,eAAO,MAAM,GAAG,qIAef,CAAC;AAEF,eAAO,MAAM,MAAM,6IAmBlB,CAAC;AAEF,eAAO,MAAM,UAAU,qIAmBtB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { VmConst } from '../../../types/index.js';
|
|
2
|
-
export declare const repeat: ((data: import("../../../types/
|
|
2
|
+
export declare const repeat: ((data: import("../../../types/index.js").VmValue | undefined, times: import("../../../types/index.js").VmValue | undefined) => VmConst[]) & import("../../helpers.js").VmLibOption & Record<string, unknown>;
|
|
3
3
|
//# sourceMappingURL=repeat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repeat.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/repeat.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"repeat.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/repeat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAGvD,eAAO,MAAM,MAAM,+MAsBlB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const reverse: ((arr: import("../../../index.js").VmValue | undefined) => (import("../../../index.js").VmConst | undefined)[]) & import("../../
|
|
1
|
+
export declare const reverse: ((arr: import("../../../index.js").VmValue | undefined) => (import("../../../index.js").VmConst | undefined)[]) & import("../../helpers.js").VmLibOption & Record<string, unknown>;
|
|
2
2
|
//# sourceMappingURL=reverse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reverse.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/reverse.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"reverse.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/reverse.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,oLAcnB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { VmConst, VmValue } from '../../../types/index.js';
|
|
2
|
-
export declare const sort: ((data: VmValue | undefined, comparator: VmValue | undefined) => VmConst[]) & import("../../
|
|
3
|
-
export declare const sort_by: ((data: VmValue | undefined, key_fn: VmValue | undefined, comparator: VmValue | undefined) => VmConst[]) & import("../../
|
|
2
|
+
export declare const sort: ((data: VmValue | undefined, comparator: VmValue | undefined) => VmConst[]) & import("../../helpers.js").VmLibOption & Record<string, unknown>;
|
|
3
|
+
export declare const sort_by: ((data: VmValue | undefined, key_fn: VmValue | undefined, comparator: VmValue | undefined) => VmConst[]) & import("../../helpers.js").VmLibOption & Record<string, unknown>;
|
|
4
4
|
//# sourceMappingURL=sort.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sort.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/sort.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sort.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/sort.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAS,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AA+BvE,eAAO,MAAM,IAAI,gJAwBhB,CAAC;AAEF,eAAO,MAAM,OAAO,6KAgCnB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const _with: ((data: VmValue | undefined, ...entries: (VmValue | undefined)[]) => import("../../../types/
|
|
1
|
+
import type { VmArray, VmValue } from '../../../types/index.js';
|
|
2
|
+
declare const _with: ((data: VmValue | undefined, ...entries: (VmValue | undefined)[]) => import("../../../types/index.js").VmRecord | VmArray) & import("../../helpers.js").VmLibOption & Record<string, unknown>;
|
|
3
3
|
export { _with as 'with' };
|
|
4
4
|
//# sourceMappingURL=with.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"with.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/with.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"with.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/with.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAW,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAuEzE,QAAA,MAAM,KAAK,+LA4DV,CAAC;AACF,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type VmConst } from '../../../types/index.js';
|
|
2
|
-
export declare const zip: ((data: import("../../../types/
|
|
2
|
+
export declare const zip: ((data: import("../../../types/index.js").VmValue | undefined) => Record<string | number, VmConst>[]) & import("../../helpers.js").VmLibOption & Record<string, unknown>;
|
|
3
3
|
//# sourceMappingURL=zip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zip.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/zip.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,KAAK,OAAO,EAAgB,MAAM,yBAAyB,CAAC;AAIhF,eAAO,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"zip.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/zip.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,KAAK,OAAO,EAAgB,MAAM,yBAAyB,CAAC;AAIhF,eAAO,MAAM,GAAG,0KAiCf,CAAC"}
|