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.46 to 4.0.0-rc.47

75

lib/NodeModulesFS.d.ts
/// <reference types="node" />
/// <reference types="node" />
/// <reference types="node" />
import { DirentNoPath } from '@yarnpkg/fslib';
import { Dirent, Filename, MkdirOptions, ExtractHintOptions, WatchFileCallback, WatchFileOptions, StatWatcher, OpendirOptions, Dir } from '@yarnpkg/fslib';

@@ -144,22 +145,76 @@ import { RmdirOptions } from '@yarnpkg/fslib';

readFileSync(p: FSPath<PortablePath>, encoding?: BufferEncoding | null): Buffer | string;
readdirPromise(p: PortablePath): Promise<Array<Filename>>;
readdirPromise(p: PortablePath, opts?: null): Promise<Array<Filename>>;
readdirPromise(p: PortablePath, opts: {
withFileTypes: false;
} | null): Promise<Array<Filename>>;
recursive?: false;
withFileTypes: true;
}): Promise<Array<DirentNoPath>>;
readdirPromise(p: PortablePath, opts: {
recursive?: false;
withFileTypes?: false;
}): Promise<Array<Filename>>;
readdirPromise(p: PortablePath, opts: {
recursive?: false;
withFileTypes: boolean;
}): Promise<Array<DirentNoPath | Filename>>;
readdirPromise(p: PortablePath, opts: {
recursive: true;
withFileTypes: true;
}): Promise<Array<Dirent>>;
}): Promise<Array<Dirent<PortablePath>>>;
readdirPromise(p: PortablePath, opts: {
recursive: true;
withFileTypes?: false;
}): Promise<Array<PortablePath>>;
readdirPromise(p: PortablePath, opts: {
recursive: true;
withFileTypes: boolean;
}): Promise<Array<Filename> | Array<Dirent>>;
readdirSync(p: PortablePath): Array<Filename>;
}): Promise<Array<Dirent<PortablePath> | PortablePath>>;
readdirPromise(p: PortablePath, opts: {
recursive: boolean;
withFileTypes: true;
}): Promise<Array<Dirent<PortablePath> | DirentNoPath>>;
readdirPromise(p: PortablePath, opts: {
recursive: boolean;
withFileTypes?: false;
}): Promise<Array<PortablePath>>;
readdirPromise(p: PortablePath, opts: {
recursive: boolean;
withFileTypes: boolean;
}): Promise<Array<Dirent<PortablePath> | DirentNoPath | PortablePath>>;
readdirSync(p: PortablePath, opts?: null): Array<Filename>;
readdirSync(p: PortablePath, opts: {
withFileTypes: false;
} | null): Array<Filename>;
recursive?: false;
withFileTypes: true;
}): Array<DirentNoPath>;
readdirSync(p: PortablePath, opts: {
recursive?: false;
withFileTypes?: false;
}): Array<Filename>;
readdirSync(p: PortablePath, opts: {
recursive?: false;
withFileTypes: boolean;
}): Array<DirentNoPath | Filename>;
readdirSync(p: PortablePath, opts: {
recursive: true;
withFileTypes: true;
}): Array<Dirent>;
}): Array<Dirent<PortablePath>>;
readdirSync(p: PortablePath, opts: {
recursive: true;
withFileTypes?: false;
}): Array<PortablePath>;
readdirSync(p: PortablePath, opts: {
recursive: true;
withFileTypes: boolean;
}): Array<Filename> | Array<Dirent>;
}): Array<Dirent<PortablePath> | PortablePath>;
readdirSync(p: PortablePath, opts: {
recursive: boolean;
withFileTypes: true;
}): Array<Dirent<PortablePath> | DirentNoPath>;
readdirSync(p: PortablePath, opts: {
recursive: boolean;
withFileTypes?: false;
}): Array<PortablePath>;
readdirSync(p: PortablePath, opts: {
recursive: boolean;
withFileTypes: boolean;
}): Array<Dirent<PortablePath> | DirentNoPath | PortablePath>;
readlinkPromise(p: PortablePath): Promise<any>;

@@ -166,0 +221,0 @@ readlinkSync(p: PortablePath): any;

@@ -371,2 +371,4 @@ "use strict";

if (pnpPath.dirList || this.resolvePath(fslib_2.ppath.join(p, `node_modules`)).dirList) {
if (opts === null || opts === void 0 ? void 0 : opts.recursive)
throw new Error(`Unsupported option 'recursive' for NodeModulesFS.readdirPromise`);
let fsDirList = [];

@@ -385,2 +387,3 @@ try {

name,
path: undefined,
});

@@ -396,2 +399,4 @@ });

if (pnpPath.dirList || this.resolvePath(fslib_2.ppath.join(p, `node_modules`)).dirList) {
if (opts === null || opts === void 0 ? void 0 : opts.recursive)
throw new Error(`Unsupported option 'recursive' for NodeModulesFS.readdirSync`);
let fsDirList = [];

@@ -410,2 +415,3 @@ try {

name,
path: undefined,
});

@@ -412,0 +418,0 @@ });

12

package.json
{
"name": "@yarnpkg/pnpify",
"version": "4.0.0-rc.46",
"version": "4.0.0-rc.47",
"stableVersion": "3.1.6",

@@ -16,5 +16,5 @@ "license": "BSD-2-Clause",

"dependencies": {
"@yarnpkg/core": "^4.0.0-rc.46",
"@yarnpkg/fslib": "^3.0.0-rc.46",
"@yarnpkg/nm": "^4.0.0-rc.46",
"@yarnpkg/core": "^4.0.0-rc.47",
"@yarnpkg/fslib": "^3.0.0-rc.47",
"@yarnpkg/nm": "^4.0.0-rc.47",
"clipanion": "^3.2.1",

@@ -25,3 +25,3 @@ "tslib": "^2.4.0"

"@yarnpkg/monorepo": "^0.0.0",
"@yarnpkg/pnp": "^4.0.0-rc.46"
"@yarnpkg/pnp": "^4.0.0-rc.47"
},

@@ -54,4 +54,4 @@ "scripts": {

"engines": {
"node": ">=14.15.0"
"node": ">=18.12.0"
}
}
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