Socket
Socket
Sign inDemoInstall

@pnpm/link-bins

Package Overview
Dependencies
Maintainers
2
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/link-bins - npm Package Compare versions

Comparing version 7.1.7 to 7.2.0

9

lib/index.d.ts
import { DependencyManifest, ProjectManifest } from '@pnpm/types';
export declare type WarningCode = 'BINARIES_CONFLICT' | 'EMPTY_BIN';
export declare type WarnFunction = (msg: string, code: WarningCode) => void;
declare const _default: (modulesDir: string, binsDir: string, opts: {
declare const _default: (modulesDir: string, binsDir: string, opts: LinkBinOptions & {
allowExoticManifests?: boolean;
extraNodePaths?: string[];
nodeExecPathByAlias?: Record<string, string>;

@@ -16,4 +15,6 @@ projectManifest?: ProjectManifest;

location: string;
}>, binsTarget: string, opts?: {
}>, binsTarget: string, opts?: LinkBinOptions): Promise<string[]>;
export interface LinkBinOptions {
extraNodePaths?: string[];
}): Promise<string[]>;
preferSymlinkedExecutables?: boolean;
}

@@ -48,2 +48,3 @@ "use strict";

const partition_js_1 = __importDefault(require("ramda/src/partition.js"));
const symlink_dir_1 = __importDefault(require("symlink-dir"));
const fix_bin_1 = __importDefault(require("bin-links/lib/fix-bin"));

@@ -160,2 +161,6 @@ const binsConflictLogger = (0, logger_1.default)('bins-conflict');

const externalBinPath = path_1.default.join(binsDir, cmd.name);
if (opts?.preferSymlinkedExecutables && !IS_WINDOWS && cmd.nodeExecPath == null) {
await (0, symlink_dir_1.default)(cmd.path, externalBinPath);
return;
}
try {

@@ -162,0 +167,0 @@ await (0, cmd_shim_1.default)(cmd.path, externalBinPath, {

{
"name": "@pnpm/link-bins",
"version": "7.1.7",
"version": "7.2.0",
"description": "Link bins to node_modules/.bin",

@@ -35,14 +35,15 @@ "main": "lib/index.js",

"bin-links": "^2.3.0",
"is-subdir": "^1.1.1",
"is-subdir": "^1.2.0",
"is-windows": "^1.0.2",
"normalize-path": "^3.0.0",
"p-settle": "^4.1.1",
"ramda": "^0.28.0"
"ramda": "^0.28.0",
"symlink-dir": "^5.0.1"
},
"devDependencies": {
"@pnpm/link-bins": "7.1.7",
"@pnpm/link-bins": "7.2.0",
"@pnpm/logger": "^4.0.0",
"@pnpm/test-fixtures": "0.0.14",
"@types/is-windows": "^1.0.0",
"@types/node": "^14.17.32",
"@types/node": "^14.18.22",
"@types/normalize-path": "^3.0.0",

@@ -52,3 +53,3 @@ "@types/ramda": "0.28.14",

"path-exists": "^4.0.0",
"tempy": "^1.0.0"
"tempy": "^1.0.1"
},

@@ -55,0 +56,0 @@ "funding": "https://opencollective.com/pnpm",

Sorry, the diff of this file is not supported yet

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