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.15.5

6

CHANGELOG.md

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

## 1.15.5 (2020-08-25)
### Bug fixes
Fix an issue where mapping a decoration set could corrupt the decoration positions in specific cases.
## 1.15.4 (2020-08-13)

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

6

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

@@ -30,4 +30,4 @@ "main": "dist/index.js",

"prosemirror-test-builder": "^1.0.0",
"rollup": "^1.26.3",
"@rollup/plugin-buble": "^0.20.0"
"rollup": "^2.26.3",
"@rollup/plugin-buble": "^0.21.3"
},

@@ -34,0 +34,0 @@ "scripts": {

@@ -503,3 +503,3 @@ function compareObjs(a, b) {

for (let i = 0; i < children.length; i += 3) if (children[i + 1] == -1) { // Touched nodes
let from = mapping.map(children[i] + oldOffset), fromLocal = from - offset
let from = mapping.map(oldChildren[i] + oldOffset), fromLocal = from - offset
if (fromLocal < 0 || fromLocal >= node.content.size) {

@@ -514,3 +514,3 @@ mustRebuild = true

if (childNode && childOffset == fromLocal && childOffset + childNode.nodeSize == toLocal) {
let mapped = children[i + 2].mapInner(mapping, childNode, from + 1, children[i] + oldOffset + 1, options)
let mapped = children[i + 2].mapInner(mapping, childNode, from + 1, oldChildren[i] + oldOffset + 1, options)
if (mapped != empty) {

@@ -517,0 +517,0 @@ children[i] = fromLocal

@@ -382,2 +382,3 @@ import {DOMSerializer, Fragment, Mark} from "prosemirror-model"

if (!(err instanceof DOMException)) throw err
// declare global: DOMException
}

@@ -384,0 +385,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