Socket
Socket
Sign inDemoInstall

@pnpm/package-bins

Package Overview
Dependencies
Maintainers
2
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/package-bins - npm Package Compare versions

Comparing version 8.0.3 to 8.0.4

9

lib/index.js

@@ -44,3 +44,3 @@ "use strict";

{
name: pkgName[0] === '@' ? pkgName.slice(pkgName.indexOf('/') + 1) : pkgName,
name: normalizeBinName(pkgName),
path: path_1.default.join(pkgPath, bin),

@@ -51,5 +51,5 @@ },

return Object.keys(bin)
.filter((commandName) => encodeURIComponent(commandName) === commandName || commandName === '$')
.filter((commandName) => encodeURIComponent(commandName) === commandName || commandName === '$' || commandName[0] === '@')
.map((commandName) => ({
name: commandName,
name: normalizeBinName(commandName),
path: path_1.default.join(pkgPath, bin[commandName]),

@@ -59,2 +59,5 @@ }))

}
function normalizeBinName(name) {
return name[0] === '@' ? name.slice(name.indexOf('/') + 1) : name;
}
//# sourceMappingURL=index.js.map
{
"name": "@pnpm/package-bins",
"version": "8.0.3",
"version": "8.0.4",
"description": "Returns bins of a package",

@@ -28,7 +28,7 @@ "main": "lib/index.js",

"is-subdir": "^1.2.0",
"@pnpm/types": "9.3.0"
"@pnpm/types": "9.4.0"
},
"devDependencies": {
"@types/node": "^16.18.52",
"@pnpm/package-bins": "8.0.3"
"@types/node": "^16.18.58",
"@pnpm/package-bins": "8.0.4"
},

@@ -35,0 +35,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