@automerge/automerge-wasm
Advanced tools
Comparing version 0.3.0 to 0.4.0
@@ -1394,2 +1394,23 @@ let wasm; | ||
} | ||
/** | ||
* @param {any} obj | ||
* @param {number} index | ||
* @param {Array<any> | undefined} heads | ||
* @returns {object} | ||
*/ | ||
marksAt(obj, index, heads) { | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.automerge_marksAt(retptr, this.__wbg_ptr, addHeapObject(obj), index, isLikeNone(heads) ? 0 : addHeapObject(heads)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
if (r2) { | ||
throw takeObject(r1); | ||
} | ||
return takeObject(r0); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
} | ||
} | ||
} | ||
@@ -1396,0 +1417,0 @@ |
@@ -1377,2 +1377,23 @@ | ||
} | ||
/** | ||
* @param {any} obj | ||
* @param {number} index | ||
* @param {Array<any> | undefined} heads | ||
* @returns {object} | ||
*/ | ||
marksAt(obj, index, heads) { | ||
try { | ||
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16); | ||
wasm.automerge_marksAt(retptr, this.__wbg_ptr, addHeapObject(obj), index, isLikeNone(heads) ? 0 : addHeapObject(heads)); | ||
var r0 = getInt32Memory0()[retptr / 4 + 0]; | ||
var r1 = getInt32Memory0()[retptr / 4 + 1]; | ||
var r2 = getInt32Memory0()[retptr / 4 + 2]; | ||
if (r2) { | ||
throw takeObject(r1); | ||
} | ||
return takeObject(r0); | ||
} finally { | ||
wasm.__wbindgen_add_to_stack_pointer(16); | ||
} | ||
} | ||
} | ||
@@ -1379,0 +1400,0 @@ |
@@ -206,3 +206,3 @@ export type Actor = string; | ||
pushObject(obj: ObjID, value: ObjType): ObjID; | ||
splice(obj: ObjID, start: number, delete_count: number, text?: string | Array<Value>): ObjID[] | undefined; | ||
splice(obj: ObjID, start: number, delete_count: number, text?: string | Array<Value>): void; | ||
increment(obj: ObjID, prop: Prop, value: number): void; | ||
@@ -215,2 +215,3 @@ delete(obj: ObjID, prop: Prop): void; | ||
marks(obj: ObjID, heads?: Heads): Mark[]; | ||
marksAt(obj: ObjID, index: number, heads?: Heads): MarkSet; | ||
@@ -217,0 +218,0 @@ diff(before: Heads, after: Heads): Patch[]; |
@@ -11,3 +11,3 @@ { | ||
"repository": "github:automerge/automerge", | ||
"version": "0.3.0", | ||
"version": "0.4.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 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
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
7675
5
6643995
2021