phirepass-channel 0.1.207 → 0.1.209
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 +1 -1
- package/phirepass-channel.d.ts +5 -4
- package/phirepass-channel.js +20 -19
- package/phirepass-channel_bg.wasm +0 -0
package/package.json
CHANGED
package/phirepass-channel.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export enum ErrorType {
|
|
|
34
34
|
Authentication = 10,
|
|
35
35
|
RequiresUsername = 100,
|
|
36
36
|
RequiresPassword = 110,
|
|
37
|
+
RequiresUsernamePassword = 120,
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
export enum Protocol {
|
|
@@ -72,10 +73,10 @@ export interface InitOutput {
|
|
|
72
73
|
readonly channel_start_heartbeat: (a: number, b: number) => void;
|
|
73
74
|
readonly channel_stop_heartbeat: (a: number) => void;
|
|
74
75
|
readonly version: (a: number) => void;
|
|
75
|
-
readonly
|
|
76
|
-
readonly
|
|
77
|
-
readonly
|
|
78
|
-
readonly
|
|
76
|
+
readonly __wasm_bindgen_func_elem_41: (a: number, b: number, c: number) => void;
|
|
77
|
+
readonly __wasm_bindgen_func_elem_41_1: (a: number, b: number, c: number) => void;
|
|
78
|
+
readonly __wasm_bindgen_func_elem_41_2: (a: number, b: number, c: number) => void;
|
|
79
|
+
readonly __wasm_bindgen_func_elem_39: (a: number, b: number) => void;
|
|
79
80
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
80
81
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
81
82
|
readonly __wbindgen_export3: (a: number) => void;
|
package/phirepass-channel.js
CHANGED
|
@@ -249,13 +249,14 @@ export class Channel {
|
|
|
249
249
|
if (Symbol.dispose) Channel.prototype[Symbol.dispose] = Channel.prototype.free;
|
|
250
250
|
|
|
251
251
|
/**
|
|
252
|
-
* @enum {0 | 10 | 100 | 110}
|
|
252
|
+
* @enum {0 | 10 | 100 | 110 | 120}
|
|
253
253
|
*/
|
|
254
254
|
export const ErrorType = Object.freeze({
|
|
255
255
|
Generic: 0, "0": "Generic",
|
|
256
256
|
Authentication: 10, "10": "Authentication",
|
|
257
257
|
RequiresUsername: 100, "100": "RequiresUsername",
|
|
258
258
|
RequiresPassword: 110, "110": "RequiresPassword",
|
|
259
|
+
RequiresUsernamePassword: 120, "120": "RequiresUsernamePassword",
|
|
259
260
|
});
|
|
260
261
|
|
|
261
262
|
/**
|
|
@@ -343,7 +344,7 @@ function __wbg_get_imports() {
|
|
|
343
344
|
const ret = Array.from(getObject(arg0));
|
|
344
345
|
return addHeapObject(ret);
|
|
345
346
|
},
|
|
346
|
-
|
|
347
|
+
__wbg_info_4f09735f023f7fae: function(arg0, arg1) {
|
|
347
348
|
console.info(getStringFromWasm0(arg0, arg1));
|
|
348
349
|
},
|
|
349
350
|
__wbg_instanceof_ArrayBuffer_7c8433c6ed14ffe3: function(arg0) {
|
|
@@ -415,27 +416,27 @@ function __wbg_get_imports() {
|
|
|
415
416
|
__wbg_set_onopen_cd47b8fb1d92dee9: function(arg0, arg1) {
|
|
416
417
|
getObject(arg0).onopen = getObject(arg1);
|
|
417
418
|
},
|
|
418
|
-
|
|
419
|
+
__wbg_warn_938671953d9be936: function(arg0, arg1) {
|
|
419
420
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
420
421
|
},
|
|
421
422
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
422
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx:
|
|
423
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
423
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 3, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
424
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_41);
|
|
424
425
|
return addHeapObject(ret);
|
|
425
426
|
},
|
|
426
427
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
427
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx:
|
|
428
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
428
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 3, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
429
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_41_1);
|
|
429
430
|
return addHeapObject(ret);
|
|
430
431
|
},
|
|
431
432
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
432
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx:
|
|
433
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
433
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 3, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
434
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_41_2);
|
|
434
435
|
return addHeapObject(ret);
|
|
435
436
|
},
|
|
436
437
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
437
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
438
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
438
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
439
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_39);
|
|
439
440
|
return addHeapObject(ret);
|
|
440
441
|
},
|
|
441
442
|
__wbindgen_cast_0000000000000005: function(arg0) {
|
|
@@ -472,20 +473,20 @@ function __wbg_get_imports() {
|
|
|
472
473
|
};
|
|
473
474
|
}
|
|
474
475
|
|
|
475
|
-
function
|
|
476
|
-
wasm.
|
|
476
|
+
function __wasm_bindgen_func_elem_39(arg0, arg1) {
|
|
477
|
+
wasm.__wasm_bindgen_func_elem_39(arg0, arg1);
|
|
477
478
|
}
|
|
478
479
|
|
|
479
|
-
function
|
|
480
|
-
wasm.
|
|
480
|
+
function __wasm_bindgen_func_elem_41(arg0, arg1, arg2) {
|
|
481
|
+
wasm.__wasm_bindgen_func_elem_41(arg0, arg1, addHeapObject(arg2));
|
|
481
482
|
}
|
|
482
483
|
|
|
483
|
-
function
|
|
484
|
-
wasm.
|
|
484
|
+
function __wasm_bindgen_func_elem_41_1(arg0, arg1, arg2) {
|
|
485
|
+
wasm.__wasm_bindgen_func_elem_41_1(arg0, arg1, addHeapObject(arg2));
|
|
485
486
|
}
|
|
486
487
|
|
|
487
|
-
function
|
|
488
|
-
wasm.
|
|
488
|
+
function __wasm_bindgen_func_elem_41_2(arg0, arg1, arg2) {
|
|
489
|
+
wasm.__wasm_bindgen_func_elem_41_2(arg0, arg1, addHeapObject(arg2));
|
|
489
490
|
}
|
|
490
491
|
|
|
491
492
|
|
|
Binary file
|