@mirascript/wasm 0.1.87 → 0.1.88
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/lib/wasm.d.ts +9 -9
- package/lib/wasm.js +10 -10
- package/lib/wasm_bg.wasm +0 -0
- package/package.json +2 -2
package/lib/wasm.d.ts
CHANGED
|
@@ -29,31 +29,31 @@ export class Config {
|
|
|
29
29
|
* Encoding for counting positions in diagnostics.
|
|
30
30
|
*/
|
|
31
31
|
export enum DiagnosticPositionEncoding {
|
|
32
|
-
/**
|
|
33
|
-
* Use the default encoding (UTF-8) and
|
|
34
|
-
* 0-based indexing from the start of the file.
|
|
35
|
-
* Do not convert positions to line-column format.
|
|
36
|
-
*/
|
|
37
|
-
None = 0,
|
|
38
32
|
/**
|
|
39
33
|
* Convert positions to 1-based UTF-8 line-column format.
|
|
40
34
|
*/
|
|
41
|
-
Utf8 =
|
|
35
|
+
Utf8 = 0,
|
|
42
36
|
/**
|
|
43
37
|
* Convert positions to 1-based UTF-16 line-column format.
|
|
44
38
|
*/
|
|
45
|
-
Utf16 =
|
|
39
|
+
Utf16 = 1,
|
|
46
40
|
/**
|
|
47
41
|
* Convert positions to 1-based UTF-32 line-column format.
|
|
48
42
|
*/
|
|
49
|
-
Utf32 =
|
|
43
|
+
Utf32 = 2,
|
|
50
44
|
}
|
|
51
45
|
|
|
52
46
|
/**
|
|
53
47
|
* Mode for reading input.
|
|
54
48
|
*/
|
|
55
49
|
export enum InputMode {
|
|
50
|
+
/**
|
|
51
|
+
* Input is a full script, which may contain multiple statements and declarations.
|
|
52
|
+
*/
|
|
56
53
|
Script = 0,
|
|
54
|
+
/**
|
|
55
|
+
* Input is a single string literal, which may contain escape sequences.
|
|
56
|
+
*/
|
|
57
57
|
Template = 1,
|
|
58
58
|
}
|
|
59
59
|
|
package/lib/wasm.js
CHANGED
|
@@ -193,27 +193,21 @@ if (Symbol.dispose) Config.prototype[Symbol.dispose] = Config.prototype.free;
|
|
|
193
193
|
|
|
194
194
|
/**
|
|
195
195
|
* Encoding for counting positions in diagnostics.
|
|
196
|
-
* @enum {0 | 1 | 2
|
|
196
|
+
* @enum {0 | 1 | 2}
|
|
197
197
|
*/
|
|
198
198
|
export const DiagnosticPositionEncoding = Object.freeze({
|
|
199
|
-
/**
|
|
200
|
-
* Use the default encoding (UTF-8) and
|
|
201
|
-
* 0-based indexing from the start of the file.
|
|
202
|
-
* Do not convert positions to line-column format.
|
|
203
|
-
*/
|
|
204
|
-
None: 0, "0": "None",
|
|
205
199
|
/**
|
|
206
200
|
* Convert positions to 1-based UTF-8 line-column format.
|
|
207
201
|
*/
|
|
208
|
-
Utf8:
|
|
202
|
+
Utf8: 0, "0": "Utf8",
|
|
209
203
|
/**
|
|
210
204
|
* Convert positions to 1-based UTF-16 line-column format.
|
|
211
205
|
*/
|
|
212
|
-
Utf16:
|
|
206
|
+
Utf16: 1, "1": "Utf16",
|
|
213
207
|
/**
|
|
214
208
|
* Convert positions to 1-based UTF-32 line-column format.
|
|
215
209
|
*/
|
|
216
|
-
Utf32:
|
|
210
|
+
Utf32: 2, "2": "Utf32",
|
|
217
211
|
});
|
|
218
212
|
|
|
219
213
|
/**
|
|
@@ -221,7 +215,13 @@ export const DiagnosticPositionEncoding = Object.freeze({
|
|
|
221
215
|
* @enum {0 | 1}
|
|
222
216
|
*/
|
|
223
217
|
export const InputMode = Object.freeze({
|
|
218
|
+
/**
|
|
219
|
+
* Input is a full script, which may contain multiple statements and declarations.
|
|
220
|
+
*/
|
|
224
221
|
Script: 0, "0": "Script",
|
|
222
|
+
/**
|
|
223
|
+
* Input is a single string literal, which may contain escape sequences.
|
|
224
|
+
*/
|
|
225
225
|
Template: 1, "1": "Template",
|
|
226
226
|
});
|
|
227
227
|
|
package/lib/wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mirascript/wasm",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.88",
|
|
4
4
|
"author": "CloudPSS",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "MiraScript compiler for WebAssembly",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"nodemon": "^3.1.14",
|
|
34
|
-
"@mirascript/constants": "~0.1.
|
|
34
|
+
"@mirascript/constants": "~0.1.88"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"wasm": "wasm-pack build --target web --out-dir ../../packages/wasm/lib --no-pack ../../crates/wasm",
|