@lix-js/sdk 0.12.3 → 0.15.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 +54 -10
- package/dist/binding-types.d.ts +37 -9
- package/dist/binding.browser.d.ts +2 -2
- package/dist/binding.browser.js +20 -13
- package/dist/binding.node-wasm.d.ts +2 -2
- package/dist/binding.node-wasm.js +9 -11
- package/dist/binding.node.d.ts +3 -3
- package/dist/binding.node.js +70 -13
- package/dist/bundled-plugins/plugin_csv.lixplugin +0 -0
- package/dist/bundled-plugins/plugin_markdown.lixplugin +0 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/lix.d.ts +27 -5
- package/dist/lix.js +125 -6
- package/dist/open-lix.d.ts +4 -5
- package/dist/open-lix.js +174 -33
- package/dist/remote/client.d.ts +1 -2
- package/dist/remote/client.js +40 -1151
- package/dist/remote/server-protocol.d.ts +5 -6
- package/dist/remote/server-protocol.js +40 -6
- package/dist/result.d.ts +6 -13
- package/dist/result.js +9 -35
- package/dist/snapshot-restore.d.ts +6 -0
- package/dist/snapshot-restore.js +101 -0
- package/dist/storage-adapter.d.ts +175 -19
- package/dist/storage-adapter.js +21 -0
- package/dist/types.d.ts +104 -34
- package/dist/value.d.ts +1 -0
- package/dist/value.js +8 -0
- package/dist/wasm/lix_js_sdk.d.ts +121 -24
- package/dist/wasm/lix_js_sdk.js +606 -78
- package/dist/wasm/lix_js_sdk_bg.wasm +0 -0
- package/dist/wasm/lix_js_sdk_bg.wasm.d.ts +48 -6
- package/dist/wasm-init.d.ts +2 -0
- package/dist/wasm-init.js +23 -0
- package/dist/worker/client.d.ts +31 -5
- package/dist/worker/client.js +541 -45
- package/dist/worker/factory.browser.d.ts +2 -2
- package/dist/worker/factory.node.d.ts +2 -2
- package/dist/worker/factory.node.js +3 -10
- package/dist/worker/host.d.ts +4 -2
- package/dist/worker/host.js +401 -43
- package/dist/worker/protocol.d.ts +107 -3
- package/package.json +6 -10
- package/dist/indexeddb-backend.d.ts +0 -19
- package/dist/indexeddb-backend.js +0 -121
- package/dist/remote/sse.d.ts +0 -12
- package/dist/remote/sse.js +0 -87
- package/dist/workerd.d.ts +0 -25
- package/dist/workerd.js +0 -35
package/dist/wasm/lix_js_sdk.js
CHANGED
|
@@ -53,13 +53,6 @@ export class WasmLix {
|
|
|
53
53
|
const ret = wasm.wasmlix_createBranch(this.__wbg_ptr, addHeapObject(options));
|
|
54
54
|
return takeObject(ret);
|
|
55
55
|
}
|
|
56
|
-
/**
|
|
57
|
-
* @returns {Promise<any>}
|
|
58
|
-
*/
|
|
59
|
-
createCheckpoint() {
|
|
60
|
-
const ret = wasm.wasmlix_createCheckpoint(this.__wbg_ptr);
|
|
61
|
-
return takeObject(ret);
|
|
62
|
-
}
|
|
63
56
|
/**
|
|
64
57
|
* @param {string} sql
|
|
65
58
|
* @param {any} params
|
|
@@ -82,10 +75,18 @@ export class WasmLix {
|
|
|
82
75
|
return takeObject(ret);
|
|
83
76
|
}
|
|
84
77
|
/**
|
|
85
|
-
* @returns {
|
|
78
|
+
* @returns {WasmSnapshotExport}
|
|
86
79
|
*/
|
|
87
80
|
exportSnapshot() {
|
|
88
81
|
const ret = wasm.wasmlix_exportSnapshot(this.__wbg_ptr);
|
|
82
|
+
return WasmSnapshotExport.__wrap(ret);
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* @param {any} _paths
|
|
86
|
+
* @returns {Promise<void>}
|
|
87
|
+
*/
|
|
88
|
+
importFilesystemPaths(_paths) {
|
|
89
|
+
const ret = wasm.wasmlix_importFilesystemPaths(this.__wbg_ptr, addHeapObject(_paths));
|
|
89
90
|
return takeObject(ret);
|
|
90
91
|
}
|
|
91
92
|
/**
|
|
@@ -115,6 +116,32 @@ export class WasmLix {
|
|
|
115
116
|
const ret = wasm.wasmlix_observe(this.__wbg_ptr, ptr0, len0, addHeapObject(params));
|
|
116
117
|
return takeObject(ret);
|
|
117
118
|
}
|
|
119
|
+
/**
|
|
120
|
+
* @param {any} options
|
|
121
|
+
* @returns {Promise<WasmLix>}
|
|
122
|
+
*/
|
|
123
|
+
openAnotherSession(options) {
|
|
124
|
+
const ret = wasm.wasmlix_openAnotherSession(this.__wbg_ptr, addHeapObject(options));
|
|
125
|
+
return takeObject(ret);
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* @returns {any}
|
|
129
|
+
*/
|
|
130
|
+
openReport() {
|
|
131
|
+
try {
|
|
132
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
133
|
+
wasm.wasmlix_openReport(retptr, this.__wbg_ptr);
|
|
134
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
135
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
136
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
137
|
+
if (r2) {
|
|
138
|
+
throw takeObject(r1);
|
|
139
|
+
}
|
|
140
|
+
return takeObject(r0);
|
|
141
|
+
} finally {
|
|
142
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
118
145
|
/**
|
|
119
146
|
* @returns {Promise<any>}
|
|
120
147
|
*/
|
|
@@ -122,6 +149,22 @@ export class WasmLix {
|
|
|
122
149
|
const ret = wasm.wasmlix_redo(this.__wbg_ptr);
|
|
123
150
|
return takeObject(ret);
|
|
124
151
|
}
|
|
152
|
+
/**
|
|
153
|
+
* @param {any | null} [parent]
|
|
154
|
+
*/
|
|
155
|
+
setTelemetryParent(parent) {
|
|
156
|
+
try {
|
|
157
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
158
|
+
wasm.wasmlix_setTelemetryParent(retptr, this.__wbg_ptr, isLikeNone(parent) ? 0 : addHeapObject(parent));
|
|
159
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
160
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
161
|
+
if (r1) {
|
|
162
|
+
throw takeObject(r0);
|
|
163
|
+
}
|
|
164
|
+
} finally {
|
|
165
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
125
168
|
/**
|
|
126
169
|
* @param {any} options
|
|
127
170
|
* @returns {Promise<any>}
|
|
@@ -130,6 +173,13 @@ export class WasmLix {
|
|
|
130
173
|
const ret = wasm.wasmlix_switchBranch(this.__wbg_ptr, addHeapObject(options));
|
|
131
174
|
return takeObject(ret);
|
|
132
175
|
}
|
|
176
|
+
/**
|
|
177
|
+
* @returns {Promise<void>}
|
|
178
|
+
*/
|
|
179
|
+
syncDiskToLix() {
|
|
180
|
+
const ret = wasm.wasmlix_syncDiskToLix(this.__wbg_ptr);
|
|
181
|
+
return takeObject(ret);
|
|
182
|
+
}
|
|
133
183
|
/**
|
|
134
184
|
* @returns {Promise<any>}
|
|
135
185
|
*/
|
|
@@ -213,61 +263,416 @@ export class WasmObserveEvents {
|
|
|
213
263
|
const ret = wasm.wasmobserveevents_next(this.__wbg_ptr);
|
|
214
264
|
return takeObject(ret);
|
|
215
265
|
}
|
|
266
|
+
/**
|
|
267
|
+
* @param {any | null} [parent]
|
|
268
|
+
*/
|
|
269
|
+
setTelemetryParent(parent) {
|
|
270
|
+
try {
|
|
271
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
272
|
+
wasm.wasmobserveevents_setTelemetryParent(retptr, this.__wbg_ptr, isLikeNone(parent) ? 0 : addHeapObject(parent));
|
|
273
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
274
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
275
|
+
if (r1) {
|
|
276
|
+
throw takeObject(r0);
|
|
277
|
+
}
|
|
278
|
+
} finally {
|
|
279
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
216
282
|
}
|
|
217
283
|
if (Symbol.dispose) WasmObserveEvents.prototype[Symbol.dispose] = WasmObserveEvents.prototype.free;
|
|
218
284
|
|
|
285
|
+
export class WasmRemoteLix {
|
|
286
|
+
static __wrap(ptr) {
|
|
287
|
+
const obj = Object.create(WasmRemoteLix.prototype);
|
|
288
|
+
obj.__wbg_ptr = ptr;
|
|
289
|
+
WasmRemoteLixFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
290
|
+
return obj;
|
|
291
|
+
}
|
|
292
|
+
__destroy_into_raw() {
|
|
293
|
+
const ptr = this.__wbg_ptr;
|
|
294
|
+
this.__wbg_ptr = 0;
|
|
295
|
+
WasmRemoteLixFinalization.unregister(this);
|
|
296
|
+
return ptr;
|
|
297
|
+
}
|
|
298
|
+
free() {
|
|
299
|
+
const ptr = this.__destroy_into_raw();
|
|
300
|
+
wasm.__wbg_wasmremotelix_free(ptr, 0);
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* @returns {Promise<string>}
|
|
304
|
+
*/
|
|
305
|
+
activeAccountId() {
|
|
306
|
+
const ret = wasm.wasmremotelix_activeAccountId(this.__wbg_ptr);
|
|
307
|
+
return takeObject(ret);
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* @returns {Promise<string>}
|
|
311
|
+
*/
|
|
312
|
+
activeBranchId() {
|
|
313
|
+
const ret = wasm.wasmremotelix_activeBranchId(this.__wbg_ptr);
|
|
314
|
+
return takeObject(ret);
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* @returns {Promise<WasmRemoteLixTransaction>}
|
|
318
|
+
*/
|
|
319
|
+
beginTransaction() {
|
|
320
|
+
const ret = wasm.wasmremotelix_beginTransaction(this.__wbg_ptr);
|
|
321
|
+
return takeObject(ret);
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* @returns {Promise<void>}
|
|
325
|
+
*/
|
|
326
|
+
close() {
|
|
327
|
+
const ret = wasm.wasmremotelix_close(this.__wbg_ptr);
|
|
328
|
+
return takeObject(ret);
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* @param {any} options
|
|
332
|
+
* @returns {Promise<any>}
|
|
333
|
+
*/
|
|
334
|
+
createBranch(options) {
|
|
335
|
+
const ret = wasm.wasmremotelix_createBranch(this.__wbg_ptr, addHeapObject(options));
|
|
336
|
+
return takeObject(ret);
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* @param {string} sql
|
|
340
|
+
* @param {any} params
|
|
341
|
+
* @param {any | null} [options]
|
|
342
|
+
* @returns {Promise<any>}
|
|
343
|
+
*/
|
|
344
|
+
execute(sql, params, options) {
|
|
345
|
+
const ptr0 = passStringToWasm0(sql, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
346
|
+
const len0 = WASM_VECTOR_LEN;
|
|
347
|
+
const ret = wasm.wasmremotelix_execute(this.__wbg_ptr, ptr0, len0, addHeapObject(params), isLikeNone(options) ? 0 : addHeapObject(options));
|
|
348
|
+
return takeObject(ret);
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* @param {any} statements
|
|
352
|
+
* @param {any | null} [options]
|
|
353
|
+
* @returns {Promise<any>}
|
|
354
|
+
*/
|
|
355
|
+
executeBatch(statements, options) {
|
|
356
|
+
const ret = wasm.wasmremotelix_executeBatch(this.__wbg_ptr, addHeapObject(statements), isLikeNone(options) ? 0 : addHeapObject(options));
|
|
357
|
+
return takeObject(ret);
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* @returns {WasmSnapshotExport}
|
|
361
|
+
*/
|
|
362
|
+
exportSnapshot() {
|
|
363
|
+
const ret = wasm.wasmremotelix_exportSnapshot(this.__wbg_ptr);
|
|
364
|
+
return WasmSnapshotExport.__wrap(ret);
|
|
365
|
+
}
|
|
366
|
+
/**
|
|
367
|
+
* @param {any} _paths
|
|
368
|
+
* @returns {Promise<void>}
|
|
369
|
+
*/
|
|
370
|
+
importFilesystemPaths(_paths) {
|
|
371
|
+
const ret = wasm.wasmremotelix_importFilesystemPaths(this.__wbg_ptr, addHeapObject(_paths));
|
|
372
|
+
return takeObject(ret);
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* @param {any} options
|
|
376
|
+
* @returns {Promise<any>}
|
|
377
|
+
*/
|
|
378
|
+
mergeBranch(options) {
|
|
379
|
+
const ret = wasm.wasmremotelix_mergeBranch(this.__wbg_ptr, addHeapObject(options));
|
|
380
|
+
return takeObject(ret);
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* @param {any} options
|
|
384
|
+
* @returns {Promise<any>}
|
|
385
|
+
*/
|
|
386
|
+
mergeBranchPreview(options) {
|
|
387
|
+
const ret = wasm.wasmremotelix_mergeBranchPreview(this.__wbg_ptr, addHeapObject(options));
|
|
388
|
+
return takeObject(ret);
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* @param {string} sql
|
|
392
|
+
* @param {any} params
|
|
393
|
+
* @returns {Promise<WasmRemoteObserveEvents>}
|
|
394
|
+
*/
|
|
395
|
+
observe(sql, params) {
|
|
396
|
+
const ptr0 = passStringToWasm0(sql, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
397
|
+
const len0 = WASM_VECTOR_LEN;
|
|
398
|
+
const ret = wasm.wasmremotelix_observe(this.__wbg_ptr, ptr0, len0, addHeapObject(params));
|
|
399
|
+
return takeObject(ret);
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* @param {any} options
|
|
403
|
+
* @returns {Promise<WasmRemoteLix>}
|
|
404
|
+
*/
|
|
405
|
+
openAnotherSession(options) {
|
|
406
|
+
const ret = wasm.wasmremotelix_openAnotherSession(this.__wbg_ptr, addHeapObject(options));
|
|
407
|
+
return takeObject(ret);
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* @returns {Promise<any>}
|
|
411
|
+
*/
|
|
412
|
+
redo() {
|
|
413
|
+
const ret = wasm.wasmremotelix_redo(this.__wbg_ptr);
|
|
414
|
+
return takeObject(ret);
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* @param {any | null} [_parent]
|
|
418
|
+
*/
|
|
419
|
+
setTelemetryParent(_parent) {
|
|
420
|
+
wasm.wasmremotelix_setTelemetryParent(this.__wbg_ptr, isLikeNone(_parent) ? 0 : addHeapObject(_parent));
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* @param {any} options
|
|
424
|
+
* @returns {Promise<any>}
|
|
425
|
+
*/
|
|
426
|
+
switchBranch(options) {
|
|
427
|
+
const ret = wasm.wasmremotelix_switchBranch(this.__wbg_ptr, addHeapObject(options));
|
|
428
|
+
return takeObject(ret);
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* @returns {Promise<void>}
|
|
432
|
+
*/
|
|
433
|
+
syncDiskToLix() {
|
|
434
|
+
const ret = wasm.wasmremotelix_syncDiskToLix(this.__wbg_ptr);
|
|
435
|
+
return takeObject(ret);
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* @returns {Promise<any>}
|
|
439
|
+
*/
|
|
440
|
+
undo() {
|
|
441
|
+
const ret = wasm.wasmremotelix_undo(this.__wbg_ptr);
|
|
442
|
+
return takeObject(ret);
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
if (Symbol.dispose) WasmRemoteLix.prototype[Symbol.dispose] = WasmRemoteLix.prototype.free;
|
|
446
|
+
|
|
447
|
+
export class WasmRemoteLixTransaction {
|
|
448
|
+
static __wrap(ptr) {
|
|
449
|
+
const obj = Object.create(WasmRemoteLixTransaction.prototype);
|
|
450
|
+
obj.__wbg_ptr = ptr;
|
|
451
|
+
WasmRemoteLixTransactionFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
452
|
+
return obj;
|
|
453
|
+
}
|
|
454
|
+
__destroy_into_raw() {
|
|
455
|
+
const ptr = this.__wbg_ptr;
|
|
456
|
+
this.__wbg_ptr = 0;
|
|
457
|
+
WasmRemoteLixTransactionFinalization.unregister(this);
|
|
458
|
+
return ptr;
|
|
459
|
+
}
|
|
460
|
+
free() {
|
|
461
|
+
const ptr = this.__destroy_into_raw();
|
|
462
|
+
wasm.__wbg_wasmremotelixtransaction_free(ptr, 0);
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* @returns {Promise<void>}
|
|
466
|
+
*/
|
|
467
|
+
commit() {
|
|
468
|
+
const ret = wasm.wasmremotelixtransaction_commit(this.__wbg_ptr);
|
|
469
|
+
return takeObject(ret);
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
* @param {string} sql
|
|
473
|
+
* @param {any} params
|
|
474
|
+
* @param {any | null} [options]
|
|
475
|
+
* @returns {Promise<any>}
|
|
476
|
+
*/
|
|
477
|
+
execute(sql, params, options) {
|
|
478
|
+
const ptr0 = passStringToWasm0(sql, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
479
|
+
const len0 = WASM_VECTOR_LEN;
|
|
480
|
+
const ret = wasm.wasmremotelixtransaction_execute(this.__wbg_ptr, ptr0, len0, addHeapObject(params), isLikeNone(options) ? 0 : addHeapObject(options));
|
|
481
|
+
return takeObject(ret);
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* @returns {Promise<void>}
|
|
485
|
+
*/
|
|
486
|
+
rollback() {
|
|
487
|
+
const ret = wasm.wasmremotelixtransaction_rollback(this.__wbg_ptr);
|
|
488
|
+
return takeObject(ret);
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
if (Symbol.dispose) WasmRemoteLixTransaction.prototype[Symbol.dispose] = WasmRemoteLixTransaction.prototype.free;
|
|
492
|
+
|
|
493
|
+
export class WasmRemoteObserveEvents {
|
|
494
|
+
static __wrap(ptr) {
|
|
495
|
+
const obj = Object.create(WasmRemoteObserveEvents.prototype);
|
|
496
|
+
obj.__wbg_ptr = ptr;
|
|
497
|
+
WasmRemoteObserveEventsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
498
|
+
return obj;
|
|
499
|
+
}
|
|
500
|
+
__destroy_into_raw() {
|
|
501
|
+
const ptr = this.__wbg_ptr;
|
|
502
|
+
this.__wbg_ptr = 0;
|
|
503
|
+
WasmRemoteObserveEventsFinalization.unregister(this);
|
|
504
|
+
return ptr;
|
|
505
|
+
}
|
|
506
|
+
free() {
|
|
507
|
+
const ptr = this.__destroy_into_raw();
|
|
508
|
+
wasm.__wbg_wasmremoteobserveevents_free(ptr, 0);
|
|
509
|
+
}
|
|
510
|
+
close() {
|
|
511
|
+
wasm.wasmremoteobserveevents_close(this.__wbg_ptr);
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
* @returns {Promise<any>}
|
|
515
|
+
*/
|
|
516
|
+
next() {
|
|
517
|
+
const ret = wasm.wasmremoteobserveevents_next(this.__wbg_ptr);
|
|
518
|
+
return takeObject(ret);
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* @param {any | null} [_parent]
|
|
522
|
+
*/
|
|
523
|
+
setTelemetryParent(_parent) {
|
|
524
|
+
wasm.wasmremoteobserveevents_setTelemetryParent(this.__wbg_ptr, isLikeNone(_parent) ? 0 : addHeapObject(_parent));
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
if (Symbol.dispose) WasmRemoteObserveEvents.prototype[Symbol.dispose] = WasmRemoteObserveEvents.prototype.free;
|
|
528
|
+
|
|
529
|
+
export class WasmSnapshotExport {
|
|
530
|
+
static __wrap(ptr) {
|
|
531
|
+
const obj = Object.create(WasmSnapshotExport.prototype);
|
|
532
|
+
obj.__wbg_ptr = ptr;
|
|
533
|
+
WasmSnapshotExportFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
534
|
+
return obj;
|
|
535
|
+
}
|
|
536
|
+
__destroy_into_raw() {
|
|
537
|
+
const ptr = this.__wbg_ptr;
|
|
538
|
+
this.__wbg_ptr = 0;
|
|
539
|
+
WasmSnapshotExportFinalization.unregister(this);
|
|
540
|
+
return ptr;
|
|
541
|
+
}
|
|
542
|
+
free() {
|
|
543
|
+
const ptr = this.__destroy_into_raw();
|
|
544
|
+
wasm.__wbg_wasmsnapshotexport_free(ptr, 0);
|
|
545
|
+
}
|
|
546
|
+
/**
|
|
547
|
+
* @returns {Promise<void>}
|
|
548
|
+
*/
|
|
549
|
+
cancel() {
|
|
550
|
+
const ret = wasm.wasmsnapshotexport_cancel(this.__wbg_ptr);
|
|
551
|
+
return takeObject(ret);
|
|
552
|
+
}
|
|
553
|
+
/**
|
|
554
|
+
* @returns {Promise<Uint8Array | undefined>}
|
|
555
|
+
*/
|
|
556
|
+
next() {
|
|
557
|
+
const ret = wasm.wasmsnapshotexport_next(this.__wbg_ptr);
|
|
558
|
+
return takeObject(ret);
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
if (Symbol.dispose) WasmSnapshotExport.prototype[Symbol.dispose] = WasmSnapshotExport.prototype.free;
|
|
562
|
+
|
|
563
|
+
export class WasmSnapshotRestore {
|
|
564
|
+
static __wrap(ptr) {
|
|
565
|
+
const obj = Object.create(WasmSnapshotRestore.prototype);
|
|
566
|
+
obj.__wbg_ptr = ptr;
|
|
567
|
+
WasmSnapshotRestoreFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
568
|
+
return obj;
|
|
569
|
+
}
|
|
570
|
+
__destroy_into_raw() {
|
|
571
|
+
const ptr = this.__wbg_ptr;
|
|
572
|
+
this.__wbg_ptr = 0;
|
|
573
|
+
WasmSnapshotRestoreFinalization.unregister(this);
|
|
574
|
+
return ptr;
|
|
575
|
+
}
|
|
576
|
+
free() {
|
|
577
|
+
const ptr = this.__destroy_into_raw();
|
|
578
|
+
wasm.__wbg_wasmsnapshotrestore_free(ptr, 0);
|
|
579
|
+
}
|
|
580
|
+
/**
|
|
581
|
+
* @returns {Promise<void>}
|
|
582
|
+
*/
|
|
583
|
+
cancel() {
|
|
584
|
+
const ret = wasm.wasmsnapshotrestore_cancel(this.__wbg_ptr);
|
|
585
|
+
return takeObject(ret);
|
|
586
|
+
}
|
|
587
|
+
/**
|
|
588
|
+
* @returns {Promise<WasmLix>}
|
|
589
|
+
*/
|
|
590
|
+
finish() {
|
|
591
|
+
const ret = wasm.wasmsnapshotrestore_finish(this.__wbg_ptr);
|
|
592
|
+
return takeObject(ret);
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
* @returns {boolean}
|
|
596
|
+
*/
|
|
597
|
+
isComplete() {
|
|
598
|
+
const ret = wasm.wasmsnapshotrestore_isComplete(this.__wbg_ptr);
|
|
599
|
+
return ret !== 0;
|
|
600
|
+
}
|
|
601
|
+
/**
|
|
602
|
+
* @param {Uint8Array} chunk
|
|
603
|
+
* @returns {Promise<void>}
|
|
604
|
+
*/
|
|
605
|
+
write(chunk) {
|
|
606
|
+
const ptr0 = passArray8ToWasm0(chunk, wasm.__wbindgen_export);
|
|
607
|
+
const len0 = WASM_VECTOR_LEN;
|
|
608
|
+
const ret = wasm.wasmsnapshotrestore_write(this.__wbg_ptr, ptr0, len0);
|
|
609
|
+
return takeObject(ret);
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
if (Symbol.dispose) WasmSnapshotRestore.prototype[Symbol.dispose] = WasmSnapshotRestore.prototype.free;
|
|
613
|
+
|
|
219
614
|
/**
|
|
220
|
-
* @param {any}
|
|
615
|
+
* @param {any} provider
|
|
221
616
|
* @param {Function | null} [telemetry_dispatch]
|
|
617
|
+
* @param {any | null} [telemetry_parent]
|
|
618
|
+
* @param {any | null} [server]
|
|
619
|
+
* @param {Function | null} [open_progress_dispatch]
|
|
222
620
|
* @returns {Promise<WasmLix>}
|
|
223
621
|
*/
|
|
224
|
-
export function
|
|
225
|
-
const ret = wasm.
|
|
622
|
+
export function openJsStorage(provider, telemetry_dispatch, telemetry_parent, server, open_progress_dispatch) {
|
|
623
|
+
const ret = wasm.openJsStorage(addHeapObject(provider), isLikeNone(telemetry_dispatch) ? 0 : addHeapObject(telemetry_dispatch), isLikeNone(telemetry_parent) ? 0 : addHeapObject(telemetry_parent), isLikeNone(server) ? 0 : addHeapObject(server), isLikeNone(open_progress_dispatch) ? 0 : addHeapObject(open_progress_dispatch));
|
|
226
624
|
return takeObject(ret);
|
|
227
625
|
}
|
|
228
626
|
|
|
229
627
|
/**
|
|
628
|
+
* @param {any} provider
|
|
230
629
|
* @param {Function | null} [telemetry_dispatch]
|
|
231
|
-
* @
|
|
630
|
+
* @param {any | null} [telemetry_parent]
|
|
631
|
+
* @param {Function | null} [open_progress_dispatch]
|
|
632
|
+
* @returns {WasmSnapshotRestore}
|
|
232
633
|
*/
|
|
233
|
-
export function
|
|
234
|
-
const ret = wasm.
|
|
235
|
-
return
|
|
634
|
+
export function openJsStorageFromSnapshot(provider, telemetry_dispatch, telemetry_parent, open_progress_dispatch) {
|
|
635
|
+
const ret = wasm.openJsStorageFromSnapshot(addHeapObject(provider), isLikeNone(telemetry_dispatch) ? 0 : addHeapObject(telemetry_dispatch), isLikeNone(telemetry_parent) ? 0 : addHeapObject(telemetry_parent), isLikeNone(open_progress_dispatch) ? 0 : addHeapObject(open_progress_dispatch));
|
|
636
|
+
return WasmSnapshotRestore.__wrap(ret);
|
|
236
637
|
}
|
|
237
638
|
|
|
238
639
|
/**
|
|
239
640
|
* @param {Function | null} [telemetry_dispatch]
|
|
240
|
-
* @param {
|
|
641
|
+
* @param {any | null} [telemetry_parent]
|
|
642
|
+
* @param {any | null} [server]
|
|
643
|
+
* @param {Function | null} [open_progress_dispatch]
|
|
241
644
|
* @returns {Promise<WasmLix>}
|
|
242
645
|
*/
|
|
243
|
-
export function
|
|
244
|
-
|
|
245
|
-
var len0 = WASM_VECTOR_LEN;
|
|
246
|
-
const ret = wasm.openMemoryFromSnapshot(isLikeNone(telemetry_dispatch) ? 0 : addHeapObject(telemetry_dispatch), ptr0, len0);
|
|
646
|
+
export function openMemory(telemetry_dispatch, telemetry_parent, server, open_progress_dispatch) {
|
|
647
|
+
const ret = wasm.openMemory(isLikeNone(telemetry_dispatch) ? 0 : addHeapObject(telemetry_dispatch), isLikeNone(telemetry_parent) ? 0 : addHeapObject(telemetry_parent), isLikeNone(server) ? 0 : addHeapObject(server), isLikeNone(open_progress_dispatch) ? 0 : addHeapObject(open_progress_dispatch));
|
|
247
648
|
return takeObject(ret);
|
|
248
649
|
}
|
|
249
650
|
|
|
250
651
|
/**
|
|
251
|
-
* @param {
|
|
252
|
-
* @param {
|
|
253
|
-
* @
|
|
652
|
+
* @param {Function | null} [telemetry_dispatch]
|
|
653
|
+
* @param {any | null} [telemetry_parent]
|
|
654
|
+
* @param {Function | null} [open_progress_dispatch]
|
|
655
|
+
* @returns {WasmSnapshotRestore}
|
|
254
656
|
*/
|
|
255
|
-
export function
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
657
|
+
export function openMemoryFromSnapshot(telemetry_dispatch, telemetry_parent, open_progress_dispatch) {
|
|
658
|
+
const ret = wasm.openMemoryFromSnapshot(isLikeNone(telemetry_dispatch) ? 0 : addHeapObject(telemetry_dispatch), isLikeNone(telemetry_parent) ? 0 : addHeapObject(telemetry_parent), isLikeNone(open_progress_dispatch) ? 0 : addHeapObject(open_progress_dispatch));
|
|
659
|
+
return WasmSnapshotRestore.__wrap(ret);
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
/**
|
|
663
|
+
* @param {string} url
|
|
664
|
+
* @param {Function} fetch
|
|
665
|
+
* @param {any} headers
|
|
666
|
+
* @param {string | null} [initial_active_branch_id]
|
|
667
|
+
* @returns {Promise<WasmRemoteLix>}
|
|
668
|
+
*/
|
|
669
|
+
export function openRemote(url, fetch, headers, initial_active_branch_id) {
|
|
670
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
671
|
+
const len0 = WASM_VECTOR_LEN;
|
|
672
|
+
var ptr1 = isLikeNone(initial_active_branch_id) ? 0 : passStringToWasm0(initial_active_branch_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
673
|
+
var len1 = WASM_VECTOR_LEN;
|
|
674
|
+
const ret = wasm.openRemote(ptr0, len0, addHeapObject(fetch), addHeapObject(headers), ptr1, len1);
|
|
675
|
+
return takeObject(ret);
|
|
271
676
|
}
|
|
272
677
|
function __wbg_get_imports() {
|
|
273
678
|
const import0 = {
|
|
@@ -362,10 +767,26 @@ function __wbg_get_imports() {
|
|
|
362
767
|
__wbg__wbg_cb_unref_61db23ac97f16c31: function(arg0) {
|
|
363
768
|
getObject(arg0)._wbg_cb_unref();
|
|
364
769
|
},
|
|
365
|
-
|
|
366
|
-
const ret = getObject(arg0).
|
|
770
|
+
__wbg_acquireSession_57f1f2cd5f681c2d: function(arg0) {
|
|
771
|
+
const ret = getObject(arg0).acquireSession();
|
|
772
|
+
return addHeapObject(ret);
|
|
773
|
+
},
|
|
774
|
+
__wbg_beginRead_1138c26c0b47afd3: function(arg0, arg1) {
|
|
775
|
+
const ret = getObject(arg0).beginRead(takeObject(arg1));
|
|
367
776
|
return addHeapObject(ret);
|
|
368
777
|
},
|
|
778
|
+
__wbg_beginScan_d935bfe04519622e: function(arg0, arg1, arg2, arg3) {
|
|
779
|
+
const ret = getObject(arg0).beginScan(takeObject(arg1), takeObject(arg2), takeObject(arg3));
|
|
780
|
+
return addHeapObject(ret);
|
|
781
|
+
},
|
|
782
|
+
__wbg_beginWrite_4d84cc1cbfc72fa9: function(arg0, arg1) {
|
|
783
|
+
const ret = getObject(arg0).beginWrite(takeObject(arg1));
|
|
784
|
+
return addHeapObject(ret);
|
|
785
|
+
},
|
|
786
|
+
__wbg_call_40e4174f169eaca7: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
787
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
|
|
788
|
+
return addHeapObject(ret);
|
|
789
|
+
}, arguments); },
|
|
369
790
|
__wbg_call_8a89609d89f6608a: function() { return handleError(function (arg0, arg1) {
|
|
370
791
|
const ret = getObject(arg0).call(getObject(arg1));
|
|
371
792
|
return addHeapObject(ret);
|
|
@@ -374,10 +795,33 @@ function __wbg_get_imports() {
|
|
|
374
795
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
375
796
|
return addHeapObject(ret);
|
|
376
797
|
}, arguments); },
|
|
377
|
-
|
|
798
|
+
__wbg_changed_8b3c117efdd37fbf: function(arg0) {
|
|
799
|
+
const ret = getObject(arg0).changed();
|
|
800
|
+
return addHeapObject(ret);
|
|
801
|
+
},
|
|
802
|
+
__wbg_close_70069a5308f6a3d8: function(arg0) {
|
|
378
803
|
const ret = getObject(arg0).close();
|
|
379
804
|
return addHeapObject(ret);
|
|
380
805
|
},
|
|
806
|
+
__wbg_close_eb44b04eda5115d4: function(arg0) {
|
|
807
|
+
getObject(arg0).close();
|
|
808
|
+
},
|
|
809
|
+
__wbg_commit_9dc6a608a8f559f7: function(arg0) {
|
|
810
|
+
const ret = getObject(arg0).commit();
|
|
811
|
+
return addHeapObject(ret);
|
|
812
|
+
},
|
|
813
|
+
__wbg_construct_e0f002bb615dbba1: function() { return handleError(function (arg0, arg1) {
|
|
814
|
+
const ret = Reflect.construct(getObject(arg0), getObject(arg1));
|
|
815
|
+
return addHeapObject(ret);
|
|
816
|
+
}, arguments); },
|
|
817
|
+
__wbg_deleteMany_15f48563982d361e: function(arg0, arg1, arg2) {
|
|
818
|
+
const ret = getObject(arg0).deleteMany(takeObject(arg1), takeObject(arg2));
|
|
819
|
+
return addHeapObject(ret);
|
|
820
|
+
},
|
|
821
|
+
__wbg_deleteRange_29b8dd1d129b1f8c: function(arg0, arg1, arg2) {
|
|
822
|
+
const ret = getObject(arg0).deleteRange(takeObject(arg1), takeObject(arg2));
|
|
823
|
+
return addHeapObject(ret);
|
|
824
|
+
},
|
|
381
825
|
__wbg_done_60cf307fcc680536: function(arg0) {
|
|
382
826
|
const ret = getObject(arg0).done;
|
|
383
827
|
return ret;
|
|
@@ -401,6 +845,10 @@ function __wbg_get_imports() {
|
|
|
401
845
|
const ret = Array.from(getObject(arg0));
|
|
402
846
|
return addHeapObject(ret);
|
|
403
847
|
},
|
|
848
|
+
__wbg_getMany_946bf213edc127f3: function(arg0, arg1) {
|
|
849
|
+
const ret = getObject(arg0).getMany(takeObject(arg1));
|
|
850
|
+
return addHeapObject(ret);
|
|
851
|
+
},
|
|
404
852
|
__wbg_getRandomValues_3f44b700395062e5: function() { return handleError(function (arg0, arg1) {
|
|
405
853
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
406
854
|
}, arguments); },
|
|
@@ -451,6 +899,16 @@ function __wbg_get_imports() {
|
|
|
451
899
|
const ret = result;
|
|
452
900
|
return ret;
|
|
453
901
|
},
|
|
902
|
+
__wbg_instanceof_Promise_d0db99486956c8e8: function(arg0) {
|
|
903
|
+
let result;
|
|
904
|
+
try {
|
|
905
|
+
result = getObject(arg0) instanceof Promise;
|
|
906
|
+
} catch (_) {
|
|
907
|
+
result = false;
|
|
908
|
+
}
|
|
909
|
+
const ret = result;
|
|
910
|
+
return ret;
|
|
911
|
+
},
|
|
454
912
|
__wbg_instanceof_Uint8Array_86f30649f63ef9c2: function(arg0) {
|
|
455
913
|
let result;
|
|
456
914
|
try {
|
|
@@ -481,8 +939,8 @@ function __wbg_get_imports() {
|
|
|
481
939
|
const ret = getObject(arg0).length;
|
|
482
940
|
return ret;
|
|
483
941
|
},
|
|
484
|
-
|
|
485
|
-
const ret = getObject(arg0).
|
|
942
|
+
__wbg_message_40300ed2d1f8bdc6: function(arg0) {
|
|
943
|
+
const ret = getObject(arg0).message;
|
|
486
944
|
return addHeapObject(ret);
|
|
487
945
|
},
|
|
488
946
|
__wbg_new_0_445c13a750296eb6: function() {
|
|
@@ -505,6 +963,24 @@ function __wbg_get_imports() {
|
|
|
505
963
|
const ret = new Map();
|
|
506
964
|
return addHeapObject(ret);
|
|
507
965
|
},
|
|
966
|
+
__wbg_new_b682b81e8eaaf027: function(arg0, arg1) {
|
|
967
|
+
try {
|
|
968
|
+
var state0 = {a: arg0, b: arg1};
|
|
969
|
+
var cb0 = (arg0, arg1) => {
|
|
970
|
+
const a = state0.a;
|
|
971
|
+
state0.a = 0;
|
|
972
|
+
try {
|
|
973
|
+
return __wasm_bindgen_func_elem_92637(a, state0.b, arg0, arg1);
|
|
974
|
+
} finally {
|
|
975
|
+
state0.a = a;
|
|
976
|
+
}
|
|
977
|
+
};
|
|
978
|
+
const ret = new Promise(cb0);
|
|
979
|
+
return addHeapObject(ret);
|
|
980
|
+
} finally {
|
|
981
|
+
state0.a = 0;
|
|
982
|
+
}
|
|
983
|
+
},
|
|
508
984
|
__wbg_new_ce1ab61c1c2b300d: function() {
|
|
509
985
|
const ret = new Object();
|
|
510
986
|
return addHeapObject(ret);
|
|
@@ -513,6 +989,10 @@ function __wbg_get_imports() {
|
|
|
513
989
|
const ret = new Array();
|
|
514
990
|
return addHeapObject(ret);
|
|
515
991
|
},
|
|
992
|
+
__wbg_new_from_slice_18fa1f71286d66b8: function(arg0, arg1) {
|
|
993
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
994
|
+
return addHeapObject(ret);
|
|
995
|
+
},
|
|
516
996
|
__wbg_new_typed_bf31d18f92484486: function(arg0, arg1) {
|
|
517
997
|
try {
|
|
518
998
|
var state0 = {a: arg0, b: arg1};
|
|
@@ -520,7 +1000,7 @@ function __wbg_get_imports() {
|
|
|
520
1000
|
const a = state0.a;
|
|
521
1001
|
state0.a = 0;
|
|
522
1002
|
try {
|
|
523
|
-
return
|
|
1003
|
+
return __wasm_bindgen_func_elem_92637(a, state0.b, arg0, arg1);
|
|
524
1004
|
} finally {
|
|
525
1005
|
state0.a = a;
|
|
526
1006
|
}
|
|
@@ -531,6 +1011,10 @@ function __wbg_get_imports() {
|
|
|
531
1011
|
state0.a = 0;
|
|
532
1012
|
}
|
|
533
1013
|
},
|
|
1014
|
+
__wbg_nextPage_6902443bcbff10d3: function(arg0, arg1) {
|
|
1015
|
+
const ret = getObject(arg0).nextPage(arg1 >>> 0);
|
|
1016
|
+
return addHeapObject(ret);
|
|
1017
|
+
},
|
|
534
1018
|
__wbg_next_9e03acdf51c4960d: function(arg0) {
|
|
535
1019
|
const ret = getObject(arg0).next;
|
|
536
1020
|
return addHeapObject(ret);
|
|
@@ -551,6 +1035,10 @@ function __wbg_get_imports() {
|
|
|
551
1035
|
const ret = getObject(arg0).now();
|
|
552
1036
|
return ret;
|
|
553
1037
|
},
|
|
1038
|
+
__wbg_of_57145fdec12d159f: function(arg0) {
|
|
1039
|
+
const ret = Array.of(getObject(arg0));
|
|
1040
|
+
return addHeapObject(ret);
|
|
1041
|
+
},
|
|
554
1042
|
__wbg_performance_3fcf6e32a7e1ed0a: function(arg0) {
|
|
555
1043
|
const ret = getObject(arg0).performance;
|
|
556
1044
|
return addHeapObject(ret);
|
|
@@ -558,6 +1046,14 @@ function __wbg_get_imports() {
|
|
|
558
1046
|
__wbg_prototypesetcall_3249fc62a0fafa30: function(arg0, arg1, arg2) {
|
|
559
1047
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
560
1048
|
},
|
|
1049
|
+
__wbg_push_a6822215aa43e71c: function(arg0, arg1) {
|
|
1050
|
+
const ret = getObject(arg0).push(getObject(arg1));
|
|
1051
|
+
return ret;
|
|
1052
|
+
},
|
|
1053
|
+
__wbg_putMany_168141e3afba203c: function(arg0, arg1, arg2) {
|
|
1054
|
+
const ret = getObject(arg0).putMany(takeObject(arg1), takeObject(arg2));
|
|
1055
|
+
return addHeapObject(ret);
|
|
1056
|
+
},
|
|
561
1057
|
__wbg_queueMicrotask_35c611f4a14830b2: function(arg0) {
|
|
562
1058
|
queueMicrotask(getObject(arg0));
|
|
563
1059
|
},
|
|
@@ -565,10 +1061,18 @@ function __wbg_get_imports() {
|
|
|
565
1061
|
const ret = getObject(arg0).queueMicrotask;
|
|
566
1062
|
return addHeapObject(ret);
|
|
567
1063
|
},
|
|
1064
|
+
__wbg_replaceMany_b2dc402a4ff6b772: function(arg0, arg1, arg2) {
|
|
1065
|
+
const ret = getObject(arg0).replaceMany(takeObject(arg1), takeObject(arg2));
|
|
1066
|
+
return addHeapObject(ret);
|
|
1067
|
+
},
|
|
568
1068
|
__wbg_resolve_25a7e548d5881dca: function(arg0) {
|
|
569
1069
|
const ret = Promise.resolve(getObject(arg0));
|
|
570
1070
|
return addHeapObject(ret);
|
|
571
1071
|
},
|
|
1072
|
+
__wbg_rollback_5632fb7c3f6f9b08: function(arg0) {
|
|
1073
|
+
const ret = getObject(arg0).rollback();
|
|
1074
|
+
return addHeapObject(ret);
|
|
1075
|
+
},
|
|
572
1076
|
__wbg_set_52b1e1eb5bed906a: function(arg0, arg1, arg2) {
|
|
573
1077
|
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
574
1078
|
return addHeapObject(ret);
|
|
@@ -609,6 +1113,10 @@ function __wbg_get_imports() {
|
|
|
609
1113
|
const ret = typeof window === 'undefined' ? null : window;
|
|
610
1114
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
611
1115
|
},
|
|
1116
|
+
__wbg_stringify_8286df6dcc591521: function() { return handleError(function (arg0) {
|
|
1117
|
+
const ret = JSON.stringify(getObject(arg0));
|
|
1118
|
+
return addHeapObject(ret);
|
|
1119
|
+
}, arguments); },
|
|
612
1120
|
__wbg_then_18f476d590e58992: function(arg0, arg1, arg2) {
|
|
613
1121
|
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
|
614
1122
|
return addHeapObject(ret);
|
|
@@ -633,37 +1141,58 @@ function __wbg_get_imports() {
|
|
|
633
1141
|
const ret = WasmObserveEvents.__wrap(arg0);
|
|
634
1142
|
return addHeapObject(ret);
|
|
635
1143
|
},
|
|
1144
|
+
__wbg_wasmremotelix_new: function(arg0) {
|
|
1145
|
+
const ret = WasmRemoteLix.__wrap(arg0);
|
|
1146
|
+
return addHeapObject(ret);
|
|
1147
|
+
},
|
|
1148
|
+
__wbg_wasmremotelixtransaction_new: function(arg0) {
|
|
1149
|
+
const ret = WasmRemoteLixTransaction.__wrap(arg0);
|
|
1150
|
+
return addHeapObject(ret);
|
|
1151
|
+
},
|
|
1152
|
+
__wbg_wasmremoteobserveevents_new: function(arg0) {
|
|
1153
|
+
const ret = WasmRemoteObserveEvents.__wrap(arg0);
|
|
1154
|
+
return addHeapObject(ret);
|
|
1155
|
+
},
|
|
1156
|
+
__wbg_watchForChanges_465d4036436d28da: function(arg0) {
|
|
1157
|
+
const ret = getObject(arg0).watchForChanges();
|
|
1158
|
+
return addHeapObject(ret);
|
|
1159
|
+
},
|
|
636
1160
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
637
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
638
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1161
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 21338, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1162
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_92635);
|
|
639
1163
|
return addHeapObject(ret);
|
|
640
1164
|
},
|
|
641
|
-
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
1165
|
+
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1166
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1647, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1167
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_16813);
|
|
1168
|
+
return addHeapObject(ret);
|
|
1169
|
+
},
|
|
1170
|
+
__wbindgen_cast_0000000000000003: function(arg0) {
|
|
642
1171
|
// Cast intrinsic for `F64 -> Externref`.
|
|
643
1172
|
const ret = arg0;
|
|
644
1173
|
return addHeapObject(ret);
|
|
645
1174
|
},
|
|
646
|
-
|
|
1175
|
+
__wbindgen_cast_0000000000000004: function(arg0) {
|
|
647
1176
|
// Cast intrinsic for `I64 -> Externref`.
|
|
648
1177
|
const ret = arg0;
|
|
649
1178
|
return addHeapObject(ret);
|
|
650
1179
|
},
|
|
651
|
-
|
|
1180
|
+
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
652
1181
|
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
653
1182
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
654
1183
|
return addHeapObject(ret);
|
|
655
1184
|
},
|
|
656
|
-
|
|
1185
|
+
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
657
1186
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
658
1187
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
659
1188
|
return addHeapObject(ret);
|
|
660
1189
|
},
|
|
661
|
-
|
|
1190
|
+
__wbindgen_cast_0000000000000007: function(arg0) {
|
|
662
1191
|
// Cast intrinsic for `U64 -> Externref`.
|
|
663
1192
|
const ret = BigInt.asUintN(64, arg0);
|
|
664
1193
|
return addHeapObject(ret);
|
|
665
1194
|
},
|
|
666
|
-
|
|
1195
|
+
__wbindgen_cast_0000000000000008: function(arg0, arg1) {
|
|
667
1196
|
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
668
1197
|
wasm.__wbindgen_export4(arg0, arg1 * 1, 1);
|
|
669
1198
|
// Cast intrinsic for `Vector(U8) -> Externref`.
|
|
@@ -684,10 +1213,14 @@ function __wbg_get_imports() {
|
|
|
684
1213
|
};
|
|
685
1214
|
}
|
|
686
1215
|
|
|
687
|
-
function
|
|
1216
|
+
function __wasm_bindgen_func_elem_16813(arg0, arg1) {
|
|
1217
|
+
wasm.__wasm_bindgen_func_elem_16813(arg0, arg1);
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
function __wasm_bindgen_func_elem_92635(arg0, arg1, arg2) {
|
|
688
1221
|
try {
|
|
689
1222
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
690
|
-
wasm.
|
|
1223
|
+
wasm.__wasm_bindgen_func_elem_92635(retptr, arg0, arg1, addHeapObject(arg2));
|
|
691
1224
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
692
1225
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
693
1226
|
if (r1) {
|
|
@@ -698,8 +1231,8 @@ function __wasm_bindgen_func_elem_119238(arg0, arg1, arg2) {
|
|
|
698
1231
|
}
|
|
699
1232
|
}
|
|
700
1233
|
|
|
701
|
-
function
|
|
702
|
-
wasm.
|
|
1234
|
+
function __wasm_bindgen_func_elem_92637(arg0, arg1, arg2, arg3) {
|
|
1235
|
+
wasm.__wasm_bindgen_func_elem_92637(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
703
1236
|
}
|
|
704
1237
|
|
|
705
1238
|
const WasmLixFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -711,6 +1244,21 @@ const WasmLixTransactionFinalization = (typeof FinalizationRegistry === 'undefin
|
|
|
711
1244
|
const WasmObserveEventsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
712
1245
|
? { register: () => {}, unregister: () => {} }
|
|
713
1246
|
: new FinalizationRegistry(ptr => wasm.__wbg_wasmobserveevents_free(ptr, 1));
|
|
1247
|
+
const WasmRemoteLixFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1248
|
+
? { register: () => {}, unregister: () => {} }
|
|
1249
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmremotelix_free(ptr, 1));
|
|
1250
|
+
const WasmRemoteLixTransactionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1251
|
+
? { register: () => {}, unregister: () => {} }
|
|
1252
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmremotelixtransaction_free(ptr, 1));
|
|
1253
|
+
const WasmRemoteObserveEventsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1254
|
+
? { register: () => {}, unregister: () => {} }
|
|
1255
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmremoteobserveevents_free(ptr, 1));
|
|
1256
|
+
const WasmSnapshotExportFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1257
|
+
? { register: () => {}, unregister: () => {} }
|
|
1258
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmsnapshotexport_free(ptr, 1));
|
|
1259
|
+
const WasmSnapshotRestoreFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1260
|
+
? { register: () => {}, unregister: () => {} }
|
|
1261
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmsnapshotrestore_free(ptr, 1));
|
|
714
1262
|
|
|
715
1263
|
function addHeapObject(obj) {
|
|
716
1264
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
@@ -992,26 +1540,6 @@ async function __wbg_load(module, imports) {
|
|
|
992
1540
|
}
|
|
993
1541
|
}
|
|
994
1542
|
|
|
995
|
-
function initSync(module) {
|
|
996
|
-
if (wasm !== undefined) return wasm;
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
if (module !== undefined) {
|
|
1000
|
-
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
1001
|
-
({module} = module)
|
|
1002
|
-
} else {
|
|
1003
|
-
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
1004
|
-
}
|
|
1005
|
-
}
|
|
1006
|
-
|
|
1007
|
-
const imports = __wbg_get_imports();
|
|
1008
|
-
if (!(module instanceof WebAssembly.Module)) {
|
|
1009
|
-
module = new WebAssembly.Module(module);
|
|
1010
|
-
}
|
|
1011
|
-
const instance = new WebAssembly.Instance(module, imports);
|
|
1012
|
-
return __wbg_finalize_init(instance, module);
|
|
1013
|
-
}
|
|
1014
|
-
|
|
1015
1543
|
async function __wbg_init(module_or_path) {
|
|
1016
1544
|
if (wasm !== undefined) return wasm;
|
|
1017
1545
|
|
|
@@ -1038,4 +1566,4 @@ async function __wbg_init(module_or_path) {
|
|
|
1038
1566
|
return __wbg_finalize_init(instance, module);
|
|
1039
1567
|
}
|
|
1040
1568
|
|
|
1041
|
-
export {
|
|
1569
|
+
export { __wbg_init as default };
|