@lix-js/sdk 0.12.2 → 0.14.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 +40 -10
- package/dist/binding-types.d.ts +37 -9
- package/dist/binding.browser.d.ts +2 -2
- package/dist/binding.browser.js +25 -10
- package/dist/binding.node-wasm.d.ts +2 -2
- package/dist/binding.node-wasm.js +8 -4
- package/dist/binding.node.d.ts +3 -3
- package/dist/binding.node.js +70 -13
- package/dist/browser-wasm-init.d.ts +14 -0
- package/dist/browser-wasm-init.js +16 -0
- 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 +135 -12
- package/dist/open-lix.d.ts +4 -5
- package/dist/open-lix.js +173 -33
- package/dist/remote/client.d.ts +1 -2
- package/dist/remote/client.js +58 -1151
- package/dist/remote/server-protocol.d.ts +5 -6
- package/dist/remote/server-protocol.js +40 -9
- 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 +101 -31
- package/dist/value.d.ts +1 -0
- package/dist/value.js +8 -0
- package/dist/wasm/lix_js_sdk.d.ts +119 -24
- package/dist/wasm/lix_js_sdk.js +599 -78
- package/dist/wasm/lix_js_sdk_bg.wasm +0 -0
- package/dist/wasm/lix_js_sdk_bg.wasm.d.ts +47 -6
- package/dist/worker/client.d.ts +27 -5
- package/dist/worker/client.js +458 -45
- package/dist/worker/factory.browser.d.ts +2 -2
- package/dist/worker/factory.node.d.ts +3 -2
- package/dist/worker/factory.node.js +18 -12
- package/dist/worker/host.d.ts +2 -1
- package/dist/worker/host.js +283 -37
- package/dist/worker/protocol.d.ts +80 -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,409 @@ 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
|
+
* @param {any} _paths
|
|
361
|
+
* @returns {Promise<void>}
|
|
362
|
+
*/
|
|
363
|
+
importFilesystemPaths(_paths) {
|
|
364
|
+
const ret = wasm.wasmremotelix_importFilesystemPaths(this.__wbg_ptr, addHeapObject(_paths));
|
|
365
|
+
return takeObject(ret);
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* @param {any} _options
|
|
369
|
+
* @returns {Promise<any>}
|
|
370
|
+
*/
|
|
371
|
+
mergeBranch(_options) {
|
|
372
|
+
const ret = wasm.wasmremotelix_mergeBranch(this.__wbg_ptr, addHeapObject(_options));
|
|
373
|
+
return takeObject(ret);
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* @param {any} _options
|
|
377
|
+
* @returns {Promise<any>}
|
|
378
|
+
*/
|
|
379
|
+
mergeBranchPreview(_options) {
|
|
380
|
+
const ret = wasm.wasmremotelix_mergeBranchPreview(this.__wbg_ptr, addHeapObject(_options));
|
|
381
|
+
return takeObject(ret);
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* @param {string} sql
|
|
385
|
+
* @param {any} params
|
|
386
|
+
* @returns {Promise<WasmRemoteObserveEvents>}
|
|
387
|
+
*/
|
|
388
|
+
observe(sql, params) {
|
|
389
|
+
const ptr0 = passStringToWasm0(sql, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
390
|
+
const len0 = WASM_VECTOR_LEN;
|
|
391
|
+
const ret = wasm.wasmremotelix_observe(this.__wbg_ptr, ptr0, len0, addHeapObject(params));
|
|
392
|
+
return takeObject(ret);
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* @param {any} options
|
|
396
|
+
* @returns {Promise<WasmRemoteLix>}
|
|
397
|
+
*/
|
|
398
|
+
openAnotherSession(options) {
|
|
399
|
+
const ret = wasm.wasmremotelix_openAnotherSession(this.__wbg_ptr, addHeapObject(options));
|
|
400
|
+
return takeObject(ret);
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* @returns {Promise<any>}
|
|
404
|
+
*/
|
|
405
|
+
redo() {
|
|
406
|
+
const ret = wasm.wasmremotelix_redo(this.__wbg_ptr);
|
|
407
|
+
return takeObject(ret);
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* @param {any | null} [_parent]
|
|
411
|
+
*/
|
|
412
|
+
setTelemetryParent(_parent) {
|
|
413
|
+
wasm.wasmremotelix_setTelemetryParent(this.__wbg_ptr, isLikeNone(_parent) ? 0 : addHeapObject(_parent));
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* @param {any} options
|
|
417
|
+
* @returns {Promise<any>}
|
|
418
|
+
*/
|
|
419
|
+
switchBranch(options) {
|
|
420
|
+
const ret = wasm.wasmremotelix_switchBranch(this.__wbg_ptr, addHeapObject(options));
|
|
421
|
+
return takeObject(ret);
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* @returns {Promise<void>}
|
|
425
|
+
*/
|
|
426
|
+
syncDiskToLix() {
|
|
427
|
+
const ret = wasm.wasmremotelix_syncDiskToLix(this.__wbg_ptr);
|
|
428
|
+
return takeObject(ret);
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* @returns {Promise<any>}
|
|
432
|
+
*/
|
|
433
|
+
undo() {
|
|
434
|
+
const ret = wasm.wasmremotelix_undo(this.__wbg_ptr);
|
|
435
|
+
return takeObject(ret);
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
if (Symbol.dispose) WasmRemoteLix.prototype[Symbol.dispose] = WasmRemoteLix.prototype.free;
|
|
439
|
+
|
|
440
|
+
export class WasmRemoteLixTransaction {
|
|
441
|
+
static __wrap(ptr) {
|
|
442
|
+
const obj = Object.create(WasmRemoteLixTransaction.prototype);
|
|
443
|
+
obj.__wbg_ptr = ptr;
|
|
444
|
+
WasmRemoteLixTransactionFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
445
|
+
return obj;
|
|
446
|
+
}
|
|
447
|
+
__destroy_into_raw() {
|
|
448
|
+
const ptr = this.__wbg_ptr;
|
|
449
|
+
this.__wbg_ptr = 0;
|
|
450
|
+
WasmRemoteLixTransactionFinalization.unregister(this);
|
|
451
|
+
return ptr;
|
|
452
|
+
}
|
|
453
|
+
free() {
|
|
454
|
+
const ptr = this.__destroy_into_raw();
|
|
455
|
+
wasm.__wbg_wasmremotelixtransaction_free(ptr, 0);
|
|
456
|
+
}
|
|
457
|
+
/**
|
|
458
|
+
* @returns {Promise<void>}
|
|
459
|
+
*/
|
|
460
|
+
commit() {
|
|
461
|
+
const ret = wasm.wasmremotelixtransaction_commit(this.__wbg_ptr);
|
|
462
|
+
return takeObject(ret);
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* @param {string} sql
|
|
466
|
+
* @param {any} params
|
|
467
|
+
* @param {any | null} [options]
|
|
468
|
+
* @returns {Promise<any>}
|
|
469
|
+
*/
|
|
470
|
+
execute(sql, params, options) {
|
|
471
|
+
const ptr0 = passStringToWasm0(sql, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
472
|
+
const len0 = WASM_VECTOR_LEN;
|
|
473
|
+
const ret = wasm.wasmremotelixtransaction_execute(this.__wbg_ptr, ptr0, len0, addHeapObject(params), isLikeNone(options) ? 0 : addHeapObject(options));
|
|
474
|
+
return takeObject(ret);
|
|
475
|
+
}
|
|
476
|
+
/**
|
|
477
|
+
* @returns {Promise<void>}
|
|
478
|
+
*/
|
|
479
|
+
rollback() {
|
|
480
|
+
const ret = wasm.wasmremotelixtransaction_rollback(this.__wbg_ptr);
|
|
481
|
+
return takeObject(ret);
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
if (Symbol.dispose) WasmRemoteLixTransaction.prototype[Symbol.dispose] = WasmRemoteLixTransaction.prototype.free;
|
|
485
|
+
|
|
486
|
+
export class WasmRemoteObserveEvents {
|
|
487
|
+
static __wrap(ptr) {
|
|
488
|
+
const obj = Object.create(WasmRemoteObserveEvents.prototype);
|
|
489
|
+
obj.__wbg_ptr = ptr;
|
|
490
|
+
WasmRemoteObserveEventsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
491
|
+
return obj;
|
|
492
|
+
}
|
|
493
|
+
__destroy_into_raw() {
|
|
494
|
+
const ptr = this.__wbg_ptr;
|
|
495
|
+
this.__wbg_ptr = 0;
|
|
496
|
+
WasmRemoteObserveEventsFinalization.unregister(this);
|
|
497
|
+
return ptr;
|
|
498
|
+
}
|
|
499
|
+
free() {
|
|
500
|
+
const ptr = this.__destroy_into_raw();
|
|
501
|
+
wasm.__wbg_wasmremoteobserveevents_free(ptr, 0);
|
|
502
|
+
}
|
|
503
|
+
close() {
|
|
504
|
+
wasm.wasmremoteobserveevents_close(this.__wbg_ptr);
|
|
505
|
+
}
|
|
506
|
+
/**
|
|
507
|
+
* @returns {Promise<any>}
|
|
508
|
+
*/
|
|
509
|
+
next() {
|
|
510
|
+
const ret = wasm.wasmremoteobserveevents_next(this.__wbg_ptr);
|
|
511
|
+
return takeObject(ret);
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
* @param {any | null} [_parent]
|
|
515
|
+
*/
|
|
516
|
+
setTelemetryParent(_parent) {
|
|
517
|
+
wasm.wasmremoteobserveevents_setTelemetryParent(this.__wbg_ptr, isLikeNone(_parent) ? 0 : addHeapObject(_parent));
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
if (Symbol.dispose) WasmRemoteObserveEvents.prototype[Symbol.dispose] = WasmRemoteObserveEvents.prototype.free;
|
|
521
|
+
|
|
522
|
+
export class WasmSnapshotExport {
|
|
523
|
+
static __wrap(ptr) {
|
|
524
|
+
const obj = Object.create(WasmSnapshotExport.prototype);
|
|
525
|
+
obj.__wbg_ptr = ptr;
|
|
526
|
+
WasmSnapshotExportFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
527
|
+
return obj;
|
|
528
|
+
}
|
|
529
|
+
__destroy_into_raw() {
|
|
530
|
+
const ptr = this.__wbg_ptr;
|
|
531
|
+
this.__wbg_ptr = 0;
|
|
532
|
+
WasmSnapshotExportFinalization.unregister(this);
|
|
533
|
+
return ptr;
|
|
534
|
+
}
|
|
535
|
+
free() {
|
|
536
|
+
const ptr = this.__destroy_into_raw();
|
|
537
|
+
wasm.__wbg_wasmsnapshotexport_free(ptr, 0);
|
|
538
|
+
}
|
|
539
|
+
/**
|
|
540
|
+
* @returns {Promise<void>}
|
|
541
|
+
*/
|
|
542
|
+
cancel() {
|
|
543
|
+
const ret = wasm.wasmsnapshotexport_cancel(this.__wbg_ptr);
|
|
544
|
+
return takeObject(ret);
|
|
545
|
+
}
|
|
546
|
+
/**
|
|
547
|
+
* @returns {Promise<Uint8Array | undefined>}
|
|
548
|
+
*/
|
|
549
|
+
next() {
|
|
550
|
+
const ret = wasm.wasmsnapshotexport_next(this.__wbg_ptr);
|
|
551
|
+
return takeObject(ret);
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
if (Symbol.dispose) WasmSnapshotExport.prototype[Symbol.dispose] = WasmSnapshotExport.prototype.free;
|
|
555
|
+
|
|
556
|
+
export class WasmSnapshotRestore {
|
|
557
|
+
static __wrap(ptr) {
|
|
558
|
+
const obj = Object.create(WasmSnapshotRestore.prototype);
|
|
559
|
+
obj.__wbg_ptr = ptr;
|
|
560
|
+
WasmSnapshotRestoreFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
561
|
+
return obj;
|
|
562
|
+
}
|
|
563
|
+
__destroy_into_raw() {
|
|
564
|
+
const ptr = this.__wbg_ptr;
|
|
565
|
+
this.__wbg_ptr = 0;
|
|
566
|
+
WasmSnapshotRestoreFinalization.unregister(this);
|
|
567
|
+
return ptr;
|
|
568
|
+
}
|
|
569
|
+
free() {
|
|
570
|
+
const ptr = this.__destroy_into_raw();
|
|
571
|
+
wasm.__wbg_wasmsnapshotrestore_free(ptr, 0);
|
|
572
|
+
}
|
|
573
|
+
/**
|
|
574
|
+
* @returns {Promise<void>}
|
|
575
|
+
*/
|
|
576
|
+
cancel() {
|
|
577
|
+
const ret = wasm.wasmsnapshotrestore_cancel(this.__wbg_ptr);
|
|
578
|
+
return takeObject(ret);
|
|
579
|
+
}
|
|
580
|
+
/**
|
|
581
|
+
* @returns {Promise<WasmLix>}
|
|
582
|
+
*/
|
|
583
|
+
finish() {
|
|
584
|
+
const ret = wasm.wasmsnapshotrestore_finish(this.__wbg_ptr);
|
|
585
|
+
return takeObject(ret);
|
|
586
|
+
}
|
|
587
|
+
/**
|
|
588
|
+
* @returns {boolean}
|
|
589
|
+
*/
|
|
590
|
+
isComplete() {
|
|
591
|
+
const ret = wasm.wasmsnapshotrestore_isComplete(this.__wbg_ptr);
|
|
592
|
+
return ret !== 0;
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
* @param {Uint8Array} chunk
|
|
596
|
+
* @returns {Promise<void>}
|
|
597
|
+
*/
|
|
598
|
+
write(chunk) {
|
|
599
|
+
const ptr0 = passArray8ToWasm0(chunk, wasm.__wbindgen_export);
|
|
600
|
+
const len0 = WASM_VECTOR_LEN;
|
|
601
|
+
const ret = wasm.wasmsnapshotrestore_write(this.__wbg_ptr, ptr0, len0);
|
|
602
|
+
return takeObject(ret);
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
if (Symbol.dispose) WasmSnapshotRestore.prototype[Symbol.dispose] = WasmSnapshotRestore.prototype.free;
|
|
606
|
+
|
|
219
607
|
/**
|
|
220
|
-
* @param {any}
|
|
608
|
+
* @param {any} provider
|
|
221
609
|
* @param {Function | null} [telemetry_dispatch]
|
|
610
|
+
* @param {any | null} [telemetry_parent]
|
|
611
|
+
* @param {any | null} [server]
|
|
612
|
+
* @param {Function | null} [open_progress_dispatch]
|
|
222
613
|
* @returns {Promise<WasmLix>}
|
|
223
614
|
*/
|
|
224
|
-
export function
|
|
225
|
-
const ret = wasm.
|
|
615
|
+
export function openJsStorage(provider, telemetry_dispatch, telemetry_parent, server, open_progress_dispatch) {
|
|
616
|
+
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
617
|
return takeObject(ret);
|
|
227
618
|
}
|
|
228
619
|
|
|
229
620
|
/**
|
|
621
|
+
* @param {any} provider
|
|
230
622
|
* @param {Function | null} [telemetry_dispatch]
|
|
231
|
-
* @
|
|
623
|
+
* @param {any | null} [telemetry_parent]
|
|
624
|
+
* @param {Function | null} [open_progress_dispatch]
|
|
625
|
+
* @returns {WasmSnapshotRestore}
|
|
232
626
|
*/
|
|
233
|
-
export function
|
|
234
|
-
const ret = wasm.
|
|
235
|
-
return
|
|
627
|
+
export function openJsStorageFromSnapshot(provider, telemetry_dispatch, telemetry_parent, open_progress_dispatch) {
|
|
628
|
+
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));
|
|
629
|
+
return WasmSnapshotRestore.__wrap(ret);
|
|
236
630
|
}
|
|
237
631
|
|
|
238
632
|
/**
|
|
239
633
|
* @param {Function | null} [telemetry_dispatch]
|
|
240
|
-
* @param {
|
|
634
|
+
* @param {any | null} [telemetry_parent]
|
|
635
|
+
* @param {any | null} [server]
|
|
636
|
+
* @param {Function | null} [open_progress_dispatch]
|
|
241
637
|
* @returns {Promise<WasmLix>}
|
|
242
638
|
*/
|
|
243
|
-
export function
|
|
244
|
-
|
|
245
|
-
var len0 = WASM_VECTOR_LEN;
|
|
246
|
-
const ret = wasm.openMemoryFromSnapshot(isLikeNone(telemetry_dispatch) ? 0 : addHeapObject(telemetry_dispatch), ptr0, len0);
|
|
639
|
+
export function openMemory(telemetry_dispatch, telemetry_parent, server, open_progress_dispatch) {
|
|
640
|
+
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
641
|
return takeObject(ret);
|
|
248
642
|
}
|
|
249
643
|
|
|
250
644
|
/**
|
|
251
|
-
* @param {
|
|
252
|
-
* @param {
|
|
253
|
-
* @
|
|
645
|
+
* @param {Function | null} [telemetry_dispatch]
|
|
646
|
+
* @param {any | null} [telemetry_parent]
|
|
647
|
+
* @param {Function | null} [open_progress_dispatch]
|
|
648
|
+
* @returns {WasmSnapshotRestore}
|
|
254
649
|
*/
|
|
255
|
-
export function
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
650
|
+
export function openMemoryFromSnapshot(telemetry_dispatch, telemetry_parent, open_progress_dispatch) {
|
|
651
|
+
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));
|
|
652
|
+
return WasmSnapshotRestore.__wrap(ret);
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
/**
|
|
656
|
+
* @param {string} url
|
|
657
|
+
* @param {Function} fetch
|
|
658
|
+
* @param {any} headers
|
|
659
|
+
* @param {string | null} [initial_active_branch_id]
|
|
660
|
+
* @returns {Promise<WasmRemoteLix>}
|
|
661
|
+
*/
|
|
662
|
+
export function openRemote(url, fetch, headers, initial_active_branch_id) {
|
|
663
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
664
|
+
const len0 = WASM_VECTOR_LEN;
|
|
665
|
+
var ptr1 = isLikeNone(initial_active_branch_id) ? 0 : passStringToWasm0(initial_active_branch_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
666
|
+
var len1 = WASM_VECTOR_LEN;
|
|
667
|
+
const ret = wasm.openRemote(ptr0, len0, addHeapObject(fetch), addHeapObject(headers), ptr1, len1);
|
|
668
|
+
return takeObject(ret);
|
|
271
669
|
}
|
|
272
670
|
function __wbg_get_imports() {
|
|
273
671
|
const import0 = {
|
|
@@ -362,10 +760,26 @@ function __wbg_get_imports() {
|
|
|
362
760
|
__wbg__wbg_cb_unref_61db23ac97f16c31: function(arg0) {
|
|
363
761
|
getObject(arg0)._wbg_cb_unref();
|
|
364
762
|
},
|
|
365
|
-
|
|
366
|
-
const ret = getObject(arg0).
|
|
763
|
+
__wbg_acquireSession_fbd9953aa76fbd06: function(arg0) {
|
|
764
|
+
const ret = getObject(arg0).acquireSession();
|
|
765
|
+
return addHeapObject(ret);
|
|
766
|
+
},
|
|
767
|
+
__wbg_beginRead_114dd35fcf6a9a3d: function(arg0, arg1) {
|
|
768
|
+
const ret = getObject(arg0).beginRead(takeObject(arg1));
|
|
769
|
+
return addHeapObject(ret);
|
|
770
|
+
},
|
|
771
|
+
__wbg_beginScan_87c5d513513b2fc1: function(arg0, arg1, arg2, arg3) {
|
|
772
|
+
const ret = getObject(arg0).beginScan(takeObject(arg1), takeObject(arg2), takeObject(arg3));
|
|
367
773
|
return addHeapObject(ret);
|
|
368
774
|
},
|
|
775
|
+
__wbg_beginWrite_ad3177b3fd6be002: function(arg0, arg1) {
|
|
776
|
+
const ret = getObject(arg0).beginWrite(takeObject(arg1));
|
|
777
|
+
return addHeapObject(ret);
|
|
778
|
+
},
|
|
779
|
+
__wbg_call_40e4174f169eaca7: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
780
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
|
|
781
|
+
return addHeapObject(ret);
|
|
782
|
+
}, arguments); },
|
|
369
783
|
__wbg_call_8a89609d89f6608a: function() { return handleError(function (arg0, arg1) {
|
|
370
784
|
const ret = getObject(arg0).call(getObject(arg1));
|
|
371
785
|
return addHeapObject(ret);
|
|
@@ -374,10 +788,33 @@ function __wbg_get_imports() {
|
|
|
374
788
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
375
789
|
return addHeapObject(ret);
|
|
376
790
|
}, arguments); },
|
|
377
|
-
|
|
791
|
+
__wbg_changed_8b774e9361ffc108: function(arg0) {
|
|
792
|
+
const ret = getObject(arg0).changed();
|
|
793
|
+
return addHeapObject(ret);
|
|
794
|
+
},
|
|
795
|
+
__wbg_close_2ff8ceedc96b8813: function(arg0) {
|
|
796
|
+
getObject(arg0).close();
|
|
797
|
+
},
|
|
798
|
+
__wbg_close_c35854fb9094c0b5: function(arg0) {
|
|
378
799
|
const ret = getObject(arg0).close();
|
|
379
800
|
return addHeapObject(ret);
|
|
380
801
|
},
|
|
802
|
+
__wbg_commit_d64c4bd2c40c0b47: function(arg0) {
|
|
803
|
+
const ret = getObject(arg0).commit();
|
|
804
|
+
return addHeapObject(ret);
|
|
805
|
+
},
|
|
806
|
+
__wbg_construct_e0f002bb615dbba1: function() { return handleError(function (arg0, arg1) {
|
|
807
|
+
const ret = Reflect.construct(getObject(arg0), getObject(arg1));
|
|
808
|
+
return addHeapObject(ret);
|
|
809
|
+
}, arguments); },
|
|
810
|
+
__wbg_deleteMany_4e9717e44a5ce975: function(arg0, arg1, arg2) {
|
|
811
|
+
const ret = getObject(arg0).deleteMany(takeObject(arg1), takeObject(arg2));
|
|
812
|
+
return addHeapObject(ret);
|
|
813
|
+
},
|
|
814
|
+
__wbg_deleteRange_c80634c355468a31: function(arg0, arg1, arg2) {
|
|
815
|
+
const ret = getObject(arg0).deleteRange(takeObject(arg1), takeObject(arg2));
|
|
816
|
+
return addHeapObject(ret);
|
|
817
|
+
},
|
|
381
818
|
__wbg_done_60cf307fcc680536: function(arg0) {
|
|
382
819
|
const ret = getObject(arg0).done;
|
|
383
820
|
return ret;
|
|
@@ -401,6 +838,10 @@ function __wbg_get_imports() {
|
|
|
401
838
|
const ret = Array.from(getObject(arg0));
|
|
402
839
|
return addHeapObject(ret);
|
|
403
840
|
},
|
|
841
|
+
__wbg_getMany_a58fdfcbaeefb016: function(arg0, arg1) {
|
|
842
|
+
const ret = getObject(arg0).getMany(takeObject(arg1));
|
|
843
|
+
return addHeapObject(ret);
|
|
844
|
+
},
|
|
404
845
|
__wbg_getRandomValues_3f44b700395062e5: function() { return handleError(function (arg0, arg1) {
|
|
405
846
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
406
847
|
}, arguments); },
|
|
@@ -451,6 +892,16 @@ function __wbg_get_imports() {
|
|
|
451
892
|
const ret = result;
|
|
452
893
|
return ret;
|
|
453
894
|
},
|
|
895
|
+
__wbg_instanceof_Promise_d0db99486956c8e8: function(arg0) {
|
|
896
|
+
let result;
|
|
897
|
+
try {
|
|
898
|
+
result = getObject(arg0) instanceof Promise;
|
|
899
|
+
} catch (_) {
|
|
900
|
+
result = false;
|
|
901
|
+
}
|
|
902
|
+
const ret = result;
|
|
903
|
+
return ret;
|
|
904
|
+
},
|
|
454
905
|
__wbg_instanceof_Uint8Array_86f30649f63ef9c2: function(arg0) {
|
|
455
906
|
let result;
|
|
456
907
|
try {
|
|
@@ -481,8 +932,8 @@ function __wbg_get_imports() {
|
|
|
481
932
|
const ret = getObject(arg0).length;
|
|
482
933
|
return ret;
|
|
483
934
|
},
|
|
484
|
-
|
|
485
|
-
const ret = getObject(arg0).
|
|
935
|
+
__wbg_message_40300ed2d1f8bdc6: function(arg0) {
|
|
936
|
+
const ret = getObject(arg0).message;
|
|
486
937
|
return addHeapObject(ret);
|
|
487
938
|
},
|
|
488
939
|
__wbg_new_0_445c13a750296eb6: function() {
|
|
@@ -505,6 +956,24 @@ function __wbg_get_imports() {
|
|
|
505
956
|
const ret = new Map();
|
|
506
957
|
return addHeapObject(ret);
|
|
507
958
|
},
|
|
959
|
+
__wbg_new_b682b81e8eaaf027: function(arg0, arg1) {
|
|
960
|
+
try {
|
|
961
|
+
var state0 = {a: arg0, b: arg1};
|
|
962
|
+
var cb0 = (arg0, arg1) => {
|
|
963
|
+
const a = state0.a;
|
|
964
|
+
state0.a = 0;
|
|
965
|
+
try {
|
|
966
|
+
return __wasm_bindgen_func_elem_92061(a, state0.b, arg0, arg1);
|
|
967
|
+
} finally {
|
|
968
|
+
state0.a = a;
|
|
969
|
+
}
|
|
970
|
+
};
|
|
971
|
+
const ret = new Promise(cb0);
|
|
972
|
+
return addHeapObject(ret);
|
|
973
|
+
} finally {
|
|
974
|
+
state0.a = 0;
|
|
975
|
+
}
|
|
976
|
+
},
|
|
508
977
|
__wbg_new_ce1ab61c1c2b300d: function() {
|
|
509
978
|
const ret = new Object();
|
|
510
979
|
return addHeapObject(ret);
|
|
@@ -513,6 +982,10 @@ function __wbg_get_imports() {
|
|
|
513
982
|
const ret = new Array();
|
|
514
983
|
return addHeapObject(ret);
|
|
515
984
|
},
|
|
985
|
+
__wbg_new_from_slice_18fa1f71286d66b8: function(arg0, arg1) {
|
|
986
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
987
|
+
return addHeapObject(ret);
|
|
988
|
+
},
|
|
516
989
|
__wbg_new_typed_bf31d18f92484486: function(arg0, arg1) {
|
|
517
990
|
try {
|
|
518
991
|
var state0 = {a: arg0, b: arg1};
|
|
@@ -520,7 +993,7 @@ function __wbg_get_imports() {
|
|
|
520
993
|
const a = state0.a;
|
|
521
994
|
state0.a = 0;
|
|
522
995
|
try {
|
|
523
|
-
return
|
|
996
|
+
return __wasm_bindgen_func_elem_92061(a, state0.b, arg0, arg1);
|
|
524
997
|
} finally {
|
|
525
998
|
state0.a = a;
|
|
526
999
|
}
|
|
@@ -531,6 +1004,10 @@ function __wbg_get_imports() {
|
|
|
531
1004
|
state0.a = 0;
|
|
532
1005
|
}
|
|
533
1006
|
},
|
|
1007
|
+
__wbg_nextPage_ae3f298cfa6ac6c7: function(arg0, arg1) {
|
|
1008
|
+
const ret = getObject(arg0).nextPage(arg1 >>> 0);
|
|
1009
|
+
return addHeapObject(ret);
|
|
1010
|
+
},
|
|
534
1011
|
__wbg_next_9e03acdf51c4960d: function(arg0) {
|
|
535
1012
|
const ret = getObject(arg0).next;
|
|
536
1013
|
return addHeapObject(ret);
|
|
@@ -551,6 +1028,10 @@ function __wbg_get_imports() {
|
|
|
551
1028
|
const ret = getObject(arg0).now();
|
|
552
1029
|
return ret;
|
|
553
1030
|
},
|
|
1031
|
+
__wbg_of_57145fdec12d159f: function(arg0) {
|
|
1032
|
+
const ret = Array.of(getObject(arg0));
|
|
1033
|
+
return addHeapObject(ret);
|
|
1034
|
+
},
|
|
554
1035
|
__wbg_performance_3fcf6e32a7e1ed0a: function(arg0) {
|
|
555
1036
|
const ret = getObject(arg0).performance;
|
|
556
1037
|
return addHeapObject(ret);
|
|
@@ -558,6 +1039,14 @@ function __wbg_get_imports() {
|
|
|
558
1039
|
__wbg_prototypesetcall_3249fc62a0fafa30: function(arg0, arg1, arg2) {
|
|
559
1040
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
560
1041
|
},
|
|
1042
|
+
__wbg_push_a6822215aa43e71c: function(arg0, arg1) {
|
|
1043
|
+
const ret = getObject(arg0).push(getObject(arg1));
|
|
1044
|
+
return ret;
|
|
1045
|
+
},
|
|
1046
|
+
__wbg_putMany_59c7c5f2646a2cd3: function(arg0, arg1, arg2) {
|
|
1047
|
+
const ret = getObject(arg0).putMany(takeObject(arg1), takeObject(arg2));
|
|
1048
|
+
return addHeapObject(ret);
|
|
1049
|
+
},
|
|
561
1050
|
__wbg_queueMicrotask_35c611f4a14830b2: function(arg0) {
|
|
562
1051
|
queueMicrotask(getObject(arg0));
|
|
563
1052
|
},
|
|
@@ -565,10 +1054,18 @@ function __wbg_get_imports() {
|
|
|
565
1054
|
const ret = getObject(arg0).queueMicrotask;
|
|
566
1055
|
return addHeapObject(ret);
|
|
567
1056
|
},
|
|
1057
|
+
__wbg_replaceMany_31899cff00668d04: function(arg0, arg1, arg2) {
|
|
1058
|
+
const ret = getObject(arg0).replaceMany(takeObject(arg1), takeObject(arg2));
|
|
1059
|
+
return addHeapObject(ret);
|
|
1060
|
+
},
|
|
568
1061
|
__wbg_resolve_25a7e548d5881dca: function(arg0) {
|
|
569
1062
|
const ret = Promise.resolve(getObject(arg0));
|
|
570
1063
|
return addHeapObject(ret);
|
|
571
1064
|
},
|
|
1065
|
+
__wbg_rollback_d6c4b2947a68cd53: function(arg0) {
|
|
1066
|
+
const ret = getObject(arg0).rollback();
|
|
1067
|
+
return addHeapObject(ret);
|
|
1068
|
+
},
|
|
572
1069
|
__wbg_set_52b1e1eb5bed906a: function(arg0, arg1, arg2) {
|
|
573
1070
|
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
574
1071
|
return addHeapObject(ret);
|
|
@@ -609,6 +1106,10 @@ function __wbg_get_imports() {
|
|
|
609
1106
|
const ret = typeof window === 'undefined' ? null : window;
|
|
610
1107
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
611
1108
|
},
|
|
1109
|
+
__wbg_stringify_8286df6dcc591521: function() { return handleError(function (arg0) {
|
|
1110
|
+
const ret = JSON.stringify(getObject(arg0));
|
|
1111
|
+
return addHeapObject(ret);
|
|
1112
|
+
}, arguments); },
|
|
612
1113
|
__wbg_then_18f476d590e58992: function(arg0, arg1, arg2) {
|
|
613
1114
|
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
|
614
1115
|
return addHeapObject(ret);
|
|
@@ -633,37 +1134,58 @@ function __wbg_get_imports() {
|
|
|
633
1134
|
const ret = WasmObserveEvents.__wrap(arg0);
|
|
634
1135
|
return addHeapObject(ret);
|
|
635
1136
|
},
|
|
1137
|
+
__wbg_wasmremotelix_new: function(arg0) {
|
|
1138
|
+
const ret = WasmRemoteLix.__wrap(arg0);
|
|
1139
|
+
return addHeapObject(ret);
|
|
1140
|
+
},
|
|
1141
|
+
__wbg_wasmremotelixtransaction_new: function(arg0) {
|
|
1142
|
+
const ret = WasmRemoteLixTransaction.__wrap(arg0);
|
|
1143
|
+
return addHeapObject(ret);
|
|
1144
|
+
},
|
|
1145
|
+
__wbg_wasmremoteobserveevents_new: function(arg0) {
|
|
1146
|
+
const ret = WasmRemoteObserveEvents.__wrap(arg0);
|
|
1147
|
+
return addHeapObject(ret);
|
|
1148
|
+
},
|
|
1149
|
+
__wbg_watchForChanges_c00fffbd08c7f090: function(arg0) {
|
|
1150
|
+
const ret = getObject(arg0).watchForChanges();
|
|
1151
|
+
return addHeapObject(ret);
|
|
1152
|
+
},
|
|
636
1153
|
__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,
|
|
1154
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 21300, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1155
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_92059);
|
|
1156
|
+
return addHeapObject(ret);
|
|
1157
|
+
},
|
|
1158
|
+
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1159
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1612, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1160
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_16459);
|
|
639
1161
|
return addHeapObject(ret);
|
|
640
1162
|
},
|
|
641
|
-
|
|
1163
|
+
__wbindgen_cast_0000000000000003: function(arg0) {
|
|
642
1164
|
// Cast intrinsic for `F64 -> Externref`.
|
|
643
1165
|
const ret = arg0;
|
|
644
1166
|
return addHeapObject(ret);
|
|
645
1167
|
},
|
|
646
|
-
|
|
1168
|
+
__wbindgen_cast_0000000000000004: function(arg0) {
|
|
647
1169
|
// Cast intrinsic for `I64 -> Externref`.
|
|
648
1170
|
const ret = arg0;
|
|
649
1171
|
return addHeapObject(ret);
|
|
650
1172
|
},
|
|
651
|
-
|
|
1173
|
+
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
652
1174
|
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
653
1175
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
654
1176
|
return addHeapObject(ret);
|
|
655
1177
|
},
|
|
656
|
-
|
|
1178
|
+
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
657
1179
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
658
1180
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
659
1181
|
return addHeapObject(ret);
|
|
660
1182
|
},
|
|
661
|
-
|
|
1183
|
+
__wbindgen_cast_0000000000000007: function(arg0) {
|
|
662
1184
|
// Cast intrinsic for `U64 -> Externref`.
|
|
663
1185
|
const ret = BigInt.asUintN(64, arg0);
|
|
664
1186
|
return addHeapObject(ret);
|
|
665
1187
|
},
|
|
666
|
-
|
|
1188
|
+
__wbindgen_cast_0000000000000008: function(arg0, arg1) {
|
|
667
1189
|
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
668
1190
|
wasm.__wbindgen_export4(arg0, arg1 * 1, 1);
|
|
669
1191
|
// Cast intrinsic for `Vector(U8) -> Externref`.
|
|
@@ -684,10 +1206,14 @@ function __wbg_get_imports() {
|
|
|
684
1206
|
};
|
|
685
1207
|
}
|
|
686
1208
|
|
|
687
|
-
function
|
|
1209
|
+
function __wasm_bindgen_func_elem_16459(arg0, arg1) {
|
|
1210
|
+
wasm.__wasm_bindgen_func_elem_16459(arg0, arg1);
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
function __wasm_bindgen_func_elem_92059(arg0, arg1, arg2) {
|
|
688
1214
|
try {
|
|
689
1215
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
690
|
-
wasm.
|
|
1216
|
+
wasm.__wasm_bindgen_func_elem_92059(retptr, arg0, arg1, addHeapObject(arg2));
|
|
691
1217
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
692
1218
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
693
1219
|
if (r1) {
|
|
@@ -698,8 +1224,8 @@ function __wasm_bindgen_func_elem_119241(arg0, arg1, arg2) {
|
|
|
698
1224
|
}
|
|
699
1225
|
}
|
|
700
1226
|
|
|
701
|
-
function
|
|
702
|
-
wasm.
|
|
1227
|
+
function __wasm_bindgen_func_elem_92061(arg0, arg1, arg2, arg3) {
|
|
1228
|
+
wasm.__wasm_bindgen_func_elem_92061(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
703
1229
|
}
|
|
704
1230
|
|
|
705
1231
|
const WasmLixFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -711,6 +1237,21 @@ const WasmLixTransactionFinalization = (typeof FinalizationRegistry === 'undefin
|
|
|
711
1237
|
const WasmObserveEventsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
712
1238
|
? { register: () => {}, unregister: () => {} }
|
|
713
1239
|
: new FinalizationRegistry(ptr => wasm.__wbg_wasmobserveevents_free(ptr, 1));
|
|
1240
|
+
const WasmRemoteLixFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1241
|
+
? { register: () => {}, unregister: () => {} }
|
|
1242
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmremotelix_free(ptr, 1));
|
|
1243
|
+
const WasmRemoteLixTransactionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1244
|
+
? { register: () => {}, unregister: () => {} }
|
|
1245
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmremotelixtransaction_free(ptr, 1));
|
|
1246
|
+
const WasmRemoteObserveEventsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1247
|
+
? { register: () => {}, unregister: () => {} }
|
|
1248
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmremoteobserveevents_free(ptr, 1));
|
|
1249
|
+
const WasmSnapshotExportFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1250
|
+
? { register: () => {}, unregister: () => {} }
|
|
1251
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmsnapshotexport_free(ptr, 1));
|
|
1252
|
+
const WasmSnapshotRestoreFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1253
|
+
? { register: () => {}, unregister: () => {} }
|
|
1254
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmsnapshotrestore_free(ptr, 1));
|
|
714
1255
|
|
|
715
1256
|
function addHeapObject(obj) {
|
|
716
1257
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
@@ -992,26 +1533,6 @@ async function __wbg_load(module, imports) {
|
|
|
992
1533
|
}
|
|
993
1534
|
}
|
|
994
1535
|
|
|
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
1536
|
async function __wbg_init(module_or_path) {
|
|
1016
1537
|
if (wasm !== undefined) return wasm;
|
|
1017
1538
|
|
|
@@ -1038,4 +1559,4 @@ async function __wbg_init(module_or_path) {
|
|
|
1038
1559
|
return __wbg_finalize_init(instance, module);
|
|
1039
1560
|
}
|
|
1040
1561
|
|
|
1041
|
-
export {
|
|
1562
|
+
export { __wbg_init as default };
|