loro-crdt 1.7.0 → 1.7.1
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 +7 -0
- package/base64/index.js +8 -1
- package/base64/loro_wasm.d.ts +1 -0
- package/base64/loro_wasm_bg-512df4ec.js +64 -0
- package/bundler/loro_wasm.d.ts +1 -0
- package/bundler/loro_wasm_bg.js +7 -0
- package/bundler/loro_wasm_bg.wasm +0 -0
- package/bundler/loro_wasm_bg.wasm.d.ts +1 -0
- package/nodejs/loro_wasm.d.ts +1 -0
- package/nodejs/loro_wasm.js +7 -0
- package/nodejs/loro_wasm_bg.wasm +0 -0
- package/nodejs/loro_wasm_bg.wasm.d.ts +1 -0
- package/package.json +1 -1
- package/web/loro_wasm.d.ts +2 -0
- package/web/loro_wasm.js +7 -0
- package/web/loro_wasm_bg.wasm +0 -0
- package/web/loro_wasm_bg.wasm.d.ts +1 -0
- package/base64/loro_wasm_bg-ce6cdb00.js +0 -64
package/bundler/loro_wasm.d.ts
CHANGED
package/bundler/loro_wasm_bg.js
CHANGED
|
@@ -1122,6 +1122,13 @@ export class LoroCounter {
|
|
|
1122
1122
|
const ret = wasm.lorocounter_getShallowValue(this.__wbg_ptr);
|
|
1123
1123
|
return ret;
|
|
1124
1124
|
}
|
|
1125
|
+
/**
|
|
1126
|
+
* @returns {number}
|
|
1127
|
+
*/
|
|
1128
|
+
toJSON() {
|
|
1129
|
+
const ret = wasm.lorocounter_toJSON(this.__wbg_ptr);
|
|
1130
|
+
return ret;
|
|
1131
|
+
}
|
|
1125
1132
|
}
|
|
1126
1133
|
|
|
1127
1134
|
const LoroDocFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
Binary file
|
|
@@ -13,6 +13,7 @@ export const lorocounter_parent: (a: number) => number;
|
|
|
13
13
|
export const lorocounter_isAttached: (a: number) => number;
|
|
14
14
|
export const lorocounter_getAttached: (a: number) => number;
|
|
15
15
|
export const lorocounter_getShallowValue: (a: number) => number;
|
|
16
|
+
export const lorocounter_toJSON: (a: number) => number;
|
|
16
17
|
export const __wbg_awarenesswasm_free: (a: number, b: number) => void;
|
|
17
18
|
export const awarenesswasm_new: (a: number, b: number) => number;
|
|
18
19
|
export const awarenesswasm_encode: (a: number, b: number, c: number) => void;
|
package/nodejs/loro_wasm.d.ts
CHANGED
package/nodejs/loro_wasm.js
CHANGED
|
@@ -1122,6 +1122,13 @@ class LoroCounter {
|
|
|
1122
1122
|
const ret = wasm.lorocounter_getShallowValue(this.__wbg_ptr);
|
|
1123
1123
|
return ret;
|
|
1124
1124
|
}
|
|
1125
|
+
/**
|
|
1126
|
+
* @returns {number}
|
|
1127
|
+
*/
|
|
1128
|
+
toJSON() {
|
|
1129
|
+
const ret = wasm.lorocounter_toJSON(this.__wbg_ptr);
|
|
1130
|
+
return ret;
|
|
1131
|
+
}
|
|
1125
1132
|
}
|
|
1126
1133
|
module.exports.LoroCounter = LoroCounter;
|
|
1127
1134
|
|
package/nodejs/loro_wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -13,6 +13,7 @@ export const lorocounter_parent: (a: number) => number;
|
|
|
13
13
|
export const lorocounter_isAttached: (a: number) => number;
|
|
14
14
|
export const lorocounter_getAttached: (a: number) => number;
|
|
15
15
|
export const lorocounter_getShallowValue: (a: number) => number;
|
|
16
|
+
export const lorocounter_toJSON: (a: number) => number;
|
|
16
17
|
export const __wbg_awarenesswasm_free: (a: number, b: number) => void;
|
|
17
18
|
export const awarenesswasm_new: (a: number, b: number) => number;
|
|
18
19
|
export const awarenesswasm_encode: (a: number, b: number, c: number) => void;
|
package/package.json
CHANGED
package/web/loro_wasm.d.ts
CHANGED
|
@@ -1640,6 +1640,7 @@ export class LoroCounter {
|
|
|
1640
1640
|
* Get the value of the counter.
|
|
1641
1641
|
*/
|
|
1642
1642
|
getShallowValue(): number;
|
|
1643
|
+
toJSON(): number;
|
|
1643
1644
|
/**
|
|
1644
1645
|
* The container id of this handler.
|
|
1645
1646
|
*/
|
|
@@ -3724,6 +3725,7 @@ export interface InitOutput {
|
|
|
3724
3725
|
readonly lorocounter_isAttached: (a: number) => number;
|
|
3725
3726
|
readonly lorocounter_getAttached: (a: number) => number;
|
|
3726
3727
|
readonly lorocounter_getShallowValue: (a: number) => number;
|
|
3728
|
+
readonly lorocounter_toJSON: (a: number) => number;
|
|
3727
3729
|
readonly __wbg_awarenesswasm_free: (a: number, b: number) => void;
|
|
3728
3730
|
readonly awarenesswasm_new: (a: number, b: number) => number;
|
|
3729
3731
|
readonly awarenesswasm_encode: (a: number, b: number, c: number) => void;
|
package/web/loro_wasm.js
CHANGED
|
@@ -1114,6 +1114,13 @@ export class LoroCounter {
|
|
|
1114
1114
|
const ret = wasm.lorocounter_getShallowValue(this.__wbg_ptr);
|
|
1115
1115
|
return ret;
|
|
1116
1116
|
}
|
|
1117
|
+
/**
|
|
1118
|
+
* @returns {number}
|
|
1119
|
+
*/
|
|
1120
|
+
toJSON() {
|
|
1121
|
+
const ret = wasm.lorocounter_toJSON(this.__wbg_ptr);
|
|
1122
|
+
return ret;
|
|
1123
|
+
}
|
|
1117
1124
|
}
|
|
1118
1125
|
|
|
1119
1126
|
const LoroDocFinalization = (typeof FinalizationRegistry === 'undefined')
|
package/web/loro_wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -13,6 +13,7 @@ export const lorocounter_parent: (a: number) => number;
|
|
|
13
13
|
export const lorocounter_isAttached: (a: number) => number;
|
|
14
14
|
export const lorocounter_getAttached: (a: number) => number;
|
|
15
15
|
export const lorocounter_getShallowValue: (a: number) => number;
|
|
16
|
+
export const lorocounter_toJSON: (a: number) => number;
|
|
16
17
|
export const __wbg_awarenesswasm_free: (a: number, b: number) => void;
|
|
17
18
|
export const awarenesswasm_new: (a: number, b: number) => number;
|
|
18
19
|
export const awarenesswasm_encode: (a: number, b: number, c: number) => void;
|