@laboverwire/stitch-wasm 0.5.0 → 0.6.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/README.md +1 -3
- package/package.json +1 -1
- package/stitch_wasm.d.ts +119 -83
- package/stitch_wasm_bg.js +587 -524
- package/stitch_wasm_bg.wasm +0 -0
package/stitch_wasm_bg.js
CHANGED
|
@@ -32,10 +32,10 @@ export class ConnectOptions {
|
|
|
32
32
|
* @returns {string | undefined}
|
|
33
33
|
*/
|
|
34
34
|
get authenticationMethod() {
|
|
35
|
-
const ret = wasm.
|
|
35
|
+
const ret = wasm.connectoptions_authentication_method(this.__wbg_ptr);
|
|
36
36
|
let v1;
|
|
37
37
|
if (ret[0] !== 0) {
|
|
38
|
-
v1 = getStringFromWasm0(ret[0], ret[1])
|
|
38
|
+
v1 = getStringFromWasm0(ret[0], ret[1]);
|
|
39
39
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
40
40
|
}
|
|
41
41
|
return v1;
|
|
@@ -44,7 +44,7 @@ export class ConnectOptions {
|
|
|
44
44
|
* @returns {boolean}
|
|
45
45
|
*/
|
|
46
46
|
get cleanStart() {
|
|
47
|
-
const ret = wasm.
|
|
47
|
+
const ret = wasm.connectoptions_clean_start(this.__wbg_ptr);
|
|
48
48
|
return ret !== 0;
|
|
49
49
|
}
|
|
50
50
|
clearBackupUrls() {
|
|
@@ -61,7 +61,7 @@ export class ConnectOptions {
|
|
|
61
61
|
*/
|
|
62
62
|
getBackupUrls() {
|
|
63
63
|
const ret = wasm.connectoptions_getBackupUrls(this.__wbg_ptr);
|
|
64
|
-
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1])
|
|
64
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]);
|
|
65
65
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
66
66
|
return v1;
|
|
67
67
|
}
|
|
@@ -69,14 +69,14 @@ export class ConnectOptions {
|
|
|
69
69
|
* @returns {number}
|
|
70
70
|
*/
|
|
71
71
|
get keepAlive() {
|
|
72
|
-
const ret = wasm.
|
|
72
|
+
const ret = wasm.connectoptions_keep_alive(this.__wbg_ptr);
|
|
73
73
|
return ret;
|
|
74
74
|
}
|
|
75
75
|
/**
|
|
76
76
|
* @returns {number | undefined}
|
|
77
77
|
*/
|
|
78
78
|
get maximumPacketSize() {
|
|
79
|
-
const ret = wasm.
|
|
79
|
+
const ret = wasm.connectoptions_maximum_packet_size(this.__wbg_ptr);
|
|
80
80
|
return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
|
|
81
81
|
}
|
|
82
82
|
constructor() {
|
|
@@ -89,35 +89,55 @@ export class ConnectOptions {
|
|
|
89
89
|
* @returns {number}
|
|
90
90
|
*/
|
|
91
91
|
get protocolVersion() {
|
|
92
|
-
const ret = wasm.
|
|
92
|
+
const ret = wasm.connectoptions_protocol_version(this.__wbg_ptr);
|
|
93
93
|
return ret;
|
|
94
94
|
}
|
|
95
95
|
/**
|
|
96
96
|
* @returns {number | undefined}
|
|
97
97
|
*/
|
|
98
98
|
get receiveMaximum() {
|
|
99
|
-
const ret = wasm.
|
|
99
|
+
const ret = wasm.connectoptions_receive_maximum(this.__wbg_ptr);
|
|
100
100
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
101
101
|
}
|
|
102
102
|
/**
|
|
103
103
|
* @returns {boolean | undefined}
|
|
104
104
|
*/
|
|
105
105
|
get requestProblemInformation() {
|
|
106
|
-
const ret = wasm.
|
|
106
|
+
const ret = wasm.connectoptions_request_problem_information(this.__wbg_ptr);
|
|
107
107
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
108
108
|
}
|
|
109
109
|
/**
|
|
110
110
|
* @returns {boolean | undefined}
|
|
111
111
|
*/
|
|
112
112
|
get requestResponseInformation() {
|
|
113
|
-
const ret = wasm.
|
|
113
|
+
const ret = wasm.connectoptions_request_response_information(this.__wbg_ptr);
|
|
114
114
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
115
115
|
}
|
|
116
|
+
/**
|
|
117
|
+
* Accept `Session Present = 1` on a client that holds no local session state.
|
|
118
|
+
*
|
|
119
|
+
* By default a client that has not yet established a session in this instance
|
|
120
|
+
* rejects a CONNACK with Session Present set to 1, sends DISCONNECT 0x82 and closes
|
|
121
|
+
* the connection (MQTT-3.2.2-4). Set this to `true` (together with
|
|
122
|
+
* `cleanStart = false`) to deliberately resume a session the broker still holds,
|
|
123
|
+
* for example after a page reload or crash. The client has nothing to resend in
|
|
124
|
+
* that case; the broker resumes delivery of the messages it holds. A CONNACK with
|
|
125
|
+
* Session Present set to 1 in reply to `cleanStart = true` is always rejected.
|
|
126
|
+
*
|
|
127
|
+
* The broker only keeps a session to resume if the previous connection set a non-zero
|
|
128
|
+
* `sessionExpiryInterval`: under MQTT v5 an absent value means 0, so the session ends
|
|
129
|
+
* when the connection closes.
|
|
130
|
+
* @returns {boolean}
|
|
131
|
+
*/
|
|
132
|
+
get resumeExistingSession() {
|
|
133
|
+
const ret = wasm.connectoptions_resume_existing_session(this.__wbg_ptr);
|
|
134
|
+
return ret !== 0;
|
|
135
|
+
}
|
|
116
136
|
/**
|
|
117
137
|
* @returns {number | undefined}
|
|
118
138
|
*/
|
|
119
139
|
get sessionExpiryInterval() {
|
|
120
|
-
const ret = wasm.
|
|
140
|
+
const ret = wasm.connectoptions_session_expiry_interval(this.__wbg_ptr);
|
|
121
141
|
return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
|
|
122
142
|
}
|
|
123
143
|
/**
|
|
@@ -134,7 +154,7 @@ export class ConnectOptions {
|
|
|
134
154
|
set authenticationData(value) {
|
|
135
155
|
const ptr0 = passArray8ToWasm0(value, wasm.__wbindgen_malloc);
|
|
136
156
|
const len0 = WASM_VECTOR_LEN;
|
|
137
|
-
wasm.
|
|
157
|
+
wasm.connectoptions_set_authentication_data(this.__wbg_ptr, ptr0, len0);
|
|
138
158
|
}
|
|
139
159
|
/**
|
|
140
160
|
* @param {string | null} [value]
|
|
@@ -142,25 +162,25 @@ export class ConnectOptions {
|
|
|
142
162
|
set authenticationMethod(value) {
|
|
143
163
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
144
164
|
var len0 = WASM_VECTOR_LEN;
|
|
145
|
-
wasm.
|
|
165
|
+
wasm.connectoptions_set_authentication_method(this.__wbg_ptr, ptr0, len0);
|
|
146
166
|
}
|
|
147
167
|
/**
|
|
148
168
|
* @param {boolean} value
|
|
149
169
|
*/
|
|
150
170
|
set cleanStart(value) {
|
|
151
|
-
wasm.
|
|
171
|
+
wasm.connectoptions_set_clean_start(this.__wbg_ptr, value);
|
|
152
172
|
}
|
|
153
173
|
/**
|
|
154
174
|
* @param {number} value
|
|
155
175
|
*/
|
|
156
176
|
set keepAlive(value) {
|
|
157
|
-
wasm.
|
|
177
|
+
wasm.connectoptions_set_keep_alive(this.__wbg_ptr, value);
|
|
158
178
|
}
|
|
159
179
|
/**
|
|
160
180
|
* @param {number | null} [value]
|
|
161
181
|
*/
|
|
162
182
|
set maximumPacketSize(value) {
|
|
163
|
-
wasm.
|
|
183
|
+
wasm.connectoptions_set_maximum_packet_size(this.__wbg_ptr, isLikeNone(value) ? Number.MAX_SAFE_INTEGER : (value) >>> 0);
|
|
164
184
|
}
|
|
165
185
|
/**
|
|
166
186
|
* @param {Uint8Array} value
|
|
@@ -174,37 +194,44 @@ export class ConnectOptions {
|
|
|
174
194
|
* @param {number} value
|
|
175
195
|
*/
|
|
176
196
|
set protocolVersion(value) {
|
|
177
|
-
wasm.
|
|
197
|
+
wasm.connectoptions_set_protocol_version(this.__wbg_ptr, value);
|
|
178
198
|
}
|
|
179
199
|
/**
|
|
180
200
|
* @param {number | null} [value]
|
|
181
201
|
*/
|
|
182
202
|
set receiveMaximum(value) {
|
|
183
|
-
wasm.
|
|
203
|
+
wasm.connectoptions_set_receive_maximum(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value);
|
|
184
204
|
}
|
|
185
205
|
/**
|
|
186
206
|
* @param {boolean | null} [value]
|
|
187
207
|
*/
|
|
188
208
|
set requestProblemInformation(value) {
|
|
189
|
-
wasm.
|
|
209
|
+
wasm.connectoptions_set_request_problem_information(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
190
210
|
}
|
|
191
211
|
/**
|
|
192
212
|
* @param {boolean | null} [value]
|
|
193
213
|
*/
|
|
194
214
|
set requestResponseInformation(value) {
|
|
195
|
-
wasm.
|
|
215
|
+
wasm.connectoptions_set_request_response_information(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Sets [`Self::resume_existing_session`].
|
|
219
|
+
* @param {boolean} value
|
|
220
|
+
*/
|
|
221
|
+
set resumeExistingSession(value) {
|
|
222
|
+
wasm.connectoptions_set_resume_existing_session(this.__wbg_ptr, value);
|
|
196
223
|
}
|
|
197
224
|
/**
|
|
198
225
|
* @param {number | null} [value]
|
|
199
226
|
*/
|
|
200
227
|
set sessionExpiryInterval(value) {
|
|
201
|
-
wasm.
|
|
228
|
+
wasm.connectoptions_set_session_expiry_interval(this.__wbg_ptr, isLikeNone(value) ? Number.MAX_SAFE_INTEGER : (value) >>> 0);
|
|
202
229
|
}
|
|
203
230
|
/**
|
|
204
231
|
* @param {number | null} [value]
|
|
205
232
|
*/
|
|
206
233
|
set topicAliasMaximum(value) {
|
|
207
|
-
wasm.
|
|
234
|
+
wasm.connectoptions_set_topic_alias_maximum(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value);
|
|
208
235
|
}
|
|
209
236
|
/**
|
|
210
237
|
* @param {string | null} [value]
|
|
@@ -218,7 +245,7 @@ export class ConnectOptions {
|
|
|
218
245
|
* @returns {number | undefined}
|
|
219
246
|
*/
|
|
220
247
|
get topicAliasMaximum() {
|
|
221
|
-
const ret = wasm.
|
|
248
|
+
const ret = wasm.connectoptions_topic_alias_maximum(this.__wbg_ptr);
|
|
222
249
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
223
250
|
}
|
|
224
251
|
/**
|
|
@@ -228,7 +255,7 @@ export class ConnectOptions {
|
|
|
228
255
|
const ret = wasm.connectoptions_username(this.__wbg_ptr);
|
|
229
256
|
let v1;
|
|
230
257
|
if (ret[0] !== 0) {
|
|
231
|
-
v1 = getStringFromWasm0(ret[0], ret[1])
|
|
258
|
+
v1 = getStringFromWasm0(ret[0], ret[1]);
|
|
232
259
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
233
260
|
}
|
|
234
261
|
return v1;
|
|
@@ -327,17 +354,18 @@ export class Database {
|
|
|
327
354
|
wasm.__wbg_database_free(ptr, 0);
|
|
328
355
|
}
|
|
329
356
|
/**
|
|
330
|
-
* Adds a foreign key constraint.
|
|
357
|
+
* Adds a foreign key constraint and persists to storage.
|
|
331
358
|
*
|
|
332
359
|
* # Errors
|
|
333
|
-
*
|
|
360
|
+
* Returns an error if storage fails.
|
|
334
361
|
* @param {string} source_entity
|
|
335
362
|
* @param {string} source_field
|
|
336
363
|
* @param {string} target_entity
|
|
337
364
|
* @param {string} target_field
|
|
338
365
|
* @param {string} on_delete
|
|
366
|
+
* @returns {Promise<void>}
|
|
339
367
|
*/
|
|
340
|
-
|
|
368
|
+
addForeignKeyAsync(source_entity, source_field, target_entity, target_field, on_delete) {
|
|
341
369
|
const ptr0 = passStringToWasm0(source_entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
342
370
|
const len0 = WASM_VECTOR_LEN;
|
|
343
371
|
const ptr1 = passStringToWasm0(source_field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -348,24 +376,21 @@ export class Database {
|
|
|
348
376
|
const len3 = WASM_VECTOR_LEN;
|
|
349
377
|
const ptr4 = passStringToWasm0(on_delete, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
350
378
|
const len4 = WASM_VECTOR_LEN;
|
|
351
|
-
const ret = wasm.
|
|
352
|
-
|
|
353
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
354
|
-
}
|
|
379
|
+
const ret = wasm.database_addForeignKeyAsync(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4);
|
|
380
|
+
return ret;
|
|
355
381
|
}
|
|
356
382
|
/**
|
|
357
|
-
* Adds a foreign key constraint
|
|
383
|
+
* Adds a foreign key constraint.
|
|
358
384
|
*
|
|
359
385
|
* # Errors
|
|
360
|
-
*
|
|
386
|
+
* This function does not currently return errors but the signature allows for future validation.
|
|
361
387
|
* @param {string} source_entity
|
|
362
388
|
* @param {string} source_field
|
|
363
389
|
* @param {string} target_entity
|
|
364
390
|
* @param {string} target_field
|
|
365
391
|
* @param {string} on_delete
|
|
366
|
-
* @returns {Promise<void>}
|
|
367
392
|
*/
|
|
368
|
-
|
|
393
|
+
addForeignKey(source_entity, source_field, target_entity, target_field, on_delete) {
|
|
369
394
|
const ptr0 = passStringToWasm0(source_entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
370
395
|
const len0 = WASM_VECTOR_LEN;
|
|
371
396
|
const ptr1 = passStringToWasm0(source_field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -376,23 +401,7 @@ export class Database {
|
|
|
376
401
|
const len3 = WASM_VECTOR_LEN;
|
|
377
402
|
const ptr4 = passStringToWasm0(on_delete, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
378
403
|
const len4 = WASM_VECTOR_LEN;
|
|
379
|
-
const ret = wasm.
|
|
380
|
-
return ret;
|
|
381
|
-
}
|
|
382
|
-
/**
|
|
383
|
-
* Adds an index on the specified fields and backfills from existing records (sync, memory only).
|
|
384
|
-
*
|
|
385
|
-
* # Errors
|
|
386
|
-
* Returns an error if the backend is not memory-based or backfill fails.
|
|
387
|
-
* @param {string} entity
|
|
388
|
-
* @param {string[]} fields
|
|
389
|
-
*/
|
|
390
|
-
addIndex(entity, fields) {
|
|
391
|
-
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
392
|
-
const len0 = WASM_VECTOR_LEN;
|
|
393
|
-
const ptr1 = passArrayJsValueToWasm0(fields, wasm.__wbindgen_malloc);
|
|
394
|
-
const len1 = WASM_VECTOR_LEN;
|
|
395
|
-
const ret = wasm.database_addIndex(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
404
|
+
const ret = wasm.database_addForeignKey(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4);
|
|
396
405
|
if (ret[1]) {
|
|
397
406
|
throw takeFromExternrefTable0(ret[0]);
|
|
398
407
|
}
|
|
@@ -415,19 +424,19 @@ export class Database {
|
|
|
415
424
|
return ret;
|
|
416
425
|
}
|
|
417
426
|
/**
|
|
418
|
-
* Adds
|
|
427
|
+
* Adds an index on the specified fields and backfills from existing records (sync, memory only).
|
|
419
428
|
*
|
|
420
429
|
* # Errors
|
|
421
|
-
*
|
|
430
|
+
* Returns an error if the backend is not memory-based or backfill fails.
|
|
422
431
|
* @param {string} entity
|
|
423
|
-
* @param {string}
|
|
432
|
+
* @param {string[]} fields
|
|
424
433
|
*/
|
|
425
|
-
|
|
434
|
+
addIndex(entity, fields) {
|
|
426
435
|
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
427
436
|
const len0 = WASM_VECTOR_LEN;
|
|
428
|
-
const ptr1 =
|
|
437
|
+
const ptr1 = passArrayJsValueToWasm0(fields, wasm.__wbindgen_malloc);
|
|
429
438
|
const len1 = WASM_VECTOR_LEN;
|
|
430
|
-
const ret = wasm.
|
|
439
|
+
const ret = wasm.database_addIndex(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
431
440
|
if (ret[1]) {
|
|
432
441
|
throw takeFromExternrefTable0(ret[0]);
|
|
433
442
|
}
|
|
@@ -450,22 +459,19 @@ export class Database {
|
|
|
450
459
|
return ret;
|
|
451
460
|
}
|
|
452
461
|
/**
|
|
453
|
-
* Adds a
|
|
462
|
+
* Adds a NOT NULL constraint on the specified field.
|
|
454
463
|
*
|
|
455
464
|
* # Errors
|
|
456
465
|
* This function does not currently return errors but the signature allows for future validation.
|
|
457
|
-
* @param {string}
|
|
466
|
+
* @param {string} entity
|
|
458
467
|
* @param {string} field
|
|
459
|
-
* @param {string} target_entity
|
|
460
468
|
*/
|
|
461
|
-
|
|
462
|
-
const ptr0 = passStringToWasm0(
|
|
469
|
+
addNotNull(entity, field) {
|
|
470
|
+
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
463
471
|
const len0 = WASM_VECTOR_LEN;
|
|
464
472
|
const ptr1 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
465
473
|
const len1 = WASM_VECTOR_LEN;
|
|
466
|
-
const
|
|
467
|
-
const len2 = WASM_VECTOR_LEN;
|
|
468
|
-
const ret = wasm.database_addRelationship(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
474
|
+
const ret = wasm.database_addNotNull(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
469
475
|
if (ret[1]) {
|
|
470
476
|
throw takeFromExternrefTable0(ret[0]);
|
|
471
477
|
}
|
|
@@ -491,17 +497,22 @@ export class Database {
|
|
|
491
497
|
return ret;
|
|
492
498
|
}
|
|
493
499
|
/**
|
|
494
|
-
* Adds a
|
|
500
|
+
* Adds a relationship definition for eager loading.
|
|
495
501
|
*
|
|
496
502
|
* # Errors
|
|
497
|
-
*
|
|
498
|
-
* @param {string}
|
|
499
|
-
* @param {
|
|
503
|
+
* This function does not currently return errors but the signature allows for future validation.
|
|
504
|
+
* @param {string} source_entity
|
|
505
|
+
* @param {string} field
|
|
506
|
+
* @param {string} target_entity
|
|
500
507
|
*/
|
|
501
|
-
|
|
502
|
-
const ptr0 = passStringToWasm0(
|
|
508
|
+
addRelationship(source_entity, field, target_entity) {
|
|
509
|
+
const ptr0 = passStringToWasm0(source_entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
503
510
|
const len0 = WASM_VECTOR_LEN;
|
|
504
|
-
const
|
|
511
|
+
const ptr1 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
512
|
+
const len1 = WASM_VECTOR_LEN;
|
|
513
|
+
const ptr2 = passStringToWasm0(target_entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
514
|
+
const len2 = WASM_VECTOR_LEN;
|
|
515
|
+
const ret = wasm.database_addRelationship(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
505
516
|
if (ret[1]) {
|
|
506
517
|
throw takeFromExternrefTable0(ret[0]);
|
|
507
518
|
}
|
|
@@ -522,19 +533,17 @@ export class Database {
|
|
|
522
533
|
return ret;
|
|
523
534
|
}
|
|
524
535
|
/**
|
|
525
|
-
* Adds a
|
|
536
|
+
* Adds a schema definition for an entity (sync, memory backend only).
|
|
526
537
|
*
|
|
527
538
|
* # Errors
|
|
528
|
-
*
|
|
539
|
+
* Returns an error if the schema definition is invalid.
|
|
529
540
|
* @param {string} entity
|
|
530
|
-
* @param {
|
|
541
|
+
* @param {any} schema_js
|
|
531
542
|
*/
|
|
532
|
-
|
|
543
|
+
addSchema(entity, schema_js) {
|
|
533
544
|
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
534
545
|
const len0 = WASM_VECTOR_LEN;
|
|
535
|
-
const
|
|
536
|
-
const len1 = WASM_VECTOR_LEN;
|
|
537
|
-
const ret = wasm.database_addUniqueConstraint(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
546
|
+
const ret = wasm.database_addSchema(this.__wbg_ptr, ptr0, len0, schema_js);
|
|
538
547
|
if (ret[1]) {
|
|
539
548
|
throw takeFromExternrefTable0(ret[0]);
|
|
540
549
|
}
|
|
@@ -557,19 +566,22 @@ export class Database {
|
|
|
557
566
|
return ret;
|
|
558
567
|
}
|
|
559
568
|
/**
|
|
560
|
-
*
|
|
569
|
+
* Adds a unique constraint on the specified fields.
|
|
561
570
|
*
|
|
562
571
|
* # Errors
|
|
563
|
-
*
|
|
572
|
+
* This function does not currently return errors but the signature allows for future validation.
|
|
564
573
|
* @param {string} entity
|
|
565
|
-
* @param {
|
|
566
|
-
* @returns {Promise<number>}
|
|
574
|
+
* @param {string[]} fields
|
|
567
575
|
*/
|
|
568
|
-
|
|
576
|
+
addUniqueConstraint(entity, fields) {
|
|
569
577
|
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
570
578
|
const len0 = WASM_VECTOR_LEN;
|
|
571
|
-
const
|
|
572
|
-
|
|
579
|
+
const ptr1 = passArrayJsValueToWasm0(fields, wasm.__wbindgen_malloc);
|
|
580
|
+
const len1 = WASM_VECTOR_LEN;
|
|
581
|
+
const ret = wasm.database_addUniqueConstraint(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
582
|
+
if (ret[1]) {
|
|
583
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
584
|
+
}
|
|
573
585
|
}
|
|
574
586
|
/**
|
|
575
587
|
* # Errors
|
|
@@ -588,18 +600,18 @@ export class Database {
|
|
|
588
600
|
return ret[0] >>> 0;
|
|
589
601
|
}
|
|
590
602
|
/**
|
|
591
|
-
*
|
|
603
|
+
* Counts records matching optional filters, using indexes when available.
|
|
592
604
|
*
|
|
593
605
|
* # Errors
|
|
594
|
-
* Returns an error if
|
|
606
|
+
* Returns an error if options are invalid or the storage operation fails.
|
|
595
607
|
* @param {string} entity
|
|
596
|
-
* @param {any}
|
|
597
|
-
* @returns {Promise<
|
|
608
|
+
* @param {any} options
|
|
609
|
+
* @returns {Promise<number>}
|
|
598
610
|
*/
|
|
599
|
-
|
|
611
|
+
count(entity, options) {
|
|
600
612
|
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
601
613
|
const len0 = WASM_VECTOR_LEN;
|
|
602
|
-
const ret = wasm.
|
|
614
|
+
const ret = wasm.database_count(this.__wbg_ptr, ptr0, len0, options);
|
|
603
615
|
return ret;
|
|
604
616
|
}
|
|
605
617
|
/**
|
|
@@ -618,6 +630,21 @@ export class Database {
|
|
|
618
630
|
}
|
|
619
631
|
return takeFromExternrefTable0(ret[0]);
|
|
620
632
|
}
|
|
633
|
+
/**
|
|
634
|
+
* Creates a new record in the specified entity.
|
|
635
|
+
*
|
|
636
|
+
* # Errors
|
|
637
|
+
* Returns an error if validation fails or the storage operation fails.
|
|
638
|
+
* @param {string} entity
|
|
639
|
+
* @param {any} data
|
|
640
|
+
* @returns {Promise<any>}
|
|
641
|
+
*/
|
|
642
|
+
create(entity, data) {
|
|
643
|
+
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
644
|
+
const len0 = WASM_VECTOR_LEN;
|
|
645
|
+
const ret = wasm.database_create(this.__wbg_ptr, ptr0, len0, data);
|
|
646
|
+
return ret;
|
|
647
|
+
}
|
|
621
648
|
/**
|
|
622
649
|
* Creates a cursor for streaming iteration over records.
|
|
623
650
|
*
|
|
@@ -634,37 +661,37 @@ export class Database {
|
|
|
634
661
|
return ret;
|
|
635
662
|
}
|
|
636
663
|
/**
|
|
637
|
-
* Deletes a record by entity and ID.
|
|
638
|
-
*
|
|
639
664
|
* # Errors
|
|
640
|
-
* Returns an error if the record is not found
|
|
665
|
+
* Returns an error if the record is not found, foreign key constraints prevent deletion, or the backend is not memory-based.
|
|
641
666
|
* @param {string} entity
|
|
642
667
|
* @param {string} id
|
|
643
|
-
* @returns {Promise<void>}
|
|
644
668
|
*/
|
|
645
|
-
|
|
669
|
+
deleteSync(entity, id) {
|
|
646
670
|
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
647
671
|
const len0 = WASM_VECTOR_LEN;
|
|
648
672
|
const ptr1 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
649
673
|
const len1 = WASM_VECTOR_LEN;
|
|
650
|
-
const ret = wasm.
|
|
651
|
-
|
|
674
|
+
const ret = wasm.database_deleteSync(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
675
|
+
if (ret[1]) {
|
|
676
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
677
|
+
}
|
|
652
678
|
}
|
|
653
679
|
/**
|
|
680
|
+
* Deletes a record by entity and ID.
|
|
681
|
+
*
|
|
654
682
|
* # Errors
|
|
655
|
-
* Returns an error if the record is not found
|
|
683
|
+
* Returns an error if the record is not found or foreign key constraints prevent deletion.
|
|
656
684
|
* @param {string} entity
|
|
657
685
|
* @param {string} id
|
|
686
|
+
* @returns {Promise<void>}
|
|
658
687
|
*/
|
|
659
|
-
|
|
688
|
+
delete(entity, id) {
|
|
660
689
|
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
661
690
|
const len0 = WASM_VECTOR_LEN;
|
|
662
691
|
const ptr1 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
663
692
|
const len1 = WASM_VECTOR_LEN;
|
|
664
|
-
const ret = wasm.
|
|
665
|
-
|
|
666
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
667
|
-
}
|
|
693
|
+
const ret = wasm.database_delete(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
694
|
+
return ret;
|
|
668
695
|
}
|
|
669
696
|
/**
|
|
670
697
|
* Executes a database operation based on an MQTT-style topic.
|
|
@@ -750,21 +777,6 @@ export class Database {
|
|
|
750
777
|
const ret = wasm.database_isMemoryBackend(this.__wbg_ptr);
|
|
751
778
|
return ret !== 0;
|
|
752
779
|
}
|
|
753
|
-
/**
|
|
754
|
-
* Lists records from an entity with optional filtering, sorting, and pagination.
|
|
755
|
-
*
|
|
756
|
-
* # Errors
|
|
757
|
-
* Returns an error if options are invalid or the storage operation fails.
|
|
758
|
-
* @param {string} entity
|
|
759
|
-
* @param {any} options
|
|
760
|
-
* @returns {Promise<any>}
|
|
761
|
-
*/
|
|
762
|
-
list(entity, options) {
|
|
763
|
-
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
764
|
-
const len0 = WASM_VECTOR_LEN;
|
|
765
|
-
const ret = wasm.database_list(this.__wbg_ptr, ptr0, len0, options);
|
|
766
|
-
return ret;
|
|
767
|
-
}
|
|
768
780
|
/**
|
|
769
781
|
* @param {string} entity
|
|
770
782
|
* @returns {any}
|
|
@@ -813,6 +825,21 @@ export class Database {
|
|
|
813
825
|
}
|
|
814
826
|
return takeFromExternrefTable0(ret[0]);
|
|
815
827
|
}
|
|
828
|
+
/**
|
|
829
|
+
* Lists records from an entity with optional filtering, sorting, and pagination.
|
|
830
|
+
*
|
|
831
|
+
* # Errors
|
|
832
|
+
* Returns an error if options are invalid or the storage operation fails.
|
|
833
|
+
* @param {string} entity
|
|
834
|
+
* @param {any} options
|
|
835
|
+
* @returns {Promise<any>}
|
|
836
|
+
*/
|
|
837
|
+
list(entity, options) {
|
|
838
|
+
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
839
|
+
const len0 = WASM_VECTOR_LEN;
|
|
840
|
+
const ret = wasm.database_list(this.__wbg_ptr, ptr0, len0, options);
|
|
841
|
+
return ret;
|
|
842
|
+
}
|
|
816
843
|
constructor() {
|
|
817
844
|
const ret = wasm.database_new();
|
|
818
845
|
this.__wbg_ptr = ret;
|
|
@@ -842,23 +869,6 @@ export class Database {
|
|
|
842
869
|
const ret = wasm.database_openPersistent(ptr0, len0);
|
|
843
870
|
return ret;
|
|
844
871
|
}
|
|
845
|
-
/**
|
|
846
|
-
* Reads a record by entity and ID.
|
|
847
|
-
*
|
|
848
|
-
* # Errors
|
|
849
|
-
* Returns an error if the record is not found or deserialization fails.
|
|
850
|
-
* @param {string} entity
|
|
851
|
-
* @param {string} id
|
|
852
|
-
* @returns {Promise<any>}
|
|
853
|
-
*/
|
|
854
|
-
read(entity, id) {
|
|
855
|
-
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
856
|
-
const len0 = WASM_VECTOR_LEN;
|
|
857
|
-
const ptr1 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
858
|
-
const len1 = WASM_VECTOR_LEN;
|
|
859
|
-
const ret = wasm.database_read(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
860
|
-
return ret;
|
|
861
|
-
}
|
|
862
872
|
/**
|
|
863
873
|
* # Errors
|
|
864
874
|
* Returns an error if the record is not found or the backend is not memory-based.
|
|
@@ -896,34 +906,21 @@ export class Database {
|
|
|
896
906
|
return ret;
|
|
897
907
|
}
|
|
898
908
|
/**
|
|
909
|
+
* Reads a record by entity and ID.
|
|
910
|
+
*
|
|
899
911
|
* # Errors
|
|
900
|
-
* Returns
|
|
901
|
-
* @param {string}
|
|
902
|
-
* @param {string
|
|
903
|
-
* @
|
|
904
|
-
* @returns {string}
|
|
912
|
+
* Returns an error if the record is not found or deserialization fails.
|
|
913
|
+
* @param {string} entity
|
|
914
|
+
* @param {string} id
|
|
915
|
+
* @returns {Promise<any>}
|
|
905
916
|
*/
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
var len1 = WASM_VECTOR_LEN;
|
|
914
|
-
const ret = wasm.database_subscribe(this.__wbg_ptr, ptr0, len0, ptr1, len1, callback);
|
|
915
|
-
var ptr3 = ret[0];
|
|
916
|
-
var len3 = ret[1];
|
|
917
|
-
if (ret[3]) {
|
|
918
|
-
ptr3 = 0; len3 = 0;
|
|
919
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
920
|
-
}
|
|
921
|
-
deferred4_0 = ptr3;
|
|
922
|
-
deferred4_1 = len3;
|
|
923
|
-
return getStringFromWasm0(ptr3, len3);
|
|
924
|
-
} finally {
|
|
925
|
-
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
926
|
-
}
|
|
917
|
+
read(entity, id) {
|
|
918
|
+
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
919
|
+
const len0 = WASM_VECTOR_LEN;
|
|
920
|
+
const ptr1 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
921
|
+
const len1 = WASM_VECTOR_LEN;
|
|
922
|
+
const ret = wasm.database_read(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
923
|
+
return ret;
|
|
927
924
|
}
|
|
928
925
|
/**
|
|
929
926
|
* # Errors
|
|
@@ -961,6 +958,36 @@ export class Database {
|
|
|
961
958
|
wasm.__wbindgen_free(deferred6_0, deferred6_1, 1);
|
|
962
959
|
}
|
|
963
960
|
}
|
|
961
|
+
/**
|
|
962
|
+
* # Errors
|
|
963
|
+
* Returns `JsValue` if the database is currently borrowed.
|
|
964
|
+
* @param {string} pattern
|
|
965
|
+
* @param {string | null | undefined} entity
|
|
966
|
+
* @param {Function} callback
|
|
967
|
+
* @returns {string}
|
|
968
|
+
*/
|
|
969
|
+
subscribe(pattern, entity, callback) {
|
|
970
|
+
let deferred4_0;
|
|
971
|
+
let deferred4_1;
|
|
972
|
+
try {
|
|
973
|
+
const ptr0 = passStringToWasm0(pattern, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
974
|
+
const len0 = WASM_VECTOR_LEN;
|
|
975
|
+
var ptr1 = isLikeNone(entity) ? 0 : passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
976
|
+
var len1 = WASM_VECTOR_LEN;
|
|
977
|
+
const ret = wasm.database_subscribe(this.__wbg_ptr, ptr0, len0, ptr1, len1, callback);
|
|
978
|
+
var ptr3 = ret[0];
|
|
979
|
+
var len3 = ret[1];
|
|
980
|
+
if (ret[3]) {
|
|
981
|
+
ptr3 = 0; len3 = 0;
|
|
982
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
983
|
+
}
|
|
984
|
+
deferred4_0 = ptr3;
|
|
985
|
+
deferred4_1 = len3;
|
|
986
|
+
return getStringFromWasm0(ptr3, len3);
|
|
987
|
+
} finally {
|
|
988
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
989
|
+
}
|
|
990
|
+
}
|
|
964
991
|
/**
|
|
965
992
|
* # Errors
|
|
966
993
|
* Returns `JsValue` if the database is currently borrowed.
|
|
@@ -974,7 +1001,26 @@ export class Database {
|
|
|
974
1001
|
if (ret[2]) {
|
|
975
1002
|
throw takeFromExternrefTable0(ret[1]);
|
|
976
1003
|
}
|
|
977
|
-
return ret[0] !== 0;
|
|
1004
|
+
return ret[0] !== 0;
|
|
1005
|
+
}
|
|
1006
|
+
/**
|
|
1007
|
+
* # Errors
|
|
1008
|
+
* Returns an error if the record is not found, validation fails, or the backend is not memory-based.
|
|
1009
|
+
* @param {string} entity
|
|
1010
|
+
* @param {string} id
|
|
1011
|
+
* @param {any} fields
|
|
1012
|
+
* @returns {any}
|
|
1013
|
+
*/
|
|
1014
|
+
updateSync(entity, id, fields) {
|
|
1015
|
+
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1016
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1017
|
+
const ptr1 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1018
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1019
|
+
const ret = wasm.database_updateSync(this.__wbg_ptr, ptr0, len0, ptr1, len1, fields);
|
|
1020
|
+
if (ret[2]) {
|
|
1021
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1022
|
+
}
|
|
1023
|
+
return takeFromExternrefTable0(ret[0]);
|
|
978
1024
|
}
|
|
979
1025
|
/**
|
|
980
1026
|
* Updates an existing record with new field values.
|
|
@@ -994,25 +1040,6 @@ export class Database {
|
|
|
994
1040
|
const ret = wasm.database_update(this.__wbg_ptr, ptr0, len0, ptr1, len1, fields);
|
|
995
1041
|
return ret;
|
|
996
1042
|
}
|
|
997
|
-
/**
|
|
998
|
-
* # Errors
|
|
999
|
-
* Returns an error if the record is not found, validation fails, or the backend is not memory-based.
|
|
1000
|
-
* @param {string} entity
|
|
1001
|
-
* @param {string} id
|
|
1002
|
-
* @param {any} fields
|
|
1003
|
-
* @returns {any}
|
|
1004
|
-
*/
|
|
1005
|
-
updateSync(entity, id, fields) {
|
|
1006
|
-
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1007
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1008
|
-
const ptr1 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1009
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1010
|
-
const ret = wasm.database_updateSync(this.__wbg_ptr, ptr0, len0, ptr1, len1, fields);
|
|
1011
|
-
if (ret[2]) {
|
|
1012
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
1013
|
-
}
|
|
1014
|
-
return takeFromExternrefTable0(ret[0]);
|
|
1015
|
-
}
|
|
1016
1043
|
}
|
|
1017
1044
|
if (Symbol.dispose) Database.prototype[Symbol.dispose] = Database.prototype.free;
|
|
1018
1045
|
|
|
@@ -1037,10 +1064,10 @@ export class MessageProperties {
|
|
|
1037
1064
|
* @returns {string | undefined}
|
|
1038
1065
|
*/
|
|
1039
1066
|
get contentType() {
|
|
1040
|
-
const ret = wasm.
|
|
1067
|
+
const ret = wasm.messageproperties_content_type(this.__wbg_ptr);
|
|
1041
1068
|
let v1;
|
|
1042
1069
|
if (ret[0] !== 0) {
|
|
1043
|
-
v1 = getStringFromWasm0(ret[0], ret[1])
|
|
1070
|
+
v1 = getStringFromWasm0(ret[0], ret[1]);
|
|
1044
1071
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1045
1072
|
}
|
|
1046
1073
|
return v1;
|
|
@@ -1049,7 +1076,7 @@ export class MessageProperties {
|
|
|
1049
1076
|
* @returns {Uint8Array | undefined}
|
|
1050
1077
|
*/
|
|
1051
1078
|
get correlationData() {
|
|
1052
|
-
const ret = wasm.
|
|
1079
|
+
const ret = wasm.messageproperties_correlation_data(this.__wbg_ptr);
|
|
1053
1080
|
let v1;
|
|
1054
1081
|
if (ret[0] !== 0) {
|
|
1055
1082
|
v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
@@ -1068,24 +1095,24 @@ export class MessageProperties {
|
|
|
1068
1095
|
* @returns {number | undefined}
|
|
1069
1096
|
*/
|
|
1070
1097
|
get messageExpiryInterval() {
|
|
1071
|
-
const ret = wasm.
|
|
1098
|
+
const ret = wasm.messageproperties_message_expiry_interval(this.__wbg_ptr);
|
|
1072
1099
|
return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
|
|
1073
1100
|
}
|
|
1074
1101
|
/**
|
|
1075
1102
|
* @returns {boolean | undefined}
|
|
1076
1103
|
*/
|
|
1077
1104
|
get payloadFormatIndicator() {
|
|
1078
|
-
const ret = wasm.
|
|
1105
|
+
const ret = wasm.messageproperties_payload_format_indicator(this.__wbg_ptr);
|
|
1079
1106
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
1080
1107
|
}
|
|
1081
1108
|
/**
|
|
1082
1109
|
* @returns {string | undefined}
|
|
1083
1110
|
*/
|
|
1084
1111
|
get responseTopic() {
|
|
1085
|
-
const ret = wasm.
|
|
1112
|
+
const ret = wasm.messageproperties_response_topic(this.__wbg_ptr);
|
|
1086
1113
|
let v1;
|
|
1087
1114
|
if (ret[0] !== 0) {
|
|
1088
|
-
v1 = getStringFromWasm0(ret[0], ret[1])
|
|
1115
|
+
v1 = getStringFromWasm0(ret[0], ret[1]);
|
|
1089
1116
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1090
1117
|
}
|
|
1091
1118
|
return v1;
|
|
@@ -1094,7 +1121,7 @@ export class MessageProperties {
|
|
|
1094
1121
|
* @returns {Uint32Array}
|
|
1095
1122
|
*/
|
|
1096
1123
|
get subscriptionIdentifiers() {
|
|
1097
|
-
const ret = wasm.
|
|
1124
|
+
const ret = wasm.messageproperties_subscription_identifiers(this.__wbg_ptr);
|
|
1098
1125
|
var v1 = getArrayU32FromWasm0(ret[0], ret[1]).slice();
|
|
1099
1126
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1100
1127
|
return v1;
|
|
@@ -1116,25 +1143,25 @@ export class MqttClient {
|
|
|
1116
1143
|
/**
|
|
1117
1144
|
* # Errors
|
|
1118
1145
|
* Returns an error if connection fails.
|
|
1119
|
-
* @param {string}
|
|
1146
|
+
* @param {string} channelName
|
|
1120
1147
|
* @returns {Promise<void>}
|
|
1121
1148
|
*/
|
|
1122
|
-
|
|
1123
|
-
const ptr0 = passStringToWasm0(
|
|
1149
|
+
connectBroadcastChannel(channelName) {
|
|
1150
|
+
const ptr0 = passStringToWasm0(channelName, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1124
1151
|
const len0 = WASM_VECTOR_LEN;
|
|
1125
|
-
const ret = wasm.
|
|
1152
|
+
const ret = wasm.mqttclient_connectBroadcastChannel(this.__wbg_ptr, ptr0, len0);
|
|
1126
1153
|
return ret;
|
|
1127
1154
|
}
|
|
1128
1155
|
/**
|
|
1129
1156
|
* # Errors
|
|
1130
1157
|
* Returns an error if connection fails.
|
|
1131
|
-
* @param {
|
|
1158
|
+
* @param {MessagePort} port
|
|
1159
|
+
* @param {ConnectOptions} config
|
|
1132
1160
|
* @returns {Promise<void>}
|
|
1133
1161
|
*/
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
const
|
|
1137
|
-
const ret = wasm.mqttclient_connectBroadcastChannel(this.__wbg_ptr, ptr0, len0);
|
|
1162
|
+
connectMessagePortWithOptions(port, config) {
|
|
1163
|
+
_assertClass(config, ConnectOptions);
|
|
1164
|
+
const ret = wasm.mqttclient_connectMessagePortWithOptions(this.__wbg_ptr, port, config.__wbg_ptr);
|
|
1138
1165
|
return ret;
|
|
1139
1166
|
}
|
|
1140
1167
|
/**
|
|
@@ -1150,27 +1177,27 @@ export class MqttClient {
|
|
|
1150
1177
|
/**
|
|
1151
1178
|
* # Errors
|
|
1152
1179
|
* Returns an error if connection fails.
|
|
1153
|
-
* @param {
|
|
1180
|
+
* @param {string} url
|
|
1154
1181
|
* @param {ConnectOptions} config
|
|
1155
1182
|
* @returns {Promise<void>}
|
|
1156
1183
|
*/
|
|
1157
|
-
|
|
1184
|
+
connectWithOptions(url, config) {
|
|
1185
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1186
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1158
1187
|
_assertClass(config, ConnectOptions);
|
|
1159
|
-
const ret = wasm.
|
|
1188
|
+
const ret = wasm.mqttclient_connectWithOptions(this.__wbg_ptr, ptr0, len0, config.__wbg_ptr);
|
|
1160
1189
|
return ret;
|
|
1161
1190
|
}
|
|
1162
1191
|
/**
|
|
1163
1192
|
* # Errors
|
|
1164
1193
|
* Returns an error if connection fails.
|
|
1165
1194
|
* @param {string} url
|
|
1166
|
-
* @param {ConnectOptions} config
|
|
1167
1195
|
* @returns {Promise<void>}
|
|
1168
1196
|
*/
|
|
1169
|
-
|
|
1197
|
+
connect(url) {
|
|
1170
1198
|
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1171
1199
|
const len0 = WASM_VECTOR_LEN;
|
|
1172
|
-
|
|
1173
|
-
const ret = wasm.mqttclient_connectWithOptions(this.__wbg_ptr, ptr0, len0, config.__wbg_ptr);
|
|
1200
|
+
const ret = wasm.mqttclient_connect(this.__wbg_ptr, ptr0, len0);
|
|
1174
1201
|
return ret;
|
|
1175
1202
|
}
|
|
1176
1203
|
destroy() {
|
|
@@ -1270,14 +1297,15 @@ export class MqttClient {
|
|
|
1270
1297
|
* Returns an error if not connected or publish fails.
|
|
1271
1298
|
* @param {string} topic
|
|
1272
1299
|
* @param {Uint8Array} payload
|
|
1273
|
-
* @
|
|
1300
|
+
* @param {Function} callback
|
|
1301
|
+
* @returns {Promise<number>}
|
|
1274
1302
|
*/
|
|
1275
|
-
|
|
1303
|
+
publishQos1(topic, payload, callback) {
|
|
1276
1304
|
const ptr0 = passStringToWasm0(topic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1277
1305
|
const len0 = WASM_VECTOR_LEN;
|
|
1278
1306
|
const ptr1 = passArray8ToWasm0(payload, wasm.__wbindgen_malloc);
|
|
1279
1307
|
const len1 = WASM_VECTOR_LEN;
|
|
1280
|
-
const ret = wasm.
|
|
1308
|
+
const ret = wasm.mqttclient_publishQos1(this.__wbg_ptr, ptr0, len0, ptr1, len1, callback);
|
|
1281
1309
|
return ret;
|
|
1282
1310
|
}
|
|
1283
1311
|
/**
|
|
@@ -1288,12 +1316,12 @@ export class MqttClient {
|
|
|
1288
1316
|
* @param {Function} callback
|
|
1289
1317
|
* @returns {Promise<number>}
|
|
1290
1318
|
*/
|
|
1291
|
-
|
|
1319
|
+
publishQos2(topic, payload, callback) {
|
|
1292
1320
|
const ptr0 = passStringToWasm0(topic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1293
1321
|
const len0 = WASM_VECTOR_LEN;
|
|
1294
1322
|
const ptr1 = passArray8ToWasm0(payload, wasm.__wbindgen_malloc);
|
|
1295
1323
|
const len1 = WASM_VECTOR_LEN;
|
|
1296
|
-
const ret = wasm.
|
|
1324
|
+
const ret = wasm.mqttclient_publishQos2(this.__wbg_ptr, ptr0, len0, ptr1, len1, callback);
|
|
1297
1325
|
return ret;
|
|
1298
1326
|
}
|
|
1299
1327
|
/**
|
|
@@ -1301,15 +1329,16 @@ export class MqttClient {
|
|
|
1301
1329
|
* Returns an error if not connected or publish fails.
|
|
1302
1330
|
* @param {string} topic
|
|
1303
1331
|
* @param {Uint8Array} payload
|
|
1304
|
-
* @param {
|
|
1332
|
+
* @param {PublishOptions} options
|
|
1305
1333
|
* @returns {Promise<number>}
|
|
1306
1334
|
*/
|
|
1307
|
-
|
|
1335
|
+
publishWithOptions(topic, payload, options) {
|
|
1308
1336
|
const ptr0 = passStringToWasm0(topic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1309
1337
|
const len0 = WASM_VECTOR_LEN;
|
|
1310
1338
|
const ptr1 = passArray8ToWasm0(payload, wasm.__wbindgen_malloc);
|
|
1311
1339
|
const len1 = WASM_VECTOR_LEN;
|
|
1312
|
-
|
|
1340
|
+
_assertClass(options, PublishOptions);
|
|
1341
|
+
const ret = wasm.mqttclient_publishWithOptions(this.__wbg_ptr, ptr0, len0, ptr1, len1, options.__wbg_ptr);
|
|
1313
1342
|
return ret;
|
|
1314
1343
|
}
|
|
1315
1344
|
/**
|
|
@@ -1317,16 +1346,14 @@ export class MqttClient {
|
|
|
1317
1346
|
* Returns an error if not connected or publish fails.
|
|
1318
1347
|
* @param {string} topic
|
|
1319
1348
|
* @param {Uint8Array} payload
|
|
1320
|
-
* @param {PublishOptions} options
|
|
1321
1349
|
* @returns {Promise<void>}
|
|
1322
1350
|
*/
|
|
1323
|
-
|
|
1351
|
+
publish(topic, payload) {
|
|
1324
1352
|
const ptr0 = passStringToWasm0(topic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1325
1353
|
const len0 = WASM_VECTOR_LEN;
|
|
1326
1354
|
const ptr1 = passArray8ToWasm0(payload, wasm.__wbindgen_malloc);
|
|
1327
1355
|
const len1 = WASM_VECTOR_LEN;
|
|
1328
|
-
|
|
1329
|
-
const ret = wasm.mqttclient_publishWithOptions(this.__wbg_ptr, ptr0, len0, ptr1, len1, options.__wbg_ptr);
|
|
1356
|
+
const ret = wasm.mqttclient_publish(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
1330
1357
|
return ret;
|
|
1331
1358
|
}
|
|
1332
1359
|
/**
|
|
@@ -1353,12 +1380,13 @@ export class MqttClient {
|
|
|
1353
1380
|
* # Errors
|
|
1354
1381
|
* Returns an error if not connected or subscribe fails.
|
|
1355
1382
|
* @param {string} topic
|
|
1383
|
+
* @param {Function} callback
|
|
1356
1384
|
* @returns {Promise<number>}
|
|
1357
1385
|
*/
|
|
1358
|
-
|
|
1386
|
+
subscribeWithCallback(topic, callback) {
|
|
1359
1387
|
const ptr0 = passStringToWasm0(topic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1360
1388
|
const len0 = WASM_VECTOR_LEN;
|
|
1361
|
-
const ret = wasm.
|
|
1389
|
+
const ret = wasm.mqttclient_subscribeWithCallback(this.__wbg_ptr, ptr0, len0, callback);
|
|
1362
1390
|
return ret;
|
|
1363
1391
|
}
|
|
1364
1392
|
/**
|
|
@@ -1366,27 +1394,26 @@ export class MqttClient {
|
|
|
1366
1394
|
* Returns an error if not connected or subscribe fails.
|
|
1367
1395
|
* @param {string} topic
|
|
1368
1396
|
* @param {Function} callback
|
|
1397
|
+
* @param {SubscribeOptions} options
|
|
1369
1398
|
* @returns {Promise<number>}
|
|
1370
1399
|
*/
|
|
1371
|
-
|
|
1400
|
+
subscribeWithOptions(topic, callback, options) {
|
|
1372
1401
|
const ptr0 = passStringToWasm0(topic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1373
1402
|
const len0 = WASM_VECTOR_LEN;
|
|
1374
|
-
|
|
1403
|
+
_assertClass(options, SubscribeOptions);
|
|
1404
|
+
const ret = wasm.mqttclient_subscribeWithOptions(this.__wbg_ptr, ptr0, len0, callback, options.__wbg_ptr);
|
|
1375
1405
|
return ret;
|
|
1376
1406
|
}
|
|
1377
1407
|
/**
|
|
1378
1408
|
* # Errors
|
|
1379
1409
|
* Returns an error if not connected or subscribe fails.
|
|
1380
1410
|
* @param {string} topic
|
|
1381
|
-
* @param {Function} callback
|
|
1382
|
-
* @param {SubscribeOptions} options
|
|
1383
1411
|
* @returns {Promise<number>}
|
|
1384
1412
|
*/
|
|
1385
|
-
|
|
1413
|
+
subscribe(topic) {
|
|
1386
1414
|
const ptr0 = passStringToWasm0(topic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1387
1415
|
const len0 = WASM_VECTOR_LEN;
|
|
1388
|
-
|
|
1389
|
-
const ret = wasm.mqttclient_subscribeWithOptions(this.__wbg_ptr, ptr0, len0, callback, options.__wbg_ptr);
|
|
1416
|
+
const ret = wasm.mqttclient_subscribe(this.__wbg_ptr, ptr0, len0);
|
|
1390
1417
|
return ret;
|
|
1391
1418
|
}
|
|
1392
1419
|
/**
|
|
@@ -1433,10 +1460,10 @@ export class PublishOptions {
|
|
|
1433
1460
|
* @returns {string | undefined}
|
|
1434
1461
|
*/
|
|
1435
1462
|
get contentType() {
|
|
1436
|
-
const ret = wasm.
|
|
1463
|
+
const ret = wasm.publishoptions_content_type(this.__wbg_ptr);
|
|
1437
1464
|
let v1;
|
|
1438
1465
|
if (ret[0] !== 0) {
|
|
1439
|
-
v1 = getStringFromWasm0(ret[0], ret[1])
|
|
1466
|
+
v1 = getStringFromWasm0(ret[0], ret[1]);
|
|
1440
1467
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1441
1468
|
}
|
|
1442
1469
|
return v1;
|
|
@@ -1445,7 +1472,7 @@ export class PublishOptions {
|
|
|
1445
1472
|
* @returns {number | undefined}
|
|
1446
1473
|
*/
|
|
1447
1474
|
get messageExpiryInterval() {
|
|
1448
|
-
const ret = wasm.
|
|
1475
|
+
const ret = wasm.publishoptions_message_expiry_interval(this.__wbg_ptr);
|
|
1449
1476
|
return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
|
|
1450
1477
|
}
|
|
1451
1478
|
constructor() {
|
|
@@ -1458,7 +1485,7 @@ export class PublishOptions {
|
|
|
1458
1485
|
* @returns {boolean | undefined}
|
|
1459
1486
|
*/
|
|
1460
1487
|
get payloadFormatIndicator() {
|
|
1461
|
-
const ret = wasm.
|
|
1488
|
+
const ret = wasm.publishoptions_payload_format_indicator(this.__wbg_ptr);
|
|
1462
1489
|
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
1463
1490
|
}
|
|
1464
1491
|
/**
|
|
@@ -1472,10 +1499,10 @@ export class PublishOptions {
|
|
|
1472
1499
|
* @returns {string | undefined}
|
|
1473
1500
|
*/
|
|
1474
1501
|
get responseTopic() {
|
|
1475
|
-
const ret = wasm.
|
|
1502
|
+
const ret = wasm.publishoptions_response_topic(this.__wbg_ptr);
|
|
1476
1503
|
let v1;
|
|
1477
1504
|
if (ret[0] !== 0) {
|
|
1478
|
-
v1 = getStringFromWasm0(ret[0], ret[1])
|
|
1505
|
+
v1 = getStringFromWasm0(ret[0], ret[1]);
|
|
1479
1506
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1480
1507
|
}
|
|
1481
1508
|
return v1;
|
|
@@ -1493,7 +1520,7 @@ export class PublishOptions {
|
|
|
1493
1520
|
set contentType(value) {
|
|
1494
1521
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1495
1522
|
var len0 = WASM_VECTOR_LEN;
|
|
1496
|
-
wasm.
|
|
1523
|
+
wasm.publishoptions_set_content_type(this.__wbg_ptr, ptr0, len0);
|
|
1497
1524
|
}
|
|
1498
1525
|
/**
|
|
1499
1526
|
* @param {Uint8Array} value
|
|
@@ -1501,19 +1528,19 @@ export class PublishOptions {
|
|
|
1501
1528
|
set correlationData(value) {
|
|
1502
1529
|
const ptr0 = passArray8ToWasm0(value, wasm.__wbindgen_malloc);
|
|
1503
1530
|
const len0 = WASM_VECTOR_LEN;
|
|
1504
|
-
wasm.
|
|
1531
|
+
wasm.publishoptions_set_correlation_data(this.__wbg_ptr, ptr0, len0);
|
|
1505
1532
|
}
|
|
1506
1533
|
/**
|
|
1507
1534
|
* @param {number | null} [value]
|
|
1508
1535
|
*/
|
|
1509
1536
|
set messageExpiryInterval(value) {
|
|
1510
|
-
wasm.
|
|
1537
|
+
wasm.publishoptions_set_message_expiry_interval(this.__wbg_ptr, isLikeNone(value) ? Number.MAX_SAFE_INTEGER : (value) >>> 0);
|
|
1511
1538
|
}
|
|
1512
1539
|
/**
|
|
1513
1540
|
* @param {boolean | null} [value]
|
|
1514
1541
|
*/
|
|
1515
1542
|
set payloadFormatIndicator(value) {
|
|
1516
|
-
wasm.
|
|
1543
|
+
wasm.publishoptions_set_payload_format_indicator(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1517
1544
|
}
|
|
1518
1545
|
/**
|
|
1519
1546
|
* @param {number} value
|
|
@@ -1527,7 +1554,7 @@ export class PublishOptions {
|
|
|
1527
1554
|
set responseTopic(value) {
|
|
1528
1555
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1529
1556
|
var len0 = WASM_VECTOR_LEN;
|
|
1530
|
-
wasm.
|
|
1557
|
+
wasm.publishoptions_set_response_topic(this.__wbg_ptr, ptr0, len0);
|
|
1531
1558
|
}
|
|
1532
1559
|
/**
|
|
1533
1560
|
* @param {boolean} value
|
|
@@ -1539,13 +1566,13 @@ export class PublishOptions {
|
|
|
1539
1566
|
* @param {number | null} [value]
|
|
1540
1567
|
*/
|
|
1541
1568
|
set topicAlias(value) {
|
|
1542
|
-
wasm.
|
|
1569
|
+
wasm.publishoptions_set_topic_alias(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value);
|
|
1543
1570
|
}
|
|
1544
1571
|
/**
|
|
1545
1572
|
* @returns {number | undefined}
|
|
1546
1573
|
*/
|
|
1547
1574
|
get topicAlias() {
|
|
1548
|
-
const ret = wasm.
|
|
1575
|
+
const ret = wasm.publishoptions_topic_alias(this.__wbg_ptr);
|
|
1549
1576
|
return ret === 0xFFFFFF ? undefined : ret;
|
|
1550
1577
|
}
|
|
1551
1578
|
}
|
|
@@ -1572,7 +1599,7 @@ export class ReconnectOptions {
|
|
|
1572
1599
|
* @returns {number}
|
|
1573
1600
|
*/
|
|
1574
1601
|
get backoffFactor() {
|
|
1575
|
-
const ret = wasm.
|
|
1602
|
+
const ret = wasm.reconnectoptions_backoff_factor(this.__wbg_ptr);
|
|
1576
1603
|
return ret;
|
|
1577
1604
|
}
|
|
1578
1605
|
/**
|
|
@@ -1593,21 +1620,21 @@ export class ReconnectOptions {
|
|
|
1593
1620
|
* @returns {number}
|
|
1594
1621
|
*/
|
|
1595
1622
|
get initialDelayMs() {
|
|
1596
|
-
const ret = wasm.
|
|
1623
|
+
const ret = wasm.reconnectoptions_initial_delay_ms(this.__wbg_ptr);
|
|
1597
1624
|
return ret >>> 0;
|
|
1598
1625
|
}
|
|
1599
1626
|
/**
|
|
1600
1627
|
* @returns {number | undefined}
|
|
1601
1628
|
*/
|
|
1602
1629
|
get maxAttempts() {
|
|
1603
|
-
const ret = wasm.
|
|
1630
|
+
const ret = wasm.reconnectoptions_max_attempts(this.__wbg_ptr);
|
|
1604
1631
|
return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
|
|
1605
1632
|
}
|
|
1606
1633
|
/**
|
|
1607
1634
|
* @returns {number}
|
|
1608
1635
|
*/
|
|
1609
1636
|
get maxDelayMs() {
|
|
1610
|
-
const ret = wasm.
|
|
1637
|
+
const ret = wasm.reconnectoptions_max_delay_ms(this.__wbg_ptr);
|
|
1611
1638
|
return ret >>> 0;
|
|
1612
1639
|
}
|
|
1613
1640
|
constructor() {
|
|
@@ -1620,7 +1647,7 @@ export class ReconnectOptions {
|
|
|
1620
1647
|
* @param {number} value
|
|
1621
1648
|
*/
|
|
1622
1649
|
set backoffFactor(value) {
|
|
1623
|
-
wasm.
|
|
1650
|
+
wasm.reconnectoptions_set_backoff_factor(this.__wbg_ptr, value);
|
|
1624
1651
|
}
|
|
1625
1652
|
/**
|
|
1626
1653
|
* @param {boolean} value
|
|
@@ -1632,19 +1659,19 @@ export class ReconnectOptions {
|
|
|
1632
1659
|
* @param {number} value
|
|
1633
1660
|
*/
|
|
1634
1661
|
set initialDelayMs(value) {
|
|
1635
|
-
wasm.
|
|
1662
|
+
wasm.reconnectoptions_set_initial_delay_ms(this.__wbg_ptr, value);
|
|
1636
1663
|
}
|
|
1637
1664
|
/**
|
|
1638
1665
|
* @param {number | null} [value]
|
|
1639
1666
|
*/
|
|
1640
1667
|
set maxAttempts(value) {
|
|
1641
|
-
wasm.
|
|
1668
|
+
wasm.reconnectoptions_set_max_attempts(this.__wbg_ptr, isLikeNone(value) ? Number.MAX_SAFE_INTEGER : (value) >>> 0);
|
|
1642
1669
|
}
|
|
1643
1670
|
/**
|
|
1644
1671
|
* @param {number} value
|
|
1645
1672
|
*/
|
|
1646
1673
|
set maxDelayMs(value) {
|
|
1647
|
-
wasm.
|
|
1674
|
+
wasm.reconnectoptions_set_max_delay_ms(this.__wbg_ptr, value);
|
|
1648
1675
|
}
|
|
1649
1676
|
}
|
|
1650
1677
|
if (Symbol.dispose) ReconnectOptions.prototype[Symbol.dispose] = ReconnectOptions.prototype.free;
|
|
@@ -1760,6 +1787,26 @@ export class Store {
|
|
|
1760
1787
|
const ret = wasm.store_create(this.__wbg_ptr, ptr0, len0, ptr1, len1, data, ptr2, len2);
|
|
1761
1788
|
return ret;
|
|
1762
1789
|
}
|
|
1790
|
+
/**
|
|
1791
|
+
* Compare-and-set delete: remove the row only if its server version still
|
|
1792
|
+
* equals `expectedVersion`. Same semantics as `updateIf`.
|
|
1793
|
+
*
|
|
1794
|
+
* # Errors
|
|
1795
|
+
* Returns an error if the argument is malformed, there is no connected
|
|
1796
|
+
* remote, or the broker rejects the write (including version mismatch).
|
|
1797
|
+
* @param {string} entity
|
|
1798
|
+
* @param {string} id
|
|
1799
|
+
* @param {number} expected_version
|
|
1800
|
+
* @returns {Promise<void>}
|
|
1801
|
+
*/
|
|
1802
|
+
deleteIf(entity, id, expected_version) {
|
|
1803
|
+
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1804
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1805
|
+
const ptr1 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1806
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1807
|
+
const ret = wasm.store_deleteIf(this.__wbg_ptr, ptr0, len0, ptr1, len1, expected_version);
|
|
1808
|
+
return ret;
|
|
1809
|
+
}
|
|
1763
1810
|
/**
|
|
1764
1811
|
* Delete a row. No-op if absent.
|
|
1765
1812
|
*
|
|
@@ -1835,8 +1882,7 @@ export class Store {
|
|
|
1835
1882
|
return ret[0] >>> 0;
|
|
1836
1883
|
}
|
|
1837
1884
|
/**
|
|
1838
|
-
* Snapshot of
|
|
1839
|
-
* `getSnapshot`.
|
|
1885
|
+
* Snapshot of `entity` within `scopeId` as an object keyed by row id.
|
|
1840
1886
|
*
|
|
1841
1887
|
* # Errors
|
|
1842
1888
|
* Returns an error if the read fails.
|
|
@@ -1844,19 +1890,20 @@ export class Store {
|
|
|
1844
1890
|
* @param {string} scope_id
|
|
1845
1891
|
* @returns {any}
|
|
1846
1892
|
*/
|
|
1847
|
-
|
|
1893
|
+
getSnapshotAsMap(entity, scope_id) {
|
|
1848
1894
|
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1849
1895
|
const len0 = WASM_VECTOR_LEN;
|
|
1850
1896
|
const ptr1 = passStringToWasm0(scope_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1851
1897
|
const len1 = WASM_VECTOR_LEN;
|
|
1852
|
-
const ret = wasm.
|
|
1898
|
+
const ret = wasm.store_getSnapshotAsMap(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
1853
1899
|
if (ret[2]) {
|
|
1854
1900
|
throw takeFromExternrefTable0(ret[1]);
|
|
1855
1901
|
}
|
|
1856
1902
|
return takeFromExternrefTable0(ret[0]);
|
|
1857
1903
|
}
|
|
1858
1904
|
/**
|
|
1859
|
-
* Snapshot of `entity` within `scopeId
|
|
1905
|
+
* Snapshot of all rows for `entity` within `scopeId`. Equivalent to TS
|
|
1906
|
+
* `getSnapshot`.
|
|
1860
1907
|
*
|
|
1861
1908
|
* # Errors
|
|
1862
1909
|
* Returns an error if the read fails.
|
|
@@ -1864,12 +1911,12 @@ export class Store {
|
|
|
1864
1911
|
* @param {string} scope_id
|
|
1865
1912
|
* @returns {any}
|
|
1866
1913
|
*/
|
|
1867
|
-
|
|
1914
|
+
getSnapshot(entity, scope_id) {
|
|
1868
1915
|
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1869
1916
|
const len0 = WASM_VECTOR_LEN;
|
|
1870
1917
|
const ptr1 = passStringToWasm0(scope_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1871
1918
|
const len1 = WASM_VECTOR_LEN;
|
|
1872
|
-
const ret = wasm.
|
|
1919
|
+
const ret = wasm.store_getSnapshot(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
1873
1920
|
if (ret[2]) {
|
|
1874
1921
|
throw takeFromExternrefTable0(ret[1]);
|
|
1875
1922
|
}
|
|
@@ -1956,6 +2003,19 @@ export class Store {
|
|
|
1956
2003
|
}
|
|
1957
2004
|
return ret[0] !== 0;
|
|
1958
2005
|
}
|
|
2006
|
+
/**
|
|
2007
|
+
* List all root entities across scopes, optionally sorted (`[{ field,
|
|
2008
|
+
* direction }]`).
|
|
2009
|
+
*
|
|
2010
|
+
* # Errors
|
|
2011
|
+
* Returns an error if the read fails or `sort` is malformed.
|
|
2012
|
+
* @param {any} sort
|
|
2013
|
+
* @returns {Promise<any>}
|
|
2014
|
+
*/
|
|
2015
|
+
listRootEntities(sort) {
|
|
2016
|
+
const ret = wasm.store_listRootEntities(this.__wbg_ptr, sort);
|
|
2017
|
+
return ret;
|
|
2018
|
+
}
|
|
1959
2019
|
/**
|
|
1960
2020
|
* List rows of `entity`, optionally filtered/sorted. `filter` is
|
|
1961
2021
|
* `{ scopeId?, sort?: [{ field, direction }], projection?: [string] }`.
|
|
@@ -1972,19 +2032,6 @@ export class Store {
|
|
|
1972
2032
|
const ret = wasm.store_list(this.__wbg_ptr, ptr0, len0, filter);
|
|
1973
2033
|
return ret;
|
|
1974
2034
|
}
|
|
1975
|
-
/**
|
|
1976
|
-
* List all root entities across scopes, optionally sorted (`[{ field,
|
|
1977
|
-
* direction }]`).
|
|
1978
|
-
*
|
|
1979
|
-
* # Errors
|
|
1980
|
-
* Returns an error if the read fails or `sort` is malformed.
|
|
1981
|
-
* @param {any} sort
|
|
1982
|
-
* @returns {Promise<any>}
|
|
1983
|
-
*/
|
|
1984
|
-
listRootEntities(sort) {
|
|
1985
|
-
const ret = wasm.store_listRootEntities(this.__wbg_ptr, sort);
|
|
1986
|
-
return ret;
|
|
1987
|
-
}
|
|
1988
2035
|
/**
|
|
1989
2036
|
* Load a scope's rows into the in-memory cache from caller-supplied data,
|
|
1990
2037
|
* `{ entity: [records] }`, replacing any currently-loaded scope. Equivalent
|
|
@@ -2019,43 +2066,43 @@ export class Store {
|
|
|
2019
2066
|
return ret;
|
|
2020
2067
|
}
|
|
2021
2068
|
/**
|
|
2022
|
-
* Read a
|
|
2069
|
+
* Read a row straight from durable persistence, bypassing the in-memory
|
|
2070
|
+
* cache. Returns `null` if absent. Falls back to memory when the store has
|
|
2071
|
+
* no persistence configured.
|
|
2023
2072
|
*
|
|
2024
2073
|
* # Errors
|
|
2025
2074
|
* Returns an error if the read fails.
|
|
2026
2075
|
* @param {string} entity
|
|
2027
2076
|
* @param {string} id
|
|
2028
|
-
* @returns {any}
|
|
2077
|
+
* @returns {Promise<any>}
|
|
2029
2078
|
*/
|
|
2030
|
-
|
|
2079
|
+
readLocalState(entity, id) {
|
|
2031
2080
|
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2032
2081
|
const len0 = WASM_VECTOR_LEN;
|
|
2033
2082
|
const ptr1 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2034
2083
|
const len1 = WASM_VECTOR_LEN;
|
|
2035
|
-
const ret = wasm.
|
|
2036
|
-
|
|
2037
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
2038
|
-
}
|
|
2039
|
-
return takeFromExternrefTable0(ret[0]);
|
|
2084
|
+
const ret = wasm.store_readLocalState(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
2085
|
+
return ret;
|
|
2040
2086
|
}
|
|
2041
2087
|
/**
|
|
2042
|
-
* Read a row
|
|
2043
|
-
* cache. Returns `null` if absent. Falls back to memory when the store has
|
|
2044
|
-
* no persistence configured.
|
|
2088
|
+
* Read a single row from the in-memory cache, or `null` if absent.
|
|
2045
2089
|
*
|
|
2046
2090
|
* # Errors
|
|
2047
2091
|
* Returns an error if the read fails.
|
|
2048
2092
|
* @param {string} entity
|
|
2049
2093
|
* @param {string} id
|
|
2050
|
-
* @returns {
|
|
2094
|
+
* @returns {any}
|
|
2051
2095
|
*/
|
|
2052
|
-
|
|
2096
|
+
read(entity, id) {
|
|
2053
2097
|
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2054
2098
|
const len0 = WASM_VECTOR_LEN;
|
|
2055
2099
|
const ptr1 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2056
2100
|
const len1 = WASM_VECTOR_LEN;
|
|
2057
|
-
const ret = wasm.
|
|
2058
|
-
|
|
2101
|
+
const ret = wasm.store_read(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
2102
|
+
if (ret[2]) {
|
|
2103
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
2104
|
+
}
|
|
2105
|
+
return takeFromExternrefTable0(ret[0]);
|
|
2059
2106
|
}
|
|
2060
2107
|
/**
|
|
2061
2108
|
* `true` once [`Store::initialize`] has completed.
|
|
@@ -2224,24 +2271,26 @@ export class Store {
|
|
|
2224
2271
|
return takeFromExternrefTable0(ret[0]);
|
|
2225
2272
|
}
|
|
2226
2273
|
/**
|
|
2227
|
-
*
|
|
2274
|
+
* Compare-and-set update: apply `fields` only if the row's server version
|
|
2275
|
+
* still equals `expectedVersion` (from a prior row's `_version`). Returns
|
|
2276
|
+
* the new version. Requires a live remote; rejects with a
|
|
2277
|
+
* `preconditionFailed` error on a stale version.
|
|
2228
2278
|
*
|
|
2229
2279
|
* # Errors
|
|
2230
|
-
* Returns an error if the
|
|
2280
|
+
* Returns an error if the argument is malformed, there is no connected
|
|
2281
|
+
* remote, or the broker rejects the write (including version mismatch).
|
|
2231
2282
|
* @param {string} entity
|
|
2232
2283
|
* @param {string} id
|
|
2233
2284
|
* @param {any} fields
|
|
2234
|
-
* @param {
|
|
2235
|
-
* @returns {Promise<
|
|
2285
|
+
* @param {number} expected_version
|
|
2286
|
+
* @returns {Promise<number>}
|
|
2236
2287
|
*/
|
|
2237
|
-
|
|
2288
|
+
updateIf(entity, id, fields, expected_version) {
|
|
2238
2289
|
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2239
2290
|
const len0 = WASM_VECTOR_LEN;
|
|
2240
2291
|
const ptr1 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2241
2292
|
const len1 = WASM_VECTOR_LEN;
|
|
2242
|
-
|
|
2243
|
-
var len2 = WASM_VECTOR_LEN;
|
|
2244
|
-
const ret = wasm.store_update(this.__wbg_ptr, ptr0, len0, ptr1, len1, fields, ptr2, len2);
|
|
2293
|
+
const ret = wasm.store_updateIf(this.__wbg_ptr, ptr0, len0, ptr1, len1, fields, expected_version);
|
|
2245
2294
|
return ret;
|
|
2246
2295
|
}
|
|
2247
2296
|
/**
|
|
@@ -2262,6 +2311,27 @@ export class Store {
|
|
|
2262
2311
|
const ret = wasm.store_updateLocalState(this.__wbg_ptr, ptr0, len0, ptr1, len1, fields);
|
|
2263
2312
|
return ret;
|
|
2264
2313
|
}
|
|
2314
|
+
/**
|
|
2315
|
+
* Partial-update a row.
|
|
2316
|
+
*
|
|
2317
|
+
* # Errors
|
|
2318
|
+
* Returns an error if the write fails.
|
|
2319
|
+
* @param {string} entity
|
|
2320
|
+
* @param {string} id
|
|
2321
|
+
* @param {any} fields
|
|
2322
|
+
* @param {string | null} [tag]
|
|
2323
|
+
* @returns {Promise<void>}
|
|
2324
|
+
*/
|
|
2325
|
+
update(entity, id, fields, tag) {
|
|
2326
|
+
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2327
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2328
|
+
const ptr1 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2329
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2330
|
+
var ptr2 = isLikeNone(tag) ? 0 : passStringToWasm0(tag, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2331
|
+
var len2 = WASM_VECTOR_LEN;
|
|
2332
|
+
const ret = wasm.store_update(this.__wbg_ptr, ptr0, len0, ptr1, len1, fields, ptr2, len2);
|
|
2333
|
+
return ret;
|
|
2334
|
+
}
|
|
2265
2335
|
}
|
|
2266
2336
|
if (Symbol.dispose) Store.prototype[Symbol.dispose] = Store.prototype.free;
|
|
2267
2337
|
|
|
@@ -2286,7 +2356,7 @@ export class SubscribeOptions {
|
|
|
2286
2356
|
* @returns {boolean}
|
|
2287
2357
|
*/
|
|
2288
2358
|
get noLocal() {
|
|
2289
|
-
const ret = wasm.
|
|
2359
|
+
const ret = wasm.subscribeoptions_no_local(this.__wbg_ptr);
|
|
2290
2360
|
return ret !== 0;
|
|
2291
2361
|
}
|
|
2292
2362
|
/**
|
|
@@ -2300,21 +2370,21 @@ export class SubscribeOptions {
|
|
|
2300
2370
|
* @returns {boolean}
|
|
2301
2371
|
*/
|
|
2302
2372
|
get retainAsPublished() {
|
|
2303
|
-
const ret = wasm.
|
|
2373
|
+
const ret = wasm.subscribeoptions_retain_as_published(this.__wbg_ptr);
|
|
2304
2374
|
return ret !== 0;
|
|
2305
2375
|
}
|
|
2306
2376
|
/**
|
|
2307
2377
|
* @returns {number}
|
|
2308
2378
|
*/
|
|
2309
2379
|
get retainHandling() {
|
|
2310
|
-
const ret = wasm.
|
|
2380
|
+
const ret = wasm.subscribeoptions_retain_handling(this.__wbg_ptr);
|
|
2311
2381
|
return ret;
|
|
2312
2382
|
}
|
|
2313
2383
|
/**
|
|
2314
2384
|
* @param {boolean} value
|
|
2315
2385
|
*/
|
|
2316
2386
|
set noLocal(value) {
|
|
2317
|
-
wasm.
|
|
2387
|
+
wasm.subscribeoptions_set_no_local(this.__wbg_ptr, value);
|
|
2318
2388
|
}
|
|
2319
2389
|
/**
|
|
2320
2390
|
* @param {number} value
|
|
@@ -2326,25 +2396,25 @@ export class SubscribeOptions {
|
|
|
2326
2396
|
* @param {boolean} value
|
|
2327
2397
|
*/
|
|
2328
2398
|
set retainAsPublished(value) {
|
|
2329
|
-
wasm.
|
|
2399
|
+
wasm.subscribeoptions_set_retain_as_published(this.__wbg_ptr, value);
|
|
2330
2400
|
}
|
|
2331
2401
|
/**
|
|
2332
2402
|
* @param {number} value
|
|
2333
2403
|
*/
|
|
2334
2404
|
set retainHandling(value) {
|
|
2335
|
-
wasm.
|
|
2405
|
+
wasm.subscribeoptions_set_retain_handling(this.__wbg_ptr, value);
|
|
2336
2406
|
}
|
|
2337
2407
|
/**
|
|
2338
2408
|
* @param {number | null} [value]
|
|
2339
2409
|
*/
|
|
2340
2410
|
set subscriptionIdentifier(value) {
|
|
2341
|
-
wasm.
|
|
2411
|
+
wasm.subscribeoptions_set_subscription_identifier(this.__wbg_ptr, isLikeNone(value) ? Number.MAX_SAFE_INTEGER : (value) >>> 0);
|
|
2342
2412
|
}
|
|
2343
2413
|
/**
|
|
2344
2414
|
* @returns {number | undefined}
|
|
2345
2415
|
*/
|
|
2346
2416
|
get subscriptionIdentifier() {
|
|
2347
|
-
const ret = wasm.
|
|
2417
|
+
const ret = wasm.subscribeoptions_subscription_identifier(this.__wbg_ptr);
|
|
2348
2418
|
return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
|
|
2349
2419
|
}
|
|
2350
2420
|
}
|
|
@@ -2365,10 +2435,10 @@ export class WillMessage {
|
|
|
2365
2435
|
* @returns {string | undefined}
|
|
2366
2436
|
*/
|
|
2367
2437
|
get contentType() {
|
|
2368
|
-
const ret = wasm.
|
|
2438
|
+
const ret = wasm.willmessage_content_type(this.__wbg_ptr);
|
|
2369
2439
|
let v1;
|
|
2370
2440
|
if (ret[0] !== 0) {
|
|
2371
|
-
v1 = getStringFromWasm0(ret[0], ret[1])
|
|
2441
|
+
v1 = getStringFromWasm0(ret[0], ret[1]);
|
|
2372
2442
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2373
2443
|
}
|
|
2374
2444
|
return v1;
|
|
@@ -2377,7 +2447,7 @@ export class WillMessage {
|
|
|
2377
2447
|
* @returns {number | undefined}
|
|
2378
2448
|
*/
|
|
2379
2449
|
get messageExpiryInterval() {
|
|
2380
|
-
const ret = wasm.
|
|
2450
|
+
const ret = wasm.willmessage_message_expiry_interval(this.__wbg_ptr);
|
|
2381
2451
|
return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
|
|
2382
2452
|
}
|
|
2383
2453
|
/**
|
|
@@ -2405,10 +2475,10 @@ export class WillMessage {
|
|
|
2405
2475
|
* @returns {string | undefined}
|
|
2406
2476
|
*/
|
|
2407
2477
|
get responseTopic() {
|
|
2408
|
-
const ret = wasm.
|
|
2478
|
+
const ret = wasm.willmessage_response_topic(this.__wbg_ptr);
|
|
2409
2479
|
let v1;
|
|
2410
2480
|
if (ret[0] !== 0) {
|
|
2411
|
-
v1 = getStringFromWasm0(ret[0], ret[1])
|
|
2481
|
+
v1 = getStringFromWasm0(ret[0], ret[1]);
|
|
2412
2482
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2413
2483
|
}
|
|
2414
2484
|
return v1;
|
|
@@ -2426,13 +2496,13 @@ export class WillMessage {
|
|
|
2426
2496
|
set contentType(value) {
|
|
2427
2497
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2428
2498
|
var len0 = WASM_VECTOR_LEN;
|
|
2429
|
-
wasm.
|
|
2499
|
+
wasm.willmessage_set_content_type(this.__wbg_ptr, ptr0, len0);
|
|
2430
2500
|
}
|
|
2431
2501
|
/**
|
|
2432
2502
|
* @param {number | null} [value]
|
|
2433
2503
|
*/
|
|
2434
2504
|
set messageExpiryInterval(value) {
|
|
2435
|
-
wasm.
|
|
2505
|
+
wasm.willmessage_set_message_expiry_interval(this.__wbg_ptr, isLikeNone(value) ? Number.MAX_SAFE_INTEGER : (value) >>> 0);
|
|
2436
2506
|
}
|
|
2437
2507
|
/**
|
|
2438
2508
|
* @param {number} value
|
|
@@ -2446,7 +2516,7 @@ export class WillMessage {
|
|
|
2446
2516
|
set responseTopic(value) {
|
|
2447
2517
|
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2448
2518
|
var len0 = WASM_VECTOR_LEN;
|
|
2449
|
-
wasm.
|
|
2519
|
+
wasm.willmessage_set_response_topic(this.__wbg_ptr, ptr0, len0);
|
|
2450
2520
|
}
|
|
2451
2521
|
/**
|
|
2452
2522
|
* @param {boolean} value
|
|
@@ -2466,7 +2536,7 @@ export class WillMessage {
|
|
|
2466
2536
|
* @param {number | null} [value]
|
|
2467
2537
|
*/
|
|
2468
2538
|
set willDelayInterval(value) {
|
|
2469
|
-
wasm.
|
|
2539
|
+
wasm.willmessage_set_will_delay_interval(this.__wbg_ptr, isLikeNone(value) ? Number.MAX_SAFE_INTEGER : (value) >>> 0);
|
|
2470
2540
|
}
|
|
2471
2541
|
/**
|
|
2472
2542
|
* @returns {string}
|
|
@@ -2487,7 +2557,7 @@ export class WillMessage {
|
|
|
2487
2557
|
* @returns {number | undefined}
|
|
2488
2558
|
*/
|
|
2489
2559
|
get willDelayInterval() {
|
|
2490
|
-
const ret = wasm.
|
|
2560
|
+
const ret = wasm.willmessage_will_delay_interval(this.__wbg_ptr);
|
|
2491
2561
|
return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
|
|
2492
2562
|
}
|
|
2493
2563
|
}
|
|
@@ -2533,11 +2603,11 @@ export function createStore(config, options) {
|
|
|
2533
2603
|
export function init() {
|
|
2534
2604
|
wasm.init();
|
|
2535
2605
|
}
|
|
2536
|
-
export function
|
|
2606
|
+
export function __wbg_Error_30c8987f7c2ed4e2(arg0, arg1) {
|
|
2537
2607
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
2538
2608
|
return ret;
|
|
2539
2609
|
}
|
|
2540
|
-
export function
|
|
2610
|
+
export function __wbg_Number_14af1003b8dd5ead(arg0) {
|
|
2541
2611
|
const ret = Number(arg0);
|
|
2542
2612
|
return ret;
|
|
2543
2613
|
}
|
|
@@ -2548,64 +2618,64 @@ export function __wbg_String_8564e559799eccda(arg0, arg1) {
|
|
|
2548
2618
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2549
2619
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2550
2620
|
}
|
|
2551
|
-
export function
|
|
2621
|
+
export function __wbg___wbindgen_bigint_get_as_i64_a2383202b9353e4c(arg0, arg1) {
|
|
2552
2622
|
const v = arg1;
|
|
2553
2623
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
2554
2624
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
2555
2625
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
2556
2626
|
}
|
|
2557
|
-
export function
|
|
2627
|
+
export function __wbg___wbindgen_boolean_get_5b446f51afd21013(arg0) {
|
|
2558
2628
|
const v = arg0;
|
|
2559
2629
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
2560
2630
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
2561
2631
|
}
|
|
2562
|
-
export function
|
|
2632
|
+
export function __wbg___wbindgen_debug_string_4687d8d8c2017d52(arg0, arg1) {
|
|
2563
2633
|
const ret = debugString(arg1);
|
|
2564
2634
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2565
2635
|
const len1 = WASM_VECTOR_LEN;
|
|
2566
2636
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2567
2637
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2568
2638
|
}
|
|
2569
|
-
export function
|
|
2639
|
+
export function __wbg___wbindgen_in_92f62ee1427d9e49(arg0, arg1) {
|
|
2570
2640
|
const ret = arg0 in arg1;
|
|
2571
2641
|
return ret;
|
|
2572
2642
|
}
|
|
2573
|
-
export function
|
|
2643
|
+
export function __wbg___wbindgen_is_bigint_b123553bed3bb382(arg0) {
|
|
2574
2644
|
const ret = typeof(arg0) === 'bigint';
|
|
2575
2645
|
return ret;
|
|
2576
2646
|
}
|
|
2577
|
-
export function
|
|
2647
|
+
export function __wbg___wbindgen_is_function_1f9d30630b8b1d3d(arg0) {
|
|
2578
2648
|
const ret = typeof(arg0) === 'function';
|
|
2579
2649
|
return ret;
|
|
2580
2650
|
}
|
|
2581
|
-
export function
|
|
2651
|
+
export function __wbg___wbindgen_is_null_e343b7d08827ba72(arg0) {
|
|
2582
2652
|
const ret = arg0 === null;
|
|
2583
2653
|
return ret;
|
|
2584
2654
|
}
|
|
2585
|
-
export function
|
|
2655
|
+
export function __wbg___wbindgen_is_object_3c45d4f2dde4e749(arg0) {
|
|
2586
2656
|
const val = arg0;
|
|
2587
2657
|
const ret = typeof(val) === 'object' && val !== null;
|
|
2588
2658
|
return ret;
|
|
2589
2659
|
}
|
|
2590
|
-
export function
|
|
2660
|
+
export function __wbg___wbindgen_is_undefined_8865fb403f8fe9d8(arg0) {
|
|
2591
2661
|
const ret = arg0 === undefined;
|
|
2592
2662
|
return ret;
|
|
2593
2663
|
}
|
|
2594
|
-
export function
|
|
2664
|
+
export function __wbg___wbindgen_jsval_eq_02babf21faa37971(arg0, arg1) {
|
|
2595
2665
|
const ret = arg0 === arg1;
|
|
2596
2666
|
return ret;
|
|
2597
2667
|
}
|
|
2598
|
-
export function
|
|
2668
|
+
export function __wbg___wbindgen_jsval_loose_eq_677f21e468d6b461(arg0, arg1) {
|
|
2599
2669
|
const ret = arg0 == arg1;
|
|
2600
2670
|
return ret;
|
|
2601
2671
|
}
|
|
2602
|
-
export function
|
|
2672
|
+
export function __wbg___wbindgen_number_get_2e0e7dee9f701a71(arg0, arg1) {
|
|
2603
2673
|
const obj = arg1;
|
|
2604
2674
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
2605
2675
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
2606
2676
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
2607
2677
|
}
|
|
2608
|
-
export function
|
|
2678
|
+
export function __wbg___wbindgen_string_get_0380ccaa2f57f0d9(arg0, arg1) {
|
|
2609
2679
|
const obj = arg1;
|
|
2610
2680
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2611
2681
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -2613,70 +2683,70 @@ export function __wbg___wbindgen_string_get_b0ca35b86a603356(arg0, arg1) {
|
|
|
2613
2683
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2614
2684
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2615
2685
|
}
|
|
2616
|
-
export function
|
|
2686
|
+
export function __wbg___wbindgen_throw_41e9ee4f547fc59a(arg0, arg1) {
|
|
2617
2687
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
2618
2688
|
}
|
|
2619
|
-
export function
|
|
2689
|
+
export function __wbg__wbg_cb_unref_dcc1a90847f04c41(arg0) {
|
|
2620
2690
|
arg0._wbg_cb_unref();
|
|
2621
2691
|
}
|
|
2622
|
-
export function
|
|
2692
|
+
export function __wbg_abort_5b288d575f2b02d1() { return handleError(function (arg0) {
|
|
2623
2693
|
arg0.abort();
|
|
2624
2694
|
}, arguments); }
|
|
2625
|
-
export function
|
|
2626
|
-
arg0.addEventListener(getStringFromWasm0(arg1, arg2), arg3, arg4);
|
|
2627
|
-
}, arguments); }
|
|
2628
|
-
export function __wbg_addEventListener_d85450ee1320c989() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2695
|
+
export function __wbg_addEventListener_4d0db17c671ea324() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2629
2696
|
arg0.addEventListener(getStringFromWasm0(arg1, arg2), arg3);
|
|
2630
2697
|
}, arguments); }
|
|
2631
|
-
export function
|
|
2698
|
+
export function __wbg_addEventListener_8d3235978b9c69a8() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2699
|
+
arg0.addEventListener(getStringFromWasm0(arg1, arg2), arg3, arg4);
|
|
2700
|
+
}, arguments); }
|
|
2701
|
+
export function __wbg_bound_28d4d4981b7923a4() { return handleError(function (arg0, arg1) {
|
|
2632
2702
|
const ret = IDBKeyRange.bound(arg0, arg1);
|
|
2633
2703
|
return ret;
|
|
2634
2704
|
}, arguments); }
|
|
2635
|
-
export function
|
|
2705
|
+
export function __wbg_buffer_56ec2905a66f58b9(arg0) {
|
|
2636
2706
|
const ret = arg0.buffer;
|
|
2637
2707
|
return ret;
|
|
2638
2708
|
}
|
|
2639
|
-
export function
|
|
2640
|
-
const ret = arg0.call(arg1, arg2, arg3
|
|
2709
|
+
export function __wbg_call_1875a20c43a36133() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2710
|
+
const ret = arg0.call(arg1, arg2, arg3);
|
|
2641
2711
|
return ret;
|
|
2642
2712
|
}, arguments); }
|
|
2643
|
-
export function
|
|
2644
|
-
const ret = arg0.call(arg1);
|
|
2713
|
+
export function __wbg_call_187d372bd5fdd4aa() { return handleError(function (arg0, arg1, arg2) {
|
|
2714
|
+
const ret = arg0.call(arg1, arg2);
|
|
2645
2715
|
return ret;
|
|
2646
2716
|
}, arguments); }
|
|
2647
|
-
export function
|
|
2648
|
-
const ret = arg0.call(arg1
|
|
2717
|
+
export function __wbg_call_6137034ef55c9d0f() { return handleError(function (arg0, arg1) {
|
|
2718
|
+
const ret = arg0.call(arg1);
|
|
2649
2719
|
return ret;
|
|
2650
2720
|
}, arguments); }
|
|
2651
|
-
export function
|
|
2652
|
-
const ret = arg0.call(arg1, arg2, arg3);
|
|
2721
|
+
export function __wbg_call_939a2607c4484b0b() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2722
|
+
const ret = arg0.call(arg1, arg2, arg3, arg4);
|
|
2653
2723
|
return ret;
|
|
2654
2724
|
}, arguments); }
|
|
2655
2725
|
export function __wbg_clearTimeout_3629d6209dfcc46e(arg0) {
|
|
2656
2726
|
const ret = clearTimeout(arg0);
|
|
2657
2727
|
return ret;
|
|
2658
2728
|
}
|
|
2659
|
-
export function
|
|
2729
|
+
export function __wbg_close_3dbb67f6997e08f5(arg0) {
|
|
2660
2730
|
arg0.close();
|
|
2661
2731
|
}
|
|
2662
|
-
export function
|
|
2732
|
+
export function __wbg_close_910d189411ba5062(arg0) {
|
|
2663
2733
|
arg0.close();
|
|
2664
2734
|
}
|
|
2665
|
-
export function
|
|
2735
|
+
export function __wbg_close_d3ed56b5763be5ae() { return handleError(function (arg0) {
|
|
2666
2736
|
arg0.close();
|
|
2667
2737
|
}, arguments); }
|
|
2668
|
-
export function
|
|
2738
|
+
export function __wbg_contains_4222f17acc5763a3(arg0, arg1, arg2) {
|
|
2669
2739
|
const ret = arg0.contains(getStringFromWasm0(arg1, arg2));
|
|
2670
2740
|
return ret;
|
|
2671
2741
|
}
|
|
2672
|
-
export function
|
|
2742
|
+
export function __wbg_continue_f83efa8d7e649e16() { return handleError(function (arg0) {
|
|
2673
2743
|
arg0.continue();
|
|
2674
2744
|
}, arguments); }
|
|
2675
|
-
export function
|
|
2745
|
+
export function __wbg_createObjectStore_04975f5b5e182bfb() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2676
2746
|
const ret = arg0.createObjectStore(getStringFromWasm0(arg1, arg2), arg3);
|
|
2677
2747
|
return ret;
|
|
2678
2748
|
}, arguments); }
|
|
2679
|
-
export function
|
|
2749
|
+
export function __wbg_crypto_d3d085052e9d631f() { return handleError(function (arg0) {
|
|
2680
2750
|
const ret = arg0.crypto;
|
|
2681
2751
|
return ret;
|
|
2682
2752
|
}, arguments); }
|
|
@@ -2684,7 +2754,7 @@ export function __wbg_cursor_new(arg0) {
|
|
|
2684
2754
|
const ret = Cursor.__wrap(arg0);
|
|
2685
2755
|
return ret;
|
|
2686
2756
|
}
|
|
2687
|
-
export function
|
|
2757
|
+
export function __wbg_data_522f7abc70721269(arg0) {
|
|
2688
2758
|
const ret = arg0.data;
|
|
2689
2759
|
return ret;
|
|
2690
2760
|
}
|
|
@@ -2692,34 +2762,31 @@ export function __wbg_database_new(arg0) {
|
|
|
2692
2762
|
const ret = Database.__wrap(arg0);
|
|
2693
2763
|
return ret;
|
|
2694
2764
|
}
|
|
2695
|
-
export function
|
|
2765
|
+
export function __wbg_decrypt_0e9566ce8284c64c() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2696
2766
|
const ret = arg0.decrypt(arg1, arg2, getArrayU8FromWasm0(arg3, arg4));
|
|
2697
2767
|
return ret;
|
|
2698
2768
|
}, arguments); }
|
|
2699
|
-
export function
|
|
2769
|
+
export function __wbg_delete_efcc1a7f91e815b8() { return handleError(function (arg0, arg1) {
|
|
2700
2770
|
const ret = arg0.delete(arg1);
|
|
2701
2771
|
return ret;
|
|
2702
2772
|
}, arguments); }
|
|
2703
|
-
export function
|
|
2773
|
+
export function __wbg_deriveKey_758cf0c078e2740c() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
2704
2774
|
const ret = arg0.deriveKey(arg1, arg2, arg3, arg4 !== 0, arg5);
|
|
2705
2775
|
return ret;
|
|
2706
2776
|
}, arguments); }
|
|
2707
|
-
export function
|
|
2777
|
+
export function __wbg_done_b41a1d26cdb37fb6(arg0) {
|
|
2708
2778
|
const ret = arg0.done;
|
|
2709
2779
|
return ret;
|
|
2710
2780
|
}
|
|
2711
|
-
export function
|
|
2781
|
+
export function __wbg_encrypt_59d97b75fa4a14ef() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2712
2782
|
const ret = arg0.encrypt(arg1, arg2, getArrayU8FromWasm0(arg3, arg4));
|
|
2713
2783
|
return ret;
|
|
2714
2784
|
}, arguments); }
|
|
2715
|
-
export function
|
|
2785
|
+
export function __wbg_entries_fb6397112b1de25f(arg0) {
|
|
2716
2786
|
const ret = Object.entries(arg0);
|
|
2717
2787
|
return ret;
|
|
2718
2788
|
}
|
|
2719
|
-
export function
|
|
2720
|
-
console.error(arg0);
|
|
2721
|
-
}
|
|
2722
|
-
export function __wbg_error_a6fa202b58aa1cd3(arg0, arg1) {
|
|
2789
|
+
export function __wbg_error_757e9472f8410341(arg0, arg1) {
|
|
2723
2790
|
let deferred0_0;
|
|
2724
2791
|
let deferred0_1;
|
|
2725
2792
|
try {
|
|
@@ -2730,34 +2797,37 @@ export function __wbg_error_a6fa202b58aa1cd3(arg0, arg1) {
|
|
|
2730
2797
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2731
2798
|
}
|
|
2732
2799
|
}
|
|
2733
|
-
export function
|
|
2800
|
+
export function __wbg_from_296ca31f8d0f1c52(arg0) {
|
|
2734
2801
|
const ret = Array.from(arg0);
|
|
2735
2802
|
return ret;
|
|
2736
2803
|
}
|
|
2737
|
-
export function
|
|
2738
|
-
|
|
2739
|
-
return ret;
|
|
2804
|
+
export function __wbg_getRandomValues_436a51d0629d84e1() { return handleError(function (arg0, arg1) {
|
|
2805
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
2740
2806
|
}, arguments); }
|
|
2741
|
-
export function
|
|
2807
|
+
export function __wbg_getRandomValues_973dabfb0ad1769f() { return handleError(function (arg0, arg1) {
|
|
2742
2808
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
2743
2809
|
}, arguments); }
|
|
2744
|
-
export function
|
|
2745
|
-
const ret = arg0
|
|
2810
|
+
export function __wbg_getRandomValues_d6af6b966cb9aefc() { return handleError(function (arg0, arg1, arg2) {
|
|
2811
|
+
const ret = arg0.getRandomValues(getArrayU8FromWasm0(arg1, arg2));
|
|
2746
2812
|
return ret;
|
|
2747
|
-
}
|
|
2748
|
-
export function
|
|
2813
|
+
}, arguments); }
|
|
2814
|
+
export function __wbg_get_31af05bd4842a84f() { return handleError(function (arg0, arg1) {
|
|
2749
2815
|
const ret = Reflect.get(arg0, arg1);
|
|
2750
2816
|
return ret;
|
|
2751
2817
|
}, arguments); }
|
|
2752
|
-
export function
|
|
2818
|
+
export function __wbg_get_658f6698067d9515() { return handleError(function (arg0, arg1) {
|
|
2753
2819
|
const ret = Reflect.get(arg0, arg1);
|
|
2754
2820
|
return ret;
|
|
2755
2821
|
}, arguments); }
|
|
2756
|
-
export function
|
|
2822
|
+
export function __wbg_get_6c896e0571ddae51(arg0, arg1) {
|
|
2823
|
+
const ret = arg0[arg1 >>> 0];
|
|
2824
|
+
return ret;
|
|
2825
|
+
}
|
|
2826
|
+
export function __wbg_get_e06b8725897cb193() { return handleError(function (arg0, arg1) {
|
|
2757
2827
|
const ret = arg0.get(arg1);
|
|
2758
2828
|
return ret;
|
|
2759
2829
|
}, arguments); }
|
|
2760
|
-
export function
|
|
2830
|
+
export function __wbg_get_unchecked_288889d017702237(arg0, arg1) {
|
|
2761
2831
|
const ret = arg0[arg1 >>> 0];
|
|
2762
2832
|
return ret;
|
|
2763
2833
|
}
|
|
@@ -2765,15 +2835,15 @@ export function __wbg_get_with_ref_key_6412cf3094599694(arg0, arg1) {
|
|
|
2765
2835
|
const ret = arg0[arg1];
|
|
2766
2836
|
return ret;
|
|
2767
2837
|
}
|
|
2768
|
-
export function
|
|
2838
|
+
export function __wbg_importKey_5955a809402df9c3() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
2769
2839
|
const ret = arg0.importKey(getStringFromWasm0(arg1, arg2), arg3, getStringFromWasm0(arg4, arg5), arg6 !== 0, arg7);
|
|
2770
2840
|
return ret;
|
|
2771
2841
|
}, arguments); }
|
|
2772
|
-
export function
|
|
2842
|
+
export function __wbg_indexedDB_53d75531b7daa0cd() { return handleError(function (arg0) {
|
|
2773
2843
|
const ret = arg0.indexedDB;
|
|
2774
2844
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2775
2845
|
}, arguments); }
|
|
2776
|
-
export function
|
|
2846
|
+
export function __wbg_instanceof_ArrayBuffer_a99f175873e5d9b8(arg0) {
|
|
2777
2847
|
let result;
|
|
2778
2848
|
try {
|
|
2779
2849
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -2783,7 +2853,7 @@ export function __wbg_instanceof_ArrayBuffer_4480b9e0068a8adb(arg0) {
|
|
|
2783
2853
|
const ret = result;
|
|
2784
2854
|
return ret;
|
|
2785
2855
|
}
|
|
2786
|
-
export function
|
|
2856
|
+
export function __wbg_instanceof_Map_b2611749102d7ba3(arg0) {
|
|
2787
2857
|
let result;
|
|
2788
2858
|
try {
|
|
2789
2859
|
result = arg0 instanceof Map;
|
|
@@ -2793,7 +2863,7 @@ export function __wbg_instanceof_Map_e5b5e3db98422fcc(arg0) {
|
|
|
2793
2863
|
const ret = result;
|
|
2794
2864
|
return ret;
|
|
2795
2865
|
}
|
|
2796
|
-
export function
|
|
2866
|
+
export function __wbg_instanceof_Uint8Array_828cef2aaacafc31(arg0) {
|
|
2797
2867
|
let result;
|
|
2798
2868
|
try {
|
|
2799
2869
|
result = arg0 instanceof Uint8Array;
|
|
@@ -2803,7 +2873,7 @@ export function __wbg_instanceof_Uint8Array_309b927aaf7a3fc7(arg0) {
|
|
|
2803
2873
|
const ret = result;
|
|
2804
2874
|
return ret;
|
|
2805
2875
|
}
|
|
2806
|
-
export function
|
|
2876
|
+
export function __wbg_instanceof_Window_82d71df4eddf88bc(arg0) {
|
|
2807
2877
|
let result;
|
|
2808
2878
|
try {
|
|
2809
2879
|
result = arg0 instanceof Window;
|
|
@@ -2813,61 +2883,58 @@ export function __wbg_instanceof_Window_05ba1ee4f6781663(arg0) {
|
|
|
2813
2883
|
const ret = result;
|
|
2814
2884
|
return ret;
|
|
2815
2885
|
}
|
|
2816
|
-
export function
|
|
2886
|
+
export function __wbg_isArray_e15a2ff68ffdbef2(arg0) {
|
|
2817
2887
|
const ret = Array.isArray(arg0);
|
|
2818
2888
|
return ret;
|
|
2819
2889
|
}
|
|
2820
|
-
export function
|
|
2890
|
+
export function __wbg_isSafeInteger_717808ad6a54bd9e(arg0) {
|
|
2821
2891
|
const ret = Number.isSafeInteger(arg0);
|
|
2822
2892
|
return ret;
|
|
2823
2893
|
}
|
|
2824
|
-
export function
|
|
2894
|
+
export function __wbg_iterator_e3c31c892080e444() {
|
|
2825
2895
|
const ret = Symbol.iterator;
|
|
2826
2896
|
return ret;
|
|
2827
2897
|
}
|
|
2828
|
-
export function
|
|
2898
|
+
export function __wbg_key_46ce184affdc8d18() { return handleError(function (arg0) {
|
|
2829
2899
|
const ret = arg0.key;
|
|
2830
2900
|
return ret;
|
|
2831
2901
|
}, arguments); }
|
|
2832
|
-
export function
|
|
2902
|
+
export function __wbg_length_7f3c00c40364105e(arg0) {
|
|
2833
2903
|
const ret = arg0.length;
|
|
2834
2904
|
return ret;
|
|
2835
2905
|
}
|
|
2836
|
-
export function
|
|
2906
|
+
export function __wbg_length_d4bdea10311bd9cf(arg0) {
|
|
2837
2907
|
const ret = arg0.length;
|
|
2838
2908
|
return ret;
|
|
2839
2909
|
}
|
|
2840
|
-
export function __wbg_log_d267660666346fb3(arg0) {
|
|
2841
|
-
console.log(arg0);
|
|
2842
|
-
}
|
|
2843
2910
|
export function __wbg_messageproperties_new(arg0) {
|
|
2844
2911
|
const ret = MessageProperties.__wrap(arg0);
|
|
2845
2912
|
return ret;
|
|
2846
2913
|
}
|
|
2847
|
-
export function
|
|
2914
|
+
export function __wbg_navigator_2156486643462a87(arg0) {
|
|
2848
2915
|
const ret = arg0.navigator;
|
|
2849
2916
|
return ret;
|
|
2850
2917
|
}
|
|
2918
|
+
export function __wbg_new_1dbf7428bba60a42(arg0) {
|
|
2919
|
+
const ret = new Uint8Array(arg0);
|
|
2920
|
+
return ret;
|
|
2921
|
+
}
|
|
2851
2922
|
export function __wbg_new_227d7c05414eb861() {
|
|
2852
2923
|
const ret = new Error();
|
|
2853
2924
|
return ret;
|
|
2854
2925
|
}
|
|
2855
|
-
export function
|
|
2856
|
-
const ret = new
|
|
2857
|
-
return ret;
|
|
2858
|
-
}, arguments); }
|
|
2859
|
-
export function __wbg_new_32b398fb48b6d94a() {
|
|
2860
|
-
const ret = new Array();
|
|
2926
|
+
export function __wbg_new_343a093a3c2ffb4e(arg0, arg1) {
|
|
2927
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2861
2928
|
return ret;
|
|
2862
2929
|
}
|
|
2863
|
-
export function
|
|
2930
|
+
export function __wbg_new_5502aad30c185fc8(arg0, arg1) {
|
|
2864
2931
|
try {
|
|
2865
2932
|
var state0 = {a: arg0, b: arg1};
|
|
2866
2933
|
var cb0 = (arg0, arg1) => {
|
|
2867
2934
|
const a = state0.a;
|
|
2868
2935
|
state0.a = 0;
|
|
2869
2936
|
try {
|
|
2870
|
-
return
|
|
2937
|
+
return wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___js_sys_904a669457b72f9c___Function_fn_wasm_bindgen_789e7c43d3c051be___JsValue_____wasm_bindgen_789e7c43d3c051be___sys__Undefined___js_sys_904a669457b72f9c___Function_fn_wasm_bindgen_789e7c43d3c051be___JsValue_____wasm_bindgen_789e7c43d3c051be___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
2871
2938
|
} finally {
|
|
2872
2939
|
state0.a = a;
|
|
2873
2940
|
}
|
|
@@ -2878,34 +2945,34 @@ export function __wbg_new_aec3e25493d729fe(arg0, arg1) {
|
|
|
2878
2945
|
state0.a = 0;
|
|
2879
2946
|
}
|
|
2880
2947
|
}
|
|
2881
|
-
export function
|
|
2882
|
-
const ret = new
|
|
2948
|
+
export function __wbg_new_617a8cdb8bb1130e() {
|
|
2949
|
+
const ret = new Object();
|
|
2883
2950
|
return ret;
|
|
2884
2951
|
}
|
|
2885
|
-
export function
|
|
2886
|
-
const ret = new
|
|
2952
|
+
export function __wbg_new_abaf2d49bbf44a41() { return handleError(function (arg0, arg1) {
|
|
2953
|
+
const ret = new BroadcastChannel(getStringFromWasm0(arg0, arg1));
|
|
2887
2954
|
return ret;
|
|
2888
|
-
}
|
|
2889
|
-
export function
|
|
2890
|
-
const ret = new
|
|
2955
|
+
}, arguments); }
|
|
2956
|
+
export function __wbg_new_ee2291f50781bf1d() {
|
|
2957
|
+
const ret = new Array();
|
|
2891
2958
|
return ret;
|
|
2892
2959
|
}
|
|
2893
|
-
export function
|
|
2960
|
+
export function __wbg_new_from_slice_9a868026ffa4208a(arg0, arg1) {
|
|
2894
2961
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
2895
2962
|
return ret;
|
|
2896
2963
|
}
|
|
2897
|
-
export function
|
|
2964
|
+
export function __wbg_new_no_args_549db978c37d28cc(arg0, arg1) {
|
|
2898
2965
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
2899
2966
|
return ret;
|
|
2900
2967
|
}
|
|
2901
|
-
export function
|
|
2968
|
+
export function __wbg_new_typed_b01cb72a8af741a3(arg0, arg1) {
|
|
2902
2969
|
try {
|
|
2903
2970
|
var state0 = {a: arg0, b: arg1};
|
|
2904
2971
|
var cb0 = (arg0, arg1) => {
|
|
2905
2972
|
const a = state0.a;
|
|
2906
2973
|
state0.a = 0;
|
|
2907
2974
|
try {
|
|
2908
|
-
return
|
|
2975
|
+
return wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___js_sys_904a669457b72f9c___Function_fn_wasm_bindgen_789e7c43d3c051be___JsValue_____wasm_bindgen_789e7c43d3c051be___sys__Undefined___js_sys_904a669457b72f9c___Function_fn_wasm_bindgen_789e7c43d3c051be___JsValue_____wasm_bindgen_789e7c43d3c051be___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
2909
2976
|
} finally {
|
|
2910
2977
|
state0.a = a;
|
|
2911
2978
|
}
|
|
@@ -2916,162 +2983,158 @@ export function __wbg_new_typed_1824d93f294193e5(arg0, arg1) {
|
|
|
2916
2983
|
state0.a = 0;
|
|
2917
2984
|
}
|
|
2918
2985
|
}
|
|
2919
|
-
export function
|
|
2986
|
+
export function __wbg_new_with_str_d969ab40df6f3773() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2920
2987
|
const ret = new WebSocket(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
2921
2988
|
return ret;
|
|
2922
2989
|
}, arguments); }
|
|
2923
|
-
export function
|
|
2990
|
+
export function __wbg_next_33784799010f1bbe(arg0) {
|
|
2924
2991
|
const ret = arg0.next;
|
|
2925
2992
|
return ret;
|
|
2926
2993
|
}
|
|
2927
|
-
export function
|
|
2994
|
+
export function __wbg_next_f4aac29c42af995c() { return handleError(function (arg0) {
|
|
2928
2995
|
const ret = arg0.next();
|
|
2929
2996
|
return ret;
|
|
2930
2997
|
}, arguments); }
|
|
2931
|
-
export function
|
|
2998
|
+
export function __wbg_now_aa4ccb83129e9e55() {
|
|
2932
2999
|
const ret = Date.now();
|
|
2933
3000
|
return ret;
|
|
2934
3001
|
}
|
|
2935
|
-
export function
|
|
3002
|
+
export function __wbg_now_e1044392fce0f3e7() { return handleError(function () {
|
|
2936
3003
|
const ret = Date.now();
|
|
2937
3004
|
return ret;
|
|
2938
3005
|
}, arguments); }
|
|
2939
|
-
export function
|
|
3006
|
+
export function __wbg_objectStoreNames_19a06aba400d0baf(arg0) {
|
|
2940
3007
|
const ret = arg0.objectStoreNames;
|
|
2941
3008
|
return ret;
|
|
2942
3009
|
}
|
|
2943
|
-
export function
|
|
3010
|
+
export function __wbg_objectStore_43178e7a3459e234() { return handleError(function (arg0, arg1, arg2) {
|
|
2944
3011
|
const ret = arg0.objectStore(getStringFromWasm0(arg1, arg2));
|
|
2945
3012
|
return ret;
|
|
2946
3013
|
}, arguments); }
|
|
2947
|
-
export function
|
|
3014
|
+
export function __wbg_onLine_f6b59ad69e157268(arg0) {
|
|
2948
3015
|
const ret = arg0.onLine;
|
|
2949
3016
|
return ret;
|
|
2950
3017
|
}
|
|
2951
|
-
export function
|
|
3018
|
+
export function __wbg_openCursor_50c5809d0805ebb3() { return handleError(function (arg0, arg1) {
|
|
2952
3019
|
const ret = arg0.openCursor(arg1);
|
|
2953
3020
|
return ret;
|
|
2954
3021
|
}, arguments); }
|
|
2955
|
-
export function
|
|
3022
|
+
export function __wbg_open_dbf85f9611885c1b() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2956
3023
|
const ret = arg0.open(getStringFromWasm0(arg1, arg2), arg3 >>> 0);
|
|
2957
3024
|
return ret;
|
|
2958
3025
|
}, arguments); }
|
|
2959
|
-
export function
|
|
3026
|
+
export function __wbg_parse_0fc53dead14b3b42() { return handleError(function (arg0, arg1) {
|
|
2960
3027
|
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
2961
3028
|
return ret;
|
|
2962
3029
|
}, arguments); }
|
|
2963
|
-
export function
|
|
3030
|
+
export function __wbg_postMessage_1e2d73aba527c147() { return handleError(function (arg0, arg1) {
|
|
2964
3031
|
arg0.postMessage(arg1);
|
|
2965
3032
|
}, arguments); }
|
|
2966
|
-
export function
|
|
3033
|
+
export function __wbg_postMessage_a6f2014b8b722172() { return handleError(function (arg0, arg1) {
|
|
2967
3034
|
arg0.postMessage(arg1);
|
|
2968
3035
|
}, arguments); }
|
|
2969
|
-
export function
|
|
3036
|
+
export function __wbg_prototypesetcall_bc27214492979395(arg0, arg1, arg2) {
|
|
2970
3037
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
2971
3038
|
}
|
|
2972
|
-
export function
|
|
3039
|
+
export function __wbg_push_2baf45db356cf468(arg0, arg1) {
|
|
2973
3040
|
const ret = arg0.push(arg1);
|
|
2974
3041
|
return ret;
|
|
2975
3042
|
}
|
|
2976
|
-
export function
|
|
3043
|
+
export function __wbg_put_378af428b16ba8f2() { return handleError(function (arg0, arg1, arg2) {
|
|
2977
3044
|
const ret = arg0.put(arg1, arg2);
|
|
2978
3045
|
return ret;
|
|
2979
3046
|
}, arguments); }
|
|
2980
|
-
export function
|
|
3047
|
+
export function __wbg_queueMicrotask_9833f9a49df95a49(arg0) {
|
|
2981
3048
|
const ret = arg0.queueMicrotask;
|
|
2982
3049
|
return ret;
|
|
2983
3050
|
}
|
|
2984
|
-
export function
|
|
3051
|
+
export function __wbg_queueMicrotask_a72f977e97f23c5f(arg0) {
|
|
2985
3052
|
queueMicrotask(arg0);
|
|
2986
3053
|
}
|
|
2987
|
-
export function
|
|
2988
|
-
const ret = Math.random();
|
|
2989
|
-
return ret;
|
|
2990
|
-
}
|
|
2991
|
-
export function __wbg_removeEventListener_a3f23c70077bdcc1() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3054
|
+
export function __wbg_removeEventListener_6e68185345978771() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2992
3055
|
arg0.removeEventListener(getStringFromWasm0(arg1, arg2), arg3);
|
|
2993
3056
|
}, arguments); }
|
|
2994
|
-
export function
|
|
3057
|
+
export function __wbg_resolve_0076e10020304ede(arg0) {
|
|
2995
3058
|
const ret = Promise.resolve(arg0);
|
|
2996
3059
|
return ret;
|
|
2997
3060
|
}
|
|
2998
|
-
export function
|
|
3061
|
+
export function __wbg_result_ea60156c5cd4726f() { return handleError(function (arg0) {
|
|
2999
3062
|
const ret = arg0.result;
|
|
3000
3063
|
return ret;
|
|
3001
3064
|
}, arguments); }
|
|
3002
|
-
export function
|
|
3065
|
+
export function __wbg_send_c1dad0ec2e52defb() { return handleError(function (arg0, arg1, arg2) {
|
|
3003
3066
|
arg0.send(getArrayU8FromWasm0(arg1, arg2));
|
|
3004
3067
|
}, arguments); }
|
|
3005
|
-
export function __wbg_setTimeout_114413d2e1956381(arg0, arg1) {
|
|
3006
|
-
const ret = setTimeout(arg0, arg1);
|
|
3007
|
-
return ret;
|
|
3008
|
-
}
|
|
3009
3068
|
export function __wbg_setTimeout_56bcdccbad22fd44() { return handleError(function (arg0, arg1) {
|
|
3010
3069
|
const ret = setTimeout(arg0, arg1);
|
|
3011
3070
|
return ret;
|
|
3012
3071
|
}, arguments); }
|
|
3013
|
-
export function
|
|
3072
|
+
export function __wbg_setTimeout_bf11a6c6d35ea7b0(arg0, arg1) {
|
|
3073
|
+
const ret = setTimeout(arg0, arg1);
|
|
3074
|
+
return ret;
|
|
3075
|
+
}
|
|
3076
|
+
export function __wbg_set_145a351398b48c65() { return handleError(function (arg0, arg1, arg2) {
|
|
3014
3077
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
3015
3078
|
return ret;
|
|
3016
3079
|
}, arguments); }
|
|
3017
|
-
export function
|
|
3080
|
+
export function __wbg_set_additional_data_ff131a30fb81a17d(arg0, arg1) {
|
|
3018
3081
|
arg0.additionalData = arg1;
|
|
3019
3082
|
}
|
|
3020
|
-
export function
|
|
3083
|
+
export function __wbg_set_binaryType_21835bf0df8f70aa(arg0, arg1) {
|
|
3021
3084
|
arg0.binaryType = __wbindgen_enum_BinaryType[arg1];
|
|
3022
3085
|
}
|
|
3023
|
-
export function
|
|
3086
|
+
export function __wbg_set_hash_494a18afe12e8af3(arg0, arg1) {
|
|
3024
3087
|
arg0.hash = arg1;
|
|
3025
3088
|
}
|
|
3026
|
-
export function
|
|
3089
|
+
export function __wbg_set_iterations_013d01fe4589fb9b(arg0, arg1) {
|
|
3027
3090
|
arg0.iterations = arg1 >>> 0;
|
|
3028
3091
|
}
|
|
3029
|
-
export function
|
|
3092
|
+
export function __wbg_set_iv_976dcf1aaf77a821(arg0, arg1) {
|
|
3030
3093
|
arg0.iv = arg1;
|
|
3031
3094
|
}
|
|
3032
|
-
export function
|
|
3095
|
+
export function __wbg_set_length_8339027b398747a6(arg0, arg1) {
|
|
3033
3096
|
arg0.length = arg1;
|
|
3034
3097
|
}
|
|
3035
|
-
export function
|
|
3098
|
+
export function __wbg_set_name_30f4bce9ac70119f(arg0, arg1, arg2) {
|
|
3036
3099
|
arg0.name = getStringFromWasm0(arg1, arg2);
|
|
3037
3100
|
}
|
|
3038
|
-
export function
|
|
3101
|
+
export function __wbg_set_name_3de0dd856e76461a(arg0, arg1, arg2) {
|
|
3039
3102
|
arg0.name = getStringFromWasm0(arg1, arg2);
|
|
3040
3103
|
}
|
|
3041
|
-
export function
|
|
3104
|
+
export function __wbg_set_name_d3391bc1a7f05c87(arg0, arg1, arg2) {
|
|
3042
3105
|
arg0.name = getStringFromWasm0(arg1, arg2);
|
|
3043
3106
|
}
|
|
3044
|
-
export function
|
|
3107
|
+
export function __wbg_set_once_8c45bbbfb71d1b34(arg0, arg1) {
|
|
3045
3108
|
arg0.once = arg1 !== 0;
|
|
3046
3109
|
}
|
|
3047
|
-
export function
|
|
3110
|
+
export function __wbg_set_onclose_a84370531f3d2948(arg0, arg1) {
|
|
3048
3111
|
arg0.onclose = arg1;
|
|
3049
3112
|
}
|
|
3050
|
-
export function
|
|
3113
|
+
export function __wbg_set_onerror_24dddc0e8dc54601(arg0, arg1) {
|
|
3051
3114
|
arg0.onerror = arg1;
|
|
3052
3115
|
}
|
|
3053
|
-
export function
|
|
3116
|
+
export function __wbg_set_onerror_94ee307653399172(arg0, arg1) {
|
|
3054
3117
|
arg0.onerror = arg1;
|
|
3055
3118
|
}
|
|
3056
|
-
export function
|
|
3119
|
+
export function __wbg_set_onmessage_870d468822d40c5b(arg0, arg1) {
|
|
3057
3120
|
arg0.onmessage = arg1;
|
|
3058
3121
|
}
|
|
3059
|
-
export function
|
|
3122
|
+
export function __wbg_set_onmessage_cb6f77d2d8e0402a(arg0, arg1) {
|
|
3060
3123
|
arg0.onmessage = arg1;
|
|
3061
3124
|
}
|
|
3062
|
-
export function
|
|
3125
|
+
export function __wbg_set_onmessage_d83a0d6439238156(arg0, arg1) {
|
|
3063
3126
|
arg0.onmessage = arg1;
|
|
3064
3127
|
}
|
|
3065
|
-
export function
|
|
3128
|
+
export function __wbg_set_onopen_c914147e8a2db4b0(arg0, arg1) {
|
|
3066
3129
|
arg0.onopen = arg1;
|
|
3067
3130
|
}
|
|
3068
|
-
export function
|
|
3131
|
+
export function __wbg_set_onsuccess_e970bffc8d0e7520(arg0, arg1) {
|
|
3069
3132
|
arg0.onsuccess = arg1;
|
|
3070
3133
|
}
|
|
3071
|
-
export function
|
|
3134
|
+
export function __wbg_set_onupgradeneeded_f9d42df70899331b(arg0, arg1) {
|
|
3072
3135
|
arg0.onupgradeneeded = arg1;
|
|
3073
3136
|
}
|
|
3074
|
-
export function
|
|
3137
|
+
export function __wbg_set_salt_ae9718ceff047a15(arg0, arg1) {
|
|
3075
3138
|
arg0.salt = arg1;
|
|
3076
3139
|
}
|
|
3077
3140
|
export function __wbg_stack_3b0d974bbf31e44f(arg0, arg1) {
|
|
@@ -3081,121 +3144,121 @@ export function __wbg_stack_3b0d974bbf31e44f(arg0, arg1) {
|
|
|
3081
3144
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3082
3145
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3083
3146
|
}
|
|
3084
|
-
export function
|
|
3147
|
+
export function __wbg_start_3ffec68c7a207acd(arg0) {
|
|
3085
3148
|
arg0.start();
|
|
3086
3149
|
}
|
|
3087
|
-
export function
|
|
3150
|
+
export function __wbg_static_accessor_GLOBAL_266715b9d96ba635() {
|
|
3088
3151
|
const ret = typeof global === 'undefined' ? null : global;
|
|
3089
3152
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3090
3153
|
}
|
|
3091
|
-
export function
|
|
3154
|
+
export function __wbg_static_accessor_GLOBAL_THIS_10fb7dc1ae063179() {
|
|
3092
3155
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
3093
3156
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3094
3157
|
}
|
|
3095
|
-
export function
|
|
3158
|
+
export function __wbg_static_accessor_SELF_0b583911f537483a() {
|
|
3096
3159
|
const ret = typeof self === 'undefined' ? null : self;
|
|
3097
3160
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3098
3161
|
}
|
|
3099
|
-
export function
|
|
3162
|
+
export function __wbg_static_accessor_WINDOW_d7f903d1508cbdc4() {
|
|
3100
3163
|
const ret = typeof window === 'undefined' ? null : window;
|
|
3101
3164
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3102
3165
|
}
|
|
3103
|
-
export function
|
|
3166
|
+
export function __wbg_stringify_52ff602c1cc4fbb6() { return handleError(function (arg0) {
|
|
3104
3167
|
const ret = JSON.stringify(arg0);
|
|
3105
3168
|
return ret;
|
|
3106
3169
|
}, arguments); }
|
|
3107
|
-
export function
|
|
3170
|
+
export function __wbg_subtle_fd9b8e4f931c4961(arg0) {
|
|
3108
3171
|
const ret = arg0.subtle;
|
|
3109
3172
|
return ret;
|
|
3110
3173
|
}
|
|
3111
|
-
export function
|
|
3174
|
+
export function __wbg_target_38ae9feb025b820c(arg0) {
|
|
3112
3175
|
const ret = arg0.target;
|
|
3113
3176
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3114
3177
|
}
|
|
3115
|
-
export function
|
|
3178
|
+
export function __wbg_then_c949d5a25a4e78f8(arg0, arg1, arg2) {
|
|
3116
3179
|
const ret = arg0.then(arg1, arg2);
|
|
3117
3180
|
return ret;
|
|
3118
3181
|
}
|
|
3119
|
-
export function
|
|
3182
|
+
export function __wbg_then_e71170d78fcf8954(arg0, arg1) {
|
|
3120
3183
|
const ret = arg0.then(arg1);
|
|
3121
3184
|
return ret;
|
|
3122
3185
|
}
|
|
3123
|
-
export function
|
|
3186
|
+
export function __wbg_transaction_55a3a4e0134a0fd6() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3124
3187
|
const ret = arg0.transaction(getStringFromWasm0(arg1, arg2), __wbindgen_enum_IdbTransactionMode[arg3]);
|
|
3125
3188
|
return ret;
|
|
3126
3189
|
}, arguments); }
|
|
3127
|
-
export function
|
|
3190
|
+
export function __wbg_value_e6653e661698cb71() { return handleError(function (arg0) {
|
|
3128
3191
|
const ret = arg0.value;
|
|
3129
3192
|
return ret;
|
|
3130
3193
|
}, arguments); }
|
|
3131
|
-
export function
|
|
3194
|
+
export function __wbg_value_f3c585ee8f5ba40c(arg0) {
|
|
3132
3195
|
const ret = arg0.value;
|
|
3133
3196
|
return ret;
|
|
3134
3197
|
}
|
|
3135
|
-
export function
|
|
3198
|
+
export function __wbg_warn_13abc63e0d4b3527(arg0) {
|
|
3136
3199
|
console.warn(arg0);
|
|
3137
3200
|
}
|
|
3138
|
-
export function
|
|
3139
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
3140
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3201
|
+
export function __wbindgen_generic_0000000000000001(arg0, arg1) {
|
|
3202
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1211, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3203
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___wasm_bindgen_789e7c43d3c051be___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_789e7c43d3c051be___JsError___true_);
|
|
3141
3204
|
return ret;
|
|
3142
3205
|
}
|
|
3143
|
-
export function
|
|
3144
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
3145
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3206
|
+
export function __wbindgen_generic_0000000000000002(arg0, arg1) {
|
|
3207
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 708, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3208
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___wasm_bindgen_789e7c43d3c051be___JsValue______true_);
|
|
3146
3209
|
return ret;
|
|
3147
3210
|
}
|
|
3148
|
-
export function
|
|
3149
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx:
|
|
3150
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3211
|
+
export function __wbindgen_generic_0000000000000003(arg0, arg1) {
|
|
3212
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 708, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3213
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___wasm_bindgen_789e7c43d3c051be___JsValue______true__215);
|
|
3151
3214
|
return ret;
|
|
3152
3215
|
}
|
|
3153
|
-
export function
|
|
3154
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx:
|
|
3155
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3216
|
+
export function __wbindgen_generic_0000000000000004(arg0, arg1) {
|
|
3217
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 708, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3218
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___wasm_bindgen_789e7c43d3c051be___JsValue______true__216);
|
|
3156
3219
|
return ret;
|
|
3157
3220
|
}
|
|
3158
|
-
export function
|
|
3159
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx:
|
|
3160
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3221
|
+
export function __wbindgen_generic_0000000000000005(arg0, arg1) {
|
|
3222
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 1185, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3223
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___web_sys_9fd664ab82fa256b___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent______true_);
|
|
3161
3224
|
return ret;
|
|
3162
3225
|
}
|
|
3163
|
-
export function
|
|
3164
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx:
|
|
3165
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3226
|
+
export function __wbindgen_generic_0000000000000006(arg0, arg1) {
|
|
3227
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 1185, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3228
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___web_sys_9fd664ab82fa256b___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent______true__218);
|
|
3166
3229
|
return ret;
|
|
3167
3230
|
}
|
|
3168
|
-
export function
|
|
3169
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx:
|
|
3170
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3231
|
+
export function __wbindgen_generic_0000000000000007(arg0, arg1) {
|
|
3232
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 708, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3233
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___wasm_bindgen_789e7c43d3c051be___JsValue______true__219);
|
|
3171
3234
|
return ret;
|
|
3172
3235
|
}
|
|
3173
|
-
export function
|
|
3174
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
3175
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3236
|
+
export function __wbindgen_generic_0000000000000008(arg0, arg1) {
|
|
3237
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 568, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3238
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke_______true_);
|
|
3176
3239
|
return ret;
|
|
3177
3240
|
}
|
|
3178
|
-
export function
|
|
3179
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
3180
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3241
|
+
export function __wbindgen_generic_0000000000000009(arg0, arg1) {
|
|
3242
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 713, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3243
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke_______true__1_);
|
|
3181
3244
|
return ret;
|
|
3182
3245
|
}
|
|
3183
|
-
export function
|
|
3246
|
+
export function __wbindgen_generic_000000000000000a(arg0) {
|
|
3184
3247
|
// Cast intrinsic for `F64 -> Externref`.
|
|
3185
3248
|
const ret = arg0;
|
|
3186
3249
|
return ret;
|
|
3187
3250
|
}
|
|
3188
|
-
export function
|
|
3251
|
+
export function __wbindgen_generic_000000000000000b(arg0) {
|
|
3189
3252
|
// Cast intrinsic for `I64 -> Externref`.
|
|
3190
3253
|
const ret = arg0;
|
|
3191
3254
|
return ret;
|
|
3192
3255
|
}
|
|
3193
|
-
export function
|
|
3256
|
+
export function __wbindgen_generic_000000000000000c(arg0, arg1) {
|
|
3194
3257
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
3195
3258
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
3196
3259
|
return ret;
|
|
3197
3260
|
}
|
|
3198
|
-
export function
|
|
3261
|
+
export function __wbindgen_generic_000000000000000d(arg0) {
|
|
3199
3262
|
// Cast intrinsic for `U64 -> Externref`.
|
|
3200
3263
|
const ret = BigInt.asUintN(64, arg0);
|
|
3201
3264
|
return ret;
|
|
@@ -3209,47 +3272,47 @@ export function __wbindgen_init_externref_table() {
|
|
|
3209
3272
|
table.set(offset + 2, true);
|
|
3210
3273
|
table.set(offset + 3, false);
|
|
3211
3274
|
}
|
|
3212
|
-
function
|
|
3213
|
-
wasm.
|
|
3275
|
+
function wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke_______true_(arg0, arg1) {
|
|
3276
|
+
wasm.wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke_______true_(arg0, arg1);
|
|
3214
3277
|
}
|
|
3215
3278
|
|
|
3216
|
-
function
|
|
3217
|
-
wasm.
|
|
3279
|
+
function wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke_______true__1_(arg0, arg1) {
|
|
3280
|
+
wasm.wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke_______true__1_(arg0, arg1);
|
|
3218
3281
|
}
|
|
3219
3282
|
|
|
3220
|
-
function
|
|
3221
|
-
wasm.
|
|
3283
|
+
function wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___wasm_bindgen_789e7c43d3c051be___JsValue______true_(arg0, arg1, arg2) {
|
|
3284
|
+
wasm.wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___wasm_bindgen_789e7c43d3c051be___JsValue______true_(arg0, arg1, arg2);
|
|
3222
3285
|
}
|
|
3223
3286
|
|
|
3224
|
-
function
|
|
3225
|
-
wasm.
|
|
3287
|
+
function wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___wasm_bindgen_789e7c43d3c051be___JsValue______true__215(arg0, arg1, arg2) {
|
|
3288
|
+
wasm.wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___wasm_bindgen_789e7c43d3c051be___JsValue______true__215(arg0, arg1, arg2);
|
|
3226
3289
|
}
|
|
3227
3290
|
|
|
3228
|
-
function
|
|
3229
|
-
wasm.
|
|
3291
|
+
function wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___wasm_bindgen_789e7c43d3c051be___JsValue______true__216(arg0, arg1, arg2) {
|
|
3292
|
+
wasm.wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___wasm_bindgen_789e7c43d3c051be___JsValue______true__216(arg0, arg1, arg2);
|
|
3230
3293
|
}
|
|
3231
3294
|
|
|
3232
|
-
function
|
|
3233
|
-
wasm.
|
|
3295
|
+
function wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___web_sys_9fd664ab82fa256b___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent______true_(arg0, arg1, arg2) {
|
|
3296
|
+
wasm.wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___web_sys_9fd664ab82fa256b___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent______true_(arg0, arg1, arg2);
|
|
3234
3297
|
}
|
|
3235
3298
|
|
|
3236
|
-
function
|
|
3237
|
-
wasm.
|
|
3299
|
+
function wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___web_sys_9fd664ab82fa256b___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent______true__218(arg0, arg1, arg2) {
|
|
3300
|
+
wasm.wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___web_sys_9fd664ab82fa256b___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent______true__218(arg0, arg1, arg2);
|
|
3238
3301
|
}
|
|
3239
3302
|
|
|
3240
|
-
function
|
|
3241
|
-
wasm.
|
|
3303
|
+
function wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___wasm_bindgen_789e7c43d3c051be___JsValue______true__219(arg0, arg1, arg2) {
|
|
3304
|
+
wasm.wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___wasm_bindgen_789e7c43d3c051be___JsValue______true__219(arg0, arg1, arg2);
|
|
3242
3305
|
}
|
|
3243
3306
|
|
|
3244
|
-
function
|
|
3245
|
-
const ret = wasm.
|
|
3307
|
+
function wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___wasm_bindgen_789e7c43d3c051be___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_789e7c43d3c051be___JsError___true_(arg0, arg1, arg2) {
|
|
3308
|
+
const ret = wasm.wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___wasm_bindgen_789e7c43d3c051be___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_789e7c43d3c051be___JsError___true_(arg0, arg1, arg2);
|
|
3246
3309
|
if (ret[1]) {
|
|
3247
3310
|
throw takeFromExternrefTable0(ret[0]);
|
|
3248
3311
|
}
|
|
3249
3312
|
}
|
|
3250
3313
|
|
|
3251
|
-
function
|
|
3252
|
-
wasm.
|
|
3314
|
+
function wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___js_sys_904a669457b72f9c___Function_fn_wasm_bindgen_789e7c43d3c051be___JsValue_____wasm_bindgen_789e7c43d3c051be___sys__Undefined___js_sys_904a669457b72f9c___Function_fn_wasm_bindgen_789e7c43d3c051be___JsValue_____wasm_bindgen_789e7c43d3c051be___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
|
|
3315
|
+
wasm.wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___js_sys_904a669457b72f9c___Function_fn_wasm_bindgen_789e7c43d3c051be___JsValue_____wasm_bindgen_789e7c43d3c051be___sys__Undefined___js_sys_904a669457b72f9c___Function_fn_wasm_bindgen_789e7c43d3c051be___JsValue_____wasm_bindgen_789e7c43d3c051be___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
|
|
3253
3316
|
}
|
|
3254
3317
|
|
|
3255
3318
|
|