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 to 1.0.1

8

dist/parchment.js

@@ -708,3 +708,4 @@ (function webpackUniversalModuleDefinition(root, factory) {

for (var i in names) {
if (match = classes[names[i]])
match = classes[names[i]];
if (match)
break;

@@ -1366,3 +1367,6 @@ }

BlockBlot.prototype.format = function (name, value) {
if (name === this.statics.blotName && !value) {
if (Registry.query(name, Registry.Scope.BLOCK) == null) {
return;
}
else if (name === this.statics.blotName && !value) {
this.replaceWith(BlockBlot.blotName);

@@ -1369,0 +1373,0 @@ }

{
"name": "parchment",
"version": "1.0.0",
"version": "1.0.1",
"description": "A document model for rich text editors",

@@ -17,4 +17,4 @@ "author": "Jason Chen <jhchen7@gmail.com>",

"istanbul": "~0.4.5",
"jasmine-core": "^2.5.0",
"karma": "^1.2.0",
"jasmine-core": "^2.5.2",
"karma": "^1.3.0",
"karma-babel-preprocessor": "^6.0.1",

@@ -26,5 +26,4 @@ "karma-chrome-launcher": "^2.0.0",

"karma-webpack": "^1.8.0",
"lodash": "^4.15.0",
"ts-loader": "^0.8.2",
"typescript": "^1.8.10",
"typescript": "^2.0.3",
"vinyl-source-stream": "^1.1.0",

@@ -31,0 +30,0 @@ "webpack": "^1.13.2"

@@ -17,3 +17,5 @@ import FormatBlot from './abstract/format';

format(name: string, value: any) {
if (name === this.statics.blotName && !value) {
if (Registry.query(name, Registry.Scope.BLOCK) == null) {
return;
} else if (name === this.statics.blotName && !value) {
this.replaceWith(BlockBlot.blotName);

@@ -20,0 +22,0 @@ } else {

@@ -81,3 +81,4 @@ import Attributor from './attributor/attributor';

for (let i in names) {
if (match = classes[names[i]]) break;
match = classes[names[i]]
if (match) break;
}

@@ -84,0 +85,0 @@ match = match || tags[query.tagName];

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