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.18.1 to 0.18.2

6

CHANGELOG.md

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

## 0.18.2 (2021-05-27)
### Bug fixes
Adjust the logic for tracking open ranges to agree with the change in how precedence is handled in the view package.
## 0.18.1 (2021-04-30)

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

8

dist/index.js

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

let active = [];
for (let i = 0; i < this.active.length; i++) {
if (this.activeRank[i] > this.pointRank)
for (let i = this.active.length - 1; i >= 0; i--) {
if (this.activeRank[i] < this.pointRank)
break;

@@ -717,7 +717,7 @@ if (this.activeTo[i] > to || this.activeTo[i] == to && this.active[i].endSide > this.point.endSide)

}
return active;
return active.reverse();
}
openEnd(to) {
let open = 0;
while (open < this.activeTo.length && this.activeTo[open] > to)
for (let i = this.activeTo.length - 1; i >= 0 && this.activeTo[i] > to; i--)
open++;

@@ -724,0 +724,0 @@ return open;

{
"name": "@codemirror/rangeset",
"version": "0.18.1",
"version": "0.18.2",
"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