mqtt5-wasm 0.10.8 → 0.10.9
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/mqtt5_wasm.d.ts +11 -7
- package/mqtt5_wasm.js +35 -17
- package/mqtt5_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/mqtt5_wasm.d.ts
CHANGED
|
@@ -206,6 +206,7 @@ export class WasmDeflateCodec {
|
|
|
206
206
|
[Symbol.dispose](): void;
|
|
207
207
|
constructor();
|
|
208
208
|
withLevel(level: number): WasmDeflateCodec;
|
|
209
|
+
withMaxDecompressedSize(size: number): WasmDeflateCodec;
|
|
209
210
|
withMinSize(size: number): WasmDeflateCodec;
|
|
210
211
|
}
|
|
211
212
|
|
|
@@ -214,6 +215,7 @@ export class WasmGzipCodec {
|
|
|
214
215
|
[Symbol.dispose](): void;
|
|
215
216
|
constructor();
|
|
216
217
|
withLevel(level: number): WasmGzipCodec;
|
|
218
|
+
withMaxDecompressedSize(size: number): WasmGzipCodec;
|
|
217
219
|
withMinSize(size: number): WasmGzipCodec;
|
|
218
220
|
}
|
|
219
221
|
|
|
@@ -531,6 +533,7 @@ export interface InitOutput {
|
|
|
531
533
|
readonly wasmconnectoptions_username: (a: number, b: number) => void;
|
|
532
534
|
readonly wasmdeflatecodec_new: () => number;
|
|
533
535
|
readonly wasmdeflatecodec_withLevel: (a: number, b: number) => number;
|
|
536
|
+
readonly wasmdeflatecodec_withMaxDecompressedSize: (a: number, b: number) => number;
|
|
534
537
|
readonly wasmdeflatecodec_withMinSize: (a: number, b: number) => number;
|
|
535
538
|
readonly wasmmessageproperties_contentType: (a: number, b: number) => void;
|
|
536
539
|
readonly wasmmessageproperties_correlationData: (a: number, b: number) => void;
|
|
@@ -629,18 +632,19 @@ export interface InitOutput {
|
|
|
629
632
|
readonly wasmwillmessage_topic: (a: number, b: number) => void;
|
|
630
633
|
readonly wasmwillmessage_willDelayInterval: (a: number) => number;
|
|
631
634
|
readonly wasmcodecregistry_new: () => number;
|
|
635
|
+
readonly wasmgzipcodec_withMinSize: (a: number, b: number) => number;
|
|
636
|
+
readonly wasmgzipcodec_withMaxDecompressedSize: (a: number, b: number) => number;
|
|
632
637
|
readonly wasmgzipcodec_new: () => number;
|
|
633
638
|
readonly createGzipCodec: (a: number, b: number) => number;
|
|
634
639
|
readonly __wbg_wasmgzipcodec_free: (a: number, b: number) => void;
|
|
635
640
|
readonly wasmgzipcodec_withLevel: (a: number, b: number) => number;
|
|
636
|
-
readonly
|
|
637
|
-
readonly
|
|
638
|
-
readonly __wasm_bindgen_func_elem_2666: (a: number, b: number) => void;
|
|
641
|
+
readonly __wasm_bindgen_func_elem_2495: (a: number, b: number) => void;
|
|
642
|
+
readonly __wasm_bindgen_func_elem_2654: (a: number, b: number) => void;
|
|
639
643
|
readonly __wasm_bindgen_func_elem_139: (a: number, b: number) => void;
|
|
640
|
-
readonly
|
|
641
|
-
readonly
|
|
642
|
-
readonly
|
|
643
|
-
readonly
|
|
644
|
+
readonly __wasm_bindgen_func_elem_4111: (a: number, b: number, c: number, d: number) => void;
|
|
645
|
+
readonly __wasm_bindgen_func_elem_2670: (a: number, b: number, c: number) => void;
|
|
646
|
+
readonly __wasm_bindgen_func_elem_987: (a: number, b: number, c: number) => void;
|
|
647
|
+
readonly __wasm_bindgen_func_elem_2515: (a: number, b: number) => void;
|
|
644
648
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
645
649
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
646
650
|
readonly __wbindgen_export3: (a: number) => void;
|
package/mqtt5_wasm.js
CHANGED
|
@@ -1097,6 +1097,15 @@ export class WasmDeflateCodec {
|
|
|
1097
1097
|
const ret = wasm.wasmdeflatecodec_withLevel(ptr, level);
|
|
1098
1098
|
return WasmDeflateCodec.__wrap(ret);
|
|
1099
1099
|
}
|
|
1100
|
+
/**
|
|
1101
|
+
* @param {number} size
|
|
1102
|
+
* @returns {WasmDeflateCodec}
|
|
1103
|
+
*/
|
|
1104
|
+
withMaxDecompressedSize(size) {
|
|
1105
|
+
const ptr = this.__destroy_into_raw();
|
|
1106
|
+
const ret = wasm.wasmdeflatecodec_withMaxDecompressedSize(ptr, size);
|
|
1107
|
+
return WasmDeflateCodec.__wrap(ret);
|
|
1108
|
+
}
|
|
1100
1109
|
/**
|
|
1101
1110
|
* @param {number} size
|
|
1102
1111
|
* @returns {WasmDeflateCodec}
|
|
@@ -1142,6 +1151,15 @@ export class WasmGzipCodec {
|
|
|
1142
1151
|
const ret = wasm.wasmdeflatecodec_withLevel(ptr, level);
|
|
1143
1152
|
return WasmGzipCodec.__wrap(ret);
|
|
1144
1153
|
}
|
|
1154
|
+
/**
|
|
1155
|
+
* @param {number} size
|
|
1156
|
+
* @returns {WasmGzipCodec}
|
|
1157
|
+
*/
|
|
1158
|
+
withMaxDecompressedSize(size) {
|
|
1159
|
+
const ptr = this.__destroy_into_raw();
|
|
1160
|
+
const ret = wasm.wasmdeflatecodec_withMaxDecompressedSize(ptr, size);
|
|
1161
|
+
return WasmGzipCodec.__wrap(ret);
|
|
1162
|
+
}
|
|
1145
1163
|
/**
|
|
1146
1164
|
* @param {number} size
|
|
1147
1165
|
* @returns {WasmGzipCodec}
|
|
@@ -2320,7 +2338,7 @@ function __wbg_get_imports() {
|
|
|
2320
2338
|
const a = state0.a;
|
|
2321
2339
|
state0.a = 0;
|
|
2322
2340
|
try {
|
|
2323
|
-
return
|
|
2341
|
+
return __wasm_bindgen_func_elem_4111(a, state0.b, arg0, arg1);
|
|
2324
2342
|
} finally {
|
|
2325
2343
|
state0.a = a;
|
|
2326
2344
|
}
|
|
@@ -2405,7 +2423,7 @@ function __wbg_get_imports() {
|
|
|
2405
2423
|
__wbg_send_542f95dea2df7994: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2406
2424
|
getObject(arg0).send(getArrayU8FromWasm0(arg1, arg2));
|
|
2407
2425
|
}, arguments); },
|
|
2408
|
-
|
|
2426
|
+
__wbg_setTimeout_3b9d22c69c7efbfa: function(arg0, arg1) {
|
|
2409
2427
|
const ret = setTimeout(getObject(arg0), arg1);
|
|
2410
2428
|
return ret;
|
|
2411
2429
|
},
|
|
@@ -2483,28 +2501,28 @@ function __wbg_get_imports() {
|
|
|
2483
2501
|
return addHeapObject(ret);
|
|
2484
2502
|
},
|
|
2485
2503
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
2486
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
2487
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
2504
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 382, function: Function { arguments: [], shim_idx: 383, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2505
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2495, __wasm_bindgen_func_elem_2515);
|
|
2488
2506
|
return addHeapObject(ret);
|
|
2489
2507
|
},
|
|
2490
2508
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
2491
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
2492
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
2509
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 400, function: Function { arguments: [Externref], shim_idx: 401, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2510
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2654, __wasm_bindgen_func_elem_2670);
|
|
2493
2511
|
return addHeapObject(ret);
|
|
2494
2512
|
},
|
|
2495
2513
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
2496
2514
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 8, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 9, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2497
|
-
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_139,
|
|
2515
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_139, __wasm_bindgen_func_elem_987);
|
|
2498
2516
|
return addHeapObject(ret);
|
|
2499
2517
|
},
|
|
2500
2518
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
2501
2519
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 8, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 9, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2502
|
-
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_139,
|
|
2520
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_139, __wasm_bindgen_func_elem_987);
|
|
2503
2521
|
return addHeapObject(ret);
|
|
2504
2522
|
},
|
|
2505
2523
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
2506
2524
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 8, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 9, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2507
|
-
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_139,
|
|
2525
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_139, __wasm_bindgen_func_elem_987);
|
|
2508
2526
|
return addHeapObject(ret);
|
|
2509
2527
|
},
|
|
2510
2528
|
__wbindgen_cast_0000000000000006: function(arg0) {
|
|
@@ -2538,20 +2556,20 @@ function __wbg_get_imports() {
|
|
|
2538
2556
|
};
|
|
2539
2557
|
}
|
|
2540
2558
|
|
|
2541
|
-
function
|
|
2542
|
-
wasm.
|
|
2559
|
+
function __wasm_bindgen_func_elem_2515(arg0, arg1) {
|
|
2560
|
+
wasm.__wasm_bindgen_func_elem_2515(arg0, arg1);
|
|
2543
2561
|
}
|
|
2544
2562
|
|
|
2545
|
-
function
|
|
2546
|
-
wasm.
|
|
2563
|
+
function __wasm_bindgen_func_elem_2670(arg0, arg1, arg2) {
|
|
2564
|
+
wasm.__wasm_bindgen_func_elem_2670(arg0, arg1, addHeapObject(arg2));
|
|
2547
2565
|
}
|
|
2548
2566
|
|
|
2549
|
-
function
|
|
2550
|
-
wasm.
|
|
2567
|
+
function __wasm_bindgen_func_elem_987(arg0, arg1, arg2) {
|
|
2568
|
+
wasm.__wasm_bindgen_func_elem_987(arg0, arg1, addHeapObject(arg2));
|
|
2551
2569
|
}
|
|
2552
2570
|
|
|
2553
|
-
function
|
|
2554
|
-
wasm.
|
|
2571
|
+
function __wasm_bindgen_func_elem_4111(arg0, arg1, arg2, arg3) {
|
|
2572
|
+
wasm.__wasm_bindgen_func_elem_4111(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
2555
2573
|
}
|
|
2556
2574
|
|
|
2557
2575
|
|
package/mqtt5_wasm_bg.wasm
CHANGED
|
Binary file
|