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

prosemirror-transform

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prosemirror-transform - npm Package Compare versions

Comparing version 1.7.2 to 1.7.3

6

CHANGELOG.md

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

## 1.7.3 (2023-06-01)
### Bug fixes
Fix a bug in `canSplit` that made it interpret the `typesAfter` argument incorrectly on splits of depth greater than 1.
## 1.7.2 (2023-05-17)

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

2

package.json
{
"name": "prosemirror-transform",
"version": "1.7.2",
"version": "1.7.3",
"description": "ProseMirror document transformations",

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

@@ -166,4 +166,6 @@ import {Slice, Fragment, NodeRange, NodeType, Node, Mark, Attrs, ContentMatch} from "prosemirror-model"

let rest = node.content.cutByIndex(index, node.childCount)
let overrideChild = typesAfter && typesAfter[i + 1]
if (overrideChild)
rest = rest.replaceChild(0, overrideChild.type.create(overrideChild.attrs))
let after = (typesAfter && typesAfter[i]) || node
if (after != node) rest = rest.replaceChild(0, after.type.create(after.attrs))
if (!node.canReplace(index + 1, node.childCount) || !after.type.validContent(rest))

@@ -170,0 +172,0 @@ return false

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