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

mkdirp

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mkdirp - npm Package Compare versions

Comparing version 0.3.3 to 0.3.4

28

index.js

@@ -30,14 +30,6 @@ var path = require('path');

case 'EISDIR':
case 'EPERM':
// Operation not permitted or already is a dir.
// This is the error you get when trying to mkdir('c:/')
// on windows, or mkdir('/') on unix. Make sure it's a
// dir by falling through to the EEXIST case.
case 'EROFS':
// a read-only file system.
// However, the dir could already exist, in which case
// the EROFS error will be obscuring a EEXIST!
// Fallthrough to that case.
case 'EEXIST':
// In the case of any other error, just see if there's a dir
// there already. If so, then hooray! If not, then something
// is borked.
default:
fs.stat(p, function (er2, stat) {

@@ -50,6 +42,2 @@ // if the stat fails, then that's super weird.

break;
default:
cb(er, made);
break;
}

@@ -79,3 +67,6 @@ });

case 'EEXIST' :
// In the case of any other error, just see if there's a dir
// there already. If so, then hooray! If not, then something
// is borked.
default:
var stat;

@@ -90,5 +81,2 @@ try {

break;
default :
throw err0
break;
}

@@ -95,0 +83,0 @@ }

{
"name" : "mkdirp",
"description" : "Recursively mkdir, like `mkdir -p`",
"version" : "0.3.3",
"version" : "0.3.4",
"author" : "James Halliday <mail@substack.net> (http://substack.net)",

@@ -6,0 +6,0 @@ "main" : "./index",

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