@tombi-toml/wasm-lib 0.0.0-bootstrap.0

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/README.md ADDED
@@ -0,0 +1,33 @@
1
+ # tombi-wasm
2
+
3
+ WebAssembly bindings for Tombi's formatter, linter, and Language Server.
4
+
5
+ This crate is built with [`wasm-bindgen`](https://github.com/rustwasm/wasm-bindgen)
6
+ and exposes JavaScript-compatible APIs for browser environments. The functionality
7
+ is selected with Cargo features:
8
+
9
+ - `lib` (default) provides the formatter and linter APIs.
10
+ - `lsp` provides the Language Server runtime and workspace file APIs.
11
+
12
+ The `lib` and `lsp` features are mutually exclusive build variants. Build this
13
+ crate with `wasm-pack` and select the required feature explicitly:
14
+
15
+ ```sh
16
+ wasm-pack build \
17
+ --target web \
18
+ --no-default-features \
19
+ --features lib
20
+ ```
21
+
22
+ To build the Language Server variant:
23
+
24
+ ```sh
25
+ wasm-pack build \
26
+ --target web \
27
+ --no-default-features \
28
+ --features lsp
29
+ ```
30
+
31
+ The Language Server communicates through standard LSP JSON-RPC messages. Browser
32
+ hosts can use the exported `serve` API with Web Streams and use
33
+ `set_workspace_entries` to preload files that are not opened through LSP.
@@ -0,0 +1,64 @@
1
+ export * from "./tombi_wasm";
2
+
3
+ /** A diagnostic reported by Tombi. */
4
+ export interface Diagnostic {
5
+ level: "error" | "warning";
6
+ code: string;
7
+ message: string;
8
+ range: Range;
9
+ source_file: string | null;
10
+ }
11
+
12
+ /** A zero-based position in a TOML document. */
13
+ export interface Position {
14
+ line: number;
15
+ column: number;
16
+ }
17
+
18
+ /** A range in a TOML document. */
19
+ export interface Range {
20
+ start: Position;
21
+ end: Position;
22
+ }
23
+
24
+ /** The result of formatting a TOML document. */
25
+ export interface FormatResult {
26
+ formatted?: string;
27
+ diagnostics: Diagnostic[];
28
+ }
29
+
30
+ /** The result of linting a TOML document. */
31
+ export interface LintResult {
32
+ diagnostics: Diagnostic[];
33
+ }
34
+
35
+ /**
36
+ * An in-memory `tombi.toml` configuration.
37
+ * When a string is provided, it is treated as the content of a virtual
38
+ * `tombi.toml`.
39
+ */
40
+ export type Config = { content: string; path: string } | string;
41
+
42
+ /** Options shared by the formatter and linter. */
43
+ export interface Options {
44
+ config?: Config;
45
+ }
46
+
47
+ /** Format a TOML document. */
48
+ export function format(
49
+ source: string,
50
+ sourcePath: string,
51
+ options?: Options,
52
+ ): Promise<FormatResult>;
53
+
54
+ /** Lint a TOML document. */
55
+ export function lint(
56
+ source: string,
57
+ sourcePath: string,
58
+ options?: Options,
59
+ ): Promise<LintResult>;
60
+
61
+ /** An error reported when an operation cannot be executed. */
62
+ export interface TombiWasmError {
63
+ error: string;
64
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "tombi-wasm",
3
+ "type": "module",
4
+ "collaborators": [
5
+ "ya7010 <ya7010@outlook.com>"
6
+ ],
7
+ "description": "Tombi formatter, linter, and language server for WebAssembly",
8
+ "version": "0.0.0-dev",
9
+ "license": "MIT",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/tombi-toml/tombi"
13
+ },
14
+ "files": [
15
+ "tombi_wasm_bg.wasm",
16
+ "tombi_wasm.js",
17
+ "tombi_wasm.d.ts"
18
+ ],
19
+ "main": "tombi_wasm.js",
20
+ "types": "tombi_wasm.d.ts",
21
+ "sideEffects": [
22
+ "./snippets/*"
23
+ ]
24
+ }
@@ -0,0 +1,72 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export function start(): void;
4
+ export function lint(source: string, source_path: string, options: any): Promise<any>;
5
+ export function format(source: string, source_path: string, options: any): Promise<any>;
6
+ export class Diagnostic {
7
+ private constructor();
8
+ free(): void;
9
+ }
10
+ export class Position {
11
+ private constructor();
12
+ free(): void;
13
+ line: number;
14
+ column: number;
15
+ }
16
+ export class Range {
17
+ private constructor();
18
+ free(): void;
19
+ start: Position;
20
+ end: Position;
21
+ }
22
+
23
+ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
24
+
25
+ export interface InitOutput {
26
+ readonly memory: WebAssembly.Memory;
27
+ readonly start: () => void;
28
+ readonly format: (a: number, b: number, c: number, d: number, e: any) => any;
29
+ readonly lint: (a: number, b: number, c: number, d: number, e: any) => any;
30
+ readonly __wbg_diagnostic_free: (a: number, b: number) => void;
31
+ readonly __wbg_get_position_column: (a: number) => number;
32
+ readonly __wbg_get_position_line: (a: number) => number;
33
+ readonly __wbg_position_free: (a: number, b: number) => void;
34
+ readonly __wbg_set_position_column: (a: number, b: number) => void;
35
+ readonly __wbg_set_position_line: (a: number, b: number) => void;
36
+ readonly __wbg_get_range_end: (a: number) => number;
37
+ readonly __wbg_get_range_start: (a: number) => number;
38
+ readonly __wbg_range_free: (a: number, b: number) => void;
39
+ readonly __wbg_set_range_end: (a: number, b: number) => void;
40
+ readonly __wbg_set_range_start: (a: number, b: number) => void;
41
+ readonly __wbindgen_malloc: (a: number, b: number) => number;
42
+ readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
43
+ readonly __wbindgen_exn_store: (a: number) => void;
44
+ readonly __externref_table_alloc: () => number;
45
+ readonly __wbindgen_export_4: WebAssembly.Table;
46
+ readonly __wbindgen_free: (a: number, b: number, c: number) => void;
47
+ readonly __wbindgen_export_6: WebAssembly.Table;
48
+ readonly closure2776_externref_shim: (a: number, b: number, c: any) => void;
49
+ readonly closure2805_externref_shim: (a: number, b: number, c: any, d: any) => void;
50
+ readonly __wbindgen_start: () => void;
51
+ }
52
+
53
+ export type SyncInitInput = BufferSource | WebAssembly.Module;
54
+ /**
55
+ * Instantiates the given `module`, which can either be bytes or
56
+ * a precompiled `WebAssembly.Module`.
57
+ *
58
+ * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
59
+ *
60
+ * @returns {InitOutput}
61
+ */
62
+ export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
63
+
64
+ /**
65
+ * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
66
+ * for everything else, calls `WebAssembly.instantiate` directly.
67
+ *
68
+ * @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
69
+ *
70
+ * @returns {Promise<InitOutput>}
71
+ */
72
+ export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
@@ -0,0 +1,907 @@
1
+ let wasm;
2
+
3
+ let WASM_VECTOR_LEN = 0;
4
+
5
+ let cachedUint8ArrayMemory0 = null;
6
+
7
+ function getUint8ArrayMemory0() {
8
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
9
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
10
+ }
11
+ return cachedUint8ArrayMemory0;
12
+ }
13
+
14
+ const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
15
+
16
+ const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
17
+ ? function (arg, view) {
18
+ return cachedTextEncoder.encodeInto(arg, view);
19
+ }
20
+ : function (arg, view) {
21
+ const buf = cachedTextEncoder.encode(arg);
22
+ view.set(buf);
23
+ return {
24
+ read: arg.length,
25
+ written: buf.length
26
+ };
27
+ });
28
+
29
+ function passStringToWasm0(arg, malloc, realloc) {
30
+
31
+ if (realloc === undefined) {
32
+ const buf = cachedTextEncoder.encode(arg);
33
+ const ptr = malloc(buf.length, 1) >>> 0;
34
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
35
+ WASM_VECTOR_LEN = buf.length;
36
+ return ptr;
37
+ }
38
+
39
+ let len = arg.length;
40
+ let ptr = malloc(len, 1) >>> 0;
41
+
42
+ const mem = getUint8ArrayMemory0();
43
+
44
+ let offset = 0;
45
+
46
+ for (; offset < len; offset++) {
47
+ const code = arg.charCodeAt(offset);
48
+ if (code > 0x7F) break;
49
+ mem[ptr + offset] = code;
50
+ }
51
+
52
+ if (offset !== len) {
53
+ if (offset !== 0) {
54
+ arg = arg.slice(offset);
55
+ }
56
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
57
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
58
+ const ret = encodeString(arg, view);
59
+
60
+ offset += ret.written;
61
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
62
+ }
63
+
64
+ WASM_VECTOR_LEN = offset;
65
+ return ptr;
66
+ }
67
+
68
+ let cachedDataViewMemory0 = null;
69
+
70
+ function getDataViewMemory0() {
71
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
72
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
73
+ }
74
+ return cachedDataViewMemory0;
75
+ }
76
+
77
+ function addToExternrefTable0(obj) {
78
+ const idx = wasm.__externref_table_alloc();
79
+ wasm.__wbindgen_export_4.set(idx, obj);
80
+ return idx;
81
+ }
82
+
83
+ function handleError(f, args) {
84
+ try {
85
+ return f.apply(this, args);
86
+ } catch (e) {
87
+ const idx = addToExternrefTable0(e);
88
+ wasm.__wbindgen_exn_store(idx);
89
+ }
90
+ }
91
+
92
+ const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
93
+
94
+ if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
95
+
96
+ function getStringFromWasm0(ptr, len) {
97
+ ptr = ptr >>> 0;
98
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
99
+ }
100
+
101
+ function getArrayU8FromWasm0(ptr, len) {
102
+ ptr = ptr >>> 0;
103
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
104
+ }
105
+
106
+ function isLikeNone(x) {
107
+ return x === undefined || x === null;
108
+ }
109
+
110
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
111
+ ? { register: () => {}, unregister: () => {} }
112
+ : new FinalizationRegistry(state => {
113
+ wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b)
114
+ });
115
+
116
+ function makeMutClosure(arg0, arg1, dtor, f) {
117
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
118
+ const real = (...args) => {
119
+ // First up with a closure we increment the internal reference
120
+ // count. This ensures that the Rust closure environment won't
121
+ // be deallocated while we're invoking it.
122
+ state.cnt++;
123
+ const a = state.a;
124
+ state.a = 0;
125
+ try {
126
+ return f(a, state.b, ...args);
127
+ } finally {
128
+ if (--state.cnt === 0) {
129
+ wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
130
+ CLOSURE_DTORS.unregister(state);
131
+ } else {
132
+ state.a = a;
133
+ }
134
+ }
135
+ };
136
+ real.original = state;
137
+ CLOSURE_DTORS.register(real, state, state);
138
+ return real;
139
+ }
140
+
141
+ function debugString(val) {
142
+ // primitive types
143
+ const type = typeof val;
144
+ if (type == 'number' || type == 'boolean' || val == null) {
145
+ return `${val}`;
146
+ }
147
+ if (type == 'string') {
148
+ return `"${val}"`;
149
+ }
150
+ if (type == 'symbol') {
151
+ const description = val.description;
152
+ if (description == null) {
153
+ return 'Symbol';
154
+ } else {
155
+ return `Symbol(${description})`;
156
+ }
157
+ }
158
+ if (type == 'function') {
159
+ const name = val.name;
160
+ if (typeof name == 'string' && name.length > 0) {
161
+ return `Function(${name})`;
162
+ } else {
163
+ return 'Function';
164
+ }
165
+ }
166
+ // objects
167
+ if (Array.isArray(val)) {
168
+ const length = val.length;
169
+ let debug = '[';
170
+ if (length > 0) {
171
+ debug += debugString(val[0]);
172
+ }
173
+ for(let i = 1; i < length; i++) {
174
+ debug += ', ' + debugString(val[i]);
175
+ }
176
+ debug += ']';
177
+ return debug;
178
+ }
179
+ // Test for built-in
180
+ const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
181
+ let className;
182
+ if (builtInMatches && builtInMatches.length > 1) {
183
+ className = builtInMatches[1];
184
+ } else {
185
+ // Failed to match the standard '[object ClassName]'
186
+ return toString.call(val);
187
+ }
188
+ if (className == 'Object') {
189
+ // we're a user defined class or Object
190
+ // JSON.stringify avoids problems with cycles, and is generally much
191
+ // easier than looping through ownProperties of `val`.
192
+ try {
193
+ return 'Object(' + JSON.stringify(val) + ')';
194
+ } catch (_) {
195
+ return 'Object';
196
+ }
197
+ }
198
+ // errors
199
+ if (val instanceof Error) {
200
+ return `${val.name}: ${val.message}\n${val.stack}`;
201
+ }
202
+ // TODO we could test for more things here, like `Set`s and `Map`s.
203
+ return className;
204
+ }
205
+
206
+ export function start() {
207
+ wasm.start();
208
+ }
209
+
210
+ /**
211
+ * @param {string} source
212
+ * @param {string} source_path
213
+ * @param {any} options
214
+ * @returns {Promise<any>}
215
+ */
216
+ export function lint(source, source_path, options) {
217
+ const ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
218
+ const len0 = WASM_VECTOR_LEN;
219
+ const ptr1 = passStringToWasm0(source_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
220
+ const len1 = WASM_VECTOR_LEN;
221
+ const ret = wasm.lint(ptr0, len0, ptr1, len1, options);
222
+ return ret;
223
+ }
224
+
225
+ /**
226
+ * @param {string} source
227
+ * @param {string} source_path
228
+ * @param {any} options
229
+ * @returns {Promise<any>}
230
+ */
231
+ export function format(source, source_path, options) {
232
+ const ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
233
+ const len0 = WASM_VECTOR_LEN;
234
+ const ptr1 = passStringToWasm0(source_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
235
+ const len1 = WASM_VECTOR_LEN;
236
+ const ret = wasm.format(ptr0, len0, ptr1, len1, options);
237
+ return ret;
238
+ }
239
+
240
+ function _assertClass(instance, klass) {
241
+ if (!(instance instanceof klass)) {
242
+ throw new Error(`expected instance of ${klass.name}`);
243
+ }
244
+ }
245
+ function __wbg_adapter_52(arg0, arg1, arg2) {
246
+ wasm.closure2776_externref_shim(arg0, arg1, arg2);
247
+ }
248
+
249
+ function __wbg_adapter_148(arg0, arg1, arg2, arg3) {
250
+ wasm.closure2805_externref_shim(arg0, arg1, arg2, arg3);
251
+ }
252
+
253
+ const DiagnosticFinalization = (typeof FinalizationRegistry === 'undefined')
254
+ ? { register: () => {}, unregister: () => {} }
255
+ : new FinalizationRegistry(ptr => wasm.__wbg_diagnostic_free(ptr >>> 0, 1));
256
+
257
+ export class Diagnostic {
258
+
259
+ __destroy_into_raw() {
260
+ const ptr = this.__wbg_ptr;
261
+ this.__wbg_ptr = 0;
262
+ DiagnosticFinalization.unregister(this);
263
+ return ptr;
264
+ }
265
+
266
+ free() {
267
+ const ptr = this.__destroy_into_raw();
268
+ wasm.__wbg_diagnostic_free(ptr, 0);
269
+ }
270
+ }
271
+
272
+ const PositionFinalization = (typeof FinalizationRegistry === 'undefined')
273
+ ? { register: () => {}, unregister: () => {} }
274
+ : new FinalizationRegistry(ptr => wasm.__wbg_position_free(ptr >>> 0, 1));
275
+
276
+ export class Position {
277
+
278
+ static __wrap(ptr) {
279
+ ptr = ptr >>> 0;
280
+ const obj = Object.create(Position.prototype);
281
+ obj.__wbg_ptr = ptr;
282
+ PositionFinalization.register(obj, obj.__wbg_ptr, obj);
283
+ return obj;
284
+ }
285
+
286
+ __destroy_into_raw() {
287
+ const ptr = this.__wbg_ptr;
288
+ this.__wbg_ptr = 0;
289
+ PositionFinalization.unregister(this);
290
+ return ptr;
291
+ }
292
+
293
+ free() {
294
+ const ptr = this.__destroy_into_raw();
295
+ wasm.__wbg_position_free(ptr, 0);
296
+ }
297
+ /**
298
+ * @returns {number}
299
+ */
300
+ get line() {
301
+ const ret = wasm.__wbg_get_position_line(this.__wbg_ptr);
302
+ return ret >>> 0;
303
+ }
304
+ /**
305
+ * @param {number} arg0
306
+ */
307
+ set line(arg0) {
308
+ wasm.__wbg_set_position_line(this.__wbg_ptr, arg0);
309
+ }
310
+ /**
311
+ * @returns {number}
312
+ */
313
+ get column() {
314
+ const ret = wasm.__wbg_get_position_column(this.__wbg_ptr);
315
+ return ret >>> 0;
316
+ }
317
+ /**
318
+ * @param {number} arg0
319
+ */
320
+ set column(arg0) {
321
+ wasm.__wbg_set_position_column(this.__wbg_ptr, arg0);
322
+ }
323
+ }
324
+
325
+ const RangeFinalization = (typeof FinalizationRegistry === 'undefined')
326
+ ? { register: () => {}, unregister: () => {} }
327
+ : new FinalizationRegistry(ptr => wasm.__wbg_range_free(ptr >>> 0, 1));
328
+
329
+ export class Range {
330
+
331
+ __destroy_into_raw() {
332
+ const ptr = this.__wbg_ptr;
333
+ this.__wbg_ptr = 0;
334
+ RangeFinalization.unregister(this);
335
+ return ptr;
336
+ }
337
+
338
+ free() {
339
+ const ptr = this.__destroy_into_raw();
340
+ wasm.__wbg_range_free(ptr, 0);
341
+ }
342
+ /**
343
+ * @returns {Position}
344
+ */
345
+ get start() {
346
+ const ret = wasm.__wbg_get_range_start(this.__wbg_ptr);
347
+ return Position.__wrap(ret);
348
+ }
349
+ /**
350
+ * @param {Position} arg0
351
+ */
352
+ set start(arg0) {
353
+ _assertClass(arg0, Position);
354
+ var ptr0 = arg0.__destroy_into_raw();
355
+ wasm.__wbg_set_range_start(this.__wbg_ptr, ptr0);
356
+ }
357
+ /**
358
+ * @returns {Position}
359
+ */
360
+ get end() {
361
+ const ret = wasm.__wbg_get_range_end(this.__wbg_ptr);
362
+ return Position.__wrap(ret);
363
+ }
364
+ /**
365
+ * @param {Position} arg0
366
+ */
367
+ set end(arg0) {
368
+ _assertClass(arg0, Position);
369
+ var ptr0 = arg0.__destroy_into_raw();
370
+ wasm.__wbg_set_range_end(this.__wbg_ptr, ptr0);
371
+ }
372
+ }
373
+
374
+ async function __wbg_load(module, imports) {
375
+ if (typeof Response === 'function' && module instanceof Response) {
376
+ if (typeof WebAssembly.instantiateStreaming === 'function') {
377
+ try {
378
+ return await WebAssembly.instantiateStreaming(module, imports);
379
+
380
+ } catch (e) {
381
+ if (module.headers.get('Content-Type') != 'application/wasm') {
382
+ console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
383
+
384
+ } else {
385
+ throw e;
386
+ }
387
+ }
388
+ }
389
+
390
+ const bytes = await module.arrayBuffer();
391
+ return await WebAssembly.instantiate(bytes, imports);
392
+
393
+ } else {
394
+ const instance = await WebAssembly.instantiate(module, imports);
395
+
396
+ if (instance instanceof WebAssembly.Instance) {
397
+ return { instance, module };
398
+
399
+ } else {
400
+ return instance;
401
+ }
402
+ }
403
+ }
404
+
405
+ function __wbg_get_imports() {
406
+ const imports = {};
407
+ imports.wbg = {};
408
+ imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
409
+ const ret = String(arg1);
410
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
411
+ const len1 = WASM_VECTOR_LEN;
412
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
413
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
414
+ };
415
+ imports.wbg.__wbg_arrayBuffer_d1b44c4390db422f = function() { return handleError(function (arg0) {
416
+ const ret = arg0.arrayBuffer();
417
+ return ret;
418
+ }, arguments) };
419
+ imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
420
+ const ret = arg0.buffer;
421
+ return ret;
422
+ };
423
+ imports.wbg.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
424
+ const ret = arg0.call(arg1);
425
+ return ret;
426
+ }, arguments) };
427
+ imports.wbg.__wbg_call_7cccdd69e0791ae2 = function() { return handleError(function (arg0, arg1, arg2) {
428
+ const ret = arg0.call(arg1, arg2);
429
+ return ret;
430
+ }, arguments) };
431
+ imports.wbg.__wbg_done_769e5ede4b31c67b = function(arg0) {
432
+ const ret = arg0.done;
433
+ return ret;
434
+ };
435
+ imports.wbg.__wbg_entries_3265d4158b33e5dc = function(arg0) {
436
+ const ret = Object.entries(arg0);
437
+ return ret;
438
+ };
439
+ imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
440
+ let deferred0_0;
441
+ let deferred0_1;
442
+ try {
443
+ deferred0_0 = arg0;
444
+ deferred0_1 = arg1;
445
+ console.error(getStringFromWasm0(arg0, arg1));
446
+ } finally {
447
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
448
+ }
449
+ };
450
+ imports.wbg.__wbg_fetch_a9bc66c159c18e19 = function(arg0) {
451
+ const ret = fetch(arg0);
452
+ return ret;
453
+ };
454
+ imports.wbg.__wbg_getRandomValues_3c9c0d586e575a16 = function() { return handleError(function (arg0, arg1) {
455
+ globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
456
+ }, arguments) };
457
+ imports.wbg.__wbg_get_67b2ba62fc30de12 = function() { return handleError(function (arg0, arg1) {
458
+ const ret = Reflect.get(arg0, arg1);
459
+ return ret;
460
+ }, arguments) };
461
+ imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
462
+ const ret = arg0[arg1 >>> 0];
463
+ return ret;
464
+ };
465
+ imports.wbg.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
466
+ const ret = arg0[arg1];
467
+ return ret;
468
+ };
469
+ imports.wbg.__wbg_instanceof_ArrayBuffer_e14585432e3737fc = function(arg0) {
470
+ let result;
471
+ try {
472
+ result = arg0 instanceof ArrayBuffer;
473
+ } catch (_) {
474
+ result = false;
475
+ }
476
+ const ret = result;
477
+ return ret;
478
+ };
479
+ imports.wbg.__wbg_instanceof_Error_4d54113b22d20306 = function(arg0) {
480
+ let result;
481
+ try {
482
+ result = arg0 instanceof Error;
483
+ } catch (_) {
484
+ result = false;
485
+ }
486
+ const ret = result;
487
+ return ret;
488
+ };
489
+ imports.wbg.__wbg_instanceof_Map_f3469ce2244d2430 = function(arg0) {
490
+ let result;
491
+ try {
492
+ result = arg0 instanceof Map;
493
+ } catch (_) {
494
+ result = false;
495
+ }
496
+ const ret = result;
497
+ return ret;
498
+ };
499
+ imports.wbg.__wbg_instanceof_Response_f2cc20d9f7dfd644 = function(arg0) {
500
+ let result;
501
+ try {
502
+ result = arg0 instanceof Response;
503
+ } catch (_) {
504
+ result = false;
505
+ }
506
+ const ret = result;
507
+ return ret;
508
+ };
509
+ imports.wbg.__wbg_instanceof_Uint8Array_17156bcf118086a9 = function(arg0) {
510
+ let result;
511
+ try {
512
+ result = arg0 instanceof Uint8Array;
513
+ } catch (_) {
514
+ result = false;
515
+ }
516
+ const ret = result;
517
+ return ret;
518
+ };
519
+ imports.wbg.__wbg_isArray_a1eab7e0d067391b = function(arg0) {
520
+ const ret = Array.isArray(arg0);
521
+ return ret;
522
+ };
523
+ imports.wbg.__wbg_isSafeInteger_343e2beeeece1bb0 = function(arg0) {
524
+ const ret = Number.isSafeInteger(arg0);
525
+ return ret;
526
+ };
527
+ imports.wbg.__wbg_iterator_9a24c88df860dc65 = function() {
528
+ const ret = Symbol.iterator;
529
+ return ret;
530
+ };
531
+ imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
532
+ const ret = arg0.length;
533
+ return ret;
534
+ };
535
+ imports.wbg.__wbg_length_e2d2a49132c1b256 = function(arg0) {
536
+ const ret = arg0.length;
537
+ return ret;
538
+ };
539
+ imports.wbg.__wbg_message_97a2af9b89d693a3 = function(arg0) {
540
+ const ret = arg0.message;
541
+ return ret;
542
+ };
543
+ imports.wbg.__wbg_name_0b327d569f00ebee = function(arg0) {
544
+ const ret = arg0.name;
545
+ return ret;
546
+ };
547
+ imports.wbg.__wbg_new_018dcc2d6c8c2f6a = function() { return handleError(function () {
548
+ const ret = new Headers();
549
+ return ret;
550
+ }, arguments) };
551
+ imports.wbg.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
552
+ try {
553
+ var state0 = {a: arg0, b: arg1};
554
+ var cb0 = (arg0, arg1) => {
555
+ const a = state0.a;
556
+ state0.a = 0;
557
+ try {
558
+ return __wbg_adapter_148(a, state0.b, arg0, arg1);
559
+ } finally {
560
+ state0.a = a;
561
+ }
562
+ };
563
+ const ret = new Promise(cb0);
564
+ return ret;
565
+ } finally {
566
+ state0.a = state0.b = 0;
567
+ }
568
+ };
569
+ imports.wbg.__wbg_new_405e22f390576ce2 = function() {
570
+ const ret = new Object();
571
+ return ret;
572
+ };
573
+ imports.wbg.__wbg_new_5e0be73521bc8c17 = function() {
574
+ const ret = new Map();
575
+ return ret;
576
+ };
577
+ imports.wbg.__wbg_new_78feb108b6472713 = function() {
578
+ const ret = new Array();
579
+ return ret;
580
+ };
581
+ imports.wbg.__wbg_new_80bf4ee74f41ff92 = function() { return handleError(function () {
582
+ const ret = new URLSearchParams();
583
+ return ret;
584
+ }, arguments) };
585
+ imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
586
+ const ret = new Error();
587
+ return ret;
588
+ };
589
+ imports.wbg.__wbg_new_9ffbe0a71eff35e3 = function() { return handleError(function (arg0, arg1) {
590
+ const ret = new URL(getStringFromWasm0(arg0, arg1));
591
+ return ret;
592
+ }, arguments) };
593
+ imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
594
+ const ret = new Uint8Array(arg0);
595
+ return ret;
596
+ };
597
+ imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
598
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
599
+ return ret;
600
+ };
601
+ imports.wbg.__wbg_newwithstr_78e86e03c4ae814e = function() { return handleError(function (arg0, arg1) {
602
+ const ret = new Request(getStringFromWasm0(arg0, arg1));
603
+ return ret;
604
+ }, arguments) };
605
+ imports.wbg.__wbg_newwithstrandinit_06c535e0a867c635 = function() { return handleError(function (arg0, arg1, arg2) {
606
+ const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
607
+ return ret;
608
+ }, arguments) };
609
+ imports.wbg.__wbg_next_25feadfc0913fea9 = function(arg0) {
610
+ const ret = arg0.next;
611
+ return ret;
612
+ };
613
+ imports.wbg.__wbg_next_6574e1a8a62d1055 = function() { return handleError(function (arg0) {
614
+ const ret = arg0.next();
615
+ return ret;
616
+ }, arguments) };
617
+ imports.wbg.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) {
618
+ queueMicrotask(arg0);
619
+ };
620
+ imports.wbg.__wbg_queueMicrotask_d3219def82552485 = function(arg0) {
621
+ const ret = arg0.queueMicrotask;
622
+ return ret;
623
+ };
624
+ imports.wbg.__wbg_resolve_4851785c9c5f573d = function(arg0) {
625
+ const ret = Promise.resolve(arg0);
626
+ return ret;
627
+ };
628
+ imports.wbg.__wbg_search_e0e79cfe010c5c23 = function(arg0, arg1) {
629
+ const ret = arg1.search;
630
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
631
+ const len1 = WASM_VECTOR_LEN;
632
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
633
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
634
+ };
635
+ imports.wbg.__wbg_set_37837023f3d740e8 = function(arg0, arg1, arg2) {
636
+ arg0[arg1 >>> 0] = arg2;
637
+ };
638
+ imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
639
+ arg0[arg1] = arg2;
640
+ };
641
+ imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
642
+ arg0.set(arg1, arg2 >>> 0);
643
+ };
644
+ imports.wbg.__wbg_set_8fc6bf8a5b1071d1 = function(arg0, arg1, arg2) {
645
+ const ret = arg0.set(arg1, arg2);
646
+ return ret;
647
+ };
648
+ imports.wbg.__wbg_set_bb8cecf6a62b9f46 = function() { return handleError(function (arg0, arg1, arg2) {
649
+ const ret = Reflect.set(arg0, arg1, arg2);
650
+ return ret;
651
+ }, arguments) };
652
+ imports.wbg.__wbg_setheaders_834c0bdb6a8949ad = function(arg0, arg1) {
653
+ arg0.headers = arg1;
654
+ };
655
+ imports.wbg.__wbg_setmethod_3c5280fe5d890842 = function(arg0, arg1, arg2) {
656
+ arg0.method = getStringFromWasm0(arg1, arg2);
657
+ };
658
+ imports.wbg.__wbg_setsearch_609451e9e712f3c6 = function(arg0, arg1, arg2) {
659
+ arg0.search = getStringFromWasm0(arg1, arg2);
660
+ };
661
+ imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
662
+ const ret = arg1.stack;
663
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
664
+ const len1 = WASM_VECTOR_LEN;
665
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
666
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
667
+ };
668
+ imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
669
+ const ret = typeof global === 'undefined' ? null : global;
670
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
671
+ };
672
+ imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
673
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
674
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
675
+ };
676
+ imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
677
+ const ret = typeof self === 'undefined' ? null : self;
678
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
679
+ };
680
+ imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
681
+ const ret = typeof window === 'undefined' ? null : window;
682
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
683
+ };
684
+ imports.wbg.__wbg_status_f6360336ca686bf0 = function(arg0) {
685
+ const ret = arg0.status;
686
+ return ret;
687
+ };
688
+ imports.wbg.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
689
+ const ret = arg0.then(arg1);
690
+ return ret;
691
+ };
692
+ imports.wbg.__wbg_then_48b406749878a531 = function(arg0, arg1, arg2) {
693
+ const ret = arg0.then(arg1, arg2);
694
+ return ret;
695
+ };
696
+ imports.wbg.__wbg_toString_5285597960676b7b = function(arg0) {
697
+ const ret = arg0.toString();
698
+ return ret;
699
+ };
700
+ imports.wbg.__wbg_toString_c813bbd34d063839 = function(arg0) {
701
+ const ret = arg0.toString();
702
+ return ret;
703
+ };
704
+ imports.wbg.__wbg_url_8f9653b899456042 = function(arg0, arg1) {
705
+ const ret = arg1.url;
706
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
707
+ const len1 = WASM_VECTOR_LEN;
708
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
709
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
710
+ };
711
+ imports.wbg.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
712
+ const ret = arg0.value;
713
+ return ret;
714
+ };
715
+ imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
716
+ const ret = arg0;
717
+ return ret;
718
+ };
719
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
720
+ const ret = BigInt.asUintN(64, arg0);
721
+ return ret;
722
+ };
723
+ imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
724
+ const v = arg1;
725
+ const ret = typeof(v) === 'bigint' ? v : undefined;
726
+ getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
727
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
728
+ };
729
+ imports.wbg.__wbindgen_boolean_get = function(arg0) {
730
+ const v = arg0;
731
+ const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
732
+ return ret;
733
+ };
734
+ imports.wbg.__wbindgen_cb_drop = function(arg0) {
735
+ const obj = arg0.original;
736
+ if (obj.cnt-- == 1) {
737
+ obj.a = 0;
738
+ return true;
739
+ }
740
+ const ret = false;
741
+ return ret;
742
+ };
743
+ imports.wbg.__wbindgen_closure_wrapper8036 = function(arg0, arg1, arg2) {
744
+ const ret = makeMutClosure(arg0, arg1, 2777, __wbg_adapter_52);
745
+ return ret;
746
+ };
747
+ imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
748
+ const ret = debugString(arg1);
749
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
750
+ const len1 = WASM_VECTOR_LEN;
751
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
752
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
753
+ };
754
+ imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
755
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
756
+ return ret;
757
+ };
758
+ imports.wbg.__wbindgen_in = function(arg0, arg1) {
759
+ const ret = arg0 in arg1;
760
+ return ret;
761
+ };
762
+ imports.wbg.__wbindgen_init_externref_table = function() {
763
+ const table = wasm.__wbindgen_export_4;
764
+ const offset = table.grow(4);
765
+ table.set(0, undefined);
766
+ table.set(offset + 0, undefined);
767
+ table.set(offset + 1, null);
768
+ table.set(offset + 2, true);
769
+ table.set(offset + 3, false);
770
+ ;
771
+ };
772
+ imports.wbg.__wbindgen_is_bigint = function(arg0) {
773
+ const ret = typeof(arg0) === 'bigint';
774
+ return ret;
775
+ };
776
+ imports.wbg.__wbindgen_is_function = function(arg0) {
777
+ const ret = typeof(arg0) === 'function';
778
+ return ret;
779
+ };
780
+ imports.wbg.__wbindgen_is_null = function(arg0) {
781
+ const ret = arg0 === null;
782
+ return ret;
783
+ };
784
+ imports.wbg.__wbindgen_is_object = function(arg0) {
785
+ const val = arg0;
786
+ const ret = typeof(val) === 'object' && val !== null;
787
+ return ret;
788
+ };
789
+ imports.wbg.__wbindgen_is_string = function(arg0) {
790
+ const ret = typeof(arg0) === 'string';
791
+ return ret;
792
+ };
793
+ imports.wbg.__wbindgen_is_undefined = function(arg0) {
794
+ const ret = arg0 === undefined;
795
+ return ret;
796
+ };
797
+ imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
798
+ const ret = arg0 === arg1;
799
+ return ret;
800
+ };
801
+ imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
802
+ const ret = arg0 == arg1;
803
+ return ret;
804
+ };
805
+ imports.wbg.__wbindgen_memory = function() {
806
+ const ret = wasm.memory;
807
+ return ret;
808
+ };
809
+ imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
810
+ const obj = arg1;
811
+ const ret = typeof(obj) === 'number' ? obj : undefined;
812
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
813
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
814
+ };
815
+ imports.wbg.__wbindgen_number_new = function(arg0) {
816
+ const ret = arg0;
817
+ return ret;
818
+ };
819
+ imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
820
+ const obj = arg1;
821
+ const ret = typeof(obj) === 'string' ? obj : undefined;
822
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
823
+ var len1 = WASM_VECTOR_LEN;
824
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
825
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
826
+ };
827
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
828
+ const ret = getStringFromWasm0(arg0, arg1);
829
+ return ret;
830
+ };
831
+ imports.wbg.__wbindgen_throw = function(arg0, arg1) {
832
+ throw new Error(getStringFromWasm0(arg0, arg1));
833
+ };
834
+
835
+ return imports;
836
+ }
837
+
838
+ function __wbg_init_memory(imports, memory) {
839
+
840
+ }
841
+
842
+ function __wbg_finalize_init(instance, module) {
843
+ wasm = instance.exports;
844
+ __wbg_init.__wbindgen_wasm_module = module;
845
+ cachedDataViewMemory0 = null;
846
+ cachedUint8ArrayMemory0 = null;
847
+
848
+
849
+ wasm.__wbindgen_start();
850
+ return wasm;
851
+ }
852
+
853
+ function initSync(module) {
854
+ if (wasm !== undefined) return wasm;
855
+
856
+
857
+ if (typeof module !== 'undefined') {
858
+ if (Object.getPrototypeOf(module) === Object.prototype) {
859
+ ({module} = module)
860
+ } else {
861
+ console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
862
+ }
863
+ }
864
+
865
+ const imports = __wbg_get_imports();
866
+
867
+ __wbg_init_memory(imports);
868
+
869
+ if (!(module instanceof WebAssembly.Module)) {
870
+ module = new WebAssembly.Module(module);
871
+ }
872
+
873
+ const instance = new WebAssembly.Instance(module, imports);
874
+
875
+ return __wbg_finalize_init(instance, module);
876
+ }
877
+
878
+ async function __wbg_init(module_or_path) {
879
+ if (wasm !== undefined) return wasm;
880
+
881
+
882
+ if (typeof module_or_path !== 'undefined') {
883
+ if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
884
+ ({module_or_path} = module_or_path)
885
+ } else {
886
+ console.warn('using deprecated parameters for the initialization function; pass a single object instead')
887
+ }
888
+ }
889
+
890
+ if (typeof module_or_path === 'undefined') {
891
+ module_or_path = new URL('tombi_wasm_bg.wasm', import.meta.url);
892
+ }
893
+ const imports = __wbg_get_imports();
894
+
895
+ if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
896
+ module_or_path = fetch(module_or_path);
897
+ }
898
+
899
+ __wbg_init_memory(imports);
900
+
901
+ const { instance, module } = await __wbg_load(await module_or_path, imports);
902
+
903
+ return __wbg_finalize_init(instance, module);
904
+ }
905
+
906
+ export { initSync };
907
+ export default __wbg_init;
Binary file
@@ -0,0 +1,27 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export const memory: WebAssembly.Memory;
4
+ export const start: () => void;
5
+ export const format: (a: number, b: number, c: number, d: number, e: any) => any;
6
+ export const lint: (a: number, b: number, c: number, d: number, e: any) => any;
7
+ export const __wbg_diagnostic_free: (a: number, b: number) => void;
8
+ export const __wbg_get_position_column: (a: number) => number;
9
+ export const __wbg_get_position_line: (a: number) => number;
10
+ export const __wbg_position_free: (a: number, b: number) => void;
11
+ export const __wbg_set_position_column: (a: number, b: number) => void;
12
+ export const __wbg_set_position_line: (a: number, b: number) => void;
13
+ export const __wbg_get_range_end: (a: number) => number;
14
+ export const __wbg_get_range_start: (a: number) => number;
15
+ export const __wbg_range_free: (a: number, b: number) => void;
16
+ export const __wbg_set_range_end: (a: number, b: number) => void;
17
+ export const __wbg_set_range_start: (a: number, b: number) => void;
18
+ export const __wbindgen_malloc: (a: number, b: number) => number;
19
+ export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
20
+ export const __wbindgen_exn_store: (a: number) => void;
21
+ export const __externref_table_alloc: () => number;
22
+ export const __wbindgen_export_4: WebAssembly.Table;
23
+ export const __wbindgen_free: (a: number, b: number, c: number) => void;
24
+ export const __wbindgen_export_6: WebAssembly.Table;
25
+ export const closure2776_externref_shim: (a: number, b: number, c: any) => void;
26
+ export const closure2805_externref_shim: (a: number, b: number, c: any, d: any) => void;
27
+ export const __wbindgen_start: () => void;
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "@tombi-toml/wasm-lib",
3
+ "version": "0.0.0-bootstrap.0",
4
+ "description": "Tombi formatter and linter for WebAssembly",
5
+ "type": "module",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/tombi_wasm.js"
13
+ }
14
+ },
15
+ "scripts": {
16
+ "build": "rm -rf dist && cd ../../../rust/tombi-wasm && wasm-pack build --locked --target web --out-dir ../../typescript/@tombi-toml/wasm-lib/dist --out-name tombi_wasm -- --no-default-features --features lib && rm ../../typescript/@tombi-toml/wasm-lib/dist/.gitignore && cp ../../typescript/@tombi-toml/wasm-lib/types.d.ts ../../typescript/@tombi-toml/wasm-lib/dist/index.d.ts",
17
+ "test": "pnpm run build && node ../../../rust/tombi-wasm/tests/lib-smoke.mjs",
18
+ "clean": "rm -rf dist"
19
+ },
20
+ "devDependencies": {
21
+ "wasm-pack": "^0.15.0"
22
+ }
23
+ }