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.1.14 to 0.1.15

25

bundler/automerge_wasm_bg.js

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

9

index.d.ts

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

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