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

@pnpm/package-bins

Package Overview
Dependencies
Maintainers
3
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 4.0.11 to 4.1.0

6

CHANGELOG.md
# @pnpm/package-bins
## 4.1.0
### Minor Changes
- d853fb14a: Find all files inside the bin directory.
## 4.0.11

@@ -4,0 +10,0 @@

18

lib/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const util_1 = require("util");
const graceful_fs_1 = require("graceful-fs");
const fastGlob = require("fast-glob");
const path = require("path");
const isSubdir = require("is-subdir");
const pFilter = require("p-filter");
const readdirP = util_1.promisify(graceful_fs_1.readdir);
const statP = util_1.promisify(graceful_fs_1.stat);
async function binify(manifest, pkgPath) {

@@ -18,6 +14,6 @@ var _a;

const files = await findFiles(binDir);
return pFilter(files.map((file) => ({
name: file,
return files.map((file) => ({
name: path.basename(file),
path: path.join(binDir, file),
})), async (cmd) => (await statP(cmd.path)).isFile());
}));
}

@@ -29,3 +25,7 @@ return [];

try {
return await readdirP(dir);
return await fastGlob('**', {
cwd: dir,
onlyFiles: true,
followSymbolicLinks: false,
});
}

@@ -32,0 +32,0 @@ catch (err) {

{
"name": "@pnpm/package-bins",
"version": "4.0.11",
"version": "4.1.0",
"description": "Returns bins of a package",

@@ -35,5 +35,4 @@ "main": "lib/index.js",

"@pnpm/types": "6.4.0",
"graceful-fs": "4.2.4",
"is-subdir": "^1.1.1",
"p-filter": "^2.1.0"
"fast-glob": "^3.2.4",
"is-subdir": "^1.1.1"
},

@@ -40,0 +39,0 @@ "devDependencies": {

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