node-fs
Advanced tools
Comparing version 0.1.0 to 0.1.2
@@ -6,3 +6,4 @@ (function () { | ||
mkdirOrig = fs.mkdir, | ||
mkdirSyncOrig = fs.mkdirSync; | ||
mkdirSyncOrig = fs.mkdirSync, | ||
osSep = process.platform === 'win32' ? '\\' : '/'; | ||
@@ -16,3 +17,3 @@ /** | ||
function mkdir_p (path, mode, callback, position) { | ||
var parts = require('path').normalize(path).split('/'); | ||
var parts = require('path').normalize(path).split(osSep); | ||
@@ -26,3 +27,3 @@ mode = mode || process.umask(); | ||
var directory = parts.slice(0, position + 1).join('/') || '/'; | ||
var directory = parts.slice(0, position + 1).join(osSep) || osSep; | ||
fs.stat(directory, function(err) { | ||
@@ -44,3 +45,3 @@ if (err === null) { | ||
function mkdirSync_p(path, mode, position) { | ||
var parts = require('path').normalize(path).split('/'); | ||
var parts = require('path').normalize(path).split(osSep); | ||
@@ -54,3 +55,3 @@ mode = mode || process.umask(); | ||
var directory = parts.slice(0, position + 1).join('/') || '/'; | ||
var directory = parts.slice(0, position + 1).join(osSep) || osSep; | ||
try { | ||
@@ -65,3 +66,3 @@ fs.statSync(directory); | ||
if (e.errno != 17) { | ||
throw err; | ||
throw e; | ||
} | ||
@@ -68,0 +69,0 @@ mkdirSync_p(path, mode, position + 1); |
{ | ||
"name": "node-fs", | ||
"description": "node-fs is an extension to the original nodejs fs library, offering new functionalities.", | ||
"version": "0.1.0", | ||
"version": "0.1.2", | ||
"author": "Bruno Pedro <bpedro@tarpipe.com>", | ||
@@ -6,0 +6,0 @@ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
5502
124
0
1