loro-crdt 1.13.7 → 1.13.8
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/CHANGELOG.md +21 -0
- package/base64/index.js +76 -76
- package/base64/loro_wasm.d.ts +19 -19
- package/browser/index.js +4 -4
- package/browser/loro_wasm.d.ts +19 -19
- package/browser/loro_wasm.js +12 -12
- package/browser/loro_wasm_bg.js +71 -71
- package/browser/loro_wasm_bg.wasm +0 -0
- package/browser/loro_wasm_bg.wasm.d.ts +2 -2
- package/bundler/index.js +4 -4
- package/bundler/loro_wasm.d.ts +19 -19
- package/bundler/loro_wasm_bg.js +71 -71
- package/bundler/loro_wasm_bg.wasm +0 -0
- package/bundler/loro_wasm_bg.wasm.d.ts +2 -2
- package/nodejs/loro_wasm.d.ts +19 -19
- package/nodejs/loro_wasm.js +71 -71
- package/nodejs/loro_wasm_bg.wasm +0 -0
- package/nodejs/loro_wasm_bg.wasm.d.ts +2 -2
- package/package.json +3 -2
- package/web/loro_wasm.d.ts +21 -21
- package/web/loro_wasm.js +70 -70
- package/web/loro_wasm_bg.wasm +0 -0
- package/web/loro_wasm_bg.wasm.d.ts +2 -2
package/base64/loro_wasm.d.ts
CHANGED
|
@@ -1,27 +1,12 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export function run(): void;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
export function setDebug(): void;
|
|
4
|
+
export function decodeFrontiers(bytes: Uint8Array): { peer: PeerID, counter: number }[];
|
|
5
|
+
export function callPendingEvents(): void;
|
|
8
6
|
/**
|
|
9
7
|
* Get the version of Loro
|
|
10
8
|
*/
|
|
11
9
|
export function LORO_VERSION(): string;
|
|
12
|
-
/**
|
|
13
|
-
* Decode the metadata of the import blob.
|
|
14
|
-
*
|
|
15
|
-
* This method is useful to get the following metadata of the import blob:
|
|
16
|
-
*
|
|
17
|
-
* - startVersionVector
|
|
18
|
-
* - endVersionVector
|
|
19
|
-
* - startTimestamp
|
|
20
|
-
* - endTimestamp
|
|
21
|
-
* - mode
|
|
22
|
-
* - changeNum
|
|
23
|
-
*/
|
|
24
|
-
export function decodeImportBlobMeta(blob: Uint8Array, check_checksum: boolean): ImportBlobMetadata;
|
|
25
10
|
/**
|
|
26
11
|
* Redacts sensitive content in JSON updates within the specified version range.
|
|
27
12
|
*
|
|
@@ -42,9 +27,24 @@ export function decodeImportBlobMeta(blob: Uint8Array, check_checksum: boolean):
|
|
|
42
27
|
* @returns {Object} The redacted JSON updates
|
|
43
28
|
*/
|
|
44
29
|
export function redactJsonUpdates(json_updates: string | JsonSchema, version_range: any): JsonSchema;
|
|
45
|
-
export function decodeFrontiers(bytes: Uint8Array): { peer: PeerID, counter: number }[];
|
|
46
|
-
export function callPendingEvents(): void;
|
|
47
30
|
export function encodeFrontiers(frontiers: ({ peer: PeerID, counter: number })[]): Uint8Array;
|
|
31
|
+
/**
|
|
32
|
+
* Decode the metadata of the import blob.
|
|
33
|
+
*
|
|
34
|
+
* This method is useful to get the following metadata of the import blob:
|
|
35
|
+
*
|
|
36
|
+
* - startVersionVector
|
|
37
|
+
* - endVersionVector
|
|
38
|
+
* - startTimestamp
|
|
39
|
+
* - endTimestamp
|
|
40
|
+
* - mode
|
|
41
|
+
* - changeNum
|
|
42
|
+
*/
|
|
43
|
+
export function decodeImportBlobMeta(blob: Uint8Array, check_checksum: boolean): ImportBlobMetadata;
|
|
44
|
+
/**
|
|
45
|
+
* Enable debug info of Loro
|
|
46
|
+
*/
|
|
47
|
+
export function setDebug(): void;
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* Container types supported by loro.
|
package/browser/index.js
CHANGED
|
@@ -409,7 +409,7 @@ export {
|
|
|
409
409
|
__wbg_done_769e5ede4b31c67b,
|
|
410
410
|
__wbg_entries_3265d4158b33e5dc,
|
|
411
411
|
__wbg_entries_c8a90a7ed73e84ce,
|
|
412
|
-
|
|
412
|
+
__wbg_error_2caaeb4a4ddff603,
|
|
413
413
|
__wbg_error_7534b8e9a36f1ab4,
|
|
414
414
|
__wbg_from_2a5d3e218e67aa85,
|
|
415
415
|
__wbg_getOwnPropertySymbols_97eebed6fe6e08be,
|
|
@@ -428,8 +428,8 @@ export {
|
|
|
428
428
|
__wbg_length_a446193dc22c12f8,
|
|
429
429
|
__wbg_length_e2d2a49132c1b256,
|
|
430
430
|
__wbg_log_0cc1b7768397bcfe,
|
|
431
|
-
__wbg_log_c534a954ce262324,
|
|
432
431
|
__wbg_log_cb9e190acc5753fb,
|
|
432
|
+
__wbg_log_fc81db84f828b288,
|
|
433
433
|
__wbg_lorocounter_new,
|
|
434
434
|
__wbg_lorolist_new,
|
|
435
435
|
__wbg_loromap_new,
|
|
@@ -452,7 +452,7 @@ export {
|
|
|
452
452
|
__wbg_next_25feadfc0913fea9,
|
|
453
453
|
__wbg_next_6574e1a8a62d1055,
|
|
454
454
|
__wbg_node_905d3e251edff8a2,
|
|
455
|
-
|
|
455
|
+
__wbg_now_829357f5fa91c9dd,
|
|
456
456
|
__wbg_ownKeys_3930041068756f1f,
|
|
457
457
|
__wbg_process_dc0fbacc7c1c06f7,
|
|
458
458
|
__wbg_push_737cfc8c1432c2c6,
|
|
@@ -476,7 +476,7 @@ export {
|
|
|
476
476
|
__wbg_value_cd1ffa7b1ab794f1,
|
|
477
477
|
__wbg_versions_c01dfd4722a88165,
|
|
478
478
|
__wbg_versionvector_new,
|
|
479
|
-
|
|
479
|
+
__wbg_warn_5e3717ed8ac922f8,
|
|
480
480
|
__wbindgen_as_number,
|
|
481
481
|
__wbindgen_bigint_from_i64,
|
|
482
482
|
__wbindgen_bigint_from_u64,
|
package/browser/loro_wasm.d.ts
CHANGED
|
@@ -1,27 +1,12 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export function run(): void;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
export function setDebug(): void;
|
|
4
|
+
export function decodeFrontiers(bytes: Uint8Array): { peer: PeerID, counter: number }[];
|
|
5
|
+
export function callPendingEvents(): void;
|
|
8
6
|
/**
|
|
9
7
|
* Get the version of Loro
|
|
10
8
|
*/
|
|
11
9
|
export function LORO_VERSION(): string;
|
|
12
|
-
/**
|
|
13
|
-
* Decode the metadata of the import blob.
|
|
14
|
-
*
|
|
15
|
-
* This method is useful to get the following metadata of the import blob:
|
|
16
|
-
*
|
|
17
|
-
* - startVersionVector
|
|
18
|
-
* - endVersionVector
|
|
19
|
-
* - startTimestamp
|
|
20
|
-
* - endTimestamp
|
|
21
|
-
* - mode
|
|
22
|
-
* - changeNum
|
|
23
|
-
*/
|
|
24
|
-
export function decodeImportBlobMeta(blob: Uint8Array, check_checksum: boolean): ImportBlobMetadata;
|
|
25
10
|
/**
|
|
26
11
|
* Redacts sensitive content in JSON updates within the specified version range.
|
|
27
12
|
*
|
|
@@ -42,9 +27,24 @@ export function decodeImportBlobMeta(blob: Uint8Array, check_checksum: boolean):
|
|
|
42
27
|
* @returns {Object} The redacted JSON updates
|
|
43
28
|
*/
|
|
44
29
|
export function redactJsonUpdates(json_updates: string | JsonSchema, version_range: any): JsonSchema;
|
|
45
|
-
export function decodeFrontiers(bytes: Uint8Array): { peer: PeerID, counter: number }[];
|
|
46
|
-
export function callPendingEvents(): void;
|
|
47
30
|
export function encodeFrontiers(frontiers: ({ peer: PeerID, counter: number })[]): Uint8Array;
|
|
31
|
+
/**
|
|
32
|
+
* Decode the metadata of the import blob.
|
|
33
|
+
*
|
|
34
|
+
* This method is useful to get the following metadata of the import blob:
|
|
35
|
+
*
|
|
36
|
+
* - startVersionVector
|
|
37
|
+
* - endVersionVector
|
|
38
|
+
* - startTimestamp
|
|
39
|
+
* - endTimestamp
|
|
40
|
+
* - mode
|
|
41
|
+
* - changeNum
|
|
42
|
+
*/
|
|
43
|
+
export function decodeImportBlobMeta(blob: Uint8Array, check_checksum: boolean): ImportBlobMetadata;
|
|
44
|
+
/**
|
|
45
|
+
* Enable debug info of Loro
|
|
46
|
+
*/
|
|
47
|
+
export function setDebug(): void;
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* Container types supported by loro.
|
package/browser/loro_wasm.js
CHANGED
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
__wbg_done_769e5ede4b31c67b,
|
|
29
29
|
__wbg_entries_3265d4158b33e5dc,
|
|
30
30
|
__wbg_entries_c8a90a7ed73e84ce,
|
|
31
|
-
|
|
31
|
+
__wbg_error_2caaeb4a4ddff603,
|
|
32
32
|
__wbg_error_7534b8e9a36f1ab4,
|
|
33
33
|
__wbg_from_2a5d3e218e67aa85,
|
|
34
34
|
__wbg_getOwnPropertySymbols_97eebed6fe6e08be,
|
|
@@ -47,8 +47,8 @@ import {
|
|
|
47
47
|
__wbg_length_a446193dc22c12f8,
|
|
48
48
|
__wbg_length_e2d2a49132c1b256,
|
|
49
49
|
__wbg_log_0cc1b7768397bcfe,
|
|
50
|
-
__wbg_log_c534a954ce262324,
|
|
51
50
|
__wbg_log_cb9e190acc5753fb,
|
|
51
|
+
__wbg_log_fc81db84f828b288,
|
|
52
52
|
__wbg_lorocounter_new,
|
|
53
53
|
__wbg_lorolist_new,
|
|
54
54
|
__wbg_loromap_new,
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
__wbg_next_25feadfc0913fea9,
|
|
72
72
|
__wbg_next_6574e1a8a62d1055,
|
|
73
73
|
__wbg_node_905d3e251edff8a2,
|
|
74
|
-
|
|
74
|
+
__wbg_now_829357f5fa91c9dd,
|
|
75
75
|
__wbg_ownKeys_3930041068756f1f,
|
|
76
76
|
__wbg_process_dc0fbacc7c1c06f7,
|
|
77
77
|
__wbg_push_737cfc8c1432c2c6,
|
|
@@ -95,7 +95,7 @@ import {
|
|
|
95
95
|
__wbg_value_cd1ffa7b1ab794f1,
|
|
96
96
|
__wbg_versions_c01dfd4722a88165,
|
|
97
97
|
__wbg_versionvector_new,
|
|
98
|
-
|
|
98
|
+
__wbg_warn_5e3717ed8ac922f8,
|
|
99
99
|
__wbindgen_as_number,
|
|
100
100
|
__wbindgen_bigint_from_i64,
|
|
101
101
|
__wbindgen_bigint_from_u64,
|
|
@@ -169,7 +169,7 @@ const imports = {
|
|
|
169
169
|
__wbg_done_769e5ede4b31c67b,
|
|
170
170
|
__wbg_entries_3265d4158b33e5dc,
|
|
171
171
|
__wbg_entries_c8a90a7ed73e84ce,
|
|
172
|
-
|
|
172
|
+
__wbg_error_2caaeb4a4ddff603,
|
|
173
173
|
__wbg_error_7534b8e9a36f1ab4,
|
|
174
174
|
__wbg_from_2a5d3e218e67aa85,
|
|
175
175
|
__wbg_getOwnPropertySymbols_97eebed6fe6e08be,
|
|
@@ -188,8 +188,8 @@ const imports = {
|
|
|
188
188
|
__wbg_length_a446193dc22c12f8,
|
|
189
189
|
__wbg_length_e2d2a49132c1b256,
|
|
190
190
|
__wbg_log_0cc1b7768397bcfe,
|
|
191
|
-
__wbg_log_c534a954ce262324,
|
|
192
191
|
__wbg_log_cb9e190acc5753fb,
|
|
192
|
+
__wbg_log_fc81db84f828b288,
|
|
193
193
|
__wbg_lorocounter_new,
|
|
194
194
|
__wbg_lorolist_new,
|
|
195
195
|
__wbg_loromap_new,
|
|
@@ -212,7 +212,7 @@ const imports = {
|
|
|
212
212
|
__wbg_next_25feadfc0913fea9,
|
|
213
213
|
__wbg_next_6574e1a8a62d1055,
|
|
214
214
|
__wbg_node_905d3e251edff8a2,
|
|
215
|
-
|
|
215
|
+
__wbg_now_829357f5fa91c9dd,
|
|
216
216
|
__wbg_ownKeys_3930041068756f1f,
|
|
217
217
|
__wbg_process_dc0fbacc7c1c06f7,
|
|
218
218
|
__wbg_push_737cfc8c1432c2c6,
|
|
@@ -236,7 +236,7 @@ const imports = {
|
|
|
236
236
|
__wbg_value_cd1ffa7b1ab794f1,
|
|
237
237
|
__wbg_versions_c01dfd4722a88165,
|
|
238
238
|
__wbg_versionvector_new,
|
|
239
|
-
|
|
239
|
+
__wbg_warn_5e3717ed8ac922f8,
|
|
240
240
|
__wbindgen_as_number,
|
|
241
241
|
__wbindgen_bigint_from_i64,
|
|
242
242
|
__wbindgen_bigint_from_u64,
|
|
@@ -362,7 +362,7 @@ export {
|
|
|
362
362
|
__wbg_done_769e5ede4b31c67b,
|
|
363
363
|
__wbg_entries_3265d4158b33e5dc,
|
|
364
364
|
__wbg_entries_c8a90a7ed73e84ce,
|
|
365
|
-
|
|
365
|
+
__wbg_error_2caaeb4a4ddff603,
|
|
366
366
|
__wbg_error_7534b8e9a36f1ab4,
|
|
367
367
|
__wbg_from_2a5d3e218e67aa85,
|
|
368
368
|
__wbg_getOwnPropertySymbols_97eebed6fe6e08be,
|
|
@@ -381,8 +381,8 @@ export {
|
|
|
381
381
|
__wbg_length_a446193dc22c12f8,
|
|
382
382
|
__wbg_length_e2d2a49132c1b256,
|
|
383
383
|
__wbg_log_0cc1b7768397bcfe,
|
|
384
|
-
__wbg_log_c534a954ce262324,
|
|
385
384
|
__wbg_log_cb9e190acc5753fb,
|
|
385
|
+
__wbg_log_fc81db84f828b288,
|
|
386
386
|
__wbg_lorocounter_new,
|
|
387
387
|
__wbg_lorolist_new,
|
|
388
388
|
__wbg_loromap_new,
|
|
@@ -405,7 +405,7 @@ export {
|
|
|
405
405
|
__wbg_next_25feadfc0913fea9,
|
|
406
406
|
__wbg_next_6574e1a8a62d1055,
|
|
407
407
|
__wbg_node_905d3e251edff8a2,
|
|
408
|
-
|
|
408
|
+
__wbg_now_829357f5fa91c9dd,
|
|
409
409
|
__wbg_ownKeys_3930041068756f1f,
|
|
410
410
|
__wbg_process_dc0fbacc7c1c06f7,
|
|
411
411
|
__wbg_push_737cfc8c1432c2c6,
|
|
@@ -429,7 +429,7 @@ export {
|
|
|
429
429
|
__wbg_value_cd1ffa7b1ab794f1,
|
|
430
430
|
__wbg_versions_c01dfd4722a88165,
|
|
431
431
|
__wbg_versionvector_new,
|
|
432
|
-
|
|
432
|
+
__wbg_warn_5e3717ed8ac922f8,
|
|
433
433
|
__wbindgen_as_number,
|
|
434
434
|
__wbindgen_bigint_from_i64,
|
|
435
435
|
__wbindgen_bigint_from_u64,
|
package/browser/loro_wasm_bg.js
CHANGED
|
@@ -269,10 +269,29 @@ export function run() {
|
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
/**
|
|
272
|
-
*
|
|
272
|
+
* @param {Uint8Array} bytes
|
|
273
|
+
* @returns {{ peer: PeerID, counter: number }[]}
|
|
273
274
|
*/
|
|
274
|
-
export function
|
|
275
|
-
|
|
275
|
+
export function decodeFrontiers(bytes) {
|
|
276
|
+
try {
|
|
277
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
278
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
279
|
+
const len0 = WASM_VECTOR_LEN;
|
|
280
|
+
wasm.decodeFrontiers(retptr, ptr0, len0);
|
|
281
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
282
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
283
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
284
|
+
if (r2) {
|
|
285
|
+
throw takeObject(r1);
|
|
286
|
+
}
|
|
287
|
+
return takeObject(r0);
|
|
288
|
+
} finally {
|
|
289
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
export function callPendingEvents() {
|
|
294
|
+
wasm.callPendingEvents();
|
|
276
295
|
}
|
|
277
296
|
|
|
278
297
|
/**
|
|
@@ -296,39 +315,6 @@ export function LORO_VERSION() {
|
|
|
296
315
|
}
|
|
297
316
|
}
|
|
298
317
|
|
|
299
|
-
/**
|
|
300
|
-
* Decode the metadata of the import blob.
|
|
301
|
-
*
|
|
302
|
-
* This method is useful to get the following metadata of the import blob:
|
|
303
|
-
*
|
|
304
|
-
* - startVersionVector
|
|
305
|
-
* - endVersionVector
|
|
306
|
-
* - startTimestamp
|
|
307
|
-
* - endTimestamp
|
|
308
|
-
* - mode
|
|
309
|
-
* - changeNum
|
|
310
|
-
* @param {Uint8Array} blob
|
|
311
|
-
* @param {boolean} check_checksum
|
|
312
|
-
* @returns {ImportBlobMetadata}
|
|
313
|
-
*/
|
|
314
|
-
export function decodeImportBlobMeta(blob, check_checksum) {
|
|
315
|
-
try {
|
|
316
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
317
|
-
const ptr0 = passArray8ToWasm0(blob, wasm.__wbindgen_malloc);
|
|
318
|
-
const len0 = WASM_VECTOR_LEN;
|
|
319
|
-
wasm.decodeImportBlobMeta(retptr, ptr0, len0, check_checksum);
|
|
320
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
321
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
322
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
323
|
-
if (r2) {
|
|
324
|
-
throw takeObject(r1);
|
|
325
|
-
}
|
|
326
|
-
return takeObject(r0);
|
|
327
|
-
} finally {
|
|
328
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
|
|
332
318
|
/**
|
|
333
319
|
* Redacts sensitive content in JSON updates within the specified version range.
|
|
334
320
|
*
|
|
@@ -367,32 +353,6 @@ export function redactJsonUpdates(json_updates, version_range) {
|
|
|
367
353
|
}
|
|
368
354
|
}
|
|
369
355
|
|
|
370
|
-
/**
|
|
371
|
-
* @param {Uint8Array} bytes
|
|
372
|
-
* @returns {{ peer: PeerID, counter: number }[]}
|
|
373
|
-
*/
|
|
374
|
-
export function decodeFrontiers(bytes) {
|
|
375
|
-
try {
|
|
376
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
377
|
-
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
378
|
-
const len0 = WASM_VECTOR_LEN;
|
|
379
|
-
wasm.decodeFrontiers(retptr, ptr0, len0);
|
|
380
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
381
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
382
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
383
|
-
if (r2) {
|
|
384
|
-
throw takeObject(r1);
|
|
385
|
-
}
|
|
386
|
-
return takeObject(r0);
|
|
387
|
-
} finally {
|
|
388
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
export function callPendingEvents() {
|
|
393
|
-
wasm.callPendingEvents();
|
|
394
|
-
}
|
|
395
|
-
|
|
396
356
|
function passArrayJsValueToWasm0(array, malloc) {
|
|
397
357
|
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
398
358
|
const mem = getDataViewMemory0();
|
|
@@ -427,12 +387,52 @@ export function encodeFrontiers(frontiers) {
|
|
|
427
387
|
}
|
|
428
388
|
}
|
|
429
389
|
|
|
390
|
+
/**
|
|
391
|
+
* Decode the metadata of the import blob.
|
|
392
|
+
*
|
|
393
|
+
* This method is useful to get the following metadata of the import blob:
|
|
394
|
+
*
|
|
395
|
+
* - startVersionVector
|
|
396
|
+
* - endVersionVector
|
|
397
|
+
* - startTimestamp
|
|
398
|
+
* - endTimestamp
|
|
399
|
+
* - mode
|
|
400
|
+
* - changeNum
|
|
401
|
+
* @param {Uint8Array} blob
|
|
402
|
+
* @param {boolean} check_checksum
|
|
403
|
+
* @returns {ImportBlobMetadata}
|
|
404
|
+
*/
|
|
405
|
+
export function decodeImportBlobMeta(blob, check_checksum) {
|
|
406
|
+
try {
|
|
407
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
408
|
+
const ptr0 = passArray8ToWasm0(blob, wasm.__wbindgen_malloc);
|
|
409
|
+
const len0 = WASM_VECTOR_LEN;
|
|
410
|
+
wasm.decodeImportBlobMeta(retptr, ptr0, len0, check_checksum);
|
|
411
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
412
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
413
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
414
|
+
if (r2) {
|
|
415
|
+
throw takeObject(r1);
|
|
416
|
+
}
|
|
417
|
+
return takeObject(r0);
|
|
418
|
+
} finally {
|
|
419
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* Enable debug info of Loro
|
|
425
|
+
*/
|
|
426
|
+
export function setDebug() {
|
|
427
|
+
wasm.setDebug();
|
|
428
|
+
}
|
|
429
|
+
|
|
430
430
|
function __wbg_adapter_60(arg0, arg1, arg2) {
|
|
431
|
-
wasm.
|
|
431
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h03abcb20aecec54f(arg0, arg1, addHeapObject(arg2));
|
|
432
432
|
}
|
|
433
433
|
|
|
434
434
|
function __wbg_adapter_63(arg0, arg1) {
|
|
435
|
-
wasm.
|
|
435
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h03e188dc81fd4288(arg0, arg1);
|
|
436
436
|
}
|
|
437
437
|
|
|
438
438
|
const AwarenessWasmFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -7010,7 +7010,7 @@ export function __wbg_entries_c8a90a7ed73e84ce(arg0) {
|
|
|
7010
7010
|
return addHeapObject(ret);
|
|
7011
7011
|
};
|
|
7012
7012
|
|
|
7013
|
-
export function
|
|
7013
|
+
export function __wbg_error_2caaeb4a4ddff603(arg0, arg1) {
|
|
7014
7014
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
7015
7015
|
};
|
|
7016
7016
|
|
|
@@ -7141,10 +7141,6 @@ export function __wbg_log_0cc1b7768397bcfe(arg0, arg1, arg2, arg3, arg4, arg5, a
|
|
|
7141
7141
|
}
|
|
7142
7142
|
};
|
|
7143
7143
|
|
|
7144
|
-
export function __wbg_log_c534a954ce262324(arg0, arg1) {
|
|
7145
|
-
console.log(getStringFromWasm0(arg0, arg1));
|
|
7146
|
-
};
|
|
7147
|
-
|
|
7148
7144
|
export function __wbg_log_cb9e190acc5753fb(arg0, arg1) {
|
|
7149
7145
|
let deferred0_0;
|
|
7150
7146
|
let deferred0_1;
|
|
@@ -7157,6 +7153,10 @@ export function __wbg_log_cb9e190acc5753fb(arg0, arg1) {
|
|
|
7157
7153
|
}
|
|
7158
7154
|
};
|
|
7159
7155
|
|
|
7156
|
+
export function __wbg_log_fc81db84f828b288(arg0, arg1) {
|
|
7157
|
+
console.log(getStringFromWasm0(arg0, arg1));
|
|
7158
|
+
};
|
|
7159
|
+
|
|
7160
7160
|
export function __wbg_lorocounter_new(arg0) {
|
|
7161
7161
|
const ret = LoroCounter.__wrap(arg0);
|
|
7162
7162
|
return addHeapObject(ret);
|
|
@@ -7278,7 +7278,7 @@ export function __wbg_node_905d3e251edff8a2(arg0) {
|
|
|
7278
7278
|
return addHeapObject(ret);
|
|
7279
7279
|
};
|
|
7280
7280
|
|
|
7281
|
-
export function
|
|
7281
|
+
export function __wbg_now_829357f5fa91c9dd() {
|
|
7282
7282
|
const ret = Date.now();
|
|
7283
7283
|
return ret;
|
|
7284
7284
|
};
|
|
@@ -7391,7 +7391,7 @@ export function __wbg_versionvector_new(arg0) {
|
|
|
7391
7391
|
return addHeapObject(ret);
|
|
7392
7392
|
};
|
|
7393
7393
|
|
|
7394
|
-
export function
|
|
7394
|
+
export function __wbg_warn_5e3717ed8ac922f8(arg0, arg1) {
|
|
7395
7395
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
7396
7396
|
};
|
|
7397
7397
|
|
|
Binary file
|
|
@@ -330,6 +330,6 @@ export const __wbindgen_exn_store: (a: number) => void;
|
|
|
330
330
|
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
331
331
|
export const __wbindgen_export_4: WebAssembly.Table;
|
|
332
332
|
export const __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
333
|
-
export const
|
|
334
|
-
export const
|
|
333
|
+
export const _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h03abcb20aecec54f: (a: number, b: number, c: number) => void;
|
|
334
|
+
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h03e188dc81fd4288: (a: number, b: number) => void;
|
|
335
335
|
export const __wbindgen_start: () => void;
|
package/bundler/index.js
CHANGED
|
@@ -409,7 +409,7 @@ export {
|
|
|
409
409
|
__wbg_done_769e5ede4b31c67b,
|
|
410
410
|
__wbg_entries_3265d4158b33e5dc,
|
|
411
411
|
__wbg_entries_c8a90a7ed73e84ce,
|
|
412
|
-
|
|
412
|
+
__wbg_error_2caaeb4a4ddff603,
|
|
413
413
|
__wbg_error_7534b8e9a36f1ab4,
|
|
414
414
|
__wbg_from_2a5d3e218e67aa85,
|
|
415
415
|
__wbg_getOwnPropertySymbols_97eebed6fe6e08be,
|
|
@@ -428,8 +428,8 @@ export {
|
|
|
428
428
|
__wbg_length_a446193dc22c12f8,
|
|
429
429
|
__wbg_length_e2d2a49132c1b256,
|
|
430
430
|
__wbg_log_0cc1b7768397bcfe,
|
|
431
|
-
__wbg_log_c534a954ce262324,
|
|
432
431
|
__wbg_log_cb9e190acc5753fb,
|
|
432
|
+
__wbg_log_fc81db84f828b288,
|
|
433
433
|
__wbg_lorocounter_new,
|
|
434
434
|
__wbg_lorolist_new,
|
|
435
435
|
__wbg_loromap_new,
|
|
@@ -452,7 +452,7 @@ export {
|
|
|
452
452
|
__wbg_next_25feadfc0913fea9,
|
|
453
453
|
__wbg_next_6574e1a8a62d1055,
|
|
454
454
|
__wbg_node_905d3e251edff8a2,
|
|
455
|
-
|
|
455
|
+
__wbg_now_829357f5fa91c9dd,
|
|
456
456
|
__wbg_ownKeys_3930041068756f1f,
|
|
457
457
|
__wbg_process_dc0fbacc7c1c06f7,
|
|
458
458
|
__wbg_push_737cfc8c1432c2c6,
|
|
@@ -476,7 +476,7 @@ export {
|
|
|
476
476
|
__wbg_value_cd1ffa7b1ab794f1,
|
|
477
477
|
__wbg_versions_c01dfd4722a88165,
|
|
478
478
|
__wbg_versionvector_new,
|
|
479
|
-
|
|
479
|
+
__wbg_warn_5e3717ed8ac922f8,
|
|
480
480
|
__wbindgen_as_number,
|
|
481
481
|
__wbindgen_bigint_from_i64,
|
|
482
482
|
__wbindgen_bigint_from_u64,
|
package/bundler/loro_wasm.d.ts
CHANGED
|
@@ -1,27 +1,12 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export function run(): void;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
export function setDebug(): void;
|
|
4
|
+
export function decodeFrontiers(bytes: Uint8Array): { peer: PeerID, counter: number }[];
|
|
5
|
+
export function callPendingEvents(): void;
|
|
8
6
|
/**
|
|
9
7
|
* Get the version of Loro
|
|
10
8
|
*/
|
|
11
9
|
export function LORO_VERSION(): string;
|
|
12
|
-
/**
|
|
13
|
-
* Decode the metadata of the import blob.
|
|
14
|
-
*
|
|
15
|
-
* This method is useful to get the following metadata of the import blob:
|
|
16
|
-
*
|
|
17
|
-
* - startVersionVector
|
|
18
|
-
* - endVersionVector
|
|
19
|
-
* - startTimestamp
|
|
20
|
-
* - endTimestamp
|
|
21
|
-
* - mode
|
|
22
|
-
* - changeNum
|
|
23
|
-
*/
|
|
24
|
-
export function decodeImportBlobMeta(blob: Uint8Array, check_checksum: boolean): ImportBlobMetadata;
|
|
25
10
|
/**
|
|
26
11
|
* Redacts sensitive content in JSON updates within the specified version range.
|
|
27
12
|
*
|
|
@@ -42,9 +27,24 @@ export function decodeImportBlobMeta(blob: Uint8Array, check_checksum: boolean):
|
|
|
42
27
|
* @returns {Object} The redacted JSON updates
|
|
43
28
|
*/
|
|
44
29
|
export function redactJsonUpdates(json_updates: string | JsonSchema, version_range: any): JsonSchema;
|
|
45
|
-
export function decodeFrontiers(bytes: Uint8Array): { peer: PeerID, counter: number }[];
|
|
46
|
-
export function callPendingEvents(): void;
|
|
47
30
|
export function encodeFrontiers(frontiers: ({ peer: PeerID, counter: number })[]): Uint8Array;
|
|
31
|
+
/**
|
|
32
|
+
* Decode the metadata of the import blob.
|
|
33
|
+
*
|
|
34
|
+
* This method is useful to get the following metadata of the import blob:
|
|
35
|
+
*
|
|
36
|
+
* - startVersionVector
|
|
37
|
+
* - endVersionVector
|
|
38
|
+
* - startTimestamp
|
|
39
|
+
* - endTimestamp
|
|
40
|
+
* - mode
|
|
41
|
+
* - changeNum
|
|
42
|
+
*/
|
|
43
|
+
export function decodeImportBlobMeta(blob: Uint8Array, check_checksum: boolean): ImportBlobMetadata;
|
|
44
|
+
/**
|
|
45
|
+
* Enable debug info of Loro
|
|
46
|
+
*/
|
|
47
|
+
export function setDebug(): void;
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* Container types supported by loro.
|