@yarnpkg/fslib
Advanced tools
Comparing version 3.0.0-rc.33 to 3.0.0-rc.34
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
import type { BigIntStats, ReadStream, StatOptions, Stats, WriteStream, WriteVResult } from 'fs'; | ||
@@ -81,2 +82,3 @@ import type { CreateReadStreamOptions, CreateWriteStreamOptions, FakeFS } from '../FakeFS'; | ||
} | BufferEncoding): Promise<string>; | ||
readLines(options?: CreateReadStreamOptions): import("readline").Interface; | ||
stat(opts?: StatOptions & { | ||
@@ -83,0 +85,0 @@ bigint?: false | undefined; |
@@ -5,2 +5,3 @@ "use strict"; | ||
exports.FileHandle = void 0; | ||
const readline_1 = require("readline"); | ||
const kBaseFs = Symbol(`kBaseFs`); | ||
@@ -113,2 +114,8 @@ const kFd = Symbol(`kFd`); | ||
} | ||
readLines(options) { | ||
return (0, readline_1.createInterface)({ | ||
input: this.createReadStream(options), | ||
crlfDelay: Infinity, | ||
}); | ||
} | ||
async stat(opts) { | ||
@@ -115,0 +122,0 @@ try { |
{ | ||
"name": "@yarnpkg/fslib", | ||
"version": "3.0.0-rc.33", | ||
"stableVersion": "2.8.0", | ||
"version": "3.0.0-rc.34", | ||
"stableVersion": "2.10.0", | ||
"license": "BSD-2-Clause", | ||
@@ -16,3 +16,3 @@ "main": "./lib/index.js", | ||
"devDependencies": { | ||
"@yarnpkg/libzip": "^3.0.0-rc.33" | ||
"@yarnpkg/libzip": "^3.0.0-rc.34" | ||
}, | ||
@@ -19,0 +19,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
221007
5665