Socket
Socket
Sign inDemoInstall

prosemirror-history

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prosemirror-history - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

src/xxx

6

CHANGELOG.md

@@ -0,1 +1,7 @@

## 1.0.4 (2019-02-19)
### Bug fixes
Fix a bug that corrupted selection data in the history when applying remote steps in some cases.
## 1.0.3 (2018-10-08)

@@ -2,0 +8,0 @@

2

dist/history.js

@@ -160,3 +160,3 @@ 'use strict';

var step = rebasedTransform.steps[pos].invert(rebasedTransform.docs[pos]);
var selection = item.selection && item.selection.map(mapping.slice(iRebased, pos));
var selection = item.selection && item.selection.map(mapping.slice(iRebased + 1, pos));
if (selection) { eventCount++; }

@@ -163,0 +163,0 @@ rebasedItems.push(new Item(map, step, selection));

{
"name": "prosemirror-history",
"version": "1.0.3",
"version": "1.0.4",
"description": "Undo history for ProseMirror",

@@ -5,0 +5,0 @@ "main": "dist/history.js",

@@ -153,3 +153,3 @@ import RopeSequence from "rope-sequence"

let step = rebasedTransform.steps[pos].invert(rebasedTransform.docs[pos])
let selection = item.selection && item.selection.map(mapping.slice(iRebased, pos))
let selection = item.selection && item.selection.map(mapping.slice(iRebased + 1, pos))
if (selection) eventCount++

@@ -156,0 +156,0 @@ rebasedItems.push(new Item(map, step, selection))

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