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

which

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

which - npm Package Compare versions

Comparing version 1.2.8 to 1.2.9

5

CHANGELOG.md
# Changes
## v1.2.9
* fix for paths starting with ../
* Remove unused `is-absolute` module
## v1.2.8

@@ -5,0 +10,0 @@

3

package.json

@@ -5,3 +5,3 @@ {

"description": "Like which(1) unix command. Find the first instance of an executable in the PATH.",
"version": "1.2.8",
"version": "1.2.9",
"repository": {

@@ -15,3 +15,2 @@ "type": "git",

"dependencies": {
"is-absolute": "^0.1.7",
"isexe": "^1.1.1"

@@ -18,0 +17,0 @@ },

@@ -12,3 +12,2 @@ module.exports = which

var fs = require('fs')
var isAbsolute = require('is-absolute')

@@ -79,3 +78,3 @@ function getNotFoundError (cmd) {

var p = path.join(pathPart, cmd)
if (!pathPart && (/^\./).test(cmd)) {
if (!pathPart && (/^\.[\\\/]/).test(cmd)) {
p = cmd.slice(0, 2) + p

@@ -114,3 +113,3 @@ }

var p = path.join(pathPart, cmd)
if (!pathPart && (/^\./).test(cmd)) {
if (!pathPart && /^\.[\\\/]/.test(cmd)) {
p = cmd.slice(0, 2) + p

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