@automerge/automerge-wasm
Advanced tools
Comparing version 0.1.14 to 0.1.15
@@ -484,27 +484,6 @@ import * as wasm from './automerge_wasm_bg.wasm'; | ||
* @param {string | undefined} actor | ||
* @returns {Automerge} | ||
*/ | ||
fork(actor) { | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
var ptr0 = isLikeNone(actor) ? 0 : passStringToWasm0(actor, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
var len0 = WASM_VECTOR_LEN; | ||
wasm.automerge_fork(retptr, this.ptr, ptr0, len0); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
if (r2) { | ||
throw takeObject(r1); | ||
} | ||
return Automerge.__wrap(r0); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
} | ||
} | ||
/** | ||
* @param {any} heads | ||
* @param {string | undefined} actor | ||
* @returns {Automerge} | ||
*/ | ||
forkAt(heads, actor) { | ||
fork(actor, heads) { | ||
try { | ||
@@ -514,3 +493,3 @@ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
var len0 = WASM_VECTOR_LEN; | ||
wasm.automerge_forkAt(retptr, this.ptr, addHeapObject(heads), ptr0, len0); | ||
wasm.automerge_fork(retptr, this.ptr, ptr0, len0, addHeapObject(heads)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
@@ -517,0 +496,0 @@ var r1 = getInt32Memory0()[retptr / 4 + 1]; |
@@ -202,8 +202,7 @@ export type Actor = string; | ||
// memory management | ||
free(): void; | ||
clone(actor?: string): Automerge; | ||
fork(actor?: string): Automerge; | ||
forkAt(heads: Heads, actor?: string): Automerge; | ||
free(): void; // only needed if weak-refs are unsupported | ||
clone(actor?: string): Automerge; // TODO - remove, this is dangerous | ||
fork(actor?: string, heads?: Heads): Automerge; | ||
// dump internal state to console.log | ||
// dump internal state to console.log - for debugging | ||
dump(): void; | ||
@@ -210,0 +209,0 @@ |
@@ -483,27 +483,6 @@ let imports = {}; | ||
* @param {string | undefined} actor | ||
* @returns {Automerge} | ||
*/ | ||
fork(actor) { | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
var ptr0 = isLikeNone(actor) ? 0 : passStringToWasm0(actor, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); | ||
var len0 = WASM_VECTOR_LEN; | ||
wasm.automerge_fork(retptr, this.ptr, ptr0, len0); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
if (r2) { | ||
throw takeObject(r1); | ||
} | ||
return Automerge.__wrap(r0); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
} | ||
} | ||
/** | ||
* @param {any} heads | ||
* @param {string | undefined} actor | ||
* @returns {Automerge} | ||
*/ | ||
forkAt(heads, actor) { | ||
fork(actor, heads) { | ||
try { | ||
@@ -513,3 +492,3 @@ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
var len0 = WASM_VECTOR_LEN; | ||
wasm.automerge_forkAt(retptr, this.ptr, addHeapObject(heads), ptr0, len0); | ||
wasm.automerge_fork(retptr, this.ptr, ptr0, len0, addHeapObject(heads)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
@@ -516,0 +495,0 @@ var r1 = getInt32Memory0()[retptr / 4 + 1]; |
@@ -11,3 +11,3 @@ { | ||
"repository": "github:automerge/automerge-rs", | ||
"version": "0.1.14", | ||
"version": "0.1.15", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 2 instances in 1 package
2
1852315
3418