Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rich-text

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rich-text - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

1

lib/delta.js

@@ -48,2 +48,3 @@ var diff = require('fast-diff');

var lastOp = this.ops[index - 1];
newOp = op.clone(newOp);
if (is.object(lastOp)) {

@@ -50,0 +51,0 @@ if (is.number(newOp['delete']) && is.number(lastOp['delete'])) {

@@ -52,2 +52,10 @@ var is = require('./is');

clone: function (op) {
var newOp = this.attributes.clone(op);
if (is.object(newOp.attributes)) {
newOp.attributes = this.attributes.clone(newOp.attributes, true);
}
return newOp;
},
iterator: function (ops) {

@@ -54,0 +62,0 @@ return new Iterator(ops);

2

package.json
{
"name": "rich-text",
"version": "1.0.1",
"version": "1.0.2",
"description": "Format for representing rich text documents and changes.",

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

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