mqtt5-wasm 0.8.0 → 0.8.2
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/README.md +1 -1
- package/mqtt5_wasm.d.ts +11 -7
- package/mqtt5_wasm.js +54 -22
- package/mqtt5_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
package/mqtt5_wasm.d.ts
CHANGED
|
@@ -87,6 +87,8 @@ export class WasmBroker {
|
|
|
87
87
|
*/
|
|
88
88
|
create_client_port(): MessagePort;
|
|
89
89
|
get_max_packet_size(): number;
|
|
90
|
+
set_acl_default_deny(): Promise<void>;
|
|
91
|
+
set_acl_default_allow(): Promise<void>;
|
|
90
92
|
get_session_expiry_interval_secs(): number;
|
|
91
93
|
start_sys_topics_with_interval_secs(interval_secs: number): void;
|
|
92
94
|
/**
|
|
@@ -379,6 +381,8 @@ export interface InitOutput {
|
|
|
379
381
|
readonly wasmbroker_remove_role: (a: number, b: number, c: number) => any;
|
|
380
382
|
readonly wasmbroker_remove_user: (a: number, b: number, c: number) => any;
|
|
381
383
|
readonly wasmbroker_role_count: (a: number) => any;
|
|
384
|
+
readonly wasmbroker_set_acl_default_allow: (a: number) => any;
|
|
385
|
+
readonly wasmbroker_set_acl_default_deny: (a: number) => any;
|
|
382
386
|
readonly wasmbroker_start_sys_topics: (a: number) => void;
|
|
383
387
|
readonly wasmbroker_start_sys_topics_with_interval_secs: (a: number, b: number) => void;
|
|
384
388
|
readonly wasmbroker_stop_all_bridges: (a: number) => any;
|
|
@@ -524,13 +528,13 @@ export interface InitOutput {
|
|
|
524
528
|
readonly wasmwillmessage_set_willDelayInterval: (a: number, b: number) => void;
|
|
525
529
|
readonly wasmwillmessage_topic: (a: number) => [number, number];
|
|
526
530
|
readonly wasmwillmessage_willDelayInterval: (a: number) => number;
|
|
527
|
-
readonly
|
|
528
|
-
readonly
|
|
529
|
-
readonly
|
|
530
|
-
readonly
|
|
531
|
-
readonly
|
|
532
|
-
readonly
|
|
533
|
-
readonly
|
|
531
|
+
readonly wasm_bindgen__convert__closures_____invoke__h7324a79a5e11eb3e: (a: number, b: number, c: any) => void;
|
|
532
|
+
readonly wasm_bindgen__closure__destroy__h38434f93ee49d1f0: (a: number, b: number) => void;
|
|
533
|
+
readonly wasm_bindgen__convert__closures_____invoke__hd49bf9a031f6d618: (a: number, b: number) => void;
|
|
534
|
+
readonly wasm_bindgen__closure__destroy__h0acca761ccd82b83: (a: number, b: number) => void;
|
|
535
|
+
readonly wasm_bindgen__convert__closures_____invoke__h475e254c24b92200: (a: number, b: number, c: any) => void;
|
|
536
|
+
readonly wasm_bindgen__closure__destroy__hb2a62e97b18b78cc: (a: number, b: number) => void;
|
|
537
|
+
readonly wasm_bindgen__convert__closures_____invoke__h2295936859390eb7: (a: number, b: number, c: any, d: any) => void;
|
|
534
538
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
535
539
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
536
540
|
readonly __wbindgen_exn_store: (a: number) => void;
|
package/mqtt5_wasm.js
CHANGED
|
@@ -251,20 +251,20 @@ if (!('encodeInto' in cachedTextEncoder)) {
|
|
|
251
251
|
|
|
252
252
|
let WASM_VECTOR_LEN = 0;
|
|
253
253
|
|
|
254
|
-
function
|
|
255
|
-
wasm.
|
|
254
|
+
function wasm_bindgen__convert__closures_____invoke__h7324a79a5e11eb3e(arg0, arg1, arg2) {
|
|
255
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h7324a79a5e11eb3e(arg0, arg1, arg2);
|
|
256
256
|
}
|
|
257
257
|
|
|
258
|
-
function
|
|
259
|
-
wasm.
|
|
258
|
+
function wasm_bindgen__convert__closures_____invoke__hd49bf9a031f6d618(arg0, arg1) {
|
|
259
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hd49bf9a031f6d618(arg0, arg1);
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
-
function
|
|
263
|
-
wasm.
|
|
262
|
+
function wasm_bindgen__convert__closures_____invoke__h475e254c24b92200(arg0, arg1, arg2) {
|
|
263
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h475e254c24b92200(arg0, arg1, arg2);
|
|
264
264
|
}
|
|
265
265
|
|
|
266
|
-
function
|
|
267
|
-
wasm.
|
|
266
|
+
function wasm_bindgen__convert__closures_____invoke__h2295936859390eb7(arg0, arg1, arg2, arg3) {
|
|
267
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h2295936859390eb7(arg0, arg1, arg2, arg3);
|
|
268
268
|
}
|
|
269
269
|
|
|
270
270
|
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
@@ -706,6 +706,20 @@ export class WasmBroker {
|
|
|
706
706
|
const ret = wasm.wasmbroker_get_max_packet_size(this.__wbg_ptr);
|
|
707
707
|
return ret >>> 0;
|
|
708
708
|
}
|
|
709
|
+
/**
|
|
710
|
+
* @returns {Promise<void>}
|
|
711
|
+
*/
|
|
712
|
+
set_acl_default_deny() {
|
|
713
|
+
const ret = wasm.wasmbroker_set_acl_default_deny(this.__wbg_ptr);
|
|
714
|
+
return ret;
|
|
715
|
+
}
|
|
716
|
+
/**
|
|
717
|
+
* @returns {Promise<void>}
|
|
718
|
+
*/
|
|
719
|
+
set_acl_default_allow() {
|
|
720
|
+
const ret = wasm.wasmbroker_set_acl_default_allow(this.__wbg_ptr);
|
|
721
|
+
return ret;
|
|
722
|
+
}
|
|
709
723
|
/**
|
|
710
724
|
* @returns {number}
|
|
711
725
|
*/
|
|
@@ -2039,6 +2053,12 @@ function __wbg_get_imports() {
|
|
|
2039
2053
|
const ret = arg0 === undefined;
|
|
2040
2054
|
return ret;
|
|
2041
2055
|
};
|
|
2056
|
+
imports.wbg.__wbg___wbindgen_number_get_9619185a74197f95 = function(arg0, arg1) {
|
|
2057
|
+
const obj = arg1;
|
|
2058
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
2059
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
2060
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
2061
|
+
};
|
|
2042
2062
|
imports.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) {
|
|
2043
2063
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
2044
2064
|
};
|
|
@@ -2099,9 +2119,17 @@ function __wbg_get_imports() {
|
|
|
2099
2119
|
imports.wbg.__wbg_error_7bc7d576a6aaf855 = function(arg0) {
|
|
2100
2120
|
console.error(arg0);
|
|
2101
2121
|
};
|
|
2122
|
+
imports.wbg.__wbg_from_29a8414a7a7cd19d = function(arg0) {
|
|
2123
|
+
const ret = Array.from(arg0);
|
|
2124
|
+
return ret;
|
|
2125
|
+
};
|
|
2102
2126
|
imports.wbg.__wbg_getRandomValues_1c61fac11405ffdc = function() { return handleError(function (arg0, arg1) {
|
|
2103
2127
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
2104
2128
|
}, arguments) };
|
|
2129
|
+
imports.wbg.__wbg_get_6b7bd52aca3f9671 = function(arg0, arg1) {
|
|
2130
|
+
const ret = arg0[arg1 >>> 0];
|
|
2131
|
+
return ret;
|
|
2132
|
+
};
|
|
2105
2133
|
imports.wbg.__wbg_instanceof_ArrayBuffer_f3320d2419cd0355 = function(arg0) {
|
|
2106
2134
|
let result;
|
|
2107
2135
|
try {
|
|
@@ -2126,6 +2154,10 @@ function __wbg_get_imports() {
|
|
|
2126
2154
|
const ret = arg0.length;
|
|
2127
2155
|
return ret;
|
|
2128
2156
|
};
|
|
2157
|
+
imports.wbg.__wbg_length_d45040a40c570362 = function(arg0) {
|
|
2158
|
+
const ret = arg0.length;
|
|
2159
|
+
return ret;
|
|
2160
|
+
};
|
|
2129
2161
|
imports.wbg.__wbg_log_1d990106d99dacb7 = function(arg0) {
|
|
2130
2162
|
console.log(arg0);
|
|
2131
2163
|
};
|
|
@@ -2156,7 +2188,7 @@ function __wbg_get_imports() {
|
|
|
2156
2188
|
const a = state0.a;
|
|
2157
2189
|
state0.a = 0;
|
|
2158
2190
|
try {
|
|
2159
|
-
return
|
|
2191
|
+
return wasm_bindgen__convert__closures_____invoke__h2295936859390eb7(a, state0.b, arg0, arg1);
|
|
2160
2192
|
} finally {
|
|
2161
2193
|
state0.a = a;
|
|
2162
2194
|
}
|
|
@@ -2305,11 +2337,6 @@ function __wbg_get_imports() {
|
|
|
2305
2337
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
2306
2338
|
return ret;
|
|
2307
2339
|
};
|
|
2308
|
-
imports.wbg.__wbindgen_cast_22daa9e11cd314ef = function(arg0, arg1) {
|
|
2309
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 368, function: Function { arguments: [Externref], shim_idx: 369, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2310
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__ha2949eb6d63c4297, wasm_bindgen__convert__closures_____invoke__hd15651196cb2505d);
|
|
2311
|
-
return ret;
|
|
2312
|
-
};
|
|
2313
2340
|
imports.wbg.__wbindgen_cast_25a0a844437d0e92 = function(arg0, arg1) {
|
|
2314
2341
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
2315
2342
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
@@ -2317,19 +2344,19 @@ function __wbg_get_imports() {
|
|
|
2317
2344
|
const ret = v0;
|
|
2318
2345
|
return ret;
|
|
2319
2346
|
};
|
|
2320
|
-
imports.wbg.__wbindgen_cast_71d90ac9f14f6e03 = function(arg0, arg1) {
|
|
2321
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 357, function: Function { arguments: [], shim_idx: 358, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2322
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h30ea16cd0ac6175f, wasm_bindgen__convert__closures_____invoke__hd696d8bd99da4c41);
|
|
2323
|
-
return ret;
|
|
2324
|
-
};
|
|
2325
2347
|
imports.wbg.__wbindgen_cast_a6d58121ace2ceaa = function(arg0, arg1) {
|
|
2326
2348
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 7, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 8, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2327
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
2349
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h38434f93ee49d1f0, wasm_bindgen__convert__closures_____invoke__h7324a79a5e11eb3e);
|
|
2350
|
+
return ret;
|
|
2351
|
+
};
|
|
2352
|
+
imports.wbg.__wbindgen_cast_bcb52d240aab74cd = function(arg0, arg1) {
|
|
2353
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 369, function: Function { arguments: [], shim_idx: 370, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2354
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h0acca761ccd82b83, wasm_bindgen__convert__closures_____invoke__hd49bf9a031f6d618);
|
|
2328
2355
|
return ret;
|
|
2329
2356
|
};
|
|
2330
2357
|
imports.wbg.__wbindgen_cast_d3f7166d7f91ad34 = function(arg0, arg1) {
|
|
2331
2358
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 7, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 8, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2332
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
2359
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h38434f93ee49d1f0, wasm_bindgen__convert__closures_____invoke__h7324a79a5e11eb3e);
|
|
2333
2360
|
return ret;
|
|
2334
2361
|
};
|
|
2335
2362
|
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
|
@@ -2337,9 +2364,14 @@ function __wbg_get_imports() {
|
|
|
2337
2364
|
const ret = arg0;
|
|
2338
2365
|
return ret;
|
|
2339
2366
|
};
|
|
2367
|
+
imports.wbg.__wbindgen_cast_f32d29dddbf18ed6 = function(arg0, arg1) {
|
|
2368
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 380, function: Function { arguments: [Externref], shim_idx: 381, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2369
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hb2a62e97b18b78cc, wasm_bindgen__convert__closures_____invoke__h475e254c24b92200);
|
|
2370
|
+
return ret;
|
|
2371
|
+
};
|
|
2340
2372
|
imports.wbg.__wbindgen_cast_fac85390ef55bfaa = function(arg0, arg1) {
|
|
2341
2373
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 7, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 8, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2342
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
2374
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h38434f93ee49d1f0, wasm_bindgen__convert__closures_____invoke__h7324a79a5e11eb3e);
|
|
2343
2375
|
return ret;
|
|
2344
2376
|
};
|
|
2345
2377
|
imports.wbg.__wbindgen_init_externref_table = function() {
|
package/mqtt5_wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED