@automerge/automerge
Advanced tools
Comparing version 2.0.0-alpha.1 to 2.0.0-alpha.2
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
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.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; | ||
var uuid_1 = require("./uuid"); | ||
@@ -15,3 +15,7 @@ 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) { | ||
@@ -18,0 +22,0 @@ (0, low_level_1.UseApi)(api); |
@@ -6,3 +6,5 @@ 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) { | ||
@@ -337,1 +339,2 @@ UseApi(api); | ||
} | ||
export { API, SyncState }; |
@@ -7,3 +7,3 @@ { | ||
], | ||
"version": "2.0.0-alpha.1", | ||
"version": "2.0.0-alpha.2", | ||
"description": "Reimplementation of `automerge` on top of the automerge-wasm backend", | ||
@@ -17,3 +17,3 @@ "homepage": "https://github.com/automerge/automerge-rs/tree/main/automerge-js", | ||
"index.d.ts", | ||
"dist/cjs/*.d.ts", | ||
"dist/*.d.ts", | ||
"dist/cjs/constants.js", | ||
@@ -28,3 +28,2 @@ "dist/cjs/types.js", | ||
"dist/cjs/proxies.js", | ||
"dist/mjs/*.d.ts", | ||
"dist/mjs/constants.js", | ||
@@ -40,3 +39,3 @@ "dist/mjs/types.js", | ||
], | ||
"types": "index.d.ts", | ||
"types": "./dist/index.d.ts", | ||
"module": "./dist/mjs/index.js", | ||
@@ -47,3 +46,3 @@ "main": "./dist/cjs/index.js", | ||
"lint": "eslint src", | ||
"build": "tsc -p config/mjs.json && tsc -p config/cjs.json", | ||
"build": "tsc -p config/mjs.json && tsc -p config/cjs.json && tsc --emitDeclarationOnly", | ||
"test": "ts-mocha test/*.ts" | ||
@@ -50,0 +49,0 @@ }, |
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
108872
30
2873