motoko 2.1.0 → 3.0.0-beta0
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/file.d.ts +7 -2
- package/lib/file.d.ts.map +1 -1
- package/lib/index.d.ts +14 -4
- package/lib/index.d.ts.map +1 -1
- package/lib/versions/interpreter.d.ts +14 -4
- package/lib/versions/interpreter.d.ts.map +1 -1
- package/lib/versions/moc.d.ts +14 -4
- package/lib/versions/moc.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +2 -2
- package/versions/latest/moc.min.js +1 -1
- package/versions/latest/moc_interpreter.min.js +1 -1
package/lib/file.d.ts
CHANGED
@@ -16,7 +16,12 @@ export declare const file: (mo: Motoko, path: string) => {
|
|
16
16
|
};
|
17
17
|
candid(): string;
|
18
18
|
wasm(mode: WasmMode): any;
|
19
|
-
parseMotoko():
|
20
|
-
|
19
|
+
parseMotoko(): {
|
20
|
+
ast: object;
|
21
|
+
exportType: object;
|
22
|
+
};
|
23
|
+
parseCandid(): {
|
24
|
+
ast: object;
|
25
|
+
};
|
21
26
|
};
|
22
27
|
//# sourceMappingURL=file.d.ts.map
|
package/lib/file.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../src/file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,CAAC;AAerC,oBAAY,UAAU,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC;AAEjD,eAAO,MAAM,IAAI,OAAQ,MAAM,QAAQ,MAAM;;;YAa7B,MAAM;mBAGC,MAAM;oBAGL,MAAM;;;;;;;;;;eAoBX,QAAQ
|
1
|
+
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../src/file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,CAAC;AAerC,oBAAY,UAAU,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC;AAEjD,eAAO,MAAM,IAAI,OAAQ,MAAM,QAAQ,MAAM;;;YAa7B,MAAM;mBAGC,MAAM;oBAGL,MAAM;;;;;;;;;;eAoBX,QAAQ;;;;;;;;CAW1B,CAAC"}
|
package/lib/index.d.ts
CHANGED
@@ -41,8 +41,13 @@ export default function wrapMotoko(compiler: Compiler, version: string): {
|
|
41
41
|
};
|
42
42
|
candid(): string;
|
43
43
|
wasm(mode: WasmMode): any;
|
44
|
-
parseMotoko():
|
45
|
-
|
44
|
+
parseMotoko(): {
|
45
|
+
ast: object;
|
46
|
+
exportType: object;
|
47
|
+
};
|
48
|
+
parseCandid(): {
|
49
|
+
ast: object;
|
50
|
+
};
|
46
51
|
};
|
47
52
|
read(path: string): string;
|
48
53
|
write(path: string, content?: string): void;
|
@@ -63,8 +68,13 @@ export default function wrapMotoko(compiler: Compiler, version: string): {
|
|
63
68
|
};
|
64
69
|
candid(path: string): string;
|
65
70
|
wasm(path: string, mode: WasmMode): any;
|
66
|
-
parseMotoko(content: string):
|
67
|
-
|
71
|
+
parseMotoko(content: string): {
|
72
|
+
ast: object;
|
73
|
+
exportType: object;
|
74
|
+
};
|
75
|
+
parseCandid(content: string): {
|
76
|
+
ast: object;
|
77
|
+
};
|
68
78
|
};
|
69
79
|
export {};
|
70
80
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAA8B,WAAW,EAAE,MAAM,WAAW,CAAC;AAEpE,oBAAY,MAAM,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAEnD,aAAK,QAAQ,GAAG,GAAG,CAAC;AAGpB,oBAAY,UAAU,GAAG;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG;QAAE,MAAM,EAAE,GAAG,CAAC;QAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAA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;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AAEF,oBAAY,QAAQ,GAAG,IAAI,GAAG,MAAM,CAAC;AAErC,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM;;;eA2CnD,MAAM;;;;;;;;;;oBAmDJ,MAAM;oBAAU,MAAM;oBAAU,MAAM,GAAG,MAAM;;;;;iBAcvB,MAAM;wBAAc,MAAM;;;iBAG1B,MAAM;;;eAjEhC,MAAM,GAAG,MAAM;gBAGd,MAAM,YAAW,MAAM;iBAOtB,MAAM,WAAW,MAAM;iBAGvB,MAAM;oBAIH,MAAM,GAAG,MAAM,EAAE;uBAGR,MAAM,GAAG,WAAW;2BAGhB,OAAO,MAAM,EAAE,MAAM,GAAG,WAAW,CAAC;qBAGhD,MAAM,aAAa,MAAM;;wBAQtB,MAAM;wBAIN,MAAM;gBAGd,MAAM,GAAG,UAAU,EAAE;cAKvB,MAAM,aACD,MAAM,EAAE,GAAG,SAAS,GAChC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE;iBAGjD,MAAM,GAAG,MAAM;eAGjB,MAAM,QAAQ,QAAQ;yBAQZ,MAAM,GAAG;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE;yBAG5C,MAAM,GAAG;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE;EAOpD"}
|
@@ -17,8 +17,13 @@ declare const _default: {
|
|
17
17
|
};
|
18
18
|
candid(): string;
|
19
19
|
wasm(mode: import("..").WasmMode): any;
|
20
|
-
parseMotoko():
|
21
|
-
|
20
|
+
parseMotoko(): {
|
21
|
+
ast: object;
|
22
|
+
exportType: object;
|
23
|
+
};
|
24
|
+
parseCandid(): {
|
25
|
+
ast: object;
|
26
|
+
};
|
22
27
|
};
|
23
28
|
read(path: string): string;
|
24
29
|
write(path: string, content?: string): void;
|
@@ -39,8 +44,13 @@ declare const _default: {
|
|
39
44
|
};
|
40
45
|
candid(path: string): string;
|
41
46
|
wasm(path: string, mode: import("..").WasmMode): any;
|
42
|
-
parseMotoko(content: string):
|
43
|
-
|
47
|
+
parseMotoko(content: string): {
|
48
|
+
ast: object;
|
49
|
+
exportType: object;
|
50
|
+
};
|
51
|
+
parseCandid(content: string): {
|
52
|
+
ast: object;
|
53
|
+
};
|
44
54
|
};
|
45
55
|
export default _default;
|
46
56
|
//# sourceMappingURL=interpreter.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"interpreter.d.ts","sourceRoot":"","sources":["../../src/versions/interpreter.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"interpreter.d.ts","sourceRoot":"","sources":["../../src/versions/interpreter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAAwD"}
|
package/lib/versions/moc.d.ts
CHANGED
@@ -17,8 +17,13 @@ declare const _default: {
|
|
17
17
|
};
|
18
18
|
candid(): string;
|
19
19
|
wasm(mode: import("..").WasmMode): any;
|
20
|
-
parseMotoko():
|
21
|
-
|
20
|
+
parseMotoko(): {
|
21
|
+
ast: object;
|
22
|
+
exportType: object;
|
23
|
+
};
|
24
|
+
parseCandid(): {
|
25
|
+
ast: object;
|
26
|
+
};
|
22
27
|
};
|
23
28
|
read(path: string): string;
|
24
29
|
write(path: string, content?: string): void;
|
@@ -39,8 +44,13 @@ declare const _default: {
|
|
39
44
|
};
|
40
45
|
candid(path: string): string;
|
41
46
|
wasm(path: string, mode: import("..").WasmMode): any;
|
42
|
-
parseMotoko(content: string):
|
43
|
-
|
47
|
+
parseMotoko(content: string): {
|
48
|
+
ast: object;
|
49
|
+
exportType: object;
|
50
|
+
};
|
51
|
+
parseCandid(content: string): {
|
52
|
+
ast: object;
|
53
|
+
};
|
44
54
|
};
|
45
55
|
export default _default;
|
46
56
|
//# sourceMappingURL=moc.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"moc.d.ts","sourceRoot":"","sources":["../../src/versions/moc.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"moc.d.ts","sourceRoot":"","sources":["../../src/versions/moc.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAA4C"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
@@ -128,10 +128,10 @@ export default function wrapMotoko(compiler: Compiler, version: string) {
|
|
128
128
|
}
|
129
129
|
return invoke('compileWasm', true, [mode, path]);
|
130
130
|
},
|
131
|
-
parseMotoko(content: string): object {
|
131
|
+
parseMotoko(content: string): { ast: object; exportType: object } {
|
132
132
|
return invoke('parseMotoko', true, [content]);
|
133
133
|
},
|
134
|
-
parseCandid(content: string): object {
|
134
|
+
parseCandid(content: string): { ast: object } {
|
135
135
|
return invoke('parseCandid', true, [content]);
|
136
136
|
},
|
137
137
|
};
|