Socket
Socket
Sign inDemoInstall

@ifaxity/mkdirp

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ifaxity/mkdirp - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

LICENSE

11

main.js

@@ -20,14 +20,13 @@ const { promisify } = require('util');

return await mkdirp(dirpath, mode);
}
else {
} else {
// In the case of any other error, just see if there's a dir there already.
try {
// Check if something else is borker or if directory already exists
const stat = await stat(dirpath);
if(!stat.isDirectory()) throw ex;
const dirstat = await stat(dirpath);
if(!dirstat.isDirectory()) throw ex;
// Directory exists already yay! report that none was created
return false;
} catch(err) {
// If stat fails then throw it for weirdness
} catch(_) {
// If stat fails then throw first exception it's for weirdness
throw ex;

@@ -34,0 +33,0 @@ }

{
"name": "@ifaxity/mkdirp",
"version": "1.0.0",
"version": "1.0.1",
"description": "A promise based implementation of the bash command mkdir -p",

@@ -5,0 +5,0 @@ "main": "main.js",

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