Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@codemirror/text

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codemirror/text - npm Package Compare versions

Comparing version 0.19.2 to 0.19.3

6

CHANGELOG.md

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

## 0.19.3 (2021-09-04)
### Bug fixes
Fix an issue where a partial text cursor would sometimes not appropriately report it was done.
## 0.19.2 (2021-08-25)

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

3

dist/index.d.ts

@@ -100,3 +100,3 @@ /**

/**
Retrive a part of the document as a string
Retrieve a part of the document as a string
*/

@@ -138,2 +138,3 @@ abstract sliceString(from: number, to?: number, lineSep?: string): string;

abstract readonly children: readonly Text[] | null;
[Symbol.iterator]: () => Iterator<string>;
/**

@@ -140,0 +141,0 @@ Create a `Text` instance for the given array of lines.

@@ -577,3 +577,2 @@ // Compressed representation of the Grapheme_Cluster_Break=Extend

}
this.done = false;
skip += Math.max(0, dir < 0 ? this.pos - this.to : this.from - this.pos);

@@ -587,2 +586,3 @@ let limit = dir < 0 ? this.pos - this.from : this.to - this.pos;

this.value = value.length <= limit ? value : dir < 0 ? value.slice(value.length - limit) : value.slice(0, limit);
this.done = !this.value;
return this;

@@ -589,0 +589,0 @@ }

{
"name": "@codemirror/text",
"version": "0.19.2",
"version": "0.19.3",
"description": "Document 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