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

prosemirror-model

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prosemirror-model - npm Package Compare versions

Comparing version 1.18.2 to 1.18.3

6

CHANGELOG.md

@@ -0,1 +1,7 @@

## 1.18.3 (2022-11-18)
### Bug fixes
Copy all properties from the input spec to `Schema.spec`.
## 1.18.2 (2022-11-14)

@@ -2,0 +8,0 @@

2

package.json
{
"name": "prosemirror-model",
"version": "1.18.2",
"version": "1.18.3",
"description": "ProseMirror's document model",

@@ -5,0 +5,0 @@ "type": "module",

@@ -535,7 +535,6 @@ import OrderedMap from "orderedmap"

constructor(spec: SchemaSpec<Nodes, Marks>) {
this.spec = {
nodes: OrderedMap.from(spec.nodes),
marks: OrderedMap.from(spec.marks || {}),
topNode: spec.topNode
}
let instanceSpec = this.spec = {} as any
for (let prop in spec) instanceSpec[prop] = (spec as any)[prop]
instanceSpec.nodes = OrderedMap.from(spec.nodes),
instanceSpec.marks = OrderedMap.from(spec.marks || {}),

@@ -542,0 +541,0 @@ this.nodes = NodeType.compile(this.spec.nodes, this)

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