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

@yarnpkg/pnpify

Package Overview
Dependencies
Maintainers
6
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yarnpkg/pnpify - npm Package Compare versions

Comparing version 4.0.0-rc.14 to 4.0.0-rc.15

19

lib/NodeModulesFS.d.ts
/// <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": {

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