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

@automerge/automerge

Package Overview
Dependencies
Maintainers
3
Versions
83
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.0-alpha.2 to 2.0.0-alpha.3

6

dist/cjs/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SyncState = exports.API = exports.toJS = exports.dump = exports.getHeads = exports.getMissingDeps = exports.decodeSyncMessage = exports.encodeSyncMessage = exports.decodeChange = exports.encodeChange = exports.initSyncState = exports.receiveSyncMessage = exports.generateSyncMessage = exports.decodeSyncState = exports.encodeSyncState = exports.equals = exports.getHistory = exports.applyChanges = exports.getAllChanges = exports.getChanges = exports.getObjectId = exports.getLastLocalChange = exports.getConflicts = exports.getActorId = exports.merge = exports.save = exports.load = exports.emptyChange = exports.change = exports.from = exports.free = exports.clone = exports.init = exports.getBackend = exports.use = exports.Float64 = exports.Uint = exports.Int = exports.Counter = exports.Text = exports.uuid = void 0;
exports.toJS = exports.dump = exports.getHeads = exports.getMissingDeps = exports.decodeSyncMessage = exports.encodeSyncMessage = exports.decodeChange = exports.encodeChange = exports.initSyncState = exports.receiveSyncMessage = exports.generateSyncMessage = exports.decodeSyncState = exports.encodeSyncState = exports.equals = exports.getHistory = exports.applyChanges = exports.getAllChanges = exports.getChanges = exports.getObjectId = exports.getLastLocalChange = exports.getConflicts = exports.getActorId = exports.merge = exports.save = exports.load = exports.emptyChange = exports.change = exports.from = exports.free = exports.clone = exports.init = exports.getBackend = exports.use = exports.Float64 = exports.Uint = exports.Int = exports.Counter = exports.Text = exports.uuid = void 0;
var uuid_1 = require("./uuid");

@@ -15,7 +15,3 @@ Object.defineProperty(exports, "uuid", { enumerable: true, get: function () { return uuid_1.uuid; } });

Object.defineProperty(exports, "Float64", { enumerable: true, get: function () { return types_2.Float64; } });
const automerge_wasm_1 = require("@automerge/automerge-wasm");
Object.defineProperty(exports, "API", { enumerable: true, get: function () { return automerge_wasm_1.API; } });
const low_level_1 = require("./low_level");
const automerge_wasm_2 = require("@automerge/automerge-wasm");
Object.defineProperty(exports, "SyncState", { enumerable: true, get: function () { return automerge_wasm_2.JsSyncState; } });
function use(api) {

@@ -22,0 +18,0 @@ (0, low_level_1.UseApi)(api);

6

dist/index.d.ts
export { uuid } from './uuid';
import { AutomergeValue } from "./types";
export { AutomergeValue, Text, Counter, Int, Uint, Float64 } from "./types";
import { API } from "@automerge/automerge-wasm";
import { type API } from "@automerge/automerge-wasm";
import { Actor as ActorId, Prop, ObjID, Change, DecodedChange, Heads, Automerge, MaterializeValue } from "@automerge/automerge-wasm";

@@ -12,3 +12,3 @@ import { JsSyncState as SyncState, SyncMessage, DecodedSyncMessage } from "@automerge/automerge-wasm";

export declare type Doc<T> = {
readonly [P in keyof T]: Doc<T[P]>;
readonly [P in keyof T]: T[P];
};

@@ -56,2 +56,2 @@ export declare type ChangeFn<T> = (doc: T) => void;

export declare function toJS<T>(doc: Doc<T>): MaterializeValue;
export { API, SyncState, ActorId, Conflicts, Prop, Change, ObjID, DecodedChange, DecodedSyncMessage, Heads, MaterializeValue };
export type { API, SyncState, ActorId, Conflicts, Prop, Change, ObjID, DecodedChange, DecodedSyncMessage, Heads, MaterializeValue };

@@ -6,5 +6,3 @@ export { uuid } from './uuid';

export { Text, Counter, Int, Uint, Float64 } from "./types";
import { API } from "@automerge/automerge-wasm";
import { ApiHandler, UseApi } from "./low_level";
import { JsSyncState as SyncState } from "@automerge/automerge-wasm";
export function use(api) {

@@ -339,2 +337,1 @@ UseApi(api);

}
export { API, SyncState };

@@ -7,4 +7,4 @@ {

],
"version": "2.0.0-alpha.2",
"description": "Reimplementation of `automerge` on top of the automerge-wasm backend",
"version": "2.0.0-alpha.3",
"description": "Javascript implementation of automerge, backed by @automerge/automerge-wasm",
"homepage": "https://github.com/automerge/automerge-rs/tree/main/automerge-js",

@@ -60,5 +60,5 @@ "repository": "github:automerge/automerge-rs",

"dependencies": {
"@automerge/automerge-wasm": "0.1.7",
"@automerge/automerge-wasm": "0.1.8",
"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