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

@automerge/automerge

Package Overview
Dependencies
Maintainers
4
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@automerge/automerge - npm Package Compare versions

Comparing version 2.0.1-alpha.1 to 2.0.1-alpha.2

5

dist/cjs/index.js

@@ -239,2 +239,5 @@ "use strict";

function progressDocument(doc, heads, callback) {
if (heads == null) {
return doc;
}
let state = _state(doc);

@@ -307,3 +310,3 @@ let nextState = Object.assign(Object.assign({}, state), { heads: undefined });

const heads = state.handle.getHeads();
state.handle.commit(options.message, options.time);
state.handle.emptyChange(options.message, options.time);
return progressDocument(doc, heads);

@@ -310,0 +313,0 @@ }

2

dist/index.d.ts

@@ -193,3 +193,3 @@ /** @hidden **/

*/
export declare function emptyChange<T>(doc: Doc<T>, options: string | ChangeOptions<T>): Doc<T>;
export declare function emptyChange<T>(doc: Doc<T>, options: string | ChangeOptions<T> | void): Doc<T>;
/**

@@ -196,0 +196,0 @@ * Load an automerge document from a compressed document produce by {@link save}

@@ -222,2 +222,5 @@ var __rest = (this && this.__rest) || function (s, e) {

function progressDocument(doc, heads, callback) {
if (heads == null) {
return doc;
}
let state = _state(doc);

@@ -290,3 +293,3 @@ let nextState = Object.assign(Object.assign({}, state), { heads: undefined });

const heads = state.handle.getHeads();
state.handle.commit(options.message, options.time);
state.handle.emptyChange(options.message, options.time);
return progressDocument(doc, heads);

@@ -293,0 +296,0 @@ }

@@ -7,3 +7,3 @@ {

],
"version": "2.0.1-alpha.1",
"version": "2.0.1-alpha.2",
"description": "Javascript implementation of automerge, backed by @automerge/automerge-wasm",

@@ -63,5 +63,5 @@ "homepage": "https://github.com/automerge/automerge-rs/tree/main/wrappers/javascript",

"dependencies": {
"@automerge/automerge-wasm": "0.1.18",
"@automerge/automerge-wasm": "0.1.19",
"uuid": "^8.3"
}
}
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