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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17178
20
431
1