@yarnpkg/pnpify
Advanced tools
Comparing version 4.0.0-rc.14 to 4.0.0-rc.15
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
import { Dirent, Filename, MkdirOptions, ExtractHintOptions, WatchFileCallback, WatchFileOptions, StatWatcher, OpendirOptions, Dir } from '@yarnpkg/fslib'; | ||
@@ -119,6 +118,6 @@ import { RmdirOptions } from '@yarnpkg/fslib'; | ||
copyFileSync(sourceP: PortablePath, destP: PortablePath, flags?: number): void; | ||
appendFilePromise(p: FSPath<PortablePath>, content: string | Buffer | ArrayBuffer | DataView, opts?: WriteFileOptions): Promise<void>; | ||
appendFileSync(p: FSPath<PortablePath>, content: string | Buffer | ArrayBuffer | DataView, opts?: WriteFileOptions): void; | ||
writeFilePromise(p: FSPath<PortablePath>, content: string | Buffer | ArrayBuffer | DataView, opts?: WriteFileOptions): Promise<void>; | ||
writeFileSync(p: FSPath<PortablePath>, content: string | Buffer | ArrayBuffer | DataView, opts?: WriteFileOptions): void; | ||
appendFilePromise(p: FSPath<PortablePath>, content: string | Uint8Array, opts?: WriteFileOptions): Promise<void>; | ||
appendFileSync(p: FSPath<PortablePath>, content: string | Uint8Array, opts?: WriteFileOptions): void; | ||
writeFilePromise(p: FSPath<PortablePath>, content: string | NodeJS.ArrayBufferView, opts?: WriteFileOptions): Promise<void>; | ||
writeFileSync(p: FSPath<PortablePath>, content: string | NodeJS.ArrayBufferView, opts?: WriteFileOptions): void; | ||
unlinkPromise(p: PortablePath): Promise<void>; | ||
@@ -136,6 +135,8 @@ unlinkSync(p: PortablePath): void; | ||
symlinkSync(target: PortablePath, p: PortablePath): void; | ||
readFilePromise(p: FSPath<PortablePath>, encoding: 'utf8'): Promise<string>; | ||
readFilePromise(p: FSPath<PortablePath>, encoding?: string): Promise<Buffer>; | ||
readFileSync(p: FSPath<PortablePath>, encoding: 'utf8'): string; | ||
readFileSync(p: FSPath<PortablePath>, encoding?: string): Buffer; | ||
readFilePromise(p: FSPath<PortablePath>, encoding?: null): Promise<Buffer>; | ||
readFilePromise(p: FSPath<PortablePath>, encoding: BufferEncoding): Promise<string>; | ||
readFilePromise(p: FSPath<PortablePath>, encoding?: BufferEncoding | null): Promise<Buffer | string>; | ||
readFileSync(p: FSPath<PortablePath>, encoding?: null): Buffer; | ||
readFileSync(p: FSPath<PortablePath>, encoding: BufferEncoding): string; | ||
readFileSync(p: FSPath<PortablePath>, encoding?: BufferEncoding | null): Buffer | string; | ||
readdirPromise(p: PortablePath): Promise<Array<Filename>>; | ||
@@ -142,0 +143,0 @@ readdirPromise(p: PortablePath, opts: { |
@@ -351,18 +351,6 @@ "use strict"; | ||
async readFilePromise(p, encoding) { | ||
// This weird switch is required to tell TypeScript that the signatures are proper (otherwise it thinks that only the generic one is covered) | ||
switch (encoding) { | ||
case `utf8`: | ||
return await this.baseFs.readFilePromise(this.resolveFilePath(p), encoding); | ||
default: | ||
return await this.baseFs.readFilePromise(this.resolveFilePath(p), encoding); | ||
} | ||
return await this.baseFs.readFilePromise(this.resolveFilePath(p), encoding); | ||
} | ||
readFileSync(p, encoding) { | ||
// This weird switch is required to tell TypeScript that the signatures are proper (otherwise it thinks that only the generic one is covered) | ||
switch (encoding) { | ||
case `utf8`: | ||
return this.baseFs.readFileSync(this.resolveFilePath(p), encoding); | ||
default: | ||
return this.baseFs.readFileSync(this.resolveFilePath(p), encoding); | ||
} | ||
return this.baseFs.readFileSync(this.resolveFilePath(p), encoding); | ||
} | ||
@@ -369,0 +357,0 @@ async readdirPromise(p, opts) { |
{ | ||
"name": "@yarnpkg/pnpify", | ||
"version": "4.0.0-rc.14", | ||
"version": "4.0.0-rc.15", | ||
"stableVersion": "3.1.4", | ||
@@ -11,11 +11,11 @@ "license": "BSD-2-Clause", | ||
"dependencies": { | ||
"@yarnpkg/core": "^4.0.0-rc.14", | ||
"@yarnpkg/fslib": "^3.0.0-rc.14", | ||
"@yarnpkg/nm": "^4.0.0-rc.14", | ||
"@yarnpkg/core": "^4.0.0-rc.15", | ||
"@yarnpkg/fslib": "^3.0.0-rc.15", | ||
"@yarnpkg/nm": "^4.0.0-rc.15", | ||
"clipanion": "^3.2.0-rc.10", | ||
"tslib": "^1.13.0" | ||
"tslib": "^2.4.0" | ||
}, | ||
"devDependencies": { | ||
"@yarnpkg/monorepo": "^0.0.0", | ||
"@yarnpkg/pnp": "^4.0.0-rc.14" | ||
"@yarnpkg/pnp": "^4.0.0-rc.15" | ||
}, | ||
@@ -22,0 +22,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
43009
987
- Removedtslib@1.14.1(transitive)
Updated@yarnpkg/core@^4.0.0-rc.15
Updated@yarnpkg/fslib@^3.0.0-rc.15
Updated@yarnpkg/nm@^4.0.0-rc.15
Updatedtslib@^2.4.0