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.2 to 1.0.3

dist/src/attributor/attributor.d.ts

2

dist/parchment.js

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

if (this.next == null || this.domNode.nextSibling != refDomNode) {
parentBlot.domNode.insertBefore(this.domNode, refDomNode);
parentBlot.domNode.insertBefore(this.domNode, (typeof refDomNode !== 'undefined') ? refDomNode : null);
}

@@ -570,0 +570,0 @@ this.parent = parentBlot;

{
"name": "parchment",
"version": "1.0.2",
"version": "1.0.3",
"description": "A document model for rich text editors",

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

],
"types": "dist/src/parchment.d.ts",
"devDependencies": {

@@ -23,5 +24,5 @@ "istanbul": "~0.4.5",

"karma-webpack": "^1.8.0",
"ts-loader": "~0.9.1",
"typescript": "^2.0.3",
"webpack": "^1.13.2"
"ts-loader": "^1.2.2",
"typescript": "^2.0.10",
"webpack": "^1.13.3"
},

@@ -28,0 +29,0 @@ "engines": {

import * as Registry from '../registry';
interface AttributorOptions {
export interface AttributorOptions {
scope?: Registry.Scope;

@@ -9,3 +9,3 @@ whitelist?: string[];

class Attributor {
export default class Attributor {
attrName: string;

@@ -57,4 +57,1 @@ keyName: string;

}
export default Attributor;

@@ -5,3 +5,3 @@ import LinkedList from '../../collection/linked-list';

interface Blot extends LinkedNode {
export interface Blot extends LinkedNode {
parent: Parent;

@@ -34,3 +34,3 @@ prev: Blot;

interface Parent extends Blot {
export interface Parent extends Blot {
children: LinkedList<Blot>;

@@ -52,3 +52,3 @@ domNode: HTMLElement;

interface Formattable extends Blot {
export interface Formattable extends Blot {
format(name: string, value: any): void;

@@ -59,3 +59,3 @@ formats(): { [index: string]: any };

interface Leaf extends Blot {
export interface Leaf extends Blot {
index(node: Node, offset: number): number;

@@ -65,4 +65,1 @@ position(index: number, inclusive: boolean): [Node, number];

}
export { Blot, Parent, Formattable, Leaf };

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

if (this.next == null || this.domNode.nextSibling != refDomNode) {
parentBlot.domNode.insertBefore(this.domNode, refDomNode);
parentBlot.domNode.insertBefore(this.domNode, (typeof refDomNode !== 'undefined') ? refDomNode : null);
}

@@ -101,0 +101,0 @@ this.parent = parentBlot;

@@ -0,1 +1,2 @@

import { Blot } from './blot/abstract/blot';
import ContainerBlot from './blot/abstract/container';

@@ -2,0 +3,0 @@ import FormatBlot from './blot/abstract/format';

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