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.5 to 0.19.6

8

CHANGELOG.md

@@ -0,1 +1,9 @@

## 0.19.6 (2022-01-05)
### Bug fixes
Fix an issue where range sets that weren't mapped could cause `RangeSet.compare` to miss changes.
Fix a bug where a zero-length range, even when inclusive, was never mapped to cover any content.
## 0.19.5 (2021-12-21)

@@ -2,0 +10,0 @@

8

dist/index.js

@@ -93,2 +93,7 @@ import { MapMode } from '@codemirror/state';

newFrom = newTo = mapped;
if (val.startSide != val.endSide) {
newTo = changes.mapPos(curFrom, val.endSide);
if (newTo < newFrom)
continue;
}
}

@@ -499,3 +504,4 @@ else {

let known = inA.get(set.chunk[i]);
if (known != null && (textDiff ? textDiff.mapPos(known) : known) == set.chunkPos[i])
if (known != null && (textDiff ? textDiff.mapPos(known) : known) == set.chunkPos[i] &&
!(textDiff === null || textDiff === void 0 ? void 0 : textDiff.touchesRange(known, known + set.chunk[i].length)))
shared.add(set.chunk[i]);

@@ -502,0 +508,0 @@ }

2

package.json
{
"name": "@codemirror/rangeset",
"version": "0.19.5",
"version": "0.19.6",
"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