Socket
Socket
Sign inDemoInstall

pkg-dir

Package Overview
Dependencies
6
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.1.0 to 4.2.0

4

index.js

@@ -7,3 +7,3 @@ 'use strict';

const filePath = await findUp('package.json', {cwd});
return filePath ? path.dirname(filePath) : undefined;
return filePath && path.dirname(filePath);
};

@@ -17,3 +17,3 @@

const filePath = findUp.sync('package.json', {cwd});
return filePath ? path.dirname(filePath) : undefined;
return filePath && path.dirname(filePath);
};
{
"name": "pkg-dir",
"version": "4.1.0",
"version": "4.2.0",
"description": "Find the root directory of a Node.js project or npm package",

@@ -48,6 +48,7 @@ "license": "MIT",

"dependencies": {
"find-up": "^3.0.0"
"find-up": "^4.0.0"
},
"devDependencies": {
"ava": "^1.4.1",
"tempy": "^0.3.0",
"tsd": "^0.7.2",

@@ -54,0 +55,0 @@ "xo": "^0.24.0"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc