@automerge/automerge
Advanced tools
Comparing version 2.0.1-alpha.1 to 2.0.1-alpha.2
@@ -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 @@ } |
@@ -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" | ||
} | ||
} |
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
160086
4247
+ Added@automerge/automerge-wasm@0.1.19(transitive)
- Removed@automerge/automerge-wasm@0.1.18(transitive)