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.4 to 0.19.5

6

CHANGELOG.md

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

## 0.19.5 (2021-10-26)
### Bug fixes
Fix the return type of `iterLines`.
## 0.19.4 (2021-10-01)

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

13

dist/index.d.ts

@@ -48,3 +48,3 @@ /**

*/
interface TextIterator extends Iterator<string> {
interface TextIterator extends Iterator<string>, Iterable<string> {
/**

@@ -130,3 +130,3 @@ Retrieve the next string. Optionally skip a given number of

*/
iterLines(from?: number, to?: number): LineCursor;
iterLines(from?: number, to?: number): TextIterator;
/**

@@ -152,11 +152,2 @@ Convert the document to an array of lines (which can be

}
declare class LineCursor implements TextIterator {
readonly inner: TextIterator;
afterBreak: boolean;
value: string;
done: boolean;
constructor(inner: TextIterator);
next(skip?: number): this;
get lineBreak(): boolean;
}
/**

@@ -163,0 +154,0 @@ This type describes a line in the document. It is created

{
"name": "@codemirror/text",
"version": "0.19.4",
"version": "0.19.5",
"description": "Document data structure for the CodeMirror code editor",

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

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