Comparing version 1.4.1 to 1.4.2
15
index.js
@@ -8,2 +8,3 @@ var cont = require('cont') | ||
var mkdirp = require('mkdirp') | ||
var rimraf = require('rimraf') | ||
var fs = require('fs') | ||
@@ -29,5 +30,5 @@ var glob = require('pull-glob') | ||
var n = 0 | ||
var waiting = [], tmp = false | ||
var waiting = [], tmp = false, clean = false | ||
function mktmp (cb) { | ||
function init (cb) { | ||
if(tmp) return cb() | ||
@@ -37,4 +38,8 @@ else waiting.push(cb) | ||
mkdirp(path.join(dir, 'tmp'), function () { | ||
tmp = true; while(waiting.length) waiting.shift()() | ||
var tmpdir = path.join(dir, 'tmp') | ||
rimraf(tmpdir, function () { | ||
mkdirp(tmpdir, function () { | ||
tmp = true; while(waiting.length) waiting.shift()() | ||
}) | ||
}) | ||
@@ -119,3 +124,3 @@ | ||
mktmp(function () { | ||
init(function () { | ||
var tmpfile = path.join(dir, 'tmp', Date.now() + '-' + n++) | ||
@@ -122,0 +127,0 @@ var hasher = createHash() |
{ | ||
"name": "multiblob", | ||
"description": "", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"homepage": "https://github.com/dominictarr/multiblob", | ||
@@ -6,0 +6,0 @@ "repository": { |
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
13902
370