@typerighter/rpc-client 0.15.0 → 0.16.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
CHANGED
package/src/typedown_server.d.ts
CHANGED
package/src/typedown_server.js
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @returns {number}
|
|
3
|
+
*/
|
|
4
|
+
export function RPC_CANCELLED_CODE() {
|
|
5
|
+
const ret = wasm.RPC_CANCELLED_CODE();
|
|
6
|
+
return ret;
|
|
7
|
+
}
|
|
8
|
+
|
|
1
9
|
export class RpcClient {
|
|
2
10
|
static __wrap(ptr) {
|
|
3
11
|
const obj = Object.create(RpcClient.prototype);
|
|
@@ -271,6 +279,10 @@ export function __wbg_new_7796ffc7ed656783() {
|
|
|
271
279
|
const ret = new Map();
|
|
272
280
|
return ret;
|
|
273
281
|
}
|
|
282
|
+
export function __wbg_new_b667d279fd5aa943(arg0, arg1) {
|
|
283
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
284
|
+
return ret;
|
|
285
|
+
}
|
|
274
286
|
export function __wbg_new_bf8729ffe10e9ee7() { return handleError(function (arg0, arg1) {
|
|
275
287
|
const ret = new WebSocket(getStringFromWasm0(arg0, arg1));
|
|
276
288
|
return ret;
|
|
@@ -290,7 +302,7 @@ export function __wbg_new_typed_1824d93f294193e5(arg0, arg1) {
|
|
|
290
302
|
const a = state0.a;
|
|
291
303
|
state0.a = 0;
|
|
292
304
|
try {
|
|
293
|
-
return
|
|
305
|
+
return wasm_bindgen_b7ee646778e0f939___convert__closures_____invoke___js_sys_b620803b6778d303___Function_fn_wasm_bindgen_b7ee646778e0f939___JsValue_____wasm_bindgen_b7ee646778e0f939___sys__Undefined___js_sys_b620803b6778d303___Function_fn_wasm_bindgen_b7ee646778e0f939___JsValue_____wasm_bindgen_b7ee646778e0f939___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
294
306
|
} finally {
|
|
295
307
|
state0.a = a;
|
|
296
308
|
}
|
|
@@ -358,6 +370,10 @@ export function __wbg_set_575dd786d51585f8(arg0, arg1, arg2) {
|
|
|
358
370
|
export function __wbg_set_6be42768c690e380(arg0, arg1, arg2) {
|
|
359
371
|
arg0[arg1] = arg2;
|
|
360
372
|
}
|
|
373
|
+
export function __wbg_set_8535240470bf2500() { return handleError(function (arg0, arg1, arg2) {
|
|
374
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
375
|
+
return ret;
|
|
376
|
+
}, arguments); }
|
|
361
377
|
export function __wbg_set_8a16b38e4805b298(arg0, arg1, arg2) {
|
|
362
378
|
arg0[arg1 >>> 0] = arg2;
|
|
363
379
|
}
|
|
@@ -403,32 +419,32 @@ export function __wbg_wasClean_3c7aa2335da09e74(arg0) {
|
|
|
403
419
|
}
|
|
404
420
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
405
421
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 266, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
406
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
422
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_b7ee646778e0f939___convert__closures_____invoke___wasm_bindgen_b7ee646778e0f939___JsValue__core_9621e680597c5e90___result__Result_____wasm_bindgen_b7ee646778e0f939___JsError___true_);
|
|
407
423
|
return ret;
|
|
408
424
|
}
|
|
409
425
|
export function __wbindgen_cast_0000000000000002(arg0, arg1) {
|
|
410
426
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 165, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
411
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
427
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_b7ee646778e0f939___convert__closures_____invoke___web_sys_3a423a59b3aa58da___features__gen_CloseEvent__CloseEvent______true_);
|
|
412
428
|
return ret;
|
|
413
429
|
}
|
|
414
430
|
export function __wbindgen_cast_0000000000000003(arg0, arg1) {
|
|
415
431
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 165, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
416
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
432
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_b7ee646778e0f939___convert__closures_____invoke___web_sys_3a423a59b3aa58da___features__gen_CloseEvent__CloseEvent______true__2);
|
|
417
433
|
return ret;
|
|
418
434
|
}
|
|
419
435
|
export function __wbindgen_cast_0000000000000004(arg0, arg1) {
|
|
420
436
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 165, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
421
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
437
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_b7ee646778e0f939___convert__closures_____invoke___web_sys_3a423a59b3aa58da___features__gen_CloseEvent__CloseEvent______true__3);
|
|
422
438
|
return ret;
|
|
423
439
|
}
|
|
424
440
|
export function __wbindgen_cast_0000000000000005(arg0, arg1) {
|
|
425
441
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 169, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
426
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
442
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_b7ee646778e0f939___convert__closures_____invoke_______true_);
|
|
427
443
|
return ret;
|
|
428
444
|
}
|
|
429
445
|
export function __wbindgen_cast_0000000000000006(arg0, arg1) {
|
|
430
446
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 245, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
431
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
447
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_b7ee646778e0f939___convert__closures_____invoke_______true__1_);
|
|
432
448
|
return ret;
|
|
433
449
|
}
|
|
434
450
|
export function __wbindgen_cast_0000000000000007(arg0) {
|
|
@@ -474,35 +490,35 @@ export function __wbindgen_init_externref_table() {
|
|
|
474
490
|
table.set(offset + 2, true);
|
|
475
491
|
table.set(offset + 3, false);
|
|
476
492
|
}
|
|
477
|
-
function
|
|
478
|
-
wasm.
|
|
493
|
+
function wasm_bindgen_b7ee646778e0f939___convert__closures_____invoke_______true_(arg0, arg1) {
|
|
494
|
+
wasm.wasm_bindgen_b7ee646778e0f939___convert__closures_____invoke_______true_(arg0, arg1);
|
|
479
495
|
}
|
|
480
496
|
|
|
481
|
-
function
|
|
482
|
-
wasm.
|
|
497
|
+
function wasm_bindgen_b7ee646778e0f939___convert__closures_____invoke_______true__1_(arg0, arg1) {
|
|
498
|
+
wasm.wasm_bindgen_b7ee646778e0f939___convert__closures_____invoke_______true__1_(arg0, arg1);
|
|
483
499
|
}
|
|
484
500
|
|
|
485
|
-
function
|
|
486
|
-
wasm.
|
|
501
|
+
function wasm_bindgen_b7ee646778e0f939___convert__closures_____invoke___web_sys_3a423a59b3aa58da___features__gen_CloseEvent__CloseEvent______true_(arg0, arg1, arg2) {
|
|
502
|
+
wasm.wasm_bindgen_b7ee646778e0f939___convert__closures_____invoke___web_sys_3a423a59b3aa58da___features__gen_CloseEvent__CloseEvent______true_(arg0, arg1, arg2);
|
|
487
503
|
}
|
|
488
504
|
|
|
489
|
-
function
|
|
490
|
-
wasm.
|
|
505
|
+
function wasm_bindgen_b7ee646778e0f939___convert__closures_____invoke___web_sys_3a423a59b3aa58da___features__gen_CloseEvent__CloseEvent______true__2(arg0, arg1, arg2) {
|
|
506
|
+
wasm.wasm_bindgen_b7ee646778e0f939___convert__closures_____invoke___web_sys_3a423a59b3aa58da___features__gen_CloseEvent__CloseEvent______true__2(arg0, arg1, arg2);
|
|
491
507
|
}
|
|
492
508
|
|
|
493
|
-
function
|
|
494
|
-
wasm.
|
|
509
|
+
function wasm_bindgen_b7ee646778e0f939___convert__closures_____invoke___web_sys_3a423a59b3aa58da___features__gen_CloseEvent__CloseEvent______true__3(arg0, arg1, arg2) {
|
|
510
|
+
wasm.wasm_bindgen_b7ee646778e0f939___convert__closures_____invoke___web_sys_3a423a59b3aa58da___features__gen_CloseEvent__CloseEvent______true__3(arg0, arg1, arg2);
|
|
495
511
|
}
|
|
496
512
|
|
|
497
|
-
function
|
|
498
|
-
const ret = wasm.
|
|
513
|
+
function wasm_bindgen_b7ee646778e0f939___convert__closures_____invoke___wasm_bindgen_b7ee646778e0f939___JsValue__core_9621e680597c5e90___result__Result_____wasm_bindgen_b7ee646778e0f939___JsError___true_(arg0, arg1, arg2) {
|
|
514
|
+
const ret = wasm.wasm_bindgen_b7ee646778e0f939___convert__closures_____invoke___wasm_bindgen_b7ee646778e0f939___JsValue__core_9621e680597c5e90___result__Result_____wasm_bindgen_b7ee646778e0f939___JsError___true_(arg0, arg1, arg2);
|
|
499
515
|
if (ret[1]) {
|
|
500
516
|
throw takeFromExternrefTable0(ret[0]);
|
|
501
517
|
}
|
|
502
518
|
}
|
|
503
519
|
|
|
504
|
-
function
|
|
505
|
-
wasm.
|
|
520
|
+
function wasm_bindgen_b7ee646778e0f939___convert__closures_____invoke___js_sys_b620803b6778d303___Function_fn_wasm_bindgen_b7ee646778e0f939___JsValue_____wasm_bindgen_b7ee646778e0f939___sys__Undefined___js_sys_b620803b6778d303___Function_fn_wasm_bindgen_b7ee646778e0f939___JsValue_____wasm_bindgen_b7ee646778e0f939___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
|
|
521
|
+
wasm.wasm_bindgen_b7ee646778e0f939___convert__closures_____invoke___js_sys_b620803b6778d303___Function_fn_wasm_bindgen_b7ee646778e0f939___JsValue_____wasm_bindgen_b7ee646778e0f939___sys__Undefined___js_sys_b620803b6778d303___Function_fn_wasm_bindgen_b7ee646778e0f939___JsValue_____wasm_bindgen_b7ee646778e0f939___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
|
|
506
522
|
}
|
|
507
523
|
|
|
508
524
|
|
|
Binary file
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
+
export const RPC_CANCELLED_CODE: () => number;
|
|
4
5
|
export const __wbg_rpcclient_free: (a: number, b: number) => void;
|
|
5
6
|
export const rpcclient_checkVault: (a: number) => any;
|
|
6
7
|
export const rpcclient_close: (a: number) => void;
|
|
@@ -21,13 +22,13 @@ export const rpcclient_onSchemaCreated: (a: number, b: any) => void;
|
|
|
21
22
|
export const rpcclient_onSchemaDeleted: (a: number, b: any) => void;
|
|
22
23
|
export const rpcclient_requestFile: (a: number, b: number, c: number) => any;
|
|
23
24
|
export const rpcclient_requestFiles: (a: number, b: number, c: number) => any;
|
|
24
|
-
export const
|
|
25
|
-
export const
|
|
26
|
-
export const
|
|
27
|
-
export const
|
|
28
|
-
export const
|
|
29
|
-
export const
|
|
30
|
-
export const
|
|
25
|
+
export const wasm_bindgen_b7ee646778e0f939___convert__closures_____invoke___wasm_bindgen_b7ee646778e0f939___JsValue__core_9621e680597c5e90___result__Result_____wasm_bindgen_b7ee646778e0f939___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
26
|
+
export const wasm_bindgen_b7ee646778e0f939___convert__closures_____invoke___js_sys_b620803b6778d303___Function_fn_wasm_bindgen_b7ee646778e0f939___JsValue_____wasm_bindgen_b7ee646778e0f939___sys__Undefined___js_sys_b620803b6778d303___Function_fn_wasm_bindgen_b7ee646778e0f939___JsValue_____wasm_bindgen_b7ee646778e0f939___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
|
|
27
|
+
export const wasm_bindgen_b7ee646778e0f939___convert__closures_____invoke___web_sys_3a423a59b3aa58da___features__gen_CloseEvent__CloseEvent______true_: (a: number, b: number, c: any) => void;
|
|
28
|
+
export const wasm_bindgen_b7ee646778e0f939___convert__closures_____invoke___web_sys_3a423a59b3aa58da___features__gen_CloseEvent__CloseEvent______true__2: (a: number, b: number, c: any) => void;
|
|
29
|
+
export const wasm_bindgen_b7ee646778e0f939___convert__closures_____invoke___web_sys_3a423a59b3aa58da___features__gen_CloseEvent__CloseEvent______true__3: (a: number, b: number, c: any) => void;
|
|
30
|
+
export const wasm_bindgen_b7ee646778e0f939___convert__closures_____invoke_______true_: (a: number, b: number) => void;
|
|
31
|
+
export const wasm_bindgen_b7ee646778e0f939___convert__closures_____invoke_______true__1_: (a: number, b: number) => void;
|
|
31
32
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
32
33
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
33
34
|
export const __wbindgen_exn_store: (a: number) => void;
|