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

@pnpm/global-bin-dir

Package Overview
Dependencies
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/global-bin-dir - npm Package Compare versions

Comparing version 1.2.5 to 1.2.6

6

CHANGELOG.md
# @pnpm/global-bin-dir
## 1.2.6
### Patch Changes
- 941c5e8de: `npx pnpm install --global pnpm` should not install pnpm to the temporary directory of npx.
## 1.2.5

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

4

lib/index.js

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

const lowCaseDir = dir.toLowerCase();
if (isUnderDir('node', lowCaseDir) ||
if ((isUnderDir('node', lowCaseDir) ||
isUnderDir('nodejs', lowCaseDir) ||

@@ -35,3 +35,3 @@ isUnderDir('npm', lowCaseDir) ||

knownCandidates.some((candidate) => areDirsEqual(candidate, dir)) ||
dirHasNodeRelatedCommand(dir)) {
dirHasNodeRelatedCommand(dir)) && !isUnderDir('_npx', lowCaseDir)) {
if (canWriteToDirAndExists(dir))

@@ -38,0 +38,0 @@ return dir;

{
"name": "@pnpm/global-bin-dir",
"version": "1.2.5",
"version": "1.2.6",
"description": "Finds a directory that is in PATH and we have permission to write to i",

@@ -33,10 +33,9 @@ "main": "lib/index.js",

"dependencies": {
"@pnpm/error": "^1.4.0",
"can-write-to-dir": "^1.0.0",
"@pnpm/error": "1.4.0",
"can-write-to-dir": "^1.0.1",
"path-name": "^1.0.0"
},
"devDependencies": {
"@pnpm/global-bin-dir": "link:",
"is-windows": "^1.0.2"
}
}

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