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

prosemirror-utils

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prosemirror-utils - npm Package Compare versions

Comparing version 0.6.1 to 0.6.2

14

dist/index.js

@@ -526,15 +526,3 @@ 'use strict';

var dom = domAtPos(position);
var offset = dom.offset;
for (var i = 0, count = dom.node.childNodes.length; i < count; i++) {
var child = dom.node.childNodes[i];
// ignore decoration DOM nodes as ProseMirror ignores it while calculating the offset
if (child.nodeType === Node.ELEMENT_NODE && (child.getAttribute('class') || '').indexOf('ProseMirror-widget') > -1) {
offset++;
}
if (i > dom.offset) {
break;
}
}
var node = dom.node.childNodes[offset];
var node = dom.node.childNodes[dom.offset];
return node ? node : dom.node;

@@ -541,0 +529,0 @@ };

2

package.json
{
"name": "prosemirror-utils",
"version": "0.6.1",
"version": "0.6.2",
"description": "Utils library for ProseMirror",

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

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