git-node-fs
Advanced tools
Comparing version 0.0.1 to 0.0.2
"use strict"; | ||
var nodeFs = require("fs"); | ||
var nodePath = require("path"); | ||
var mkdirp = require("mkdirp"); | ||
@@ -136,1 +135,16 @@ // Implements the fs interface required by js-git/fs-db | ||
} | ||
function mkdirp(path, callback) { | ||
nodeFs.mkdir(path, function (err) { | ||
if (err) { | ||
if (err.code === "ENOENT") return mkdirp(dirname(path), function (err) { | ||
if (err) return callback(err); | ||
nodeFs.mkdir(path, callback); | ||
}); | ||
if (err.code === "EEXIST") return callback(); | ||
return callback(err); | ||
} | ||
callback(); | ||
}); | ||
} | ||
@@ -8,3 +8,3 @@ { | ||
], | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"main": "lib/node-fs.js", | ||
@@ -22,6 +22,3 @@ "scripts": { | ||
}, | ||
"homepage": "https://github.com/creationix/git-node-fs", | ||
"dependencies": { | ||
"mkdirp": "git://github.com/substack/node-mkdirp.git#0.5.0" | ||
} | ||
"homepage": "https://github.com/creationix/git-node-fs" | ||
} |
var assert = require("assert"); | ||
var path = require("path"); | ||
var fs = require("./git-node-fs"); | ||
var fs = require("./lib/node-fs"); | ||
var nodeFs = require("fs"); | ||
@@ -6,0 +6,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
Git dependency
Supply chain riskContains a dependency which resolves to a remote git URL. Dependencies fetched from git URLs are not immutable and can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
7367
0
182
0