Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@automerge/automerge-wasm

Package Overview
Dependencies
Maintainers
4
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@automerge/automerge-wasm - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

21

bundler/automerge_wasm_bg.js

@@ -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 @@

3

index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc