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

parchment

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parchment - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

14

dist/parchment.js

@@ -282,5 +282,7 @@ (function webpackUniversalModuleDefinition(root, factory) {

removedNodes.forEach(function (node) {
if (node.parentNode != null &&
// Check node has actually been removed
// One exception is Chrome does not immediately remove IFRAMEs
// from DOM but MutationRecord is correct in its reported removal
if (node.parentNode != null && node.tagName !== 'IFRAME' &&
(document.body.compareDocumentPosition(node) & Node.DOCUMENT_POSITION_CONTAINED_BY)) {
// Node has not actually been removed
return;

@@ -1413,2 +1415,10 @@ }

};
BlockBlot.prototype.update = function (mutations) {
if (navigator.userAgent.match(/Trident/)) {
this.attach();
}
else {
_super.prototype.update.call(this, mutations);
}
};
return BlockBlot;

@@ -1415,0 +1425,0 @@ }(format_1.default));

@@ -11,3 +11,4 @@ import FormatBlot from './abstract/format';

insertAt(index: number, value: string, def?: any): void;
update(mutations: MutationRecord[]): void;
}
export default BlockBlot;

2

package.json
{
"name": "parchment",
"version": "1.0.7",
"version": "1.0.8",
"description": "A document model for rich text editors",

@@ -5,0 +5,0 @@ "author": "Jason Chen <jhchen7@gmail.com>",

@@ -180,5 +180,7 @@ import { Blot, Parent, Leaf } from './blot';

removedNodes.forEach((node) => {
if (node.parentNode != null &&
// Check node has actually been removed
// One exception is Chrome does not immediately remove IFRAMEs
// from DOM but MutationRecord is correct in its reported removal
if (node.parentNode != null && node.tagName !== 'IFRAME' &&
(document.body.compareDocumentPosition(node) & Node.DOCUMENT_POSITION_CONTAINED_BY)) {
// Node has not actually been removed
return;

@@ -185,0 +187,0 @@ }

@@ -44,2 +44,10 @@ import FormatBlot from './abstract/format';

}
update(mutations: MutationRecord[]): void {
if (navigator.userAgent.match(/Trident/)) {
this.attach();
} else {
super.update(mutations);
}
}
}

@@ -46,0 +54,0 @@

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