Socket
Socket
Sign inDemoInstall

prosemirror-transform

Package Overview
Dependencies
Maintainers
1
Versions
71
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.2.9 to 1.2.10

6

CHANGELOG.md

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

## 1.2.10 (2021-02-05)
### Bug fixes
Fix an issue where `Transform.removeMark`, when given a mark type, would only remove the first instance from nodes that had multiple marks of the type.
## 1.2.9 (2021-01-19)

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

2

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

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

@@ -51,4 +51,7 @@ import {MarkType, Slice, Fragment} from "prosemirror-model"

if (mark instanceof MarkType) {
let found = mark.isInSet(node.marks)
if (found) toRemove = [found]
let set = node.marks, found
while (found = mark.isInSet(set)) {
;(toRemove || (toRemove = [])).push(mark)
set = found.removeFromSet(set)
}
} else if (mark) {

@@ -55,0 +58,0 @@ if (mark.isInSet(node.marks)) toRemove = [mark]

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

Sorry, the diff of this file is not supported yet

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