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.1 to 1.0.2

7

dist/parchment.js

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

removedNodes.forEach(function (node) {
if (node.parentNode != null &&
(document.body.compareDocumentPosition(node) & Node.DOCUMENT_POSITION_CONTAINED_BY)) {
// Node has not actually been removed
return;
}
var blot = Registry.find(node);

@@ -1247,3 +1252,3 @@ if (blot == null)

}).forEach(function (blot) {
if (blot == null || blot === _this)
if (blot == null || blot === _this || blot.domNode[Registry.DATA_KEY] == null)
return;

@@ -1250,0 +1255,0 @@ blot.update(blot.domNode[Registry.DATA_KEY].mutations || []);

20

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

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

"devDependencies": {
"gulp": "^3.9.1",
"gulp-coveralls": "~0.1.4",
"gulp-util": "^3.0.7",
"istanbul": "~0.4.5",

@@ -26,10 +23,9 @@ "jasmine-core": "^2.5.2",

"karma-webpack": "^1.8.0",
"ts-loader": "^0.8.2",
"ts-loader": "~0.9.1",
"typescript": "^2.0.3",
"vinyl-source-stream": "^1.1.0",
"webpack": "^1.13.2"
},
"engines": {
"node": "^5.3",
"npm": "^3.5"
"node": ">= 5.3",
"npm": ">= 3.5"
},

@@ -42,5 +38,7 @@ "license": "BSD-3-Clause",

"scripts": {
"prepublish": "gulp build",
"start": "gulp test:server",
"test": "gulp test"
"build": "webpack --config webpack.conf.js",
"prepublish": "npm run build",
"test": "karma start",
"test:server": "karma start --no-single-run",
"test:travis": "karma start --browsers saucelabs-chrome --reporters dots,saucelabs"
},

@@ -47,0 +45,0 @@ "bugs": {

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

removedNodes.forEach((node) => {
if (node.parentNode != null &&
(document.body.compareDocumentPosition(node) & Node.DOCUMENT_POSITION_CONTAINED_BY)) {
// Node has not actually been removed
return;
}
let blot = Registry.find(node);

@@ -182,0 +187,0 @@ if (blot == null) return;

@@ -128,3 +128,3 @@ import { Blot } from './abstract/blot';

}).forEach((blot: Blot) => {
if (blot == null || blot === this) return;
if (blot == null || blot === this || blot.domNode[Registry.DATA_KEY] == null) return;
blot.update(blot.domNode[Registry.DATA_KEY].mutations || []);

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