New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

prosemirror-view

Package Overview
Dependencies
Maintainers
1
Versions
287
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prosemirror-view - npm Package Compare versions

Comparing version

to
1.16.2

6

CHANGELOG.md

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

## 1.16.2 (2020-11-18)
### Bug fixes
Fix a bug where overlapping inline decorations would get drawn incorrectly (and even corrupt the drawing of unrelated content).
## 1.16.1 (2020-10-26)

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

2

package.json
{
"name": "prosemirror-view",
"version": "1.16.1",
"version": "1.16.2",
"description": "ProseMirror's view component",

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

@@ -913,6 +913,6 @@ import {DOMSerializer, Fragment, Mark} from "prosemirror-model"

for (let i = 0; i < outerDeco.length; i++) {
let attrs = outerDeco[i].type.attrs, cur = top
let attrs = outerDeco[i].type.attrs
if (!attrs) continue
if (attrs.nodeName)
result.push(cur = new OuterDecoLevel(attrs.nodeName))
result.push(top = new OuterDecoLevel(attrs.nodeName))

@@ -923,6 +923,6 @@ for (let name in attrs) {

if (needsWrap && result.length == 1)
result.push(cur = top = new OuterDecoLevel(node.isInline ? "span" : "div"))
if (name == "class") cur.class = (cur.class ? cur.class + " " : "") + val
else if (name == "style") cur.style = (cur.style ? cur.style + ";" : "") + val
else if (name != "nodeName") cur[name] = val
result.push(top = new OuterDecoLevel(node.isInline ? "span" : "div"))
if (name == "class") top.class = (top.class ? top.class + " " : "") + val
else if (name == "style") top.style = (top.style ? top.style + ";" : "") + val
else if (name != "nodeName") top[name] = val
}

@@ -929,0 +929,0 @@ }

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