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

2

lib/delta.js

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

} else {
nextOp = iter.next(end - start);
nextOp = iter.next(end - index);
delta.push(nextOp);

@@ -108,0 +108,0 @@ }

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

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

@@ -51,2 +51,8 @@ var Delta = require('../../lib/delta');

it('start and end multiple chop', function () {
var slice = new Delta().insert('0123', { bold: true }).insert('4567').slice(3, 5);
var expected = new Delta().insert('3', { bold: true }).insert('4');
expect(slice).to.deep.equal(expected);
});
it('start and end', function () {

@@ -53,0 +59,0 @@ var slice = new Delta().retain(2).insert('A', { bold: true }).insert('B').slice(2, 3);

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