Socket
Socket
Sign inDemoInstall

prosemirror-model

Package Overview
Dependencies
Maintainers
1
Versions
84
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.2.0 to 1.2.1

6

CHANGELOG.md

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

## 1.2.1 (2018-03-15)
### Bug fixes
Content expressions with text nodes in required positions now raise the appropriate error about being unable to generate such nodes.
## 1.2.0 (2018-03-14)

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

2

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

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -77,3 +77,3 @@ import {Fragment} from "./fragment"

let type = match.next[i], next = match.next[i + 1]
if (!type.hasRequiredAttrs() && seen.indexOf(next) == -1) {
if (!(type.isText || type.hasRequiredAttrs()) && seen.indexOf(next) == -1) {
seen.push(next)

@@ -358,7 +358,7 @@ let found = search(next, types.concat(type))

nodes.push(node.name)
if (dead && !state.next[j].hasRequiredAttrs()) dead = false
if (dead && !(node.isText || node.hasRequiredAttrs())) dead = false
if (work.indexOf(next) == -1) work.push(next)
}
if (dead) stream.err("Only non-generatable nodes (" + nodes.join(", ") + ") after a match state")
if (dead) stream.err("Only non-generatable nodes (" + nodes.join(", ") + ") in a required position")
}
}

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

Sorry, the diff of this file is not supported yet

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