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.2.2 to 0.3.0

11

index.js

@@ -31,3 +31,2 @@ var path = require('path');

if (er2 || !stat.isDirectory()) cb(er)
else if ((stat.mode & 0777) !== mode) fs.chmod(p, mode, cb);
else cb();

@@ -72,12 +71,2 @@ });

if (!stat.isDirectory()) throw err0;
else if ((stat.mode & 0777) !== mode) {
try {
fs.chmodSync(p, mode);
}
catch (err) {
if (err && err.code === 'EPERM') return null;
else throw err;
}
return null;
}
else return null;

@@ -84,0 +73,0 @@ break;

2

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

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

@@ -35,3 +35,2 @@ var mkdirp = require('../').mkdirp;

t.ok(stat && stat.isDirectory(), 'should be directory');
t.equal(stat && stat.mode & 0777, mode, 'should be 0755');
t.end();

@@ -38,0 +37,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