@automerge/automerge-wasm
Advanced tools
Comparing version 0.7.0 to 0.8.0
@@ -619,2 +619,19 @@ let wasm; | ||
* @param {any} obj | ||
* @param {any} new_text | ||
*/ | ||
updateText(obj, new_text) { | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.automerge_updateText(retptr, this.__wbg_ptr, addHeapObject(obj), addHeapObject(new_text)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
if (r1) { | ||
throw takeObject(r0); | ||
} | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
} | ||
} | ||
/** | ||
* @param {any} obj | ||
* @param {any} value | ||
@@ -621,0 +638,0 @@ * @param {any} datatype |
@@ -209,2 +209,3 @@ export type Actor = string; | ||
delete(obj: ObjID, prop: Prop): void; | ||
updateText(obj: ObjID, newText: string): void; | ||
@@ -211,0 +212,0 @@ // marks |
@@ -11,3 +11,3 @@ { | ||
"repository": "github:automerge/automerge", | ||
"version": "0.7.0", | ||
"version": "0.8.0", | ||
"license": "MIT", | ||
@@ -14,0 +14,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
6845338
7760