prosemirror-model
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -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 @@ |
{ | ||
"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
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
477610