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.10 to 1.0.0-beta.11

13

dist/parchment.js

@@ -1420,4 +1420,15 @@ (function webpackUniversalModuleDefinition(root, factory) {

EmbedBlot.prototype.format = function (name, value) {
// Do nothing by default
// super.formatAt wraps, which is what we want in general,
// but this allows subclasses to overwrite for formats
// that just apply to particular embeds
_super.prototype.formatAt.call(this, 0, this.length(), name, value);
};
EmbedBlot.prototype.formatAt = function (index, length, name, value) {
if (index === 0 && length === this.length()) {
this.format(name, value);
}
else {
_super.prototype.formatAt.call(this, index, length, name, value);
}
};
EmbedBlot.prototype.formats = function () {

@@ -1424,0 +1435,0 @@ return this.statics.formats(this.domNode);

2

package.json
{
"name": "parchment",
"version": "1.0.0-beta.10",
"version": "1.0.0-beta.11",
"description": "A document model for rich text editors",

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

@@ -11,5 +11,16 @@ import { Formattable } from './abstract/blot';

format(name: string, value: any): void {
// Do nothing by default
// super.formatAt wraps, which is what we want in general,
// but this allows subclasses to overwrite for formats
// that just apply to particular embeds
super.formatAt(0, this.length(), name, value);
}
formatAt(index: number, length: number, name: string, value: any): void {
if (index === 0 && length === this.length()) {
this.format(name, value);
} else {
super.formatAt(index, length, name, value);
}
}
formats(): { [index: string]: any } {

@@ -16,0 +27,0 @@ return this.statics.formats(this.domNode);

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