Socket
Socket
Sign inDemoInstall

@pnpm/link-bins

Package Overview
Dependencies
Maintainers
3
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 5.1.0 to 5.1.1

7

lib/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const error_1 = require("@pnpm/error");
const package_bins_1 = require("@pnpm/package-bins");

@@ -75,2 +76,8 @@ const read_modules_dir_1 = require("@pnpm/read-modules-dir");

}
if (R.isEmpty(pkg.bin)) {
throw new error_1.default('INVALID_PACKAGE_BIN', `Package in ${target} must have a non-empty bin field to get bin linked.`);
}
if (typeof pkg.bin === 'string' && !pkg.name) {
throw new error_1.default('INVALID_PACKAGE_NAME', `Package in ${target} must have a name to get bin linked.`);
}
return getPackageBinsFromPackageJson(pkg, target);

@@ -77,0 +84,0 @@ }

7

package.json
{
"name": "@pnpm/link-bins",
"version": "5.1.0",
"version": "5.1.1",
"description": "Link bins to node_modules/.bin",

@@ -32,2 +32,3 @@ "main": "lib/index.js",

"dependencies": {
"@pnpm/error": "1.0.0",
"@pnpm/package-bins": "4.0.2",

@@ -54,3 +55,3 @@ "@pnpm/read-modules-dir": "2.0.1",

"@types/normalize-path": "^3.0.0",
"@types/ramda": "^0.26.39",
"@types/ramda": "^0.26.40",
"@types/sinon": "^7.5.1",

@@ -61,5 +62,5 @@ "@types/tape": "^4.2.33",

"rimraf": "^3.0.0",
"sinon": "8.1.0",
"sinon": "8.1.1",
"tempy": "^0.3.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