swls-wasm 0.1.1 → 0.2.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/package.json +3 -2
- package/swls_wasm.d.ts +1 -1
- package/swls_wasm_bg.js +29 -14
- package/swls_wasm_bg.wasm +0 -0
package/package.json
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "swls-wasm",
|
|
3
|
+
"type": "module",
|
|
3
4
|
"collaborators": [
|
|
4
5
|
"ajuvercr <arthur.vercruysse@outlook.com>"
|
|
5
6
|
],
|
|
6
|
-
"version": "0.
|
|
7
|
+
"version": "0.2.0",
|
|
7
8
|
"files": [
|
|
8
9
|
"swls_wasm_bg.wasm",
|
|
9
10
|
"swls_wasm.js",
|
|
10
11
|
"swls_wasm_bg.js",
|
|
11
12
|
"swls_wasm.d.ts"
|
|
12
13
|
],
|
|
13
|
-
"
|
|
14
|
+
"main": "swls_wasm.js",
|
|
14
15
|
"types": "swls_wasm.d.ts",
|
|
15
16
|
"sideEffects": [
|
|
16
17
|
"./swls_wasm.js",
|
package/swls_wasm.d.ts
CHANGED
package/swls_wasm_bg.js
CHANGED
|
@@ -211,12 +211,12 @@ if (!('encodeInto' in cachedTextEncoder)) {
|
|
|
211
211
|
|
|
212
212
|
let WASM_VECTOR_LEN = 0;
|
|
213
213
|
|
|
214
|
-
function
|
|
215
|
-
wasm.
|
|
214
|
+
function wasm_bindgen__convert__closures_____invoke__he2da107c09943666(arg0, arg1, arg2) {
|
|
215
|
+
wasm.wasm_bindgen__convert__closures_____invoke__he2da107c09943666(arg0, arg1, arg2);
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
function
|
|
219
|
-
wasm.
|
|
218
|
+
function wasm_bindgen__convert__closures_____invoke__hc6c6dc341f446e91(arg0, arg1, arg2, arg3) {
|
|
219
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hc6c6dc341f446e91(arg0, arg1, arg2, arg3);
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
const WasmLspFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -240,9 +240,10 @@ export class WasmLsp {
|
|
|
240
240
|
/**
|
|
241
241
|
* JS must pass a callback for receiving messages from Rust/WASM.
|
|
242
242
|
* @param {Function} post_message_cb
|
|
243
|
+
* @param {Function | null} [debug_cb]
|
|
243
244
|
*/
|
|
244
|
-
constructor(post_message_cb) {
|
|
245
|
-
const ret = wasm.wasmlsp_new(post_message_cb);
|
|
245
|
+
constructor(post_message_cb, debug_cb) {
|
|
246
|
+
const ret = wasm.wasmlsp_new(post_message_cb, isLikeNone(debug_cb) ? 0 : addToExternrefTable0(debug_cb));
|
|
246
247
|
this.__wbg_ptr = ret >>> 0;
|
|
247
248
|
WasmLspFinalization.register(this, this.__wbg_ptr, this);
|
|
248
249
|
return this;
|
|
@@ -375,11 +376,15 @@ export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
|
|
|
375
376
|
}
|
|
376
377
|
};
|
|
377
378
|
|
|
378
|
-
export function
|
|
379
|
+
export function __wbg_fetch_c57016eab0dfeb38() { return handleError(function (arg0, arg1) {
|
|
379
380
|
const ret = fetch(arg0, arg1);
|
|
380
381
|
return ret;
|
|
381
382
|
}, arguments) };
|
|
382
383
|
|
|
384
|
+
export function __wbg_getRandomValues_1c61fac11405ffdc() { return handleError(function (arg0, arg1) {
|
|
385
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
386
|
+
}, arguments) };
|
|
387
|
+
|
|
383
388
|
export function __wbg_get_6b7bd52aca3f9671(arg0, arg1) {
|
|
384
389
|
const ret = arg0[arg1 >>> 0];
|
|
385
390
|
return ret;
|
|
@@ -479,7 +484,7 @@ export function __wbg_new_ff12d2b041fb48f1(arg0, arg1) {
|
|
|
479
484
|
const a = state0.a;
|
|
480
485
|
state0.a = 0;
|
|
481
486
|
try {
|
|
482
|
-
return
|
|
487
|
+
return wasm_bindgen__convert__closures_____invoke__hc6c6dc341f446e91(a, state0.b, arg0, arg1);
|
|
483
488
|
} finally {
|
|
484
489
|
state0.a = a;
|
|
485
490
|
}
|
|
@@ -491,6 +496,11 @@ export function __wbg_new_ff12d2b041fb48f1(arg0, arg1) {
|
|
|
491
496
|
}
|
|
492
497
|
};
|
|
493
498
|
|
|
499
|
+
export function __wbg_new_from_slice_f9c22b9153b26992(arg0, arg1) {
|
|
500
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
501
|
+
return ret;
|
|
502
|
+
};
|
|
503
|
+
|
|
494
504
|
export function __wbg_new_no_args_cb138f77cf6151ee(arg0, arg1) {
|
|
495
505
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
496
506
|
return ret;
|
|
@@ -506,6 +516,11 @@ export function __wbg_next_3cfe5c0fe2a4cc53() { return handleError(function (arg
|
|
|
506
516
|
return ret;
|
|
507
517
|
}, arguments) };
|
|
508
518
|
|
|
519
|
+
export function __wbg_now_69d776cd24f5215b() {
|
|
520
|
+
const ret = Date.now();
|
|
521
|
+
return ret;
|
|
522
|
+
};
|
|
523
|
+
|
|
509
524
|
export function __wbg_prototypesetcall_dfe9b766cdc1f1fd(arg0, arg1, arg2) {
|
|
510
525
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
511
526
|
};
|
|
@@ -602,18 +617,18 @@ export function __wbindgen_cast_4625c577ab2ec9ee(arg0) {
|
|
|
602
617
|
return ret;
|
|
603
618
|
};
|
|
604
619
|
|
|
605
|
-
export function __wbindgen_cast_890f0eda82335bb8(arg0, arg1) {
|
|
606
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 2113, function: Function { arguments: [Externref], shim_idx: 2102, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
607
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h86b9b2441d641b40, wasm_bindgen__convert__closures_____invoke__h89f6002c256150a8);
|
|
608
|
-
return ret;
|
|
609
|
-
};
|
|
610
|
-
|
|
611
620
|
export function __wbindgen_cast_9ae0607507abb057(arg0) {
|
|
612
621
|
// Cast intrinsic for `I64 -> Externref`.
|
|
613
622
|
const ret = arg0;
|
|
614
623
|
return ret;
|
|
615
624
|
};
|
|
616
625
|
|
|
626
|
+
export function __wbindgen_cast_d67a65b0330de337(arg0, arg1) {
|
|
627
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 2144, function: Function { arguments: [Externref], shim_idx: 2133, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
628
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h75de6245a6a4c3c1, wasm_bindgen__convert__closures_____invoke__he2da107c09943666);
|
|
629
|
+
return ret;
|
|
630
|
+
};
|
|
631
|
+
|
|
617
632
|
export function __wbindgen_cast_d6cd19b81560fd6e(arg0) {
|
|
618
633
|
// Cast intrinsic for `F64 -> Externref`.
|
|
619
634
|
const ret = arg0;
|
package/swls_wasm_bg.wasm
CHANGED
|
Binary file
|