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.0-beta.8 to 1.0.0-beta.9

19

dist/parchment.js

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

var blot = Registry.find(node);
if (blot == null || blot.domNode.parentNode === _this.domNode)
if (blot == null)
return;
blot.detach();
if (blot.domNode.parentNode == null || blot.domNode.parentNode === _this.domNode) {
blot.detach();
}
});

@@ -482,14 +484,3 @@ addedNodes.filter(function (node) {

get: function () {
var _this = this;
return [
'blotName', 'className', 'scope', 'tagName',
'defaultChild', 'allowedChildren',
'create', 'formats', 'value'
].reduce(function (memo, key) {
var value = _this.constructor[key];
if (value != null) {
memo[key] = value;
}
return memo;
}, {});
return this.constructor;
},

@@ -496,0 +487,0 @@ enumerable: true,

{
"name": "parchment",
"version": "1.0.0-beta.8",
"version": "1.0.0-beta.9",
"description": "A document model for rich text editors",

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

@@ -177,4 +177,6 @@ import { Blot, Parent, Leaf } from './blot';

let blot = Registry.find(node);
if (blot == null || blot.domNode.parentNode === this.domNode) return;
blot.detach();
if (blot == null) return;
if (blot.domNode.parentNode == null || blot.domNode.parentNode === this.domNode) {
blot.detach();
}
});

@@ -181,0 +183,0 @@ addedNodes.filter((node) => {

@@ -17,13 +17,3 @@ import { Blot, Parent, Formattable } from './blot';

get statics(): any {
return [
'blotName', 'className', 'scope', 'tagName',
'defaultChild', 'allowedChildren',
'create', 'formats', 'value'
].reduce((memo, key) => {
let value = (<any>this.constructor)[key];
if (value != null) {
memo[key] = value;
}
return memo;
}, {});
return this.constructor;
}

@@ -30,0 +20,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