Socket
Socket
Sign inDemoInstall

@codemirror/rangeset

Package Overview
Dependencies
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codemirror/rangeset - npm Package Compare versions

Comparing version 0.19.2 to 0.19.3

6

CHANGELOG.md

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

## 0.19.3 (2021-12-14)
### Bug fixes
Fix an issue in `RangeSet.compare` where the interaction between spans and points sometimes caused points that had their wrapping spans changed to not be reported.
## 0.19.2 (2021-11-12)

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

9

dist/index.js

@@ -290,4 +290,4 @@ import { MapMode } from '@codemirror/state';

minPointSize = -1) {
let a = oldSets.filter(set => set.maxPoint >= 500 /* BigPointSize */ || !set.isEmpty && set.maxPoint >= minPointSize);
let b = newSets.filter(set => set.maxPoint >= 500 /* BigPointSize */ || !set.isEmpty && set.maxPoint >= minPointSize);
let a = oldSets.filter(set => set.maxPoint > 0 || !set.isEmpty && set.maxPoint >= minPointSize);
let b = newSets.filter(set => set.maxPoint > 0 || !set.isEmpty && set.maxPoint >= minPointSize);
let sharedChunks = findSharedChunks(a, b, textDiff);

@@ -492,3 +492,3 @@ let sideA = new SpanCursor(a, sharedChunks, minPointSize);

for (let i = 0; i < set.chunk.length; i++)
if (set.chunk[i].maxPoint < 500 /* BigPointSize */)
if (set.chunk[i].maxPoint <= 0)
inA.set(set.chunk[i], set.chunkPos[i]);

@@ -727,3 +727,4 @@ let shared = new Set();

}
else if (wasPoint && this.cursor.to == this.to && this.cursor.from < this.cursor.to && nextVal.endSide == this.endSide) {
else if (wasPoint && this.cursor.to == this.to && this.cursor.from < this.cursor.to &&
nextVal.endSide == this.endSide) {
// Ignore any non-empty points that end precisely at the end of the prev point

@@ -730,0 +731,0 @@ this.cursor.next();

{
"name": "@codemirror/rangeset",
"version": "0.19.2",
"version": "0.19.3",
"description": "Range set data structure for the CodeMirror code editor",

@@ -5,0 +5,0 @@ "scripts": {

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