@xmtp/wasm-bindings 0.0.3 → 0.0.6
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/dist/bindings_wasm.d.ts +175 -107
- package/dist/bindings_wasm.js +313 -175
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +109 -95
- package/dist/snippets/diesel-wasm-sqlite-36e85657e47f3be3/src/js/sqlite3-diesel.js +1 -0
- package/dist/snippets/diesel-wasm-sqlite-36e85657e47f3be3/src/js/sqlite3-opfs-async-proxy.js +1 -692
- package/dist/snippets/diesel-wasm-sqlite-36e85657e47f3be3/src/js/sqlite3.wasm +0 -0
- package/package.json +5 -2
- package/dist/snippets/diesel-wasm-sqlite-36e85657e47f3be3/src/js/wa-sqlite-diesel-bundle.js +0 -14738
package/dist/bindings_wasm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SQLite } from './snippets/diesel-wasm-sqlite-36e85657e47f3be3/src/js/
|
|
1
|
+
import { SQLite } from './snippets/diesel-wasm-sqlite-36e85657e47f3be3/src/js/sqlite3-diesel.js';
|
|
2
2
|
|
|
3
3
|
let wasm;
|
|
4
4
|
|
|
@@ -189,7 +189,7 @@ function __wbg_adapter_46(arg0, arg1) {
|
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
function __wbg_adapter_49(arg0, arg1, arg2) {
|
|
192
|
-
wasm.
|
|
192
|
+
wasm.closure2320_externref_shim(arg0, arg1, arg2);
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
function addToExternrefTable0(obj) {
|
|
@@ -197,6 +197,13 @@ function addToExternrefTable0(obj) {
|
|
|
197
197
|
wasm.__wbindgen_export_2.set(idx, obj);
|
|
198
198
|
return idx;
|
|
199
199
|
}
|
|
200
|
+
|
|
201
|
+
function _assertClass(instance, klass) {
|
|
202
|
+
if (!(instance instanceof klass)) {
|
|
203
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
204
|
+
}
|
|
205
|
+
return instance.ptr;
|
|
206
|
+
}
|
|
200
207
|
/**
|
|
201
208
|
* @param {string} host
|
|
202
209
|
* @param {string} inbox_id
|
|
@@ -204,9 +211,10 @@ function addToExternrefTable0(obj) {
|
|
|
204
211
|
* @param {string} db_path
|
|
205
212
|
* @param {Uint8Array | undefined} [encryption_key]
|
|
206
213
|
* @param {string | undefined} [history_sync_url]
|
|
214
|
+
* @param {LogOptions | undefined} [log_options]
|
|
207
215
|
* @returns {Promise<Client>}
|
|
208
216
|
*/
|
|
209
|
-
export function createClient(host, inbox_id, account_address, db_path, encryption_key, history_sync_url) {
|
|
217
|
+
export function createClient(host, inbox_id, account_address, db_path, encryption_key, history_sync_url, log_options) {
|
|
210
218
|
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
211
219
|
const len0 = WASM_VECTOR_LEN;
|
|
212
220
|
const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -217,7 +225,12 @@ export function createClient(host, inbox_id, account_address, db_path, encryptio
|
|
|
217
225
|
const len3 = WASM_VECTOR_LEN;
|
|
218
226
|
var ptr4 = isLikeNone(history_sync_url) ? 0 : passStringToWasm0(history_sync_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
219
227
|
var len4 = WASM_VECTOR_LEN;
|
|
220
|
-
|
|
228
|
+
let ptr5 = 0;
|
|
229
|
+
if (!isLikeNone(log_options)) {
|
|
230
|
+
_assertClass(log_options, LogOptions);
|
|
231
|
+
ptr5 = log_options.__destroy_into_raw();
|
|
232
|
+
}
|
|
233
|
+
const ret = wasm.createClient(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr4, len4, ptr5);
|
|
221
234
|
return ret;
|
|
222
235
|
}
|
|
223
236
|
|
|
@@ -231,6 +244,12 @@ function passArrayJsValueToWasm0(array, malloc) {
|
|
|
231
244
|
return ptr;
|
|
232
245
|
}
|
|
233
246
|
|
|
247
|
+
function takeFromExternrefTable0(idx) {
|
|
248
|
+
const value = wasm.__wbindgen_export_2.get(idx);
|
|
249
|
+
wasm.__externref_table_dealloc(idx);
|
|
250
|
+
return value;
|
|
251
|
+
}
|
|
252
|
+
|
|
234
253
|
function getArrayJsValueFromWasm0(ptr, len) {
|
|
235
254
|
ptr = ptr >>> 0;
|
|
236
255
|
const mem = getDataViewMemory0();
|
|
@@ -241,19 +260,6 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
241
260
|
wasm.__externref_drop_slice(ptr, len);
|
|
242
261
|
return result;
|
|
243
262
|
}
|
|
244
|
-
|
|
245
|
-
function _assertClass(instance, klass) {
|
|
246
|
-
if (!(instance instanceof klass)) {
|
|
247
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
248
|
-
}
|
|
249
|
-
return instance.ptr;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
function takeFromExternrefTable0(idx) {
|
|
253
|
-
const value = wasm.__wbindgen_export_2.get(idx);
|
|
254
|
-
wasm.__externref_table_dealloc(idx);
|
|
255
|
-
return value;
|
|
256
|
-
}
|
|
257
263
|
/**
|
|
258
264
|
* @param {string} host
|
|
259
265
|
* @param {string} account_address
|
|
@@ -303,8 +309,8 @@ function handleError(f, args) {
|
|
|
303
309
|
}
|
|
304
310
|
|
|
305
311
|
function notDefined(what) { return () => { throw new Error(`${what} is not defined`); }; }
|
|
306
|
-
function
|
|
307
|
-
wasm.
|
|
312
|
+
function __wbg_adapter_567(arg0, arg1, arg2, arg3) {
|
|
313
|
+
wasm.closure3388_externref_shim(arg0, arg1, arg2, arg3);
|
|
308
314
|
}
|
|
309
315
|
|
|
310
316
|
export const ConsentEntityType = Object.freeze({ GroupId:0,"0":"GroupId",InboxId:1,"1":"InboxId",Address:2,"2":"Address", });
|
|
@@ -333,6 +339,8 @@ export const SortDirection = Object.freeze({ Ascending:0,"0":"Ascending",Descend
|
|
|
333
339
|
|
|
334
340
|
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
335
341
|
|
|
342
|
+
const __wbindgen_enum_LogLevel = ["off", "error", "warn", "info", "debug", "trace"];
|
|
343
|
+
|
|
336
344
|
const __wbindgen_enum_ReadableStreamReaderMode = ["byob"];
|
|
337
345
|
|
|
338
346
|
const __wbindgen_enum_ReadableStreamType = ["bytes"];
|
|
@@ -418,6 +426,13 @@ export class Client {
|
|
|
418
426
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
419
427
|
}
|
|
420
428
|
}
|
|
429
|
+
/**
|
|
430
|
+
* @returns {Uint8Array}
|
|
431
|
+
*/
|
|
432
|
+
get installationIdBytes() {
|
|
433
|
+
const ret = wasm.client_installationIdBytes(this.__wbg_ptr);
|
|
434
|
+
return ret;
|
|
435
|
+
}
|
|
421
436
|
/**
|
|
422
437
|
* @param {(string)[]} account_addresses
|
|
423
438
|
* @returns {Promise<any>}
|
|
@@ -466,6 +481,65 @@ export class Client {
|
|
|
466
481
|
const ret = wasm.client_conversations(this.__wbg_ptr);
|
|
467
482
|
return Conversations.__wrap(ret);
|
|
468
483
|
}
|
|
484
|
+
/**
|
|
485
|
+
* @param {string} signature_text
|
|
486
|
+
* @returns {Uint8Array}
|
|
487
|
+
*/
|
|
488
|
+
signWithInstallationKey(signature_text) {
|
|
489
|
+
const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
490
|
+
const len0 = WASM_VECTOR_LEN;
|
|
491
|
+
const ret = wasm.client_signWithInstallationKey(this.__wbg_ptr, ptr0, len0);
|
|
492
|
+
if (ret[2]) {
|
|
493
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
494
|
+
}
|
|
495
|
+
return takeFromExternrefTable0(ret[0]);
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* @param {string} signature_text
|
|
499
|
+
* @param {Uint8Array} signature_bytes
|
|
500
|
+
*/
|
|
501
|
+
verifySignedWithInstallationKey(signature_text, signature_bytes) {
|
|
502
|
+
const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
503
|
+
const len0 = WASM_VECTOR_LEN;
|
|
504
|
+
const ret = wasm.client_verifySignedWithInstallationKey(this.__wbg_ptr, ptr0, len0, signature_bytes);
|
|
505
|
+
if (ret[1]) {
|
|
506
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
/**
|
|
510
|
+
* @param {string} signature_text
|
|
511
|
+
* @param {Uint8Array} signature_bytes
|
|
512
|
+
* @param {Uint8Array} public_key
|
|
513
|
+
*/
|
|
514
|
+
verifySignedWithPublicKey(signature_text, signature_bytes, public_key) {
|
|
515
|
+
const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
516
|
+
const len0 = WASM_VECTOR_LEN;
|
|
517
|
+
const ret = wasm.client_verifySignedWithPublicKey(this.__wbg_ptr, ptr0, len0, signature_bytes, public_key);
|
|
518
|
+
if (ret[1]) {
|
|
519
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
/**
|
|
523
|
+
* @param {(Consent)[]} records
|
|
524
|
+
* @returns {Promise<void>}
|
|
525
|
+
*/
|
|
526
|
+
setConsentStates(records) {
|
|
527
|
+
const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
|
|
528
|
+
const len0 = WASM_VECTOR_LEN;
|
|
529
|
+
const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
|
|
530
|
+
return ret;
|
|
531
|
+
}
|
|
532
|
+
/**
|
|
533
|
+
* @param {ConsentEntityType} entity_type
|
|
534
|
+
* @param {string} entity
|
|
535
|
+
* @returns {Promise<ConsentState>}
|
|
536
|
+
*/
|
|
537
|
+
getConsentState(entity_type, entity) {
|
|
538
|
+
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
539
|
+
const len0 = WASM_VECTOR_LEN;
|
|
540
|
+
const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
|
|
541
|
+
return ret;
|
|
542
|
+
}
|
|
469
543
|
/**
|
|
470
544
|
* @returns {Promise<string | undefined>}
|
|
471
545
|
*/
|
|
@@ -513,31 +587,21 @@ export class Client {
|
|
|
513
587
|
return ret;
|
|
514
588
|
}
|
|
515
589
|
/**
|
|
590
|
+
* @param {SignatureRequestType} signature_type
|
|
591
|
+
* @param {Uint8Array} signature_bytes
|
|
592
|
+
* @param {bigint} chain_id
|
|
593
|
+
* @param {bigint | undefined} [block_number]
|
|
516
594
|
* @returns {Promise<void>}
|
|
517
595
|
*/
|
|
518
|
-
|
|
519
|
-
const ret = wasm.
|
|
596
|
+
addScwSignature(signature_type, signature_bytes, chain_id, block_number) {
|
|
597
|
+
const ret = wasm.client_addScwSignature(this.__wbg_ptr, signature_type, signature_bytes, chain_id, !isLikeNone(block_number), isLikeNone(block_number) ? BigInt(0) : block_number);
|
|
520
598
|
return ret;
|
|
521
599
|
}
|
|
522
600
|
/**
|
|
523
|
-
* @param {(Consent)[]} records
|
|
524
601
|
* @returns {Promise<void>}
|
|
525
602
|
*/
|
|
526
|
-
|
|
527
|
-
const
|
|
528
|
-
const len0 = WASM_VECTOR_LEN;
|
|
529
|
-
const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
|
|
530
|
-
return ret;
|
|
531
|
-
}
|
|
532
|
-
/**
|
|
533
|
-
* @param {ConsentEntityType} entity_type
|
|
534
|
-
* @param {string} entity
|
|
535
|
-
* @returns {Promise<ConsentState>}
|
|
536
|
-
*/
|
|
537
|
-
getConsentState(entity_type, entity) {
|
|
538
|
-
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
539
|
-
const len0 = WASM_VECTOR_LEN;
|
|
540
|
-
const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
|
|
603
|
+
applySignatureRequests() {
|
|
604
|
+
const ret = wasm.client_applySignatureRequests(this.__wbg_ptr);
|
|
541
605
|
return ret;
|
|
542
606
|
}
|
|
543
607
|
/**
|
|
@@ -1335,6 +1399,13 @@ export class Conversations {
|
|
|
1335
1399
|
const ret = wasm.conversations_sync(this.__wbg_ptr);
|
|
1336
1400
|
return ret;
|
|
1337
1401
|
}
|
|
1402
|
+
/**
|
|
1403
|
+
* @returns {Promise<number>}
|
|
1404
|
+
*/
|
|
1405
|
+
syncAllConversations() {
|
|
1406
|
+
const ret = wasm.conversations_syncAllConversations(this.__wbg_ptr);
|
|
1407
|
+
return ret;
|
|
1408
|
+
}
|
|
1338
1409
|
/**
|
|
1339
1410
|
* @param {ListConversationsOptions | undefined} [opts]
|
|
1340
1411
|
* @returns {Promise<Array<any>>}
|
|
@@ -1671,7 +1742,7 @@ export class GroupMember {
|
|
|
1671
1742
|
set inboxId(arg0) {
|
|
1672
1743
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1673
1744
|
const len0 = WASM_VECTOR_LEN;
|
|
1674
|
-
wasm.
|
|
1745
|
+
wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
|
|
1675
1746
|
}
|
|
1676
1747
|
/**
|
|
1677
1748
|
* @returns {(string)[]}
|
|
@@ -1782,11 +1853,11 @@ export class GroupMetadata {
|
|
|
1782
1853
|
/**
|
|
1783
1854
|
* @returns {string}
|
|
1784
1855
|
*/
|
|
1785
|
-
|
|
1856
|
+
creatorInboxId() {
|
|
1786
1857
|
let deferred1_0;
|
|
1787
1858
|
let deferred1_1;
|
|
1788
1859
|
try {
|
|
1789
|
-
const ret = wasm.
|
|
1860
|
+
const ret = wasm.groupmetadata_creatorInboxId(this.__wbg_ptr);
|
|
1790
1861
|
deferred1_0 = ret[0];
|
|
1791
1862
|
deferred1_1 = ret[1];
|
|
1792
1863
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -1797,11 +1868,11 @@ export class GroupMetadata {
|
|
|
1797
1868
|
/**
|
|
1798
1869
|
* @returns {string}
|
|
1799
1870
|
*/
|
|
1800
|
-
|
|
1871
|
+
conversationType() {
|
|
1801
1872
|
let deferred1_0;
|
|
1802
1873
|
let deferred1_1;
|
|
1803
1874
|
try {
|
|
1804
|
-
const ret = wasm.
|
|
1875
|
+
const ret = wasm.groupmetadata_conversationType(this.__wbg_ptr);
|
|
1805
1876
|
deferred1_0 = ret[0];
|
|
1806
1877
|
deferred1_1 = ret[1];
|
|
1807
1878
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -1904,7 +1975,7 @@ export class InboxState {
|
|
|
1904
1975
|
set inboxId(arg0) {
|
|
1905
1976
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1906
1977
|
const len0 = WASM_VECTOR_LEN;
|
|
1907
|
-
wasm.
|
|
1978
|
+
wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
|
|
1908
1979
|
}
|
|
1909
1980
|
/**
|
|
1910
1981
|
* @returns {string}
|
|
@@ -1927,7 +1998,7 @@ export class InboxState {
|
|
|
1927
1998
|
set recoveryAddress(arg0) {
|
|
1928
1999
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1929
2000
|
const len0 = WASM_VECTOR_LEN;
|
|
1930
|
-
wasm.
|
|
2001
|
+
wasm.__wbg_set_inboxstate_recoveryAddress(this.__wbg_ptr, ptr0, len0);
|
|
1931
2002
|
}
|
|
1932
2003
|
/**
|
|
1933
2004
|
* @returns {(Installation)[]}
|
|
@@ -2327,7 +2398,7 @@ export class ListMessagesOptions {
|
|
|
2327
2398
|
* @param {bigint | undefined} [arg0]
|
|
2328
2399
|
*/
|
|
2329
2400
|
set sentBeforeNs(arg0) {
|
|
2330
|
-
wasm.
|
|
2401
|
+
wasm.__wbg_set_listconversationsoptions_createdAfterNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
2331
2402
|
}
|
|
2332
2403
|
/**
|
|
2333
2404
|
* @returns {bigint | undefined}
|
|
@@ -2340,7 +2411,7 @@ export class ListMessagesOptions {
|
|
|
2340
2411
|
* @param {bigint | undefined} [arg0]
|
|
2341
2412
|
*/
|
|
2342
2413
|
set sentAfterNs(arg0) {
|
|
2343
|
-
wasm.
|
|
2414
|
+
wasm.__wbg_set_listconversationsoptions_createdBeforeNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
2344
2415
|
}
|
|
2345
2416
|
/**
|
|
2346
2417
|
* @returns {bigint | undefined}
|
|
@@ -2353,7 +2424,7 @@ export class ListMessagesOptions {
|
|
|
2353
2424
|
* @param {bigint | undefined} [arg0]
|
|
2354
2425
|
*/
|
|
2355
2426
|
set limit(arg0) {
|
|
2356
|
-
wasm.
|
|
2427
|
+
wasm.__wbg_set_listconversationsoptions_limit(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
2357
2428
|
}
|
|
2358
2429
|
/**
|
|
2359
2430
|
* @returns {DeliveryStatus | undefined}
|
|
@@ -2396,6 +2467,83 @@ export class ListMessagesOptions {
|
|
|
2396
2467
|
}
|
|
2397
2468
|
}
|
|
2398
2469
|
|
|
2470
|
+
const LogOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2471
|
+
? { register: () => {}, unregister: () => {} }
|
|
2472
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_logoptions_free(ptr >>> 0, 1));
|
|
2473
|
+
/**
|
|
2474
|
+
* Specify options for the logger
|
|
2475
|
+
*/
|
|
2476
|
+
export class LogOptions {
|
|
2477
|
+
|
|
2478
|
+
__destroy_into_raw() {
|
|
2479
|
+
const ptr = this.__wbg_ptr;
|
|
2480
|
+
this.__wbg_ptr = 0;
|
|
2481
|
+
LogOptionsFinalization.unregister(this);
|
|
2482
|
+
return ptr;
|
|
2483
|
+
}
|
|
2484
|
+
|
|
2485
|
+
free() {
|
|
2486
|
+
const ptr = this.__destroy_into_raw();
|
|
2487
|
+
wasm.__wbg_logoptions_free(ptr, 0);
|
|
2488
|
+
}
|
|
2489
|
+
/**
|
|
2490
|
+
* enable structured JSON logging to stdout.Useful for third-party log viewers
|
|
2491
|
+
* @returns {boolean}
|
|
2492
|
+
*/
|
|
2493
|
+
get structured() {
|
|
2494
|
+
const ret = wasm.__wbg_get_logoptions_structured(this.__wbg_ptr);
|
|
2495
|
+
return ret !== 0;
|
|
2496
|
+
}
|
|
2497
|
+
/**
|
|
2498
|
+
* enable structured JSON logging to stdout.Useful for third-party log viewers
|
|
2499
|
+
* @param {boolean} arg0
|
|
2500
|
+
*/
|
|
2501
|
+
set structured(arg0) {
|
|
2502
|
+
wasm.__wbg_set_logoptions_structured(this.__wbg_ptr, arg0);
|
|
2503
|
+
}
|
|
2504
|
+
/**
|
|
2505
|
+
* enable performance metrics for libxmtp in the `performance` tab
|
|
2506
|
+
* @returns {boolean}
|
|
2507
|
+
*/
|
|
2508
|
+
get performance() {
|
|
2509
|
+
const ret = wasm.__wbg_get_logoptions_performance(this.__wbg_ptr);
|
|
2510
|
+
return ret !== 0;
|
|
2511
|
+
}
|
|
2512
|
+
/**
|
|
2513
|
+
* enable performance metrics for libxmtp in the `performance` tab
|
|
2514
|
+
* @param {boolean} arg0
|
|
2515
|
+
*/
|
|
2516
|
+
set performance(arg0) {
|
|
2517
|
+
wasm.__wbg_set_logoptions_performance(this.__wbg_ptr, arg0);
|
|
2518
|
+
}
|
|
2519
|
+
/**
|
|
2520
|
+
* filter for logs
|
|
2521
|
+
* @returns {any | undefined}
|
|
2522
|
+
*/
|
|
2523
|
+
get level() {
|
|
2524
|
+
const ret = wasm.__wbg_get_logoptions_level(this.__wbg_ptr);
|
|
2525
|
+
return __wbindgen_enum_LogLevel[ret];
|
|
2526
|
+
}
|
|
2527
|
+
/**
|
|
2528
|
+
* filter for logs
|
|
2529
|
+
* @param {any | undefined} [arg0]
|
|
2530
|
+
*/
|
|
2531
|
+
set level(arg0) {
|
|
2532
|
+
wasm.__wbg_set_logoptions_level(this.__wbg_ptr, arg0 == undefined ? 7 : ((__wbindgen_enum_LogLevel.indexOf(arg0) + 1 || 7) - 1));
|
|
2533
|
+
}
|
|
2534
|
+
/**
|
|
2535
|
+
* @param {boolean} structured
|
|
2536
|
+
* @param {boolean} performance
|
|
2537
|
+
* @param {any | undefined} [level]
|
|
2538
|
+
*/
|
|
2539
|
+
constructor(structured, performance, level) {
|
|
2540
|
+
const ret = wasm.logoptions_new(structured, performance, level == undefined ? 7 : ((__wbindgen_enum_LogLevel.indexOf(level) + 1 || 7) - 1));
|
|
2541
|
+
this.__wbg_ptr = ret >>> 0;
|
|
2542
|
+
LogOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
2543
|
+
return this;
|
|
2544
|
+
}
|
|
2545
|
+
}
|
|
2546
|
+
|
|
2399
2547
|
const MessageFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2400
2548
|
? { register: () => {}, unregister: () => {} }
|
|
2401
2549
|
: new FinalizationRegistry(ptr => wasm.__wbg_message_free(ptr >>> 0, 1));
|
|
@@ -2769,7 +2917,7 @@ async function __wbg_load(module, imports) {
|
|
|
2769
2917
|
function __wbg_get_imports() {
|
|
2770
2918
|
const imports = {};
|
|
2771
2919
|
imports.wbg = {};
|
|
2772
|
-
imports.wbg.
|
|
2920
|
+
imports.wbg.__wbg_initmodule_63b167b4c2952e1b = function(arg0) {
|
|
2773
2921
|
const ret = SQLite.init_module(arg0);
|
|
2774
2922
|
return ret;
|
|
2775
2923
|
};
|
|
@@ -2777,10 +2925,6 @@ function __wbg_get_imports() {
|
|
|
2777
2925
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2778
2926
|
return ret;
|
|
2779
2927
|
};
|
|
2780
|
-
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
2781
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
2782
|
-
return ret;
|
|
2783
|
-
};
|
|
2784
2928
|
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
2785
2929
|
const ret = arg0;
|
|
2786
2930
|
return ret;
|
|
@@ -2797,14 +2941,14 @@ function __wbg_get_imports() {
|
|
|
2797
2941
|
const ret = Installation.__wrap(arg0);
|
|
2798
2942
|
return ret;
|
|
2799
2943
|
};
|
|
2800
|
-
imports.wbg.__wbg_inboxstate_new = function(arg0) {
|
|
2801
|
-
const ret = InboxState.__wrap(arg0);
|
|
2802
|
-
return ret;
|
|
2803
|
-
};
|
|
2804
2944
|
imports.wbg.__wbg_client_new = function(arg0) {
|
|
2805
2945
|
const ret = Client.__wrap(arg0);
|
|
2806
2946
|
return ret;
|
|
2807
2947
|
};
|
|
2948
|
+
imports.wbg.__wbg_inboxstate_new = function(arg0) {
|
|
2949
|
+
const ret = InboxState.__wrap(arg0);
|
|
2950
|
+
return ret;
|
|
2951
|
+
};
|
|
2808
2952
|
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
2809
2953
|
const ret = arg0 === undefined;
|
|
2810
2954
|
return ret;
|
|
@@ -2830,6 +2974,10 @@ function __wbg_get_imports() {
|
|
|
2830
2974
|
const ret = +arg0;
|
|
2831
2975
|
return ret;
|
|
2832
2976
|
};
|
|
2977
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
2978
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2979
|
+
return ret;
|
|
2980
|
+
};
|
|
2833
2981
|
imports.wbg.__wbindgen_try_into_number = function(arg0) {
|
|
2834
2982
|
let result;
|
|
2835
2983
|
try { result = +arg0 } catch (e) { result = e }
|
|
@@ -2850,6 +2998,22 @@ imports.wbg.__wbg_installation_unwrap = function(arg0) {
|
|
|
2850
2998
|
const ret = Installation.__unwrap(arg0);
|
|
2851
2999
|
return ret;
|
|
2852
3000
|
};
|
|
3001
|
+
imports.wbg.__wbg_performance_72f95fe5952939b5 = function() {
|
|
3002
|
+
const ret = globalThis.performance;
|
|
3003
|
+
return ret;
|
|
3004
|
+
};
|
|
3005
|
+
imports.wbg.__wbg_mark_6045ef1772587264 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
3006
|
+
arg0.mark(getStringFromWasm0(arg1, arg2));
|
|
3007
|
+
}, arguments) };
|
|
3008
|
+
imports.wbg.__wbg_mark_bad820680b8580c2 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3009
|
+
arg0.mark(getStringFromWasm0(arg1, arg2), arg3);
|
|
3010
|
+
}, arguments) };
|
|
3011
|
+
imports.wbg.__wbg_measure_1d846b814d43d7e1 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
3012
|
+
arg0.measure(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4), getStringFromWasm0(arg5, arg6));
|
|
3013
|
+
}, arguments) };
|
|
3014
|
+
imports.wbg.__wbg_measure_7ca0e5cfef892340 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3015
|
+
arg0.measure(getStringFromWasm0(arg1, arg2), arg3);
|
|
3016
|
+
}, arguments) };
|
|
2853
3017
|
imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
|
2854
3018
|
const obj = arg0.original;
|
|
2855
3019
|
if (obj.cnt-- == 1) {
|
|
@@ -2886,52 +3050,11 @@ imports.wbg.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
|
|
|
2886
3050
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2887
3051
|
}
|
|
2888
3052
|
};
|
|
2889
|
-
imports.wbg.
|
|
2890
|
-
let deferred0_0;
|
|
2891
|
-
let deferred0_1;
|
|
2892
|
-
try {
|
|
2893
|
-
deferred0_0 = arg0;
|
|
2894
|
-
deferred0_1 = arg1;
|
|
2895
|
-
console.log(getStringFromWasm0(arg0, arg1));
|
|
2896
|
-
} finally {
|
|
2897
|
-
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2898
|
-
}
|
|
2899
|
-
};
|
|
2900
|
-
imports.wbg.__wbg_log_aba5996d9bde071f = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
2901
|
-
let deferred0_0;
|
|
2902
|
-
let deferred0_1;
|
|
2903
|
-
try {
|
|
2904
|
-
deferred0_0 = arg0;
|
|
2905
|
-
deferred0_1 = arg1;
|
|
2906
|
-
console.log(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7));
|
|
2907
|
-
} finally {
|
|
2908
|
-
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2909
|
-
}
|
|
2910
|
-
};
|
|
2911
|
-
imports.wbg.__wbg_mark_40e050a77cc39fea = function(arg0, arg1) {
|
|
2912
|
-
performance.mark(getStringFromWasm0(arg0, arg1));
|
|
2913
|
-
};
|
|
2914
|
-
imports.wbg.__wbg_measure_aa7a73f17813f708 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2915
|
-
let deferred0_0;
|
|
2916
|
-
let deferred0_1;
|
|
2917
|
-
let deferred1_0;
|
|
2918
|
-
let deferred1_1;
|
|
2919
|
-
try {
|
|
2920
|
-
deferred0_0 = arg0;
|
|
2921
|
-
deferred0_1 = arg1;
|
|
2922
|
-
deferred1_0 = arg2;
|
|
2923
|
-
deferred1_1 = arg3;
|
|
2924
|
-
performance.measure(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
2925
|
-
} finally {
|
|
2926
|
-
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2927
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2928
|
-
}
|
|
2929
|
-
}, arguments) };
|
|
2930
|
-
imports.wbg.__wbg_sqlite3_ae38011f61b040f1 = function(arg0) {
|
|
3053
|
+
imports.wbg.__wbg_sqlite3_94709d525395f0e0 = function(arg0) {
|
|
2931
3054
|
const ret = arg0.sqlite3;
|
|
2932
3055
|
return ret;
|
|
2933
3056
|
};
|
|
2934
|
-
imports.wbg.
|
|
3057
|
+
imports.wbg.__wbg_wasm_493cb9116b24d2ed = function(arg0) {
|
|
2935
3058
|
const ret = arg0.wasm;
|
|
2936
3059
|
return ret;
|
|
2937
3060
|
};
|
|
@@ -2951,7 +3074,7 @@ imports.wbg.__wbg_alloc_412cbdfb204df090 = function(arg0, arg1) {
|
|
|
2951
3074
|
const ret = arg0.alloc(arg1 >>> 0);
|
|
2952
3075
|
return ret;
|
|
2953
3076
|
};
|
|
2954
|
-
imports.wbg.
|
|
3077
|
+
imports.wbg.__wbg_preparev3_439afd649e006ca8 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
2955
3078
|
const ret = arg0.prepare_v3(arg1, arg2 >>> 0, arg3, arg4 >>> 0, arg5, arg6);
|
|
2956
3079
|
return ret;
|
|
2957
3080
|
};
|
|
@@ -2978,118 +3101,118 @@ imports.wbg.__wbg_impl_3c42f6bcb7b4c19c = function(arg0, arg1) {
|
|
|
2978
3101
|
const ret = arg0.impl(arg1 >>> 0);
|
|
2979
3102
|
return ret;
|
|
2980
3103
|
};
|
|
2981
|
-
imports.wbg.
|
|
3104
|
+
imports.wbg.__wbg_bindnull_bb548bfb7e51d9f6 = function(arg0, arg1, arg2) {
|
|
2982
3105
|
const ret = arg0.bind_null(arg1, arg2);
|
|
2983
3106
|
return ret;
|
|
2984
3107
|
};
|
|
2985
|
-
imports.wbg.
|
|
3108
|
+
imports.wbg.__wbg_bindtext_ea5e136c4ac4c21f = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
2986
3109
|
const ret = arg0.bind_text(arg1, arg2, arg3 >>> 0, arg4, arg5);
|
|
2987
3110
|
return ret;
|
|
2988
3111
|
};
|
|
2989
|
-
imports.wbg.
|
|
3112
|
+
imports.wbg.__wbg_bindint_1ad9b7c92c66451b = function(arg0, arg1, arg2, arg3) {
|
|
2990
3113
|
const ret = arg0.bind_int(arg1, arg2, arg3);
|
|
2991
3114
|
return ret;
|
|
2992
3115
|
};
|
|
2993
|
-
imports.wbg.
|
|
3116
|
+
imports.wbg.__wbg_bindint64_4f6d503abe851224 = function(arg0, arg1, arg2, arg3) {
|
|
2994
3117
|
const ret = arg0.bind_int64(arg1, arg2, arg3);
|
|
2995
3118
|
return ret;
|
|
2996
3119
|
};
|
|
2997
|
-
imports.wbg.
|
|
3120
|
+
imports.wbg.__wbg_binddouble_b0a91f37239ee4b0 = function(arg0, arg1, arg2, arg3) {
|
|
2998
3121
|
const ret = arg0.bind_double(arg1, arg2, arg3);
|
|
2999
3122
|
return ret;
|
|
3000
3123
|
};
|
|
3001
|
-
imports.wbg.
|
|
3124
|
+
imports.wbg.__wbg_bindblob_5a17f213fdf1908e = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
3002
3125
|
const ret = arg0.bind_blob(arg1, arg2, arg3 >>> 0, arg4, arg5);
|
|
3003
3126
|
return ret;
|
|
3004
3127
|
};
|
|
3005
|
-
imports.wbg.
|
|
3128
|
+
imports.wbg.__wbg_dbhandle_ab50bfd9245494b7 = function(arg0, arg1) {
|
|
3006
3129
|
const ret = arg0.db_handle(arg1);
|
|
3007
3130
|
return ret;
|
|
3008
3131
|
};
|
|
3009
3132
|
imports.wbg.__wbg_dealloc_351653c7fd6f869c = function(arg0, arg1) {
|
|
3010
3133
|
arg0.dealloc(arg1 >>> 0);
|
|
3011
3134
|
};
|
|
3012
|
-
imports.wbg.
|
|
3135
|
+
imports.wbg.__wbg_finalize_238aae75fb871c94 = function() { return handleError(function (arg0, arg1) {
|
|
3013
3136
|
arg0.finalize(arg1);
|
|
3014
3137
|
}, arguments) };
|
|
3015
|
-
imports.wbg.
|
|
3138
|
+
imports.wbg.__wbg_reset_0be27bd2c5c25e78 = function(arg0, arg1) {
|
|
3016
3139
|
const ret = arg0.reset(arg1);
|
|
3017
3140
|
return ret;
|
|
3018
3141
|
};
|
|
3019
|
-
imports.wbg.
|
|
3142
|
+
imports.wbg.__wbg_step_a58b1066c566c122 = function(arg0, arg1) {
|
|
3020
3143
|
const ret = arg0.step(arg1);
|
|
3021
3144
|
return ret;
|
|
3022
3145
|
};
|
|
3023
|
-
imports.wbg.
|
|
3146
|
+
imports.wbg.__wbg_columncount_a12965551470fb42 = function(arg0, arg1) {
|
|
3024
3147
|
const ret = arg0.column_count(arg1);
|
|
3025
3148
|
return ret;
|
|
3026
3149
|
};
|
|
3027
|
-
imports.wbg.
|
|
3150
|
+
imports.wbg.__wbg_columnvalue_49c1ea5d732bde1c = function(arg0, arg1, arg2) {
|
|
3028
3151
|
const ret = arg0.column_value(arg1, arg2);
|
|
3029
3152
|
return ret;
|
|
3030
3153
|
};
|
|
3031
|
-
imports.wbg.
|
|
3154
|
+
imports.wbg.__wbg_capi_ca06542c83b93175 = function(arg0) {
|
|
3032
3155
|
const ret = arg0.capi;
|
|
3033
3156
|
return ret;
|
|
3034
3157
|
};
|
|
3035
|
-
imports.wbg.__wbg_SQLITEFLOAT_e0da134da12d25d0 = function(arg0) {
|
|
3036
|
-
const ret = arg0.SQLITE_FLOAT;
|
|
3037
|
-
return ret;
|
|
3038
|
-
};
|
|
3039
|
-
imports.wbg.__wbg_SQLITESTATIC_b98299c993e94d35 = function(arg0) {
|
|
3040
|
-
const ret = arg0.SQLITE_STATIC;
|
|
3041
|
-
return ret;
|
|
3042
|
-
};
|
|
3043
3158
|
imports.wbg.__wbg_SQLITECONSTRAINTCHECK_7b54e6702b2e57ba = function(arg0) {
|
|
3044
3159
|
const ret = arg0.SQLITE_CONSTRAINT_CHECK;
|
|
3045
3160
|
return ret;
|
|
3046
3161
|
};
|
|
3047
|
-
imports.wbg.
|
|
3048
|
-
const ret = arg0.
|
|
3162
|
+
imports.wbg.__wbg_SQLITEROW_a21779e78155c8ad = function(arg0) {
|
|
3163
|
+
const ret = arg0.SQLITE_ROW;
|
|
3049
3164
|
return ret;
|
|
3050
3165
|
};
|
|
3051
3166
|
imports.wbg.__wbg_SQLITEPREPAREPERSISTENT_d81d553ffa5c038c = function(arg0) {
|
|
3052
3167
|
const ret = arg0.SQLITE_PREPARE_PERSISTENT;
|
|
3053
3168
|
return ret;
|
|
3054
3169
|
};
|
|
3170
|
+
imports.wbg.__wbg_SQLITEINTEGER_9031dce8e01c166c = function(arg0) {
|
|
3171
|
+
const ret = arg0.SQLITE_INTEGER;
|
|
3172
|
+
return ret;
|
|
3173
|
+
};
|
|
3055
3174
|
imports.wbg.__wbg_SQLITEDONE_fbfe18ce23a3b6da = function(arg0) {
|
|
3056
3175
|
const ret = arg0.SQLITE_DONE;
|
|
3057
3176
|
return ret;
|
|
3058
3177
|
};
|
|
3059
|
-
imports.wbg.
|
|
3060
|
-
const ret = arg0.
|
|
3178
|
+
imports.wbg.__wbg_SQLITETEXT_727e78d48f532f23 = function(arg0) {
|
|
3179
|
+
const ret = arg0.SQLITE_TEXT;
|
|
3061
3180
|
return ret;
|
|
3062
3181
|
};
|
|
3063
|
-
imports.wbg.
|
|
3064
|
-
const ret = arg0.
|
|
3182
|
+
imports.wbg.__wbg_SQLITENULL_00f5eb33b5b89690 = function(arg0) {
|
|
3183
|
+
const ret = arg0.SQLITE_NULL;
|
|
3065
3184
|
return ret;
|
|
3066
3185
|
};
|
|
3067
|
-
imports.wbg.
|
|
3068
|
-
const ret = arg0.
|
|
3186
|
+
imports.wbg.__wbg_SQLITECONSTRAINTUNIQUE_1dea04a977c1e377 = function(arg0) {
|
|
3187
|
+
const ret = arg0.SQLITE_CONSTRAINT_UNIQUE;
|
|
3069
3188
|
return ret;
|
|
3070
3189
|
};
|
|
3071
3190
|
imports.wbg.__wbg_SQLITECONSTRAINTPRIMARYKEY_3e2ad26d848575a2 = function(arg0) {
|
|
3072
3191
|
const ret = arg0.SQLITE_CONSTRAINT_PRIMARYKEY;
|
|
3073
3192
|
return ret;
|
|
3074
3193
|
};
|
|
3075
|
-
imports.wbg.
|
|
3076
|
-
const ret = arg0.
|
|
3194
|
+
imports.wbg.__wbg_SQLITEBLOB_394b61ff6fc173a6 = function(arg0) {
|
|
3195
|
+
const ret = arg0.SQLITE_BLOB;
|
|
3077
3196
|
return ret;
|
|
3078
3197
|
};
|
|
3079
|
-
imports.wbg.
|
|
3080
|
-
const ret = arg0.
|
|
3198
|
+
imports.wbg.__wbg_SQLITESTATIC_b98299c993e94d35 = function(arg0) {
|
|
3199
|
+
const ret = arg0.SQLITE_STATIC;
|
|
3081
3200
|
return ret;
|
|
3082
3201
|
};
|
|
3083
|
-
imports.wbg.
|
|
3084
|
-
const ret = arg0.
|
|
3202
|
+
imports.wbg.__wbg_SQLITEFLOAT_e0da134da12d25d0 = function(arg0) {
|
|
3203
|
+
const ret = arg0.SQLITE_FLOAT;
|
|
3085
3204
|
return ret;
|
|
3086
3205
|
};
|
|
3087
|
-
imports.wbg.
|
|
3088
|
-
const ret = arg0.
|
|
3206
|
+
imports.wbg.__wbg_SQLITECONSTRAINTNOTNULL_0f87885933517ad3 = function(arg0) {
|
|
3207
|
+
const ret = arg0.SQLITE_CONSTRAINT_NOTNULL;
|
|
3089
3208
|
return ret;
|
|
3090
3209
|
};
|
|
3091
|
-
imports.wbg.
|
|
3092
|
-
const ret = arg0.
|
|
3210
|
+
imports.wbg.__wbg_SQLITEOK_2d09a4e691645e98 = function(arg0) {
|
|
3211
|
+
const ret = arg0.SQLITE_OK;
|
|
3212
|
+
return ret;
|
|
3213
|
+
};
|
|
3214
|
+
imports.wbg.__wbg_SQLITECONSTRAINTFOREIGNKEY_741a343b3482effc = function(arg0) {
|
|
3215
|
+
const ret = arg0.SQLITE_CONSTRAINT_FOREIGNKEY;
|
|
3093
3216
|
return ret;
|
|
3094
3217
|
};
|
|
3095
3218
|
imports.wbg.__wbg_SQLITEOPENREADWRITE_a83b4615e4d0f3ab = function(arg0) {
|
|
@@ -3104,11 +3227,11 @@ imports.wbg.__wbg_SQLITEOPENURI_553652ff6391f5f3 = function(arg0) {
|
|
|
3104
3227
|
const ret = arg0.SQLITE_OPEN_URI;
|
|
3105
3228
|
return ret;
|
|
3106
3229
|
};
|
|
3107
|
-
imports.wbg.
|
|
3230
|
+
imports.wbg.__wbg_changes_ad25c054690f6c2c = function(arg0, arg1) {
|
|
3108
3231
|
const ret = arg0.changes(arg1);
|
|
3109
3232
|
return ret;
|
|
3110
3233
|
};
|
|
3111
|
-
imports.wbg.
|
|
3234
|
+
imports.wbg.__wbg_close_91b1f36e8a68490f = function(arg0, arg1) {
|
|
3112
3235
|
const ret = arg0.close(arg1);
|
|
3113
3236
|
return ret;
|
|
3114
3237
|
};
|
|
@@ -3123,15 +3246,15 @@ imports.wbg.__wbg_heap8u_e5e9645d146c39a3 = function(arg0) {
|
|
|
3123
3246
|
const ret = arg0.heap8u();
|
|
3124
3247
|
return ret;
|
|
3125
3248
|
};
|
|
3126
|
-
imports.wbg.
|
|
3249
|
+
imports.wbg.__wbg_new_a4c99de148de264c = function(arg0) {
|
|
3127
3250
|
const ret = new SQLite(arg0);
|
|
3128
3251
|
return ret;
|
|
3129
3252
|
};
|
|
3130
|
-
imports.wbg.
|
|
3253
|
+
imports.wbg.__wbg_version_5f48815bb1d8b346 = function(arg0) {
|
|
3131
3254
|
const ret = arg0.version();
|
|
3132
3255
|
return ret;
|
|
3133
3256
|
};
|
|
3134
|
-
imports.wbg.
|
|
3257
|
+
imports.wbg.__wbg_filename_144613ea2a1b3e89 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
3135
3258
|
let deferred0_0;
|
|
3136
3259
|
let deferred0_1;
|
|
3137
3260
|
try {
|
|
@@ -3146,73 +3269,73 @@ imports.wbg.__wbg_filename_9eb2d8c937e22432 = function(arg0, arg1, arg2, arg3, a
|
|
|
3146
3269
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
3147
3270
|
}
|
|
3148
3271
|
};
|
|
3149
|
-
imports.wbg.
|
|
3272
|
+
imports.wbg.__wbg_errstr_bb38008691932700 = function(arg0, arg1, arg2) {
|
|
3150
3273
|
const ret = arg1.errstr(arg2);
|
|
3151
3274
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3152
3275
|
const len1 = WASM_VECTOR_LEN;
|
|
3153
3276
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3154
3277
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3155
3278
|
};
|
|
3156
|
-
imports.wbg.
|
|
3279
|
+
imports.wbg.__wbg_errmsg_89bcbfbe76b14cf4 = function(arg0, arg1, arg2) {
|
|
3157
3280
|
const ret = arg1.errmsg(arg2);
|
|
3158
3281
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3159
3282
|
const len1 = WASM_VECTOR_LEN;
|
|
3160
3283
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3161
3284
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3162
3285
|
};
|
|
3163
|
-
imports.wbg.
|
|
3286
|
+
imports.wbg.__wbg_extendederrcode_2b31e0b528da9bbb = function(arg0, arg1) {
|
|
3164
3287
|
const ret = arg0.extended_errcode(arg1);
|
|
3165
3288
|
return ret;
|
|
3166
3289
|
};
|
|
3167
|
-
imports.wbg.
|
|
3290
|
+
imports.wbg.__wbg_valuedup_b0df8ddba19f1b98 = function(arg0, arg1) {
|
|
3168
3291
|
const ret = arg0.value_dup(arg1 >>> 0);
|
|
3169
3292
|
return ret;
|
|
3170
3293
|
};
|
|
3171
|
-
imports.wbg.
|
|
3294
|
+
imports.wbg.__wbg_valueblob_3f74b376b132f8b5 = function(arg0, arg1) {
|
|
3172
3295
|
const ret = arg0.value_blob(arg1 >>> 0);
|
|
3173
3296
|
return ret;
|
|
3174
3297
|
};
|
|
3175
|
-
imports.wbg.
|
|
3298
|
+
imports.wbg.__wbg_valuebytes_4694dcd27c345742 = function(arg0, arg1) {
|
|
3176
3299
|
const ret = arg0.value_bytes(arg1 >>> 0);
|
|
3177
3300
|
return ret;
|
|
3178
3301
|
};
|
|
3179
|
-
imports.wbg.
|
|
3302
|
+
imports.wbg.__wbg_valuefree_bb58ed981c1df68f = function(arg0, arg1) {
|
|
3180
3303
|
arg0.value_free(arg1 >>> 0);
|
|
3181
3304
|
};
|
|
3182
|
-
imports.wbg.
|
|
3305
|
+
imports.wbg.__wbg_valueint_69cbd5211d849273 = function(arg0, arg1) {
|
|
3183
3306
|
const ret = arg0.value_int(arg1 >>> 0);
|
|
3184
3307
|
return ret;
|
|
3185
3308
|
};
|
|
3186
|
-
imports.wbg.
|
|
3309
|
+
imports.wbg.__wbg_valueint64_64bd43aa58b87911 = function(arg0, arg1) {
|
|
3187
3310
|
const ret = arg0.value_int64(arg1 >>> 0);
|
|
3188
3311
|
return ret;
|
|
3189
3312
|
};
|
|
3190
|
-
imports.wbg.
|
|
3313
|
+
imports.wbg.__wbg_valuetext_92c3345d82a9ca0c = function(arg0, arg1, arg2) {
|
|
3191
3314
|
const ret = arg1.value_text(arg2 >>> 0);
|
|
3192
3315
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3193
3316
|
const len1 = WASM_VECTOR_LEN;
|
|
3194
3317
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3195
3318
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3196
3319
|
};
|
|
3197
|
-
imports.wbg.
|
|
3320
|
+
imports.wbg.__wbg_valuetype_cfed2bfc3d2b9ffe = function(arg0, arg1) {
|
|
3198
3321
|
const ret = arg0.value_type(arg1 >>> 0);
|
|
3199
3322
|
return ret;
|
|
3200
3323
|
};
|
|
3201
|
-
imports.wbg.
|
|
3324
|
+
imports.wbg.__wbg_open_d821a8bd5c12df12 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
3202
3325
|
const ret = arg0.open(getStringFromWasm0(arg1, arg2), arg3 === 0 ? undefined : arg4);
|
|
3203
3326
|
return ret;
|
|
3204
3327
|
}, arguments) };
|
|
3205
|
-
imports.wbg.
|
|
3328
|
+
imports.wbg.__wbg_exec_06c0a88959122598 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3206
3329
|
arg0.exec(arg1, getStringFromWasm0(arg2, arg3));
|
|
3207
3330
|
}, arguments) };
|
|
3208
|
-
imports.wbg.
|
|
3331
|
+
imports.wbg.__wbg_columnname_f60d10fff22a7705 = function(arg0, arg1, arg2, arg3) {
|
|
3209
3332
|
const ret = arg1.column_name(arg2, arg3);
|
|
3210
3333
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3211
3334
|
const len1 = WASM_VECTOR_LEN;
|
|
3212
3335
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3213
3336
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3214
3337
|
};
|
|
3215
|
-
imports.wbg.
|
|
3338
|
+
imports.wbg.__wbg_registerdieselsqlfunctions_af501c8fa4b13f74 = function() { return handleError(function (arg0, arg1) {
|
|
3216
3339
|
arg0.register_diesel_sql_functions(arg1);
|
|
3217
3340
|
}, arguments) };
|
|
3218
3341
|
imports.wbg.__wbg_allocCString_42f27a0af479f779 = function(arg0, arg1, arg2) {
|
|
@@ -3250,6 +3373,16 @@ imports.wbg.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
|
|
|
3250
3373
|
imports.wbg.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
|
|
3251
3374
|
arg0[arg1] = arg2;
|
|
3252
3375
|
};
|
|
3376
|
+
imports.wbg.__wbg_fetch_9b133f5ec268a7b8 = typeof fetch == 'function' ? fetch : notDefined('fetch');
|
|
3377
|
+
imports.wbg.__wbg_queueMicrotask_848aa4969108a57e = function(arg0) {
|
|
3378
|
+
const ret = arg0.queueMicrotask;
|
|
3379
|
+
return ret;
|
|
3380
|
+
};
|
|
3381
|
+
imports.wbg.__wbindgen_is_function = function(arg0) {
|
|
3382
|
+
const ret = typeof(arg0) === 'function';
|
|
3383
|
+
return ret;
|
|
3384
|
+
};
|
|
3385
|
+
imports.wbg.__wbg_queueMicrotask_c5419c06eab41e73 = typeof queueMicrotask == 'function' ? queueMicrotask : notDefined('queueMicrotask');
|
|
3253
3386
|
imports.wbg.__wbg_crypto_1d1f22824a6a080c = function(arg0) {
|
|
3254
3387
|
const ret = arg0.crypto;
|
|
3255
3388
|
return ret;
|
|
@@ -3284,17 +3417,14 @@ imports.wbg.__wbg_getRandomValues_3aa56aa6edec874c = function() { return handleE
|
|
|
3284
3417
|
imports.wbg.__wbg_randomFillSync_5c9c955aa56b6049 = function() { return handleError(function (arg0, arg1) {
|
|
3285
3418
|
arg0.randomFillSync(arg1);
|
|
3286
3419
|
}, arguments) };
|
|
3287
|
-
imports.wbg.
|
|
3288
|
-
imports.wbg.
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
imports.wbg.
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
};
|
|
3296
|
-
imports.wbg.__wbg_queueMicrotask_c5419c06eab41e73 = typeof queueMicrotask == 'function' ? queueMicrotask : notDefined('queueMicrotask');
|
|
3297
|
-
imports.wbg.__wbg_log_f740dc2253ea759b = typeof console.log == 'function' ? console.log : notDefined('console.log');
|
|
3420
|
+
imports.wbg.__wbg_debug_69675dd374e2c249 = typeof console.debug == 'function' ? console.debug : notDefined('console.debug');
|
|
3421
|
+
imports.wbg.__wbg_debug_a0b6c2c5ac9a4bfd = typeof console.debug == 'function' ? console.debug : notDefined('console.debug');
|
|
3422
|
+
imports.wbg.__wbg_error_53abcd6a461f73d8 = typeof console.error == 'function' ? console.error : notDefined('console.error');
|
|
3423
|
+
imports.wbg.__wbg_error_4d17c5bb1ca90c94 = typeof console.error == 'function' ? console.error : notDefined('console.error');
|
|
3424
|
+
imports.wbg.__wbg_info_f073b719c8035bbf = typeof console.info == 'function' ? console.info : notDefined('console.info');
|
|
3425
|
+
imports.wbg.__wbg_info_1c7fba7da21072d1 = typeof console.info == 'function' ? console.info : notDefined('console.info');
|
|
3426
|
+
imports.wbg.__wbg_warn_41503a1c2194de89 = typeof console.warn == 'function' ? console.warn : notDefined('console.warn');
|
|
3427
|
+
imports.wbg.__wbg_warn_2e2787d40aad9a81 = typeof console.warn == 'function' ? console.warn : notDefined('console.warn');
|
|
3298
3428
|
imports.wbg.__wbg_fetch_1fdc4448ed9eec00 = function(arg0, arg1) {
|
|
3299
3429
|
const ret = arg0.fetch(arg1);
|
|
3300
3430
|
return ret;
|
|
@@ -3493,6 +3623,10 @@ imports.wbg.__wbg_now_70af4fe37a792251 = function() {
|
|
|
3493
3623
|
const ret = Date.now();
|
|
3494
3624
|
return ret;
|
|
3495
3625
|
};
|
|
3626
|
+
imports.wbg.__wbg_create_70ef5302cb22a5c4 = function(arg0) {
|
|
3627
|
+
const ret = Object.create(arg0);
|
|
3628
|
+
return ret;
|
|
3629
|
+
};
|
|
3496
3630
|
imports.wbg.__wbg_entries_c02034de337d3ee2 = function(arg0) {
|
|
3497
3631
|
const ret = Object.entries(arg0);
|
|
3498
3632
|
return ret;
|
|
@@ -3504,7 +3638,7 @@ imports.wbg.__wbg_new_1073970097e5a420 = function(arg0, arg1) {
|
|
|
3504
3638
|
const a = state0.a;
|
|
3505
3639
|
state0.a = 0;
|
|
3506
3640
|
try {
|
|
3507
|
-
return
|
|
3641
|
+
return __wbg_adapter_567(a, state0.b, arg0, arg1);
|
|
3508
3642
|
} finally {
|
|
3509
3643
|
state0.a = a;
|
|
3510
3644
|
}
|
|
@@ -3580,6 +3714,10 @@ imports.wbg.__wbg_has_bd717f25f195f23d = function() { return handleError(functio
|
|
|
3580
3714
|
const ret = Reflect.has(arg0, arg1);
|
|
3581
3715
|
return ret;
|
|
3582
3716
|
}, arguments) };
|
|
3717
|
+
imports.wbg.__wbg_set_e864d25d9b399c9f = function() { return handleError(function (arg0, arg1, arg2) {
|
|
3718
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
3719
|
+
return ret;
|
|
3720
|
+
}, arguments) };
|
|
3583
3721
|
imports.wbg.__wbg_new_fddd2773b9888ac9 = function() { return handleError(function (arg0) {
|
|
3584
3722
|
const ret = new WebAssembly.Memory(arg0);
|
|
3585
3723
|
return ret;
|
|
@@ -3602,12 +3740,12 @@ imports.wbg.__wbindgen_memory = function() {
|
|
|
3602
3740
|
const ret = wasm.memory;
|
|
3603
3741
|
return ret;
|
|
3604
3742
|
};
|
|
3605
|
-
imports.wbg.
|
|
3606
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3743
|
+
imports.wbg.__wbindgen_closure_wrapper7534 = function(arg0, arg1, arg2) {
|
|
3744
|
+
const ret = makeMutClosure(arg0, arg1, 1807, __wbg_adapter_46);
|
|
3607
3745
|
return ret;
|
|
3608
3746
|
};
|
|
3609
|
-
imports.wbg.
|
|
3610
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3747
|
+
imports.wbg.__wbindgen_closure_wrapper10085 = function(arg0, arg1, arg2) {
|
|
3748
|
+
const ret = makeMutClosure(arg0, arg1, 2321, __wbg_adapter_49);
|
|
3611
3749
|
return ret;
|
|
3612
3750
|
};
|
|
3613
3751
|
imports.wbg.__wbindgen_init_externref_table = function() {
|