@automerge/automerge-wasm
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -953,2 +953,23 @@ let wasm; | ||
/** | ||
* @param {Array<any>} heads | ||
*/ | ||
isolate(heads) { | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.automerge_isolate(retptr, this.__wbg_ptr, addHeapObject(heads)); | ||
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); | ||
} | ||
} | ||
/** | ||
*/ | ||
integrate() { | ||
wasm.automerge_integrate(this.__wbg_ptr); | ||
} | ||
/** | ||
* @param {any} obj | ||
@@ -955,0 +976,0 @@ * @param {Array<any> | undefined} heads |
@@ -936,2 +936,23 @@ | ||
/** | ||
* @param {Array<any>} heads | ||
*/ | ||
isolate(heads) { | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.automerge_isolate(retptr, this.__wbg_ptr, addHeapObject(heads)); | ||
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); | ||
} | ||
} | ||
/** | ||
*/ | ||
integrate() { | ||
wasm.automerge_integrate(this.__wbg_ptr); | ||
} | ||
/** | ||
* @param {any} obj | ||
@@ -938,0 +959,0 @@ * @param {Array<any> | undefined} heads |
@@ -202,2 +202,6 @@ export type Actor = string; | ||
// isolate | ||
isolate(heads: Heads): void; | ||
integrate(): void; | ||
// returns a single value - if there is a conflict return the winner | ||
@@ -204,0 +208,0 @@ get(obj: ObjID, prop: Prop, heads?: Heads): Value | undefined; |
@@ -948,2 +948,23 @@ let imports = {}; | ||
/** | ||
* @param {Array<any>} heads | ||
*/ | ||
isolate(heads) { | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.automerge_isolate(retptr, this.__wbg_ptr, addHeapObject(heads)); | ||
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); | ||
} | ||
} | ||
/** | ||
*/ | ||
integrate() { | ||
wasm.automerge_integrate(this.__wbg_ptr); | ||
} | ||
/** | ||
* @param {any} obj | ||
@@ -950,0 +971,0 @@ * @param {Array<any> | undefined} heads |
@@ -11,3 +11,3 @@ { | ||
"repository": "github:automerge/automerge", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"license": "MIT", | ||
@@ -14,0 +14,0 @@ "files": [ |
@@ -945,2 +945,23 @@ let wasm; | ||
/** | ||
* @param {Array<any>} heads | ||
*/ | ||
isolate(heads) { | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.automerge_isolate(retptr, this.__wbg_ptr, addHeapObject(heads)); | ||
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); | ||
} | ||
} | ||
/** | ||
*/ | ||
integrate() { | ||
wasm.automerge_integrate(this.__wbg_ptr); | ||
} | ||
/** | ||
* @param {any} obj | ||
@@ -947,0 +968,0 @@ * @param {Array<any> | undefined} heads |
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 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 4 instances in 1 package
6332972
7276
3