@schoolai/shipyard 3.6.0 → 3.7.0-rc.20260511.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/dist/{chunk-DBAPXL44.js → chunk-MWH2XTEM.js} +2 -2
- package/dist/{chunk-DBAPXL44.js.map → chunk-MWH2XTEM.js.map} +1 -1
- package/dist/{chunk-52T3USYD.js → chunk-NZIHQQRN.js} +2 -2
- package/dist/index.js +3 -3
- package/dist/{login-WYC24WPA.js → login-KRVJVD2U.js} +3 -3
- package/dist/{serve-QRYOK5U4.js → serve-5GHTBELO.js} +2162 -940
- package/dist/{serve-QRYOK5U4.js.map → serve-5GHTBELO.js.map} +1 -1
- package/dist/{start-6SCOMMSU.js → start-FGCDER5G.js} +4 -4
- package/node_modules/loro-crdt/CHANGELOG.md +8 -0
- package/node_modules/loro-crdt/base64/index.js +79 -79
- package/node_modules/loro-crdt/base64/loro_wasm.d.ts +19 -19
- package/node_modules/loro-crdt/bundler/loro_wasm.d.ts +19 -19
- package/node_modules/loro-crdt/bundler/loro_wasm_bg.js +74 -74
- package/node_modules/loro-crdt/bundler/loro_wasm_bg.wasm +0 -0
- package/node_modules/loro-crdt/bundler/loro_wasm_bg.wasm.d.ts +3 -3
- package/node_modules/loro-crdt/nodejs/loro_wasm.d.ts +19 -19
- package/node_modules/loro-crdt/nodejs/loro_wasm.js +74 -74
- package/node_modules/loro-crdt/nodejs/loro_wasm_bg.wasm +0 -0
- package/node_modules/loro-crdt/nodejs/loro_wasm_bg.wasm.d.ts +3 -3
- package/node_modules/loro-crdt/package.json +1 -1
- package/node_modules/loro-crdt/web/loro_wasm.d.ts +22 -22
- package/node_modules/loro-crdt/web/loro_wasm.js +73 -73
- package/node_modules/loro-crdt/web/loro_wasm_bg.wasm +0 -0
- package/node_modules/loro-crdt/web/loro_wasm_bg.wasm.d.ts +3 -3
- package/package.json +2 -2
- /package/dist/{chunk-52T3USYD.js.map → chunk-NZIHQQRN.js.map} +0 -0
- /package/dist/{login-WYC24WPA.js.map → login-KRVJVD2U.js.map} +0 -0
- /package/dist/{start-6SCOMMSU.js.map → start-FGCDER5G.js.map} +0 -0
|
@@ -1,22 +1,5 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Decode the metadata of the import blob.
|
|
5
|
-
*
|
|
6
|
-
* This method is useful to get the following metadata of the import blob:
|
|
7
|
-
*
|
|
8
|
-
* - startVersionVector
|
|
9
|
-
* - endVersionVector
|
|
10
|
-
* - startTimestamp
|
|
11
|
-
* - endTimestamp
|
|
12
|
-
* - mode
|
|
13
|
-
* - changeNum
|
|
14
|
-
*/
|
|
15
|
-
export function decodeImportBlobMeta(blob: Uint8Array, check_checksum: boolean): ImportBlobMetadata;
|
|
16
|
-
/**
|
|
17
|
-
* Get the version of Loro
|
|
18
|
-
*/
|
|
19
|
-
export function LORO_VERSION(): string;
|
|
20
3
|
/**
|
|
21
4
|
* Redacts sensitive content in JSON updates within the specified version range.
|
|
22
5
|
*
|
|
@@ -38,13 +21,30 @@ export function LORO_VERSION(): string;
|
|
|
38
21
|
*/
|
|
39
22
|
export function redactJsonUpdates(json_updates: string | JsonSchema, version_range: any): JsonSchema;
|
|
40
23
|
export function decodeFrontiers(bytes: Uint8Array): { peer: PeerID, counter: number }[];
|
|
24
|
+
export function encodeFrontiers(frontiers: ({ peer: PeerID, counter: number })[]): Uint8Array;
|
|
25
|
+
/**
|
|
26
|
+
* Decode the metadata of the import blob.
|
|
27
|
+
*
|
|
28
|
+
* This method is useful to get the following metadata of the import blob:
|
|
29
|
+
*
|
|
30
|
+
* - startVersionVector
|
|
31
|
+
* - endVersionVector
|
|
32
|
+
* - startTimestamp
|
|
33
|
+
* - endTimestamp
|
|
34
|
+
* - mode
|
|
35
|
+
* - changeNum
|
|
36
|
+
*/
|
|
37
|
+
export function decodeImportBlobMeta(blob: Uint8Array, check_checksum: boolean): ImportBlobMetadata;
|
|
38
|
+
/**
|
|
39
|
+
* Get the version of Loro
|
|
40
|
+
*/
|
|
41
|
+
export function LORO_VERSION(): string;
|
|
41
42
|
export function run(): void;
|
|
43
|
+
export function callPendingEvents(): void;
|
|
42
44
|
/**
|
|
43
45
|
* Enable debug info of Loro
|
|
44
46
|
*/
|
|
45
47
|
export function setDebug(): void;
|
|
46
|
-
export function encodeFrontiers(frontiers: ({ peer: PeerID, counter: number })[]): Uint8Array;
|
|
47
|
-
export function callPendingEvents(): void;
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* Container types supported by loro.
|
|
@@ -1,22 +1,5 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Decode the metadata of the import blob.
|
|
5
|
-
*
|
|
6
|
-
* This method is useful to get the following metadata of the import blob:
|
|
7
|
-
*
|
|
8
|
-
* - startVersionVector
|
|
9
|
-
* - endVersionVector
|
|
10
|
-
* - startTimestamp
|
|
11
|
-
* - endTimestamp
|
|
12
|
-
* - mode
|
|
13
|
-
* - changeNum
|
|
14
|
-
*/
|
|
15
|
-
export function decodeImportBlobMeta(blob: Uint8Array, check_checksum: boolean): ImportBlobMetadata;
|
|
16
|
-
/**
|
|
17
|
-
* Get the version of Loro
|
|
18
|
-
*/
|
|
19
|
-
export function LORO_VERSION(): string;
|
|
20
3
|
/**
|
|
21
4
|
* Redacts sensitive content in JSON updates within the specified version range.
|
|
22
5
|
*
|
|
@@ -38,13 +21,30 @@ export function LORO_VERSION(): string;
|
|
|
38
21
|
*/
|
|
39
22
|
export function redactJsonUpdates(json_updates: string | JsonSchema, version_range: any): JsonSchema;
|
|
40
23
|
export function decodeFrontiers(bytes: Uint8Array): { peer: PeerID, counter: number }[];
|
|
24
|
+
export function encodeFrontiers(frontiers: ({ peer: PeerID, counter: number })[]): Uint8Array;
|
|
25
|
+
/**
|
|
26
|
+
* Decode the metadata of the import blob.
|
|
27
|
+
*
|
|
28
|
+
* This method is useful to get the following metadata of the import blob:
|
|
29
|
+
*
|
|
30
|
+
* - startVersionVector
|
|
31
|
+
* - endVersionVector
|
|
32
|
+
* - startTimestamp
|
|
33
|
+
* - endTimestamp
|
|
34
|
+
* - mode
|
|
35
|
+
* - changeNum
|
|
36
|
+
*/
|
|
37
|
+
export function decodeImportBlobMeta(blob: Uint8Array, check_checksum: boolean): ImportBlobMetadata;
|
|
38
|
+
/**
|
|
39
|
+
* Get the version of Loro
|
|
40
|
+
*/
|
|
41
|
+
export function LORO_VERSION(): string;
|
|
41
42
|
export function run(): void;
|
|
43
|
+
export function callPendingEvents(): void;
|
|
42
44
|
/**
|
|
43
45
|
* Enable debug info of Loro
|
|
44
46
|
*/
|
|
45
47
|
export function setDebug(): void;
|
|
46
|
-
export function encodeFrontiers(frontiers: ({ peer: PeerID, counter: number })[]): Uint8Array;
|
|
47
|
-
export function callPendingEvents(): void;
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* Container types supported by loro.
|
|
@@ -263,60 +263,6 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
263
263
|
}
|
|
264
264
|
return result;
|
|
265
265
|
}
|
|
266
|
-
/**
|
|
267
|
-
* Decode the metadata of the import blob.
|
|
268
|
-
*
|
|
269
|
-
* This method is useful to get the following metadata of the import blob:
|
|
270
|
-
*
|
|
271
|
-
* - startVersionVector
|
|
272
|
-
* - endVersionVector
|
|
273
|
-
* - startTimestamp
|
|
274
|
-
* - endTimestamp
|
|
275
|
-
* - mode
|
|
276
|
-
* - changeNum
|
|
277
|
-
* @param {Uint8Array} blob
|
|
278
|
-
* @param {boolean} check_checksum
|
|
279
|
-
* @returns {ImportBlobMetadata}
|
|
280
|
-
*/
|
|
281
|
-
export function decodeImportBlobMeta(blob, check_checksum) {
|
|
282
|
-
try {
|
|
283
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
284
|
-
const ptr0 = passArray8ToWasm0(blob, wasm.__wbindgen_malloc);
|
|
285
|
-
const len0 = WASM_VECTOR_LEN;
|
|
286
|
-
wasm.decodeImportBlobMeta(retptr, ptr0, len0, check_checksum);
|
|
287
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
288
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
289
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
290
|
-
if (r2) {
|
|
291
|
-
throw takeObject(r1);
|
|
292
|
-
}
|
|
293
|
-
return takeObject(r0);
|
|
294
|
-
} finally {
|
|
295
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
/**
|
|
300
|
-
* Get the version of Loro
|
|
301
|
-
* @returns {string}
|
|
302
|
-
*/
|
|
303
|
-
export function LORO_VERSION() {
|
|
304
|
-
let deferred1_0;
|
|
305
|
-
let deferred1_1;
|
|
306
|
-
try {
|
|
307
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
308
|
-
wasm.LORO_VERSION(retptr);
|
|
309
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
310
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
311
|
-
deferred1_0 = r0;
|
|
312
|
-
deferred1_1 = r1;
|
|
313
|
-
return getStringFromWasm0(r0, r1);
|
|
314
|
-
} finally {
|
|
315
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
316
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
|
|
320
266
|
/**
|
|
321
267
|
* Redacts sensitive content in JSON updates within the specified version range.
|
|
322
268
|
*
|
|
@@ -377,17 +323,6 @@ export function decodeFrontiers(bytes) {
|
|
|
377
323
|
}
|
|
378
324
|
}
|
|
379
325
|
|
|
380
|
-
export function run() {
|
|
381
|
-
wasm.run();
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
/**
|
|
385
|
-
* Enable debug info of Loro
|
|
386
|
-
*/
|
|
387
|
-
export function setDebug() {
|
|
388
|
-
wasm.setDebug();
|
|
389
|
-
}
|
|
390
|
-
|
|
391
326
|
function passArrayJsValueToWasm0(array, malloc) {
|
|
392
327
|
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
393
328
|
const mem = getDataViewMemory0();
|
|
@@ -422,16 +357,81 @@ export function encodeFrontiers(frontiers) {
|
|
|
422
357
|
}
|
|
423
358
|
}
|
|
424
359
|
|
|
360
|
+
/**
|
|
361
|
+
* Decode the metadata of the import blob.
|
|
362
|
+
*
|
|
363
|
+
* This method is useful to get the following metadata of the import blob:
|
|
364
|
+
*
|
|
365
|
+
* - startVersionVector
|
|
366
|
+
* - endVersionVector
|
|
367
|
+
* - startTimestamp
|
|
368
|
+
* - endTimestamp
|
|
369
|
+
* - mode
|
|
370
|
+
* - changeNum
|
|
371
|
+
* @param {Uint8Array} blob
|
|
372
|
+
* @param {boolean} check_checksum
|
|
373
|
+
* @returns {ImportBlobMetadata}
|
|
374
|
+
*/
|
|
375
|
+
export function decodeImportBlobMeta(blob, check_checksum) {
|
|
376
|
+
try {
|
|
377
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
378
|
+
const ptr0 = passArray8ToWasm0(blob, wasm.__wbindgen_malloc);
|
|
379
|
+
const len0 = WASM_VECTOR_LEN;
|
|
380
|
+
wasm.decodeImportBlobMeta(retptr, ptr0, len0, check_checksum);
|
|
381
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
382
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
383
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
384
|
+
if (r2) {
|
|
385
|
+
throw takeObject(r1);
|
|
386
|
+
}
|
|
387
|
+
return takeObject(r0);
|
|
388
|
+
} finally {
|
|
389
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* Get the version of Loro
|
|
395
|
+
* @returns {string}
|
|
396
|
+
*/
|
|
397
|
+
export function LORO_VERSION() {
|
|
398
|
+
let deferred1_0;
|
|
399
|
+
let deferred1_1;
|
|
400
|
+
try {
|
|
401
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
402
|
+
wasm.LORO_VERSION(retptr);
|
|
403
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
404
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
405
|
+
deferred1_0 = r0;
|
|
406
|
+
deferred1_1 = r1;
|
|
407
|
+
return getStringFromWasm0(r0, r1);
|
|
408
|
+
} finally {
|
|
409
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
410
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
export function run() {
|
|
415
|
+
wasm.run();
|
|
416
|
+
}
|
|
417
|
+
|
|
425
418
|
export function callPendingEvents() {
|
|
426
419
|
wasm.callPendingEvents();
|
|
427
420
|
}
|
|
428
421
|
|
|
422
|
+
/**
|
|
423
|
+
* Enable debug info of Loro
|
|
424
|
+
*/
|
|
425
|
+
export function setDebug() {
|
|
426
|
+
wasm.setDebug();
|
|
427
|
+
}
|
|
428
|
+
|
|
429
429
|
function __wbg_adapter_60(arg0, arg1, arg2) {
|
|
430
|
-
wasm.
|
|
430
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h23bd7b34cf0bced7(arg0, arg1, addHeapObject(arg2));
|
|
431
431
|
}
|
|
432
432
|
|
|
433
433
|
function __wbg_adapter_63(arg0, arg1) {
|
|
434
|
-
wasm.
|
|
434
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd82b624f21a7fa96(arg0, arg1);
|
|
435
435
|
}
|
|
436
436
|
|
|
437
437
|
const AwarenessWasmFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -6809,10 +6809,6 @@ export function __wbg_entries_c8a90a7ed73e84ce(arg0) {
|
|
|
6809
6809
|
return addHeapObject(ret);
|
|
6810
6810
|
};
|
|
6811
6811
|
|
|
6812
|
-
export function __wbg_error_0972c41c7c48e700(arg0, arg1) {
|
|
6813
|
-
console.error(getStringFromWasm0(arg0, arg1));
|
|
6814
|
-
};
|
|
6815
|
-
|
|
6816
6812
|
export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
|
|
6817
6813
|
let deferred0_0;
|
|
6818
6814
|
let deferred0_1;
|
|
@@ -6825,6 +6821,10 @@ export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
|
|
|
6825
6821
|
}
|
|
6826
6822
|
};
|
|
6827
6823
|
|
|
6824
|
+
export function __wbg_error_fd027616b8006afa(arg0, arg1) {
|
|
6825
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
6826
|
+
};
|
|
6827
|
+
|
|
6828
6828
|
export function __wbg_from_2a5d3e218e67aa85(arg0) {
|
|
6829
6829
|
const ret = Array.from(getObject(arg0));
|
|
6830
6830
|
return addHeapObject(ret);
|
|
@@ -6940,7 +6940,7 @@ export function __wbg_log_0cc1b7768397bcfe(arg0, arg1, arg2, arg3, arg4, arg5, a
|
|
|
6940
6940
|
}
|
|
6941
6941
|
};
|
|
6942
6942
|
|
|
6943
|
-
export function
|
|
6943
|
+
export function __wbg_log_62fc5f7c674bfa10(arg0, arg1) {
|
|
6944
6944
|
console.log(getStringFromWasm0(arg0, arg1));
|
|
6945
6945
|
};
|
|
6946
6946
|
|
|
@@ -7077,7 +7077,7 @@ export function __wbg_node_905d3e251edff8a2(arg0) {
|
|
|
7077
7077
|
return addHeapObject(ret);
|
|
7078
7078
|
};
|
|
7079
7079
|
|
|
7080
|
-
export function
|
|
7080
|
+
export function __wbg_now_6727e3e536e11536() {
|
|
7081
7081
|
const ret = Date.now();
|
|
7082
7082
|
return ret;
|
|
7083
7083
|
};
|
|
@@ -7190,7 +7190,7 @@ export function __wbg_versionvector_new(arg0) {
|
|
|
7190
7190
|
return addHeapObject(ret);
|
|
7191
7191
|
};
|
|
7192
7192
|
|
|
7193
|
-
export function
|
|
7193
|
+
export function __wbg_warn_5cdab1103c5473b2(arg0, arg1) {
|
|
7194
7194
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
7195
7195
|
};
|
|
7196
7196
|
|
|
Binary file
|
|
@@ -315,15 +315,15 @@ export const versionvector_setEnd: (a: number, b: number, c: number) => void;
|
|
|
315
315
|
export const versionvector_setLast: (a: number, b: number, c: number) => void;
|
|
316
316
|
export const versionvector_toJSON: (a: number) => number;
|
|
317
317
|
export const lorodoc_importUpdateBatch: (a: number, b: number, c: number) => void;
|
|
318
|
+
export const __wbg_loromovablelist_free: (a: number, b: number) => void;
|
|
318
319
|
export const lorocounter_toJSON: (a: number, b: number) => void;
|
|
319
320
|
export const lorocounter_value: (a: number, b: number) => void;
|
|
320
|
-
export const __wbg_loromovablelist_free: (a: number, b: number) => void;
|
|
321
321
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
322
322
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
323
323
|
export const __wbindgen_exn_store: (a: number) => void;
|
|
324
324
|
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
325
325
|
export const __wbindgen_export_4: WebAssembly.Table;
|
|
326
326
|
export const __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
327
|
-
export const
|
|
328
|
-
export const
|
|
327
|
+
export const _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h23bd7b34cf0bced7: (a: number, b: number, c: number) => void;
|
|
328
|
+
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd82b624f21a7fa96: (a: number, b: number) => void;
|
|
329
329
|
export const __wbindgen_start: () => void;
|
|
@@ -1,22 +1,5 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Decode the metadata of the import blob.
|
|
5
|
-
*
|
|
6
|
-
* This method is useful to get the following metadata of the import blob:
|
|
7
|
-
*
|
|
8
|
-
* - startVersionVector
|
|
9
|
-
* - endVersionVector
|
|
10
|
-
* - startTimestamp
|
|
11
|
-
* - endTimestamp
|
|
12
|
-
* - mode
|
|
13
|
-
* - changeNum
|
|
14
|
-
*/
|
|
15
|
-
export function decodeImportBlobMeta(blob: Uint8Array, check_checksum: boolean): ImportBlobMetadata;
|
|
16
|
-
/**
|
|
17
|
-
* Get the version of Loro
|
|
18
|
-
*/
|
|
19
|
-
export function LORO_VERSION(): string;
|
|
20
3
|
/**
|
|
21
4
|
* Redacts sensitive content in JSON updates within the specified version range.
|
|
22
5
|
*
|
|
@@ -38,13 +21,30 @@ export function LORO_VERSION(): string;
|
|
|
38
21
|
*/
|
|
39
22
|
export function redactJsonUpdates(json_updates: string | JsonSchema, version_range: any): JsonSchema;
|
|
40
23
|
export function decodeFrontiers(bytes: Uint8Array): { peer: PeerID, counter: number }[];
|
|
24
|
+
export function encodeFrontiers(frontiers: ({ peer: PeerID, counter: number })[]): Uint8Array;
|
|
25
|
+
/**
|
|
26
|
+
* Decode the metadata of the import blob.
|
|
27
|
+
*
|
|
28
|
+
* This method is useful to get the following metadata of the import blob:
|
|
29
|
+
*
|
|
30
|
+
* - startVersionVector
|
|
31
|
+
* - endVersionVector
|
|
32
|
+
* - startTimestamp
|
|
33
|
+
* - endTimestamp
|
|
34
|
+
* - mode
|
|
35
|
+
* - changeNum
|
|
36
|
+
*/
|
|
37
|
+
export function decodeImportBlobMeta(blob: Uint8Array, check_checksum: boolean): ImportBlobMetadata;
|
|
38
|
+
/**
|
|
39
|
+
* Get the version of Loro
|
|
40
|
+
*/
|
|
41
|
+
export function LORO_VERSION(): string;
|
|
41
42
|
export function run(): void;
|
|
43
|
+
export function callPendingEvents(): void;
|
|
42
44
|
/**
|
|
43
45
|
* Enable debug info of Loro
|
|
44
46
|
*/
|
|
45
47
|
export function setDebug(): void;
|
|
46
|
-
export function encodeFrontiers(frontiers: ({ peer: PeerID, counter: number })[]): Uint8Array;
|
|
47
|
-
export function callPendingEvents(): void;
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* Container types supported by loro.
|
|
@@ -259,60 +259,6 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
259
259
|
}
|
|
260
260
|
return result;
|
|
261
261
|
}
|
|
262
|
-
/**
|
|
263
|
-
* Decode the metadata of the import blob.
|
|
264
|
-
*
|
|
265
|
-
* This method is useful to get the following metadata of the import blob:
|
|
266
|
-
*
|
|
267
|
-
* - startVersionVector
|
|
268
|
-
* - endVersionVector
|
|
269
|
-
* - startTimestamp
|
|
270
|
-
* - endTimestamp
|
|
271
|
-
* - mode
|
|
272
|
-
* - changeNum
|
|
273
|
-
* @param {Uint8Array} blob
|
|
274
|
-
* @param {boolean} check_checksum
|
|
275
|
-
* @returns {ImportBlobMetadata}
|
|
276
|
-
*/
|
|
277
|
-
module.exports.decodeImportBlobMeta = function(blob, check_checksum) {
|
|
278
|
-
try {
|
|
279
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
280
|
-
const ptr0 = passArray8ToWasm0(blob, wasm.__wbindgen_malloc);
|
|
281
|
-
const len0 = WASM_VECTOR_LEN;
|
|
282
|
-
wasm.decodeImportBlobMeta(retptr, ptr0, len0, check_checksum);
|
|
283
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
284
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
285
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
286
|
-
if (r2) {
|
|
287
|
-
throw takeObject(r1);
|
|
288
|
-
}
|
|
289
|
-
return takeObject(r0);
|
|
290
|
-
} finally {
|
|
291
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
292
|
-
}
|
|
293
|
-
};
|
|
294
|
-
|
|
295
|
-
/**
|
|
296
|
-
* Get the version of Loro
|
|
297
|
-
* @returns {string}
|
|
298
|
-
*/
|
|
299
|
-
module.exports.LORO_VERSION = function() {
|
|
300
|
-
let deferred1_0;
|
|
301
|
-
let deferred1_1;
|
|
302
|
-
try {
|
|
303
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
304
|
-
wasm.LORO_VERSION(retptr);
|
|
305
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
306
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
307
|
-
deferred1_0 = r0;
|
|
308
|
-
deferred1_1 = r1;
|
|
309
|
-
return getStringFromWasm0(r0, r1);
|
|
310
|
-
} finally {
|
|
311
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
312
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
313
|
-
}
|
|
314
|
-
};
|
|
315
|
-
|
|
316
262
|
/**
|
|
317
263
|
* Redacts sensitive content in JSON updates within the specified version range.
|
|
318
264
|
*
|
|
@@ -373,17 +319,6 @@ module.exports.decodeFrontiers = function(bytes) {
|
|
|
373
319
|
}
|
|
374
320
|
};
|
|
375
321
|
|
|
376
|
-
module.exports.run = function() {
|
|
377
|
-
wasm.run();
|
|
378
|
-
};
|
|
379
|
-
|
|
380
|
-
/**
|
|
381
|
-
* Enable debug info of Loro
|
|
382
|
-
*/
|
|
383
|
-
module.exports.setDebug = function() {
|
|
384
|
-
wasm.setDebug();
|
|
385
|
-
};
|
|
386
|
-
|
|
387
322
|
function passArrayJsValueToWasm0(array, malloc) {
|
|
388
323
|
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
389
324
|
const mem = getDataViewMemory0();
|
|
@@ -418,16 +353,81 @@ module.exports.encodeFrontiers = function(frontiers) {
|
|
|
418
353
|
}
|
|
419
354
|
};
|
|
420
355
|
|
|
356
|
+
/**
|
|
357
|
+
* Decode the metadata of the import blob.
|
|
358
|
+
*
|
|
359
|
+
* This method is useful to get the following metadata of the import blob:
|
|
360
|
+
*
|
|
361
|
+
* - startVersionVector
|
|
362
|
+
* - endVersionVector
|
|
363
|
+
* - startTimestamp
|
|
364
|
+
* - endTimestamp
|
|
365
|
+
* - mode
|
|
366
|
+
* - changeNum
|
|
367
|
+
* @param {Uint8Array} blob
|
|
368
|
+
* @param {boolean} check_checksum
|
|
369
|
+
* @returns {ImportBlobMetadata}
|
|
370
|
+
*/
|
|
371
|
+
module.exports.decodeImportBlobMeta = function(blob, check_checksum) {
|
|
372
|
+
try {
|
|
373
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
374
|
+
const ptr0 = passArray8ToWasm0(blob, wasm.__wbindgen_malloc);
|
|
375
|
+
const len0 = WASM_VECTOR_LEN;
|
|
376
|
+
wasm.decodeImportBlobMeta(retptr, ptr0, len0, check_checksum);
|
|
377
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
378
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
379
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
380
|
+
if (r2) {
|
|
381
|
+
throw takeObject(r1);
|
|
382
|
+
}
|
|
383
|
+
return takeObject(r0);
|
|
384
|
+
} finally {
|
|
385
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
386
|
+
}
|
|
387
|
+
};
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* Get the version of Loro
|
|
391
|
+
* @returns {string}
|
|
392
|
+
*/
|
|
393
|
+
module.exports.LORO_VERSION = function() {
|
|
394
|
+
let deferred1_0;
|
|
395
|
+
let deferred1_1;
|
|
396
|
+
try {
|
|
397
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
398
|
+
wasm.LORO_VERSION(retptr);
|
|
399
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
400
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
401
|
+
deferred1_0 = r0;
|
|
402
|
+
deferred1_1 = r1;
|
|
403
|
+
return getStringFromWasm0(r0, r1);
|
|
404
|
+
} finally {
|
|
405
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
406
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
407
|
+
}
|
|
408
|
+
};
|
|
409
|
+
|
|
410
|
+
module.exports.run = function() {
|
|
411
|
+
wasm.run();
|
|
412
|
+
};
|
|
413
|
+
|
|
421
414
|
module.exports.callPendingEvents = function() {
|
|
422
415
|
wasm.callPendingEvents();
|
|
423
416
|
};
|
|
424
417
|
|
|
418
|
+
/**
|
|
419
|
+
* Enable debug info of Loro
|
|
420
|
+
*/
|
|
421
|
+
module.exports.setDebug = function() {
|
|
422
|
+
wasm.setDebug();
|
|
423
|
+
};
|
|
424
|
+
|
|
425
425
|
function __wbg_adapter_60(arg0, arg1, arg2) {
|
|
426
|
-
wasm.
|
|
426
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h23bd7b34cf0bced7(arg0, arg1, addHeapObject(arg2));
|
|
427
427
|
}
|
|
428
428
|
|
|
429
429
|
function __wbg_adapter_63(arg0, arg1) {
|
|
430
|
-
wasm.
|
|
430
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd82b624f21a7fa96(arg0, arg1);
|
|
431
431
|
}
|
|
432
432
|
|
|
433
433
|
const AwarenessWasmFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -6819,10 +6819,6 @@ module.exports.__wbg_entries_c8a90a7ed73e84ce = function(arg0) {
|
|
|
6819
6819
|
return addHeapObject(ret);
|
|
6820
6820
|
};
|
|
6821
6821
|
|
|
6822
|
-
module.exports.__wbg_error_0972c41c7c48e700 = function(arg0, arg1) {
|
|
6823
|
-
console.error(getStringFromWasm0(arg0, arg1));
|
|
6824
|
-
};
|
|
6825
|
-
|
|
6826
6822
|
module.exports.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
|
|
6827
6823
|
let deferred0_0;
|
|
6828
6824
|
let deferred0_1;
|
|
@@ -6835,6 +6831,10 @@ module.exports.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
|
|
|
6835
6831
|
}
|
|
6836
6832
|
};
|
|
6837
6833
|
|
|
6834
|
+
module.exports.__wbg_error_fd027616b8006afa = function(arg0, arg1) {
|
|
6835
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
6836
|
+
};
|
|
6837
|
+
|
|
6838
6838
|
module.exports.__wbg_from_2a5d3e218e67aa85 = function(arg0) {
|
|
6839
6839
|
const ret = Array.from(getObject(arg0));
|
|
6840
6840
|
return addHeapObject(ret);
|
|
@@ -6950,7 +6950,7 @@ module.exports.__wbg_log_0cc1b7768397bcfe = function(arg0, arg1, arg2, arg3, arg
|
|
|
6950
6950
|
}
|
|
6951
6951
|
};
|
|
6952
6952
|
|
|
6953
|
-
module.exports.
|
|
6953
|
+
module.exports.__wbg_log_62fc5f7c674bfa10 = function(arg0, arg1) {
|
|
6954
6954
|
console.log(getStringFromWasm0(arg0, arg1));
|
|
6955
6955
|
};
|
|
6956
6956
|
|
|
@@ -7087,7 +7087,7 @@ module.exports.__wbg_node_905d3e251edff8a2 = function(arg0) {
|
|
|
7087
7087
|
return addHeapObject(ret);
|
|
7088
7088
|
};
|
|
7089
7089
|
|
|
7090
|
-
module.exports.
|
|
7090
|
+
module.exports.__wbg_now_6727e3e536e11536 = function() {
|
|
7091
7091
|
const ret = Date.now();
|
|
7092
7092
|
return ret;
|
|
7093
7093
|
};
|
|
@@ -7200,7 +7200,7 @@ module.exports.__wbg_versionvector_new = function(arg0) {
|
|
|
7200
7200
|
return addHeapObject(ret);
|
|
7201
7201
|
};
|
|
7202
7202
|
|
|
7203
|
-
module.exports.
|
|
7203
|
+
module.exports.__wbg_warn_5cdab1103c5473b2 = function(arg0, arg1) {
|
|
7204
7204
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
7205
7205
|
};
|
|
7206
7206
|
|
|
Binary file
|
|
@@ -315,15 +315,15 @@ export const versionvector_setEnd: (a: number, b: number, c: number) => void;
|
|
|
315
315
|
export const versionvector_setLast: (a: number, b: number, c: number) => void;
|
|
316
316
|
export const versionvector_toJSON: (a: number) => number;
|
|
317
317
|
export const lorodoc_importUpdateBatch: (a: number, b: number, c: number) => void;
|
|
318
|
+
export const __wbg_loromovablelist_free: (a: number, b: number) => void;
|
|
318
319
|
export const lorocounter_toJSON: (a: number, b: number) => void;
|
|
319
320
|
export const lorocounter_value: (a: number, b: number) => void;
|
|
320
|
-
export const __wbg_loromovablelist_free: (a: number, b: number) => void;
|
|
321
321
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
322
322
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
323
323
|
export const __wbindgen_exn_store: (a: number) => void;
|
|
324
324
|
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
325
325
|
export const __wbindgen_export_4: WebAssembly.Table;
|
|
326
326
|
export const __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
327
|
-
export const
|
|
328
|
-
export const
|
|
327
|
+
export const _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h23bd7b34cf0bced7: (a: number, b: number, c: number) => void;
|
|
328
|
+
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd82b624f21a7fa96: (a: number, b: number) => void;
|
|
329
329
|
export const __wbindgen_start: () => void;
|