loro-crdt
Advanced tools
Comparing version 1.0.0-alpha.2 to 1.0.0-alpha.3
@@ -1,3 +0,3 @@ | ||
import { Value, AwarenessWasm, PeerID as PeerID$1, Container, ContainerID, TreeID, LoroDoc, OpId, Delta, LoroText, LoroMap, LoroTree, LoroList, LoroCounter } from 'loro-wasm'; | ||
export { AwarenessWasm, Change, Container, ContainerID, ContainerType, Cursor, Delta, ExportMode, ImportBlobMetadata, JsonChange, JsonContainerID, JsonOp, JsonOpID, JsonSchema, JsonValue, ListOp, LoroCounter, LoroDoc, LoroList, LoroMap, LoroMovableList, LoroText, LoroTree, LoroTreeNode, MapOp, MovableListOp, OpId, PeerID, Side, TextOp, TreeID, TreeNodeValue, TreeOp, UndoConfig, UndoManager, UnknownOp, Value, VersionVector, decodeImportBlobMeta, newContainerID, newRootContainerID, setDebug } from 'loro-wasm'; | ||
import { Value, AwarenessWasm, PeerID as PeerID$1, Container, ContainerID, TreeID, LoroDoc, OpId, Delta, LoroText, LoroMap, LoroTree, LoroList, LoroCounter, ContainerType } from 'loro-wasm'; | ||
export * from 'loro-wasm'; | ||
@@ -591,3 +591,5 @@ type AwarenessListener = (arg: { | ||
type NonNullableType<T> = Exclude<T, null | undefined>; | ||
declare function newContainerID(id: OpId, type: ContainerType): ContainerID; | ||
declare function newRootContainerID(name: string, type: ContainerType): ContainerID; | ||
export { Awareness, CounterDiff, Diff, Frontiers, ListDiff, Loro, LoroEvent, LoroEventBatch, MapDiff, Path, TextDiff, TreeDiff, TreeDiffItem, getType, isContainer, isContainerId }; | ||
export { Awareness, CounterDiff, Diff, Frontiers, ListDiff, Loro, LoroEvent, LoroEventBatch, MapDiff, Path, TextDiff, TreeDiff, TreeDiffItem, getType, isContainer, isContainerId, newContainerID, newRootContainerID }; |
182
dist/loro.js
@@ -109,171 +109,9 @@ 'use strict'; | ||
} | ||
function newContainerID(id, type) { | ||
return `cid:${id.counter}@${id.peer}:${type}`; | ||
} | ||
function newRootContainerID(name, type) { | ||
return `cid:root-${name}:${type}`; | ||
} | ||
Object.defineProperty(exports, 'AwarenessWasm', { | ||
enumerable: true, | ||
get: function () { return loroWasm.AwarenessWasm; } | ||
}); | ||
Object.defineProperty(exports, 'Change', { | ||
enumerable: true, | ||
get: function () { return loroWasm.Change; } | ||
}); | ||
Object.defineProperty(exports, 'Container', { | ||
enumerable: true, | ||
get: function () { return loroWasm.Container; } | ||
}); | ||
Object.defineProperty(exports, 'ContainerID', { | ||
enumerable: true, | ||
get: function () { return loroWasm.ContainerID; } | ||
}); | ||
Object.defineProperty(exports, 'ContainerType', { | ||
enumerable: true, | ||
get: function () { return loroWasm.ContainerType; } | ||
}); | ||
Object.defineProperty(exports, 'Cursor', { | ||
enumerable: true, | ||
get: function () { return loroWasm.Cursor; } | ||
}); | ||
Object.defineProperty(exports, 'Delta', { | ||
enumerable: true, | ||
get: function () { return loroWasm.Delta; } | ||
}); | ||
Object.defineProperty(exports, 'ExportMode', { | ||
enumerable: true, | ||
get: function () { return loroWasm.ExportMode; } | ||
}); | ||
Object.defineProperty(exports, 'ImportBlobMetadata', { | ||
enumerable: true, | ||
get: function () { return loroWasm.ImportBlobMetadata; } | ||
}); | ||
Object.defineProperty(exports, 'JsonChange', { | ||
enumerable: true, | ||
get: function () { return loroWasm.JsonChange; } | ||
}); | ||
Object.defineProperty(exports, 'JsonContainerID', { | ||
enumerable: true, | ||
get: function () { return loroWasm.JsonContainerID; } | ||
}); | ||
Object.defineProperty(exports, 'JsonOp', { | ||
enumerable: true, | ||
get: function () { return loroWasm.JsonOp; } | ||
}); | ||
Object.defineProperty(exports, 'JsonOpID', { | ||
enumerable: true, | ||
get: function () { return loroWasm.JsonOpID; } | ||
}); | ||
Object.defineProperty(exports, 'JsonSchema', { | ||
enumerable: true, | ||
get: function () { return loroWasm.JsonSchema; } | ||
}); | ||
Object.defineProperty(exports, 'JsonValue', { | ||
enumerable: true, | ||
get: function () { return loroWasm.JsonValue; } | ||
}); | ||
Object.defineProperty(exports, 'ListOp', { | ||
enumerable: true, | ||
get: function () { return loroWasm.ListOp; } | ||
}); | ||
Object.defineProperty(exports, 'LoroCounter', { | ||
enumerable: true, | ||
get: function () { return loroWasm.LoroCounter; } | ||
}); | ||
Object.defineProperty(exports, 'LoroDoc', { | ||
enumerable: true, | ||
get: function () { return loroWasm.LoroDoc; } | ||
}); | ||
Object.defineProperty(exports, 'LoroList', { | ||
enumerable: true, | ||
get: function () { return loroWasm.LoroList; } | ||
}); | ||
Object.defineProperty(exports, 'LoroMap', { | ||
enumerable: true, | ||
get: function () { return loroWasm.LoroMap; } | ||
}); | ||
Object.defineProperty(exports, 'LoroMovableList', { | ||
enumerable: true, | ||
get: function () { return loroWasm.LoroMovableList; } | ||
}); | ||
Object.defineProperty(exports, 'LoroText', { | ||
enumerable: true, | ||
get: function () { return loroWasm.LoroText; } | ||
}); | ||
Object.defineProperty(exports, 'LoroTree', { | ||
enumerable: true, | ||
get: function () { return loroWasm.LoroTree; } | ||
}); | ||
Object.defineProperty(exports, 'LoroTreeNode', { | ||
enumerable: true, | ||
get: function () { return loroWasm.LoroTreeNode; } | ||
}); | ||
Object.defineProperty(exports, 'MapOp', { | ||
enumerable: true, | ||
get: function () { return loroWasm.MapOp; } | ||
}); | ||
Object.defineProperty(exports, 'MovableListOp', { | ||
enumerable: true, | ||
get: function () { return loroWasm.MovableListOp; } | ||
}); | ||
Object.defineProperty(exports, 'OpId', { | ||
enumerable: true, | ||
get: function () { return loroWasm.OpId; } | ||
}); | ||
Object.defineProperty(exports, 'PeerID', { | ||
enumerable: true, | ||
get: function () { return loroWasm.PeerID; } | ||
}); | ||
Object.defineProperty(exports, 'Side', { | ||
enumerable: true, | ||
get: function () { return loroWasm.Side; } | ||
}); | ||
Object.defineProperty(exports, 'TextOp', { | ||
enumerable: true, | ||
get: function () { return loroWasm.TextOp; } | ||
}); | ||
Object.defineProperty(exports, 'TreeID', { | ||
enumerable: true, | ||
get: function () { return loroWasm.TreeID; } | ||
}); | ||
Object.defineProperty(exports, 'TreeNodeValue', { | ||
enumerable: true, | ||
get: function () { return loroWasm.TreeNodeValue; } | ||
}); | ||
Object.defineProperty(exports, 'TreeOp', { | ||
enumerable: true, | ||
get: function () { return loroWasm.TreeOp; } | ||
}); | ||
Object.defineProperty(exports, 'UndoConfig', { | ||
enumerable: true, | ||
get: function () { return loroWasm.UndoConfig; } | ||
}); | ||
Object.defineProperty(exports, 'UndoManager', { | ||
enumerable: true, | ||
get: function () { return loroWasm.UndoManager; } | ||
}); | ||
Object.defineProperty(exports, 'UnknownOp', { | ||
enumerable: true, | ||
get: function () { return loroWasm.UnknownOp; } | ||
}); | ||
Object.defineProperty(exports, 'Value', { | ||
enumerable: true, | ||
get: function () { return loroWasm.Value; } | ||
}); | ||
Object.defineProperty(exports, 'VersionVector', { | ||
enumerable: true, | ||
get: function () { return loroWasm.VersionVector; } | ||
}); | ||
Object.defineProperty(exports, 'decodeImportBlobMeta', { | ||
enumerable: true, | ||
get: function () { return loroWasm.decodeImportBlobMeta; } | ||
}); | ||
Object.defineProperty(exports, 'newContainerID', { | ||
enumerable: true, | ||
get: function () { return loroWasm.newContainerID; } | ||
}); | ||
Object.defineProperty(exports, 'newRootContainerID', { | ||
enumerable: true, | ||
get: function () { return loroWasm.newRootContainerID; } | ||
}); | ||
Object.defineProperty(exports, 'setDebug', { | ||
enumerable: true, | ||
get: function () { return loroWasm.setDebug; } | ||
}); | ||
exports.Awareness = Awareness; | ||
@@ -284,2 +122,10 @@ exports.Loro = Loro; | ||
exports.isContainerId = isContainerId; | ||
exports.newContainerID = newContainerID; | ||
exports.newRootContainerID = newRootContainerID; | ||
Object.keys(loroWasm).forEach(function (k) { | ||
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { | ||
enumerable: true, | ||
get: function () { return loroWasm[k]; } | ||
}); | ||
}); | ||
//# sourceMappingURL=loro.js.map |
{ | ||
"name": "loro-crdt", | ||
"version": "1.0.0-alpha.2", | ||
"version": "1.0.0-alpha.3", | ||
"description": "Loro CRDTs is a high-performance CRDT framework that makes your app state synchronized, collaborative and maintainable effortlessly.", | ||
@@ -24,3 +24,3 @@ "keywords": [ | ||
"dependencies": { | ||
"loro-wasm": "1.0.0-alpha.2" | ||
"loro-wasm": "1.0.0-alpha.3" | ||
}, | ||
@@ -27,0 +27,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
87969
828
+ Addedloro-wasm@1.0.0-alpha.3(transitive)
- Removedloro-wasm@1.0.0-alpha.2(transitive)
Updatedloro-wasm@1.0.0-alpha.3