mkdir-recursive
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -0,1 +1,7 @@ | ||
v0.2.2 / 2016-07-12 | ||
================== | ||
* Test `node`@6 | ||
* Fix absolute path on Windows | ||
v0.2.1 / 2015-11-09 | ||
@@ -2,0 +8,0 @@ ================== |
16
index.js
@@ -44,5 +44,7 @@ 'use strict'; | ||
var chunk; | ||
if (path.isAbsolute(root) === true) { | ||
chunks.shift(); // remove "/" | ||
chunk = path.sep; // build from absolute path | ||
if (path.isAbsolute(root) === true) { // build from absolute path | ||
chunk = chunks.shift(); // remove "/" or C:/ | ||
if (!chunk) { // add "/" | ||
chunk = path.sep; | ||
} | ||
} else { | ||
@@ -73,5 +75,7 @@ chunk = path.resolve(); // build with relative path | ||
var chunk; | ||
if (path.isAbsolute(root) === true) { | ||
chunks.shift(); // remove "/" | ||
chunk = path.sep; // build from absolute path | ||
if (path.isAbsolute(root) === true) { // build from absolute path | ||
chunk = chunks.shift(); // remove "/" or C:/ | ||
if (!chunk) { // add "/" | ||
chunk = path.sep; | ||
} | ||
} else { | ||
@@ -78,0 +82,0 @@ chunk = path.resolve(); // build with relative path |
{ | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"name": "mkdir-recursive", | ||
@@ -30,3 +30,3 @@ "description": "make/remove (asynchronous/synchronous) directories recursively", | ||
"coveralls": "~2.11", | ||
"mocha": "~2.3", | ||
"mocha": "~2.5", | ||
"istanbul": "~0.4" | ||
@@ -33,0 +33,0 @@ }, |
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
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
44662
223