@mirascript/mirascript 0.1.92 → 0.1.93
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-7JTZW66P.js +1075 -0
- package/dist/chunk-7JTZW66P.js.map +6 -0
- package/dist/{chunk-Y7S6AHE7.js → chunk-F3FHURMG.js} +55 -939
- package/dist/chunk-F3FHURMG.js.map +6 -0
- package/dist/{chunk-HHKY7Y7L.js → chunk-GTNLLZL4.js} +4 -82
- package/dist/chunk-GTNLLZL4.js.map +6 -0
- package/dist/chunk-H2OHULLB.js +89 -0
- package/dist/chunk-H2OHULLB.js.map +6 -0
- package/dist/compiler/worker.js +2 -1
- package/dist/compiler/worker.js.map +1 -1
- package/dist/experimental-context.d.ts +93 -0
- package/dist/experimental-context.d.ts.map +1 -0
- package/dist/experimental-context.js +90 -0
- package/dist/experimental-context.js.map +6 -0
- package/dist/helpers/convert/string.d.ts +0 -2
- package/dist/helpers/convert/string.d.ts.map +1 -1
- package/dist/helpers/error.d.ts.map +1 -1
- package/dist/helpers/serialize/display.d.ts +29 -0
- package/dist/helpers/serialize/display.d.ts.map +1 -0
- package/dist/helpers/serialize/index.d.ts +5 -0
- package/dist/helpers/serialize/index.d.ts.map +1 -0
- package/dist/helpers/serialize/interface.d.ts +33 -0
- package/dist/helpers/serialize/interface.d.ts.map +1 -0
- package/dist/helpers/serialize/serialize.d.ts +39 -0
- package/dist/helpers/serialize/serialize.d.ts.map +1 -0
- package/dist/helpers/serialize/simple.d.ts +9 -0
- package/dist/helpers/serialize/simple.d.ts.map +1 -0
- package/dist/helpers/serialize/string.d.ts +6 -0
- package/dist/helpers/serialize/string.d.ts.map +1 -0
- package/dist/helpers/utils.d.ts +4 -0
- package/dist/helpers/utils.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -8
- package/dist/index.js.map +1 -1
- package/dist/subtle.d.ts +1 -1
- package/dist/subtle.d.ts.map +1 -1
- package/dist/subtle.js +9 -6
- package/dist/subtle.js.map +1 -1
- package/dist/vm/effects/run.d.ts +7 -0
- package/dist/vm/effects/run.d.ts.map +1 -0
- package/dist/vm/effects/state.d.ts +62 -0
- package/dist/vm/effects/state.d.ts.map +1 -0
- package/dist/vm/effects/wrap.d.ts +4 -0
- package/dist/vm/effects/wrap.d.ts.map +1 -0
- 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 +1 -1
- package/dist/vm/lib/global/debug.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/index.d.ts +2 -2
- package/dist/vm/lib/global/math/index.d.ts.map +1 -1
- package/dist/vm/lib/global/math/tgamma.d.ts +2 -2
- package/dist/vm/lib/global/math/tgamma.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 +3 -3
- package/dist/vm/lib/global/sequence/entries.d.ts.map +1 -1
- package/dist/vm/lib/global/sequence/find.d.ts +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/fold.d.ts +1 -1
- package/dist/vm/lib/global/sequence/fold.d.ts.map +1 -1
- package/dist/vm/lib/global/sequence/group.d.ts +1 -1
- package/dist/vm/lib/global/sequence/group.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/new.d.ts +2 -2
- package/dist/vm/lib/global/sequence/new.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/unique.d.ts +2 -2
- package/dist/vm/lib/global/sequence/unique.d.ts.map +1 -1
- package/dist/vm/lib/global/sequence/with.d.ts +1 -1
- 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/case.d.ts +2 -2
- package/dist/vm/lib/global/string/case.d.ts.map +1 -1
- package/dist/vm/lib/global/string/index.d.ts +4 -4
- package/dist/vm/lib/global/string/index.d.ts.map +1 -1
- package/dist/vm/lib/global/string/search.d.ts +3 -3
- package/dist/vm/lib/global/string/search.d.ts.map +1 -1
- package/dist/vm/lib/global/string/trim.d.ts +3 -3
- package/dist/vm/lib/global/string/trim.d.ts.map +1 -1
- package/dist/vm/lib/global/time.d.ts +3 -3
- package/dist/vm/lib/global/time.d.ts.map +1 -1
- package/dist/vm/lib/global/to-primitive.d.ts +3 -3
- package/dist/vm/lib/global/to-primitive.d.ts.map +1 -1
- package/dist/vm/lib/mod/matrix/bin-ops.d.ts +6 -6
- package/dist/vm/lib/mod/matrix/bin-ops.d.ts.map +1 -1
- package/dist/vm/lib/mod/matrix/fill.d.ts +4 -4
- package/dist/vm/lib/mod/matrix/fill.d.ts.map +1 -1
- package/dist/vm/lib/mod/matrix/invert.d.ts +1 -1
- package/dist/vm/lib/mod/matrix/invert.d.ts.map +1 -1
- package/dist/vm/lib/mod/matrix/size.d.ts +1 -1
- package/dist/vm/lib/mod/matrix/size.d.ts.map +1 -1
- package/dist/vm/lib/mod/matrix/transpose.d.ts +1 -1
- package/dist/vm/lib/mod/matrix/transpose.d.ts.map +1 -1
- package/dist/vm/types/function.d.ts +4 -2
- package/dist/vm/types/function.d.ts.map +1 -1
- package/package.json +8 -4
- package/src/experimental-context.ts +121 -0
- package/src/helpers/convert/boolean.ts +1 -1
- package/src/helpers/convert/number.ts +1 -1
- package/src/helpers/convert/string.ts +6 -11
- package/src/helpers/error.ts +2 -0
- package/src/helpers/serialize/display.ts +60 -0
- package/src/helpers/serialize/index.ts +4 -0
- package/src/helpers/serialize/interface.ts +33 -0
- package/src/helpers/serialize/serialize.ts +200 -0
- package/src/helpers/serialize/simple.ts +25 -0
- package/src/helpers/serialize/string.ts +91 -0
- package/src/helpers/utils.ts +11 -2
- package/src/index.ts +1 -1
- package/src/subtle.ts +2 -2
- package/src/vm/effects/run.ts +80 -0
- package/src/vm/effects/state.ts +108 -0
- package/src/vm/effects/wrap.ts +71 -0
- package/src/vm/lib/global/debug.ts +6 -3
- package/src/vm/lib/global/math/index.ts +9 -5
- package/src/vm/lib/global/sequence/zip.ts +1 -1
- package/src/vm/lib/global/time.ts +5 -2
- package/src/vm/lib/helpers.ts +1 -1
- package/src/vm/operations/call.ts +1 -1
- package/src/vm/operations/compound.ts +1 -1
- package/src/vm/operations/iterable.ts +1 -1
- package/src/vm/operations/slice.ts +1 -1
- package/src/vm/operations/spread.ts +1 -1
- package/src/vm/types/function.ts +7 -5
- package/dist/chunk-HHKY7Y7L.js.map +0 -6
- package/dist/chunk-Y7S6AHE7.js.map +0 -6
- package/dist/helpers/serialize.d.ts +0 -63
- package/dist/helpers/serialize.d.ts.map +0 -1
- package/src/helpers/serialize.ts +0 -397
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/math/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/math/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,KAAK,kMAOhB,CAAC;AACH,eAAO,MAAM,GAAG,kMAOd,CAAC;AACH,eAAO,MAAM,MAAM,gFAOlB,CAAC;AAEF,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const gamma: ((x: import("../../../index.js").VmValue | undefined) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
2
|
-
export declare const factorial: ((x: import("../../../index.js").VmValue | undefined) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
1
|
+
export declare const gamma: ((this: void, x: import("../../../index.js").VmValue | undefined) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
2
|
+
export declare const factorial: ((this: void, x: import("../../../index.js").VmValue | undefined) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
3
|
//# sourceMappingURL=tgamma.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tgamma.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/math/tgamma.ts"],"names":[],"mappings":"AAqMA,eAAO,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"tgamma.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/math/tgamma.ts"],"names":[],"mappings":"AAqMA,eAAO,MAAM,KAAK,8IAWjB,CAAC;AAgBF,eAAO,MAAM,SAAS,uEACb,MAAM,iEAWd,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
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>;
|
|
1
|
+
export declare const all: ((this: void, 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: ((this: void, 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":"AAOA,eAAO,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"all-any.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/all-any.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,GAAG,0NAoCf,CAAC;AAEF,eAAO,MAAM,GAAG,0NAoCf,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type VmConst } from '../../../types/index.js';
|
|
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) => {
|
|
2
|
+
export declare const keys: ((this: void, data: import("../../../types/index.js").VmValue | undefined) => string[] | number[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
+
export declare const values: ((this: void, data: import("../../../types/index.js").VmValue | undefined) => import("../../../types/index.js").VmArray) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
4
|
+
export declare const entries: ((this: void, data: import("../../../types/index.js").VmValue | undefined) => {
|
|
5
5
|
0: number;
|
|
6
6
|
1: VmConst;
|
|
7
7
|
}[] | {
|
|
@@ -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,oKAwBhB,CAAC;AAEF,eAAO,MAAM,MAAM,0LAgBlB,CAAC;AAEF,eAAO,MAAM,OAAO;OAIc,MAAM;OAAK,OAAO;;OAOlB,MAAM;OAAK,OAAO;oEAanD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type VmValue } from '../../../types/index.js';
|
|
2
|
-
export declare const find: ((data: VmValue | undefined, predicate: VmValue | undefined) => {
|
|
2
|
+
export declare const find: ((this: void, data: VmValue | undefined, predicate: VmValue | undefined) => {
|
|
3
3
|
0: number;
|
|
4
4
|
1: string | number | boolean | import("../../../types/index.js").VmRecord | import("../../../types/index.js").VmArray | null;
|
|
5
5
|
} | {
|
|
@@ -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<never, never>;
|
|
1
|
+
export declare const flatten: ((this: void, 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":"AAEA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"flatten.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/flatten.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,iUAcnB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { VmValue } from '../../../types/index.js';
|
|
2
|
-
export declare const fold: ((data: VmValue | undefined, initial: VmValue | undefined, f: VmValue | undefined) => VmValue) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
2
|
+
export declare const fold: ((this: void, data: VmValue | undefined, initial: VmValue | undefined, f: VmValue | undefined) => VmValue) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
3
|
//# sourceMappingURL=fold.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fold.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/fold.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAGvD,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"fold.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/fold.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAGvD,eAAO,MAAM,IAAI,4KAyBhB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { VmConst } from '../../../types/index.js';
|
|
2
|
-
export declare const group_by: ((data: import("../../../types/index.js").VmValue | undefined, key: import("../../../types/index.js").VmValue | undefined) => Record<string, VmConst[]>) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
2
|
+
export declare const group_by: ((this: void, data: import("../../../types/index.js").VmValue | undefined, key: import("../../../types/index.js").VmValue | undefined) => Record<string, VmConst[]>) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
3
|
//# sourceMappingURL=group.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/group.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAGvD,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/group.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAGvD,eAAO,MAAM,QAAQ,sOA8BpB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const len: ((arr: import("../../../types/index.js").VmValue | undefined) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
1
|
+
export declare const len: ((this: void, arr: import("../../../types/index.js").VmValue | undefined) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
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":"AAIA,eAAO,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"len.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/len.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,GAAG,sJAiBf,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("../../helpers.js").VmLibOption & Record<never, never>;
|
|
6
|
-
export declare const filter: ((data: VmValue | undefined, predicate: VmValue | undefined) => VmValue) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
7
|
-
export declare const filter_map: ((data: VmValue | undefined, f: VmValue | undefined) => VmValue) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
5
|
+
export declare const map: ((this: void, data: VmValue | undefined, f: VmValue | undefined) => VmValue) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
6
|
+
export declare const filter: ((this: void, data: VmValue | undefined, predicate: VmValue | undefined) => VmValue) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
7
|
+
export declare const filter_map: ((this: void, data: VmValue | undefined, f: VmValue | undefined) => VmValue) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
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":"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,
|
|
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,8IAcf,CAAC;AAEF,eAAO,MAAM,MAAM,sJAkBlB,CAAC;AAEF,eAAO,MAAM,UAAU,8IAkBtB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { VmArray, VmRecord } from '../../../types/index.js';
|
|
2
|
-
export declare const new_record: ((size: import("../../../types/index.js").VmValue | undefined, generator: import("../../../types/index.js").VmValue | undefined) => VmRecord) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
-
export declare const new_array: ((length: import("../../../types/index.js").VmValue | undefined, generator: import("../../../types/index.js").VmValue | undefined) => VmArray) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
2
|
+
export declare const new_record: ((this: void, size: import("../../../types/index.js").VmValue | undefined, generator: import("../../../types/index.js").VmValue | undefined) => VmRecord) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
+
export declare const new_array: ((this: void, length: import("../../../types/index.js").VmValue | undefined, generator: import("../../../types/index.js").VmValue | undefined) => VmArray) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
4
4
|
//# sourceMappingURL=new.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"new.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/new.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAW,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAa1E,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"new.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/new.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAW,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAa1E,eAAO,MAAM,UAAU,kJACA,QAAQ,iEAyB9B,CAAC;AAEF,eAAO,MAAM,SAAS,oJACG,OAAO,iEAkB/B,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { VmConst } from '../../../types/index.js';
|
|
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<never, never>;
|
|
2
|
+
export declare const repeat: ((this: void, data: import("../../../types/index.js").VmValue | undefined, times: import("../../../types/index.js").VmValue | undefined) => VmConst[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
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":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAGvD,eAAO,MAAM,MAAM,
|
|
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,wNAkBlB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const reverse: ((arr: import("../../../index.js").VmValue | undefined) => (import("../../../index.js").VmConst | undefined)[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
1
|
+
export declare const reverse: ((this: void, arr: import("../../../index.js").VmValue | undefined) => (import("../../../index.js").VmConst | undefined)[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
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,6LAanB,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("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
-
export declare const sort_by: ((data: VmValue | undefined, key: VmValue | undefined, comparator: VmValue | undefined) => VmConst[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
2
|
+
export declare const sort: ((this: void, data: VmValue | undefined, comparator: VmValue | undefined) => VmConst[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
+
export declare const sort_by: ((this: void, data: VmValue | undefined, key: VmValue | undefined, comparator: VmValue | undefined) => VmConst[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
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":"AAEA,OAAO,KAAK,EAAS,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AA+BvE,eAAO,MAAM,IAAI,
|
|
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,yJAuBhB,CAAC;AAEF,eAAO,MAAM,OAAO,mLAiCnB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { VmConst, VmValue } from '../../../types/index.js';
|
|
2
|
-
export declare const unique: ((data: VmValue | undefined, equal: VmValue | undefined) => VmConst[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
-
export declare const unique_by: ((data: VmValue | undefined, key: VmValue | undefined, equal: VmValue | undefined) => VmConst[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
2
|
+
export declare const unique: ((this: void, data: VmValue | undefined, equal: VmValue | undefined) => VmConst[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
+
export declare const unique_by: ((this: void, data: VmValue | undefined, key: VmValue | undefined, equal: VmValue | undefined) => VmConst[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
4
4
|
//# sourceMappingURL=unique.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unique.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/unique.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAS,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAkBvE,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"unique.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/unique.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAS,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAkBvE,eAAO,MAAM,MAAM,oJA6BlB,CAAC;AAEF,eAAO,MAAM,SAAS,8KA0CrB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
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<never, never>;
|
|
2
|
+
declare const _with: ((this: void, data: VmValue | undefined, ...entries: (VmValue | undefined)[]) => import("../../../types/index.js").VmRecord | VmArray) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
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":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAW,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAyEzE,QAAA,MAAM,KAAK,
|
|
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;AAyEzE,QAAA,MAAM,KAAK,wMA2DV,CAAC;AACF,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type VmArray, type VmRecord } from '../../../types/index.js';
|
|
2
|
-
export declare const zip: ((data: import("../../../types/index.js").VmValue | undefined) => (VmRecord | VmArray)[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
2
|
+
export declare const zip: ((this: void, data: import("../../../types/index.js").VmValue | undefined) => (VmRecord | VmArray)[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
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":"AAGA,OAAO,EAA2B,KAAK,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAI/F,eAAO,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"zip.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/zip.ts"],"names":[],"mappings":"AAGA,OAAO,EAA2B,KAAK,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAI/F,eAAO,MAAM,GAAG,uKA0Cf,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const to_uppercase: ((str: import("../../../index.js").VmValue | undefined) => string) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
2
|
-
export declare const to_lowercase: ((str: import("../../../index.js").VmValue | undefined) => string) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
1
|
+
export declare const to_uppercase: ((this: void, str: import("../../../index.js").VmValue | undefined) => string) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
2
|
+
export declare const to_lowercase: ((this: void, str: import("../../../index.js").VmValue | undefined) => string) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
3
|
//# sourceMappingURL=case.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"case.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/string/case.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"case.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/string/case.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,gJAUxB,CAAC;AAEF,eAAO,MAAM,YAAY,gJAUxB,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from './trim.js';
|
|
2
2
|
export * from './case.js';
|
|
3
3
|
export * from './search.js';
|
|
4
|
-
export declare const chars: ((str: import("../../../index.js").VmValue | undefined) => string[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
5
|
-
export declare const replace: ((str: import("../../../index.js").VmValue | undefined, search: import("../../../index.js").VmValue | undefined, replacement?: import("../../../index.js").VmValue | undefined) => string) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
6
|
-
export declare const split: ((str: import("../../../index.js").VmValue | undefined, separator?: import("../../../index.js").VmValue | undefined) => string[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
7
|
-
export declare const join: ((arr: import("../../../index.js").VmValue | undefined, separator?: import("../../../index.js").VmValue | undefined) => string) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
4
|
+
export declare const chars: ((this: void, str: import("../../../index.js").VmValue | undefined) => string[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
5
|
+
export declare const replace: ((this: void, str: import("../../../index.js").VmValue | undefined, search: import("../../../index.js").VmValue | undefined, replacement?: import("../../../index.js").VmValue | undefined) => string) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
6
|
+
export declare const split: ((this: void, str: import("../../../index.js").VmValue | undefined, separator?: import("../../../index.js").VmValue | undefined) => string[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
7
|
+
export declare const join: ((this: void, arr: import("../../../index.js").VmValue | undefined, separator?: import("../../../index.js").VmValue | undefined) => string) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/string/index.ts"],"names":[],"mappings":"AAEA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAE5B,eAAO,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/string/index.ts"],"names":[],"mappings":"AAEA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAE5B,eAAO,MAAM,KAAK,kJAUjB,CAAC;AAEF,eAAO,MAAM,OAAO,wQAiBnB,CAAC;AAEF,eAAO,MAAM,KAAK,+MAgBjB,CAAC;AAEF,eAAO,MAAM,IAAI,6MAehB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const starts_with: ((str: import("../../../index.js").VmValue | undefined, search: import("../../../index.js").VmValue | undefined) => boolean) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
2
|
-
export declare const ends_with: ((str: import("../../../index.js").VmValue | undefined, search: import("../../../index.js").VmValue | undefined) => boolean) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
-
export declare const contains: ((str: import("../../../index.js").VmValue | undefined, search: import("../../../index.js").VmValue | undefined) => boolean) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
1
|
+
export declare const starts_with: ((this: void, str: import("../../../index.js").VmValue | undefined, search: import("../../../index.js").VmValue | undefined) => boolean) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
2
|
+
export declare const ends_with: ((this: void, str: import("../../../index.js").VmValue | undefined, search: import("../../../index.js").VmValue | undefined) => boolean) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
+
export declare const contains: ((this: void, str: import("../../../index.js").VmValue | undefined, search: import("../../../index.js").VmValue | undefined) => boolean) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
4
4
|
//# sourceMappingURL=search.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/string/search.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/string/search.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,0MAavB,CAAC;AACF,eAAO,MAAM,SAAS,0MAarB,CAAC;AAEF,eAAO,MAAM,QAAQ,0MAapB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const trim_start: ((str: import("../../../index.js").VmValue | undefined) => string) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
2
|
-
export declare const trim_end: ((str: import("../../../index.js").VmValue | undefined) => string) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
-
export declare const trim: ((str: import("../../../index.js").VmValue | undefined) => string) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
1
|
+
export declare const trim_start: ((this: void, str: import("../../../index.js").VmValue | undefined) => string) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
2
|
+
export declare const trim_end: ((this: void, str: import("../../../index.js").VmValue | undefined) => string) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
+
export declare const trim: ((this: void, str: import("../../../index.js").VmValue | undefined) => string) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
4
4
|
//# sourceMappingURL=trim.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trim.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/string/trim.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"trim.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/string/trim.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,gJAUtB,CAAC;AAEF,eAAO,MAAM,QAAQ,gJAUpB,CAAC;AAEF,eAAO,MAAM,IAAI,gJAUhB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const to_timestamp: ((datetime: import("../../types/index.js").VmValue | undefined, fallback: import("../../types/index.js").VmValue | undefined) => import("../../types/index.js").VmValue | undefined) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
2
|
-
export declare const to_datetime: ((datetime: import("../../types/index.js").VmValue | undefined, offset: import("../../types/index.js").VmValue | undefined, fallback: import("../../types/index.js").VmValue | undefined) => import("../../types/index.js").VmValue | undefined) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
-
export declare const to_iso8601: ((datetime: import("../../types/index.js").VmValue | undefined, fallback: import("../../types/index.js").VmValue | undefined) => import("../../types/index.js").VmValue | undefined) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
1
|
+
export declare const to_timestamp: ((this: void, datetime: import("../../types/index.js").VmValue | undefined, fallback: import("../../types/index.js").VmValue | undefined) => import("../../types/index.js").VmValue | undefined) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
2
|
+
export declare const to_datetime: ((this: void, datetime: import("../../types/index.js").VmValue | undefined, offset: import("../../types/index.js").VmValue | undefined, fallback: import("../../types/index.js").VmValue | undefined) => import("../../types/index.js").VmValue | undefined) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
+
export declare const to_iso8601: ((this: void, datetime: import("../../types/index.js").VmValue | undefined, fallback: import("../../types/index.js").VmValue | undefined) => import("../../types/index.js").VmValue | undefined) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
4
4
|
//# sourceMappingURL=time.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/time.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"time.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/time.ts"],"names":[],"mappings":"AAqCA,eAAO,MAAM,YAAY,+PAexB,CAAC;AAEF,eAAO,MAAM,WAAW,2TAsCvB,CAAC;AAEF,eAAO,MAAM,UAAU,+PAetB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const to_string: ((data: import("../../index.js").VmValue | undefined, fallback: import("../../index.js").VmValue | undefined) => string | number | boolean | import("../../index.js").VmRecord | import("../../index.js").VmArray | import("../../index.js").VmFunction | import("../../index.js").VmModule<Record<string, import("../../index.js").VmImmutable>> | import("../../index.js").VmExtern<object> | null) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
2
|
-
export declare const to_number: ((data: import("../../index.js").VmValue | undefined, fallback: import("../../index.js").VmValue | undefined) => string | number | boolean | import("../../index.js").VmRecord | import("../../index.js").VmArray | import("../../index.js").VmFunction | import("../../index.js").VmModule<Record<string, import("../../index.js").VmImmutable>> | import("../../index.js").VmExtern<object> | null) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
-
export declare const format: ((data: import("../../index.js").VmValue | undefined, format: import("../../index.js").VmValue | undefined) => string) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
1
|
+
export declare const to_string: ((this: void, data: import("../../index.js").VmValue | undefined, fallback: import("../../index.js").VmValue | undefined) => string | number | boolean | import("../../index.js").VmRecord | import("../../index.js").VmArray | import("../../index.js").VmFunction | import("../../index.js").VmModule<Record<string, import("../../index.js").VmImmutable>> | import("../../index.js").VmExtern<object> | null) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
2
|
+
export declare const to_number: ((this: void, data: import("../../index.js").VmValue | undefined, fallback: import("../../index.js").VmValue | undefined) => string | number | boolean | import("../../index.js").VmRecord | import("../../index.js").VmArray | import("../../index.js").VmFunction | import("../../index.js").VmModule<Record<string, import("../../index.js").VmImmutable>> | import("../../index.js").VmExtern<object> | null) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
+
export declare const format: ((this: void, data: import("../../index.js").VmValue | undefined, format: import("../../index.js").VmValue | undefined) => string) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
4
4
|
//# sourceMappingURL=to-primitive.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to-primitive.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/to-primitive.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"to-primitive.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/to-primitive.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS,gdAcrB,CAAC;AAEF,eAAO,MAAM,SAAS,gdAcrB,CAAC;AAEF,eAAO,MAAM,MAAM,iMAclB,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type VmConst } from '../../../types/index.js';
|
|
2
|
-
export declare const entrywise: ((a: import("../../../types/index.js").VmValue | undefined, b: import("../../../types/index.js").VmValue | undefined, f: import("../../../types/index.js").VmValue | undefined) => VmConst) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
-
export declare const add: ((a: import("../../../types/index.js").VmValue | undefined, b: import("../../../types/index.js").VmValue | undefined) => VmConst) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
4
|
-
export declare const subtract: ((a: import("../../../types/index.js").VmValue | undefined, b: import("../../../types/index.js").VmValue | undefined) => VmConst) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
5
|
-
export declare const entrywise_multiply: ((a: import("../../../types/index.js").VmValue | undefined, b: import("../../../types/index.js").VmValue | undefined) => VmConst) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
6
|
-
export declare const entrywise_divide: ((a: import("../../../types/index.js").VmValue | undefined, b: import("../../../types/index.js").VmValue | undefined) => VmConst) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
7
|
-
export declare const multiply: ((a: import("../../../types/index.js").VmValue | undefined, b: import("../../../types/index.js").VmValue | undefined) => VmConst) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
2
|
+
export declare const entrywise: ((this: void, a: import("../../../types/index.js").VmValue | undefined, b: import("../../../types/index.js").VmValue | undefined, f: import("../../../types/index.js").VmValue | undefined) => VmConst) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
+
export declare const add: ((this: void, a: import("../../../types/index.js").VmValue | undefined, b: import("../../../types/index.js").VmValue | undefined) => VmConst) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
4
|
+
export declare const subtract: ((this: void, a: import("../../../types/index.js").VmValue | undefined, b: import("../../../types/index.js").VmValue | undefined) => VmConst) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
5
|
+
export declare const entrywise_multiply: ((this: void, a: import("../../../types/index.js").VmValue | undefined, b: import("../../../types/index.js").VmValue | undefined) => VmConst) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
6
|
+
export declare const entrywise_divide: ((this: void, a: import("../../../types/index.js").VmValue | undefined, b: import("../../../types/index.js").VmValue | undefined) => VmConst) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
7
|
+
export declare const multiply: ((this: void, a: import("../../../types/index.js").VmValue | undefined, b: import("../../../types/index.js").VmValue | undefined) => VmConst) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
8
8
|
//# sourceMappingURL=bin-ops.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bin-ops.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/mod/matrix/bin-ops.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,KAAK,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAiIlE,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"bin-ops.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/mod/matrix/bin-ops.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,KAAK,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAiIlE,eAAO,MAAM,SAAS,yQAsBrB,CAAC;AAEF,eAAO,MAAM,GAAG,+MAef,CAAC;AAEF,eAAO,MAAM,QAAQ,+MAepB,CAAC;AAEF,eAAO,MAAM,kBAAkB,+MAe9B,CAAC;AAEF,eAAO,MAAM,gBAAgB,+MAe5B,CAAC;AAEF,eAAO,MAAM,QAAQ,+MAmEpB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { VmArray, VmConst } from '../../../types/index.js';
|
|
2
|
-
export declare const zeros: ((...size: readonly (import("../../../types/index.js").VmValue | undefined)[]) => VmArray) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
-
export declare const ones: ((...size: readonly (import("../../../types/index.js").VmValue | undefined)[]) => VmArray) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
4
|
-
export declare const identity: ((...size: readonly (import("../../../types/index.js").VmValue | undefined)[]) => number[][]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
5
|
-
export declare const diagonal: ((x: import("../../../types/index.js").VmValue | undefined, k?: import("../../../types/index.js").VmValue | undefined) => VmConst[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
2
|
+
export declare const zeros: ((this: void, ...size: readonly (import("../../../types/index.js").VmValue | undefined)[]) => VmArray) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
+
export declare const ones: ((this: void, ...size: readonly (import("../../../types/index.js").VmValue | undefined)[]) => VmArray) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
4
|
+
export declare const identity: ((this: void, ...size: readonly (import("../../../types/index.js").VmValue | undefined)[]) => number[][]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
5
|
+
export declare const diagonal: ((this: void, x: import("../../../types/index.js").VmValue | undefined, k?: import("../../../types/index.js").VmValue | undefined) => VmConst[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
6
6
|
//# sourceMappingURL=fill.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fill.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/mod/matrix/fill.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAS,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAmBvE,eAAO,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"fill.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/mod/matrix/fill.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAS,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAmBvE,eAAO,MAAM,KAAK,wKAKhB,CAAC;AAEH,eAAO,MAAM,IAAI,wKAKf,CAAC;AAEH,eAAO,MAAM,QAAQ,2KAyBpB,CAAC;AAEF,eAAO,MAAM,QAAQ,kNA8CpB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { VmConst } from '../../../types/index.js';
|
|
2
|
-
export declare const invert: ((a: import("../../../types/index.js").VmValue | undefined) => VmConst) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
2
|
+
export declare const invert: ((this: void, a: import("../../../types/index.js").VmValue | undefined) => VmConst) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
3
|
//# sourceMappingURL=invert.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invert.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/mod/matrix/invert.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAIvD,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"invert.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/mod/matrix/invert.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAIvD,eAAO,MAAM,MAAM,qJAqHlB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const size: ((matrix: import("../../../index.js").VmValue | undefined) => [] | [number, number] | [number]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
1
|
+
export declare const size: ((this: void, matrix: import("../../../index.js").VmValue | undefined) => [] | [number, number] | [number]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
2
2
|
//# sourceMappingURL=size.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"size.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/mod/matrix/size.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"size.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/mod/matrix/size.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI,6KAWhB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const transpose: ((matrix: 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/index.js").VmExtern<object> | null) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
1
|
+
export declare const transpose: ((this: void, matrix: 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/index.js").VmExtern<object> | null) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
2
2
|
//# sourceMappingURL=transpose.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transpose.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/mod/matrix/transpose.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"transpose.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/mod/matrix/transpose.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS,geA0BrB,CAAC"}
|
|
@@ -7,7 +7,7 @@ import type { VmLib } from '../lib/helpers.js';
|
|
|
7
7
|
*
|
|
8
8
|
* 虽然所有输入参数的类型均为 {@linkcode VmValue},但当参数不足时,对应的参数会被填充为 `undefined`。
|
|
9
9
|
*/
|
|
10
|
-
export type VmFunctionLike = (...args: ReadonlyArray<VmValue | undefined>) => VmAny | void;
|
|
10
|
+
export type VmFunctionLike = (this: void, ...args: ReadonlyArray<VmValue | undefined>) => VmAny | void;
|
|
11
11
|
/** Mirascript 函数 */
|
|
12
12
|
export type VmFunction<T extends VmFunctionLike = VmFunctionLike> = T & {
|
|
13
13
|
readonly [kVmFunction]: VmFunctionInfo;
|
|
@@ -42,6 +42,8 @@ export type VmFunctionOption = Partial<VmFunctionInfo> & {
|
|
|
42
42
|
/** 函数名称 */
|
|
43
43
|
readonly name?: string | null | undefined;
|
|
44
44
|
};
|
|
45
|
+
/** Mirascript 函数创建选项 */
|
|
46
|
+
export type VmFunctionOptionLike<T extends VmFunctionLike = VmFunctionLike> = NoInfer<VmFunctionOption | VmFunction | VmLib<T>>;
|
|
45
47
|
/** 创建 Mirascript 函数 */
|
|
46
|
-
export declare function VmFunction<T extends VmFunctionLike>(fn: T, option?:
|
|
48
|
+
export declare function VmFunction<T extends VmFunctionLike>(fn: T, option?: VmFunctionOptionLike<T>): VmFunction<T>;
|
|
47
49
|
//# sourceMappingURL=function.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"function.d.ts","sourceRoot":"","sources":["../../../src/vm/types/function.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,WAAW,EAA8B,MAAM,4BAA4B,CAAC;AAErF,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAEjD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE/C;;;;GAIG;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC,OAAO,GAAG,SAAS,CAAC,KAAK,KAAK,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"function.d.ts","sourceRoot":"","sources":["../../../src/vm/types/function.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,WAAW,EAA8B,MAAM,4BAA4B,CAAC;AAErF,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAEjD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE/C;;;;GAIG;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,aAAa,CAAC,OAAO,GAAG,SAAS,CAAC,KAAK,KAAK,GAAG,IAAI,CAAC;AAEvG,oBAAoB;AACpB,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,cAAc,GAAG,cAAc,IAAI,CAAC,GAAG;IAAE,QAAQ,CAAC,CAAC,WAAW,CAAC,EAAE,cAAc,CAAA;CAAE,CAAC;AAEnH,qBAAqB;AACrB,MAAM,MAAM,WAAW,GAAG;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CACjC,CAAC;AACF,sBAAsB;AACtB,MAAM,MAAM,cAAc,GAAG;IACzB,WAAW;IACX,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,aAAa;IACb,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,YAAY;IACZ,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY;IACZ,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IAC9C,YAAY;IACZ,QAAQ,CAAC,OAAO,CAAC,EAAE,WAAW,CAAC;IAC/B,YAAY;IACZ,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,YAAY;IACZ,QAAQ,CAAC,UAAU,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,cAAc,CAAA;KAAE,CAAC;CACnE,CAAC;AAEF,wBAAwB;AACxB,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,cAAc,CAAC,GAAG;IACrD,WAAW;IACX,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC7C,CAAC;AAQF,wBAAwB;AACxB,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,cAAc,GAAG,cAAc,IAAI,OAAO,CACjF,gBAAgB,GAAG,UAAU,GAAG,KAAK,CAAC,CAAC,CAAC,CAC3C,CAAC;AAEF,uBAAuB;AACvB,wBAAgB,UAAU,CAAC,CAAC,SAAS,cAAc,EAAE,EAAE,EAAE,CAAC,EAAE,MAAM,GAAE,oBAAoB,CAAC,CAAC,CAAM,GAAG,UAAU,CAAC,CAAC,CAAC,CAmC/G"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mirascript/mirascript",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.93",
|
|
4
4
|
"author": "CloudPSS",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "An expression based scripting language.",
|
|
@@ -29,6 +29,10 @@
|
|
|
29
29
|
"@mirascript/dev": "./src/subtle.ts",
|
|
30
30
|
"default": "./dist/subtle.js"
|
|
31
31
|
},
|
|
32
|
+
"./experimental-context": {
|
|
33
|
+
"@mirascript/dev": "./src/experimental-context.ts",
|
|
34
|
+
"default": "./dist/experimental-context.js"
|
|
35
|
+
},
|
|
32
36
|
"./package.json": "./package.json"
|
|
33
37
|
},
|
|
34
38
|
"imports": {
|
|
@@ -40,15 +44,15 @@
|
|
|
40
44
|
},
|
|
41
45
|
"dependencies": {
|
|
42
46
|
"@cloudpss/worker": "^0.1.11",
|
|
43
|
-
"@mirascript/bindings": "~0.1.
|
|
44
|
-
"@mirascript/constants": "~0.1.
|
|
47
|
+
"@mirascript/bindings": "~0.1.93",
|
|
48
|
+
"@mirascript/constants": "~0.1.93",
|
|
45
49
|
"source-map-js": "^1.2.1",
|
|
46
50
|
"supports-color": "^11.0.0"
|
|
47
51
|
},
|
|
48
52
|
"devDependencies": {
|
|
49
53
|
"ava": "^8.0.1",
|
|
50
54
|
"c8": "^12.0.0",
|
|
51
|
-
"tinybench": "^6.1.
|
|
55
|
+
"tinybench": "^6.1.6",
|
|
52
56
|
"type-fest": "^5.9.0"
|
|
53
57
|
},
|
|
54
58
|
"scripts": {
|