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.7 to 4.0.8

7

CHANGELOG.md
# @pnpm/package-bins
## 4.0.8
### Patch Changes
- Updated dependencies [d54043ee4]
- @pnpm/types@6.3.0
## 4.0.7

@@ -4,0 +11,0 @@

7

lib/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const util_1 = require("util");
const graceful_fs_1 = require("graceful-fs");
const path = require("path");
const isSubdir = require("is-subdir");
const pFilter = require("p-filter");
const path = require("path");
const util_1 = require("util");
const readdirP = util_1.promisify(graceful_fs_1.readdir);
const statP = util_1.promisify(graceful_fs_1.stat);
async function binify(manifest, pkgPath) {
var _a;
if (manifest.bin) {
return commandsFromBin(manifest.bin, manifest.name, pkgPath);
}
if (manifest.directories && manifest.directories.bin) {
if ((_a = manifest.directories) === null || _a === void 0 ? void 0 : _a.bin) {
const binDir = path.join(pkgPath, manifest.directories.bin);

@@ -16,0 +17,0 @@ const files = await findFiles(binDir);

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

@@ -12,6 +12,6 @@ "main": "lib/index.js",

"engines": {
"node": ">=10.13"
"node": ">=10.16"
},
"scripts": {
"lint": "tslint -c ../../tslint.json --project .",
"lint": "eslint -c ../../eslint.json src/**/*.ts test/**/*.ts",
"_test": "cd ../.. && c8 --reporter lcov --reports-dir packages/package-bins/coverage ts-node packages/package-bins/test --type-check",

@@ -35,3 +35,3 @@ "test": "pnpm run compile && pnpm run _test",

"dependencies": {
"@pnpm/types": "6.2.0",
"@pnpm/types": "6.3.0",
"graceful-fs": "^4.2.4",

@@ -44,3 +44,3 @@ "is-subdir": "^1.1.1",

"@types/graceful-fs": "^4.1.3",
"@types/node": "^12.12.47",
"@types/node": "^12.12.68",
"@types/tape": "^4.13.0"

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