mqtt5-wasm 0.10.8 → 0.10.10
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 +15 -8
- package/mqtt5_wasm.js +190 -123
- 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;
|
|
@@ -632,15 +635,19 @@ export interface InitOutput {
|
|
|
632
635
|
readonly wasmgzipcodec_new: () => number;
|
|
633
636
|
readonly createGzipCodec: (a: number, b: number) => number;
|
|
634
637
|
readonly __wbg_wasmgzipcodec_free: (a: number, b: number) => void;
|
|
635
|
-
readonly wasmgzipcodec_withLevel: (a: number, b: number) => number;
|
|
636
638
|
readonly wasmgzipcodec_withMinSize: (a: number, b: number) => number;
|
|
637
|
-
readonly
|
|
638
|
-
readonly
|
|
639
|
-
readonly
|
|
640
|
-
readonly
|
|
641
|
-
readonly
|
|
642
|
-
readonly
|
|
643
|
-
readonly
|
|
639
|
+
readonly wasmgzipcodec_withMaxDecompressedSize: (a: number, b: number) => number;
|
|
640
|
+
readonly wasmgzipcodec_withLevel: (a: number, b: number) => number;
|
|
641
|
+
readonly __wasm_bindgen_func_elem_2562: (a: number, b: number) => void;
|
|
642
|
+
readonly __wasm_bindgen_func_elem_2723: (a: number, b: number) => void;
|
|
643
|
+
readonly __wasm_bindgen_func_elem_141: (a: number, b: number) => void;
|
|
644
|
+
readonly __wasm_bindgen_func_elem_4221: (a: number, b: number, c: number, d: number) => void;
|
|
645
|
+
readonly __wasm_bindgen_func_elem_4227: (a: number, b: number, c: number, d: number) => void;
|
|
646
|
+
readonly __wasm_bindgen_func_elem_1022: (a: number, b: number, c: number) => void;
|
|
647
|
+
readonly __wasm_bindgen_func_elem_1022_3: (a: number, b: number, c: number) => void;
|
|
648
|
+
readonly __wasm_bindgen_func_elem_1022_4: (a: number, b: number, c: number) => void;
|
|
649
|
+
readonly __wasm_bindgen_func_elem_1022_5: (a: number, b: number, c: number) => void;
|
|
650
|
+
readonly __wasm_bindgen_func_elem_2582: (a: number, b: number) => void;
|
|
644
651
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
645
652
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
646
653
|
readonly __wbindgen_export3: (a: number) => void;
|
package/mqtt5_wasm.js
CHANGED
|
@@ -750,7 +750,7 @@ export class WasmCodecRegistry {
|
|
|
750
750
|
return ret !== 0;
|
|
751
751
|
}
|
|
752
752
|
constructor() {
|
|
753
|
-
const ret = wasm.
|
|
753
|
+
const ret = wasm.wasmcodecregistry_new();
|
|
754
754
|
this.__wbg_ptr = ret >>> 0;
|
|
755
755
|
WasmCodecRegistryFinalization.register(this, this.__wbg_ptr, this);
|
|
756
756
|
return this;
|
|
@@ -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}
|
|
@@ -1128,7 +1137,7 @@ export class WasmGzipCodec {
|
|
|
1128
1137
|
wasm.__wbg_wasmgzipcodec_free(ptr, 0);
|
|
1129
1138
|
}
|
|
1130
1139
|
constructor() {
|
|
1131
|
-
const ret = wasm.
|
|
1140
|
+
const ret = wasm.wasmgzipcodec_new();
|
|
1132
1141
|
this.__wbg_ptr = ret >>> 0;
|
|
1133
1142
|
WasmGzipCodecFinalization.register(this, this.__wbg_ptr, this);
|
|
1134
1143
|
return this;
|
|
@@ -1139,7 +1148,16 @@ export class WasmGzipCodec {
|
|
|
1139
1148
|
*/
|
|
1140
1149
|
withLevel(level) {
|
|
1141
1150
|
const ptr = this.__destroy_into_raw();
|
|
1142
|
-
const ret = wasm.
|
|
1151
|
+
const ret = wasm.wasmgzipcodec_withLevel(ptr, level);
|
|
1152
|
+
return WasmGzipCodec.__wrap(ret);
|
|
1153
|
+
}
|
|
1154
|
+
/**
|
|
1155
|
+
* @param {number} size
|
|
1156
|
+
* @returns {WasmGzipCodec}
|
|
1157
|
+
*/
|
|
1158
|
+
withMaxDecompressedSize(size) {
|
|
1159
|
+
const ptr = this.__destroy_into_raw();
|
|
1160
|
+
const ret = wasm.wasmgzipcodec_withMaxDecompressedSize(ptr, size);
|
|
1143
1161
|
return WasmGzipCodec.__wrap(ret);
|
|
1144
1162
|
}
|
|
1145
1163
|
/**
|
|
@@ -1148,7 +1166,7 @@ export class WasmGzipCodec {
|
|
|
1148
1166
|
*/
|
|
1149
1167
|
withMinSize(size) {
|
|
1150
1168
|
const ptr = this.__destroy_into_raw();
|
|
1151
|
-
const ret = wasm.
|
|
1169
|
+
const ret = wasm.wasmgzipcodec_withMinSize(ptr, size);
|
|
1152
1170
|
return WasmGzipCodec.__wrap(ret);
|
|
1153
1171
|
}
|
|
1154
1172
|
}
|
|
@@ -2156,84 +2174,87 @@ export function createDeflateCodec(level, min_size) {
|
|
|
2156
2174
|
* @returns {WasmGzipCodec}
|
|
2157
2175
|
*/
|
|
2158
2176
|
export function createGzipCodec(level, min_size) {
|
|
2159
|
-
const ret = wasm.
|
|
2177
|
+
const ret = wasm.createGzipCodec(isLikeNone(level) ? 0xFFFFFF : level, isLikeNone(min_size) ? 0x100000001 : (min_size) >>> 0);
|
|
2160
2178
|
return WasmGzipCodec.__wrap(ret);
|
|
2161
2179
|
}
|
|
2162
2180
|
|
|
2163
2181
|
function __wbg_get_imports() {
|
|
2164
2182
|
const import0 = {
|
|
2165
2183
|
__proto__: null,
|
|
2166
|
-
|
|
2184
|
+
__wbg___wbindgen_debug_string_43c7ccb034739216: function(arg0, arg1) {
|
|
2167
2185
|
const ret = debugString(getObject(arg1));
|
|
2168
2186
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2169
2187
|
const len1 = WASM_VECTOR_LEN;
|
|
2170
2188
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2171
2189
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2172
2190
|
},
|
|
2173
|
-
|
|
2191
|
+
__wbg___wbindgen_is_function_18bea6e84080c016: function(arg0) {
|
|
2174
2192
|
const ret = typeof(getObject(arg0)) === 'function';
|
|
2175
2193
|
return ret;
|
|
2176
2194
|
},
|
|
2177
|
-
|
|
2195
|
+
__wbg___wbindgen_is_undefined_4a711ea9d2e1ef93: function(arg0) {
|
|
2178
2196
|
const ret = getObject(arg0) === undefined;
|
|
2179
2197
|
return ret;
|
|
2180
2198
|
},
|
|
2181
|
-
|
|
2199
|
+
__wbg___wbindgen_number_get_eed4462ef92e1bed: function(arg0, arg1) {
|
|
2182
2200
|
const obj = getObject(arg1);
|
|
2183
2201
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
2184
2202
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
2185
2203
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
2186
2204
|
},
|
|
2187
|
-
|
|
2205
|
+
__wbg___wbindgen_throw_df03e93053e0f4bc: function(arg0, arg1) {
|
|
2188
2206
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
2189
2207
|
},
|
|
2190
|
-
|
|
2208
|
+
__wbg__wbg_cb_unref_9f02ce912168c354: function(arg0) {
|
|
2191
2209
|
getObject(arg0)._wbg_cb_unref();
|
|
2192
2210
|
},
|
|
2193
|
-
|
|
2194
|
-
getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
|
2195
|
-
}, arguments); },
|
|
2196
|
-
__wbg_addEventListener_c917b5aafbcf493f: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2211
|
+
__wbg_addEventListener_3005ac5ed6837415: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2197
2212
|
getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3), getObject(arg4));
|
|
2198
2213
|
}, arguments); },
|
|
2199
|
-
|
|
2214
|
+
__wbg_addEventListener_57d995fadad0d0d4: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2215
|
+
getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
|
2216
|
+
}, arguments); },
|
|
2217
|
+
__wbg_buffer_d8bcb2548b84f613: function(arg0) {
|
|
2200
2218
|
const ret = getObject(arg0).buffer;
|
|
2201
2219
|
return addHeapObject(ret);
|
|
2202
2220
|
},
|
|
2203
|
-
|
|
2204
|
-
const ret = getObject(arg0).call(getObject(arg1));
|
|
2221
|
+
__wbg_call_2989817bf2a245b5: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2222
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
|
|
2205
2223
|
return addHeapObject(ret);
|
|
2206
2224
|
}, arguments); },
|
|
2207
|
-
|
|
2208
|
-
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
2225
|
+
__wbg_call_2fed456383422ff7: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2226
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3), getObject(arg4));
|
|
2209
2227
|
return addHeapObject(ret);
|
|
2210
2228
|
}, arguments); },
|
|
2211
|
-
|
|
2212
|
-
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2)
|
|
2229
|
+
__wbg_call_85e5437fa1ab109d: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2230
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
2213
2231
|
return addHeapObject(ret);
|
|
2214
2232
|
}, arguments); },
|
|
2215
|
-
|
|
2216
|
-
const ret = getObject(arg0).call(getObject(arg1)
|
|
2233
|
+
__wbg_call_df7a43aecab856a8: function() { return handleError(function (arg0, arg1) {
|
|
2234
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
|
2217
2235
|
return addHeapObject(ret);
|
|
2218
2236
|
}, arguments); },
|
|
2219
|
-
|
|
2237
|
+
__wbg_clearTimeout_113b1cde814ec762: function(arg0) {
|
|
2220
2238
|
const ret = clearTimeout(takeObject(arg0));
|
|
2221
2239
|
return addHeapObject(ret);
|
|
2222
2240
|
},
|
|
2223
|
-
|
|
2241
|
+
__wbg_close_5037e133798e83d9: function() { return handleError(function (arg0) {
|
|
2224
2242
|
getObject(arg0).close();
|
|
2225
2243
|
}, arguments); },
|
|
2226
|
-
|
|
2244
|
+
__wbg_close_dc9ad581faf838d4: function(arg0) {
|
|
2227
2245
|
getObject(arg0).close();
|
|
2228
2246
|
},
|
|
2229
|
-
|
|
2247
|
+
__wbg_close_e44403ddc4ad9c8a: function(arg0) {
|
|
2230
2248
|
getObject(arg0).close();
|
|
2231
2249
|
},
|
|
2232
|
-
|
|
2250
|
+
__wbg_data_babe21b5759b3cbf: function(arg0) {
|
|
2233
2251
|
const ret = getObject(arg0).data;
|
|
2234
2252
|
return addHeapObject(ret);
|
|
2235
2253
|
},
|
|
2236
|
-
|
|
2254
|
+
__wbg_error_51679600615c775d: function(arg0) {
|
|
2255
|
+
console.error(getObject(arg0));
|
|
2256
|
+
},
|
|
2257
|
+
__wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
|
|
2237
2258
|
let deferred0_0;
|
|
2238
2259
|
let deferred0_1;
|
|
2239
2260
|
try {
|
|
@@ -2244,21 +2265,18 @@ function __wbg_get_imports() {
|
|
|
2244
2265
|
wasm.__wbindgen_export4(deferred0_0, deferred0_1, 1);
|
|
2245
2266
|
}
|
|
2246
2267
|
},
|
|
2247
|
-
|
|
2248
|
-
console.error(getObject(arg0));
|
|
2249
|
-
},
|
|
2250
|
-
__wbg_from_bddd64e7d5ff6941: function(arg0) {
|
|
2268
|
+
__wbg_from_291708c278f9eb83: function(arg0) {
|
|
2251
2269
|
const ret = Array.from(getObject(arg0));
|
|
2252
2270
|
return addHeapObject(ret);
|
|
2253
2271
|
},
|
|
2254
|
-
|
|
2272
|
+
__wbg_getRandomValues_3f44b700395062e5: function() { return handleError(function (arg0, arg1) {
|
|
2255
2273
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
2256
2274
|
}, arguments); },
|
|
2257
|
-
|
|
2275
|
+
__wbg_get_c40e2c3262995a8e: function(arg0, arg1) {
|
|
2258
2276
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
2259
2277
|
return addHeapObject(ret);
|
|
2260
2278
|
},
|
|
2261
|
-
|
|
2279
|
+
__wbg_instanceof_ArrayBuffer_d8e4e51f1cf7287a: function(arg0) {
|
|
2262
2280
|
let result;
|
|
2263
2281
|
try {
|
|
2264
2282
|
result = getObject(arg0) instanceof ArrayBuffer;
|
|
@@ -2268,7 +2286,7 @@ function __wbg_get_imports() {
|
|
|
2268
2286
|
const ret = result;
|
|
2269
2287
|
return ret;
|
|
2270
2288
|
},
|
|
2271
|
-
|
|
2289
|
+
__wbg_instanceof_Window_0cc62e4f32542cc4: function(arg0) {
|
|
2272
2290
|
let result;
|
|
2273
2291
|
try {
|
|
2274
2292
|
result = getObject(arg0) instanceof Window;
|
|
@@ -2278,49 +2296,53 @@ function __wbg_get_imports() {
|
|
|
2278
2296
|
const ret = result;
|
|
2279
2297
|
return ret;
|
|
2280
2298
|
},
|
|
2281
|
-
|
|
2299
|
+
__wbg_length_00dd7227fd4626ad: function(arg0) {
|
|
2282
2300
|
const ret = getObject(arg0).length;
|
|
2283
2301
|
return ret;
|
|
2284
2302
|
},
|
|
2285
|
-
|
|
2303
|
+
__wbg_length_5e07cf181b2745fb: function(arg0) {
|
|
2286
2304
|
const ret = getObject(arg0).length;
|
|
2287
2305
|
return ret;
|
|
2288
2306
|
},
|
|
2289
|
-
|
|
2307
|
+
__wbg_log_91f1dd1dfd5a4ae8: function(arg0) {
|
|
2290
2308
|
console.log(getObject(arg0));
|
|
2291
2309
|
},
|
|
2292
|
-
|
|
2310
|
+
__wbg_navigator_fa7a4a353e3eb5bf: function(arg0) {
|
|
2293
2311
|
const ret = getObject(arg0).navigator;
|
|
2294
2312
|
return addHeapObject(ret);
|
|
2295
2313
|
},
|
|
2296
|
-
|
|
2314
|
+
__wbg_new_227d7c05414eb861: function() {
|
|
2315
|
+
const ret = new Error();
|
|
2316
|
+
return addHeapObject(ret);
|
|
2317
|
+
},
|
|
2318
|
+
__wbg_new_5237437d64a3208d: function() { return handleError(function (arg0, arg1) {
|
|
2319
|
+
const ret = new BroadcastChannel(getStringFromWasm0(arg0, arg1));
|
|
2320
|
+
return addHeapObject(ret);
|
|
2321
|
+
}, arguments); },
|
|
2322
|
+
__wbg_new_62f131e968c83d75: function() {
|
|
2297
2323
|
const ret = new Object();
|
|
2298
2324
|
return addHeapObject(ret);
|
|
2299
2325
|
},
|
|
2300
|
-
|
|
2326
|
+
__wbg_new_66075f8c2ea6575e: function() {
|
|
2301
2327
|
const ret = new Array();
|
|
2302
2328
|
return addHeapObject(ret);
|
|
2303
2329
|
},
|
|
2304
|
-
|
|
2305
|
-
const ret = new
|
|
2306
|
-
return addHeapObject(ret);
|
|
2307
|
-
}, arguments); },
|
|
2308
|
-
__wbg_new_8a6f238a6ece86ea: function() {
|
|
2309
|
-
const ret = new Error();
|
|
2330
|
+
__wbg_new_a0479da6258a0d71: function(arg0) {
|
|
2331
|
+
const ret = new Uint8Array(getObject(arg0));
|
|
2310
2332
|
return addHeapObject(ret);
|
|
2311
2333
|
},
|
|
2312
|
-
|
|
2313
|
-
const ret = new
|
|
2334
|
+
__wbg_new_ea65a1c3773f9c9b: function() { return handleError(function () {
|
|
2335
|
+
const ret = new MessageChannel();
|
|
2314
2336
|
return addHeapObject(ret);
|
|
2315
2337
|
}, arguments); },
|
|
2316
|
-
|
|
2338
|
+
__wbg_new_f1f062a28c67f0de: function(arg0, arg1) {
|
|
2317
2339
|
try {
|
|
2318
2340
|
var state0 = {a: arg0, b: arg1};
|
|
2319
2341
|
var cb0 = (arg0, arg1) => {
|
|
2320
2342
|
const a = state0.a;
|
|
2321
2343
|
state0.a = 0;
|
|
2322
2344
|
try {
|
|
2323
|
-
return
|
|
2345
|
+
return __wasm_bindgen_func_elem_4227(a, state0.b, arg0, arg1);
|
|
2324
2346
|
} finally {
|
|
2325
2347
|
state0.a = a;
|
|
2326
2348
|
}
|
|
@@ -2331,151 +2353,169 @@ function __wbg_get_imports() {
|
|
|
2331
2353
|
state0.a = state0.b = 0;
|
|
2332
2354
|
}
|
|
2333
2355
|
},
|
|
2334
|
-
|
|
2335
|
-
const ret = new Uint8Array(getObject(arg0));
|
|
2336
|
-
return addHeapObject(ret);
|
|
2337
|
-
},
|
|
2338
|
-
__wbg_new_from_slice_a3d2629dc1826784: function(arg0, arg1) {
|
|
2356
|
+
__wbg_new_from_slice_e98c2bb0a59c32a0: function(arg0, arg1) {
|
|
2339
2357
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
2340
2358
|
return addHeapObject(ret);
|
|
2341
2359
|
},
|
|
2342
|
-
|
|
2360
|
+
__wbg_new_no_args_450a1855aebd4c3f: function(arg0, arg1) {
|
|
2343
2361
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
2344
2362
|
return addHeapObject(ret);
|
|
2345
2363
|
},
|
|
2346
|
-
|
|
2364
|
+
__wbg_new_typed_893dbec5fe999814: function(arg0, arg1) {
|
|
2365
|
+
try {
|
|
2366
|
+
var state0 = {a: arg0, b: arg1};
|
|
2367
|
+
var cb0 = (arg0, arg1) => {
|
|
2368
|
+
const a = state0.a;
|
|
2369
|
+
state0.a = 0;
|
|
2370
|
+
try {
|
|
2371
|
+
return __wasm_bindgen_func_elem_4227(a, state0.b, arg0, arg1);
|
|
2372
|
+
} finally {
|
|
2373
|
+
state0.a = a;
|
|
2374
|
+
}
|
|
2375
|
+
};
|
|
2376
|
+
const ret = new Promise(cb0);
|
|
2377
|
+
return addHeapObject(ret);
|
|
2378
|
+
} finally {
|
|
2379
|
+
state0.a = state0.b = 0;
|
|
2380
|
+
}
|
|
2381
|
+
},
|
|
2382
|
+
__wbg_new_typed_e80fe2772bd6059c: function() {
|
|
2383
|
+
const ret = new Array();
|
|
2384
|
+
return addHeapObject(ret);
|
|
2385
|
+
},
|
|
2386
|
+
__wbg_new_with_str_07e6f60241834da7: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2347
2387
|
const ret = new WebSocket(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
2348
2388
|
return addHeapObject(ret);
|
|
2349
2389
|
}, arguments); },
|
|
2350
|
-
|
|
2351
|
-
const ret =
|
|
2390
|
+
__wbg_now_81a04fc60f4b9917: function() {
|
|
2391
|
+
const ret = Date.now();
|
|
2352
2392
|
return ret;
|
|
2353
2393
|
},
|
|
2354
|
-
|
|
2355
|
-
const ret =
|
|
2394
|
+
__wbg_now_e7c6795a7f81e10f: function(arg0) {
|
|
2395
|
+
const ret = getObject(arg0).now();
|
|
2356
2396
|
return ret;
|
|
2357
2397
|
},
|
|
2358
|
-
|
|
2398
|
+
__wbg_onLine_9f4520155a89205d: function(arg0) {
|
|
2359
2399
|
const ret = getObject(arg0).onLine;
|
|
2360
2400
|
return ret;
|
|
2361
2401
|
},
|
|
2362
|
-
|
|
2402
|
+
__wbg_performance_3fcf6e32a7e1ed0a: function(arg0) {
|
|
2363
2403
|
const ret = getObject(arg0).performance;
|
|
2364
2404
|
return addHeapObject(ret);
|
|
2365
2405
|
},
|
|
2366
|
-
|
|
2406
|
+
__wbg_port1_2f1755dad025625b: function(arg0) {
|
|
2367
2407
|
const ret = getObject(arg0).port1;
|
|
2368
2408
|
return addHeapObject(ret);
|
|
2369
2409
|
},
|
|
2370
|
-
|
|
2410
|
+
__wbg_port2_86b7eed27c3eac89: function(arg0) {
|
|
2371
2411
|
const ret = getObject(arg0).port2;
|
|
2372
2412
|
return addHeapObject(ret);
|
|
2373
2413
|
},
|
|
2374
|
-
|
|
2414
|
+
__wbg_postMessage_64cd559ada4d560a: function() { return handleError(function (arg0, arg1) {
|
|
2375
2415
|
getObject(arg0).postMessage(getObject(arg1));
|
|
2376
2416
|
}, arguments); },
|
|
2377
|
-
|
|
2417
|
+
__wbg_postMessage_e989c0fbc1e369f7: function() { return handleError(function (arg0, arg1) {
|
|
2378
2418
|
getObject(arg0).postMessage(getObject(arg1));
|
|
2379
2419
|
}, arguments); },
|
|
2380
|
-
|
|
2420
|
+
__wbg_prototypesetcall_d1a7133bc8d83aa9: function(arg0, arg1, arg2) {
|
|
2381
2421
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
2382
2422
|
},
|
|
2383
|
-
|
|
2423
|
+
__wbg_push_960865cda81df836: function(arg0, arg1) {
|
|
2384
2424
|
const ret = getObject(arg0).push(getObject(arg1));
|
|
2385
2425
|
return ret;
|
|
2386
2426
|
},
|
|
2387
|
-
|
|
2427
|
+
__wbg_queueMicrotask_622e69f0935dfab2: function(arg0) {
|
|
2388
2428
|
const ret = getObject(arg0).queueMicrotask;
|
|
2389
2429
|
return addHeapObject(ret);
|
|
2390
2430
|
},
|
|
2391
|
-
|
|
2431
|
+
__wbg_queueMicrotask_d0528786d26e067c: function(arg0) {
|
|
2392
2432
|
queueMicrotask(getObject(arg0));
|
|
2393
2433
|
},
|
|
2394
|
-
|
|
2434
|
+
__wbg_random_625435d73260b19d: function() {
|
|
2395
2435
|
const ret = Math.random();
|
|
2396
2436
|
return ret;
|
|
2397
2437
|
},
|
|
2398
|
-
|
|
2438
|
+
__wbg_removeEventListener_090d4b756985ef27: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2399
2439
|
getObject(arg0).removeEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
|
2400
2440
|
}, arguments); },
|
|
2401
|
-
|
|
2441
|
+
__wbg_resolve_d170483d75a2c8a1: function(arg0) {
|
|
2402
2442
|
const ret = Promise.resolve(getObject(arg0));
|
|
2403
2443
|
return addHeapObject(ret);
|
|
2404
2444
|
},
|
|
2405
|
-
|
|
2445
|
+
__wbg_send_7285e7262a22b416: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2406
2446
|
getObject(arg0).send(getArrayU8FromWasm0(arg1, arg2));
|
|
2407
2447
|
}, arguments); },
|
|
2408
|
-
|
|
2448
|
+
__wbg_setTimeout_4fdc46b0b9738cdc: function(arg0, arg1) {
|
|
2409
2449
|
const ret = setTimeout(getObject(arg0), arg1);
|
|
2410
2450
|
return ret;
|
|
2411
2451
|
},
|
|
2412
|
-
|
|
2452
|
+
__wbg_setTimeout_ef24d2fc3ad97385: function() { return handleError(function (arg0, arg1) {
|
|
2413
2453
|
const ret = setTimeout(getObject(arg0), arg1);
|
|
2414
2454
|
return addHeapObject(ret);
|
|
2415
2455
|
}, arguments); },
|
|
2416
|
-
|
|
2456
|
+
__wbg_set_8326741805409e83: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2417
2457
|
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
2418
2458
|
return ret;
|
|
2419
2459
|
}, arguments); },
|
|
2420
|
-
|
|
2460
|
+
__wbg_set_binaryType_09ecde5bca9bea6d: function(arg0, arg1) {
|
|
2421
2461
|
getObject(arg0).binaryType = __wbindgen_enum_BinaryType[arg1];
|
|
2422
2462
|
},
|
|
2423
|
-
|
|
2463
|
+
__wbg_set_once_029ea93294b38425: function(arg0, arg1) {
|
|
2424
2464
|
getObject(arg0).once = arg1 !== 0;
|
|
2425
2465
|
},
|
|
2426
|
-
|
|
2466
|
+
__wbg_set_onclose_5a4efe8223c69850: function(arg0, arg1) {
|
|
2427
2467
|
getObject(arg0).onclose = getObject(arg1);
|
|
2428
2468
|
},
|
|
2429
|
-
|
|
2469
|
+
__wbg_set_onerror_8cbba78c47029fec: function(arg0, arg1) {
|
|
2430
2470
|
getObject(arg0).onerror = getObject(arg1);
|
|
2431
2471
|
},
|
|
2432
|
-
|
|
2472
|
+
__wbg_set_onmessage_2866418e548e3f11: function(arg0, arg1) {
|
|
2433
2473
|
getObject(arg0).onmessage = getObject(arg1);
|
|
2434
2474
|
},
|
|
2435
|
-
|
|
2475
|
+
__wbg_set_onmessage_48fd41f69c4baa8b: function(arg0, arg1) {
|
|
2436
2476
|
getObject(arg0).onmessage = getObject(arg1);
|
|
2437
2477
|
},
|
|
2438
|
-
|
|
2478
|
+
__wbg_set_onmessage_ef93bb6961bf2382: function(arg0, arg1) {
|
|
2439
2479
|
getObject(arg0).onmessage = getObject(arg1);
|
|
2440
2480
|
},
|
|
2441
|
-
|
|
2481
|
+
__wbg_set_onopen_a33f273eb4954fda: function(arg0, arg1) {
|
|
2442
2482
|
getObject(arg0).onopen = getObject(arg1);
|
|
2443
2483
|
},
|
|
2444
|
-
|
|
2484
|
+
__wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
|
|
2445
2485
|
const ret = getObject(arg1).stack;
|
|
2446
2486
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2447
2487
|
const len1 = WASM_VECTOR_LEN;
|
|
2448
2488
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2449
2489
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2450
2490
|
},
|
|
2451
|
-
|
|
2491
|
+
__wbg_start_17033e86e55248bf: function(arg0) {
|
|
2452
2492
|
getObject(arg0).start();
|
|
2453
2493
|
},
|
|
2454
|
-
|
|
2455
|
-
const ret = typeof
|
|
2494
|
+
__wbg_static_accessor_GLOBAL_THIS_6614f2f4998e3c4c: function() {
|
|
2495
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
2456
2496
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
2457
2497
|
},
|
|
2458
|
-
|
|
2459
|
-
const ret = typeof
|
|
2498
|
+
__wbg_static_accessor_GLOBAL_d8e8a2fefe80bc1d: function() {
|
|
2499
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
2460
2500
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
2461
2501
|
},
|
|
2462
|
-
|
|
2502
|
+
__wbg_static_accessor_SELF_e29eaf7c465526b1: function() {
|
|
2463
2503
|
const ret = typeof self === 'undefined' ? null : self;
|
|
2464
2504
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
2465
2505
|
},
|
|
2466
|
-
|
|
2506
|
+
__wbg_static_accessor_WINDOW_66e7ca3eef30585a: function() {
|
|
2467
2507
|
const ret = typeof window === 'undefined' ? null : window;
|
|
2468
2508
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
2469
2509
|
},
|
|
2470
|
-
|
|
2510
|
+
__wbg_then_1170ade08ea65bc7: function(arg0, arg1, arg2) {
|
|
2471
2511
|
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
|
2472
2512
|
return addHeapObject(ret);
|
|
2473
2513
|
},
|
|
2474
|
-
|
|
2514
|
+
__wbg_then_fdc17de424bf508a: function(arg0, arg1) {
|
|
2475
2515
|
const ret = getObject(arg0).then(getObject(arg1));
|
|
2476
2516
|
return addHeapObject(ret);
|
|
2477
2517
|
},
|
|
2478
|
-
|
|
2518
|
+
__wbg_warn_52ab87a85aca283f: function(arg0) {
|
|
2479
2519
|
console.warn(getObject(arg0));
|
|
2480
2520
|
},
|
|
2481
2521
|
__wbg_wasmmessageproperties_new: function(arg0) {
|
|
@@ -2483,41 +2523,46 @@ function __wbg_get_imports() {
|
|
|
2483
2523
|
return addHeapObject(ret);
|
|
2484
2524
|
},
|
|
2485
2525
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
2486
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
2487
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
2526
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 413, function: Function { arguments: [], shim_idx: 414, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2527
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2562, __wasm_bindgen_func_elem_2582);
|
|
2488
2528
|
return addHeapObject(ret);
|
|
2489
2529
|
},
|
|
2490
2530
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
2491
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
2492
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
2531
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 431, function: Function { arguments: [Externref], shim_idx: 600, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2532
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2723, __wasm_bindgen_func_elem_4221);
|
|
2493
2533
|
return addHeapObject(ret);
|
|
2494
2534
|
},
|
|
2495
2535
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
2496
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 8, function: Function { arguments: [
|
|
2497
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
2536
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 8, function: Function { arguments: [Externref], shim_idx: 9, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2537
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_141, __wasm_bindgen_func_elem_1022);
|
|
2498
2538
|
return addHeapObject(ret);
|
|
2499
2539
|
},
|
|
2500
2540
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
2501
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 8, function: Function { arguments: [NamedExternref("
|
|
2502
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
2541
|
+
// 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`.
|
|
2542
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_141, __wasm_bindgen_func_elem_1022_3);
|
|
2503
2543
|
return addHeapObject(ret);
|
|
2504
2544
|
},
|
|
2505
2545
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
2546
|
+
// 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`.
|
|
2547
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_141, __wasm_bindgen_func_elem_1022_4);
|
|
2548
|
+
return addHeapObject(ret);
|
|
2549
|
+
},
|
|
2550
|
+
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
2506
2551
|
// 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.
|
|
2552
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_141, __wasm_bindgen_func_elem_1022_5);
|
|
2508
2553
|
return addHeapObject(ret);
|
|
2509
2554
|
},
|
|
2510
|
-
|
|
2555
|
+
__wbindgen_cast_0000000000000007: function(arg0) {
|
|
2511
2556
|
// Cast intrinsic for `F64 -> Externref`.
|
|
2512
2557
|
const ret = arg0;
|
|
2513
2558
|
return addHeapObject(ret);
|
|
2514
2559
|
},
|
|
2515
|
-
|
|
2560
|
+
__wbindgen_cast_0000000000000008: function(arg0, arg1) {
|
|
2516
2561
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
2517
2562
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
2518
2563
|
return addHeapObject(ret);
|
|
2519
2564
|
},
|
|
2520
|
-
|
|
2565
|
+
__wbindgen_cast_0000000000000009: function(arg0, arg1) {
|
|
2521
2566
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
2522
2567
|
wasm.__wbindgen_export4(arg0, arg1 * 4, 4);
|
|
2523
2568
|
// Cast intrinsic for `Vector(NamedExternref("string")) -> Externref`.
|
|
@@ -2538,20 +2583,42 @@ function __wbg_get_imports() {
|
|
|
2538
2583
|
};
|
|
2539
2584
|
}
|
|
2540
2585
|
|
|
2541
|
-
function
|
|
2542
|
-
wasm.
|
|
2586
|
+
function __wasm_bindgen_func_elem_2582(arg0, arg1) {
|
|
2587
|
+
wasm.__wasm_bindgen_func_elem_2582(arg0, arg1);
|
|
2588
|
+
}
|
|
2589
|
+
|
|
2590
|
+
function __wasm_bindgen_func_elem_1022(arg0, arg1, arg2) {
|
|
2591
|
+
wasm.__wasm_bindgen_func_elem_1022(arg0, arg1, addHeapObject(arg2));
|
|
2592
|
+
}
|
|
2593
|
+
|
|
2594
|
+
function __wasm_bindgen_func_elem_1022_3(arg0, arg1, arg2) {
|
|
2595
|
+
wasm.__wasm_bindgen_func_elem_1022_3(arg0, arg1, addHeapObject(arg2));
|
|
2543
2596
|
}
|
|
2544
2597
|
|
|
2545
|
-
function
|
|
2546
|
-
wasm.
|
|
2598
|
+
function __wasm_bindgen_func_elem_1022_4(arg0, arg1, arg2) {
|
|
2599
|
+
wasm.__wasm_bindgen_func_elem_1022_4(arg0, arg1, addHeapObject(arg2));
|
|
2547
2600
|
}
|
|
2548
2601
|
|
|
2549
|
-
function
|
|
2550
|
-
wasm.
|
|
2602
|
+
function __wasm_bindgen_func_elem_1022_5(arg0, arg1, arg2) {
|
|
2603
|
+
wasm.__wasm_bindgen_func_elem_1022_5(arg0, arg1, addHeapObject(arg2));
|
|
2604
|
+
}
|
|
2605
|
+
|
|
2606
|
+
function __wasm_bindgen_func_elem_4221(arg0, arg1, arg2) {
|
|
2607
|
+
try {
|
|
2608
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2609
|
+
wasm.__wasm_bindgen_func_elem_4221(retptr, arg0, arg1, addHeapObject(arg2));
|
|
2610
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2611
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2612
|
+
if (r1) {
|
|
2613
|
+
throw takeObject(r0);
|
|
2614
|
+
}
|
|
2615
|
+
} finally {
|
|
2616
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2617
|
+
}
|
|
2551
2618
|
}
|
|
2552
2619
|
|
|
2553
|
-
function
|
|
2554
|
-
wasm.
|
|
2620
|
+
function __wasm_bindgen_func_elem_4227(arg0, arg1, arg2, arg3) {
|
|
2621
|
+
wasm.__wasm_bindgen_func_elem_4227(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
2555
2622
|
}
|
|
2556
2623
|
|
|
2557
2624
|
|
|
@@ -2684,7 +2751,7 @@ function debugString(val) {
|
|
|
2684
2751
|
}
|
|
2685
2752
|
|
|
2686
2753
|
function dropObject(idx) {
|
|
2687
|
-
if (idx <
|
|
2754
|
+
if (idx < 1028) return;
|
|
2688
2755
|
heap[idx] = heap_next;
|
|
2689
2756
|
heap_next = idx;
|
|
2690
2757
|
}
|
|
@@ -2748,7 +2815,7 @@ function handleError(f, args) {
|
|
|
2748
2815
|
}
|
|
2749
2816
|
}
|
|
2750
2817
|
|
|
2751
|
-
let heap = new Array(
|
|
2818
|
+
let heap = new Array(1024).fill(undefined);
|
|
2752
2819
|
heap.push(undefined, null, true, false);
|
|
2753
2820
|
|
|
2754
2821
|
let heap_next = heap.length;
|
package/mqtt5_wasm_bg.wasm
CHANGED
|
Binary file
|