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

@automerge/automerge-wasm

Package Overview
Dependencies
Maintainers
4
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@automerge/automerge-wasm - npm Package Compare versions

Comparing version 0.10.0-richtext-alpha.1 to 0.10.0

44

index.d.ts

@@ -10,9 +10,3 @@ export type Actor = string;

export type MaterializeValue = { [key:string]: MaterializeValue } | Array<MaterializeValue> | Value
export type MapObjType = { [key: string]: ObjType | Value }
export type ObjInfo = { id: ObjID, type: ObjTypeName, path?: Prop[] };
export type Block = {type: string, parents: string[], attrs: { [key: string]: Value } }
export type Span = { type: "text", value: string, "marks"?: MarkSet }
| { type: "block", value: Block }
export type ListObjType = Array<ObjType | Value>
export type ObjType = string | ListObjType | MapObjType
export type ObjType = string | Array<ObjType | Value> | { [key: string]: ObjType | Value }
export type FullValue =

@@ -107,3 +101,3 @@ ["str", string] |

export type PatchValue = string | number | boolean | null | Date | Uint8Array | {} | []
export type Patch = PutPatch | DelPatch | SpliceTextPatch | IncPatch | InsertPatch | MarkPatch | UnmarkPatch | ConflictPatch | SplitBlockPatch | UpdateBlockPatch | JoinBlockPatch;
export type Patch = PutPatch | DelPatch | SpliceTextPatch | IncPatch | InsertPatch | MarkPatch | UnmarkPatch | ConflictPatch;

@@ -157,3 +151,2 @@ export type PutPatch = {

value: string,
block?: { parents: string[], type: string }
marks?: MarkSet,

@@ -175,26 +168,2 @@ }

export type SplitBlockPatch = {
action: 'splitBlock'
path: Prop[],
index: number,
type: string,
parents: string[],
attrs: { [key: string]: Value },
}
export type UpdateBlockPatch = {
action: 'updateBlock'
path: Prop[],
index: number,
new_type: string | null,
new_parents: string[] | null,
new_attrs: { [key: string]: string | Value } | null,
}
export type JoinBlockPatch = {
action: 'joinBlock'
path: Prop[],
index: number,
}
export type Mark = {

@@ -252,9 +221,2 @@ name: string,

// blocks
splitBlock(obj: ObjID, index: number, block: {type: string, parents: string[], attrs: {[key: string]: Value}}): void;
joinBlock(obj: ObjID, index: number) : void;
updateBlock(obj: ObjID, index: number, block: {type: string, parents: string[], attrs: {[key: string]: Value}}): void;
updateBlocks(obj: ObjID, newBlocks: ({type: string, parents: string[], attrs: {[key: string]: Value}} | string)[]): void;
getBlock(obj: ObjID, index: number): {type: string, parents: string[], attrs: {[key: string]: Value}} | null;
diff(before: Heads, after: Heads): Patch[];

@@ -275,6 +237,4 @@

getAll(obj: ObjID, arg: Prop, heads?: Heads): FullValueWithId[];
objInfo(obj: ObjID, heads?: Heads): ObjInfo;
keys(obj: ObjID, heads?: Heads): string[];
text(obj: ObjID, heads?: Heads): string;
spans(obj: ObjID, heads?: Heads): Span[];
length(obj: ObjID, heads?: Heads): number;

@@ -281,0 +241,0 @@ materialize(obj?: ObjID, heads?: Heads, metadata?: unknown): MaterializeValue;

4

package.json

@@ -11,3 +11,3 @@ {

"repository": "github:automerge/automerge",
"version": "0.10.0-richtext-alpha.1",
"version": "0.10.0",
"license": "MIT",

@@ -37,3 +37,3 @@ "files": [

"debug": "cross-env PROFILE=dev TARGET_DIR=debug yarn buildall",
"dev": "cross-env PROFILE=dev TARGET_DIR=debug FEATURES='' TARGET=nodejs yarn target && node ./fixup-node-cjs.mjs",
"dev": "cross-env PROFILE=dev TARGET_DIR=debug FEATURES='' TARGET=nodejs yarn target",
"build": "cross-env PROFILE=dev TARGET_DIR=debug FEATURES='' yarn buildall",

@@ -40,0 +40,0 @@ "release": "cross-env PROFILE=release TARGET_DIR=release yarn buildall",

Sorry, the diff of this file is too big to display

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 too big to display

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

Sorry, the diff of this file is too big to display

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