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

prosemirror-view

Package Overview
Dependencies
Maintainers
1
Versions
284
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 1.0.7 to 1.0.8

2

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

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

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

if (mustRebuild) {
let decorations = mapAndGatherRemainingDecorations(children, newLocal ? moveSpans(newLocal, offset) : [], mapping, oldOffset, options)
let decorations = mapAndGatherRemainingDecorations(children, newLocal ? moveSpans(newLocal, offset) : [], mapping,
offset, oldOffset, options)
let built = buildTree(decorations, node, 0, options)

@@ -540,7 +541,7 @@ newLocal = built.local

function mapAndGatherRemainingDecorations(children, decorations, mapping, oldOffset, options) {
function mapAndGatherRemainingDecorations(children, decorations, mapping, offset, oldOffset, options) {
// Gather all decorations from the remaining marked children
function gather(set, oldOffset) {
for (let i = 0; i < set.local.length; i++) {
let mapped = set.local[i].map(mapping, 0, oldOffset)
let mapped = set.local[i].map(mapping, offset, oldOffset)
if (mapped) decorations.push(mapped)

@@ -547,0 +548,0 @@ else if (options.onRemove) options.onRemove(set.local[i].spec)

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