prosemirror-transform
Advanced tools
Comparing version 0.22.1 to 0.22.2
@@ -181,3 +181,3 @@ var ref = require("prosemirror-model"); | ||
var rest = node.content.cutByIndex(index$1, node.childCount) | ||
var after = (typesAfter && typesAfter[i + 1]) || node | ||
var after = (typesAfter && typesAfter[i]) || node | ||
if (after != node) { rest = rest.replaceChild(0, after.type.create(after.attrs)) } | ||
@@ -184,0 +184,0 @@ if (!node.canReplace(index$1 + 1, node.childCount) || !after.type.validContent(rest, after.attrs)) |
{ | ||
"name": "prosemirror-transform", | ||
"version": "0.22.1", | ||
"version": "0.22.2", | ||
"description": "ProseMirror document transformations", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -163,3 +163,3 @@ const {Slice, Fragment} = require("prosemirror-model") | ||
let rest = node.content.cutByIndex(index, node.childCount) | ||
let after = (typesAfter && typesAfter[i + 1]) || node | ||
let after = (typesAfter && typesAfter[i]) || node | ||
if (after != node) rest = rest.replaceChild(0, after.type.create(after.attrs)) | ||
@@ -166,0 +166,0 @@ if (!node.canReplace(index + 1, node.childCount) || !after.type.validContent(rest, after.attrs)) |
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
136550