From a41529ff9207404a5675992eb199dddb5c4761ba Mon Sep 17 00:00:00 2001 From: Joel Brandt Date: Sat, 12 Jul 2014 11:19:20 -0700 Subject: [PATCH 1/3] bump versions of tmp and fs-extra --- package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index c7efe44..26260cf 100644 --- a/package.json +++ b/package.json @@ -14,13 +14,13 @@ "test": "true" }, "dependencies": { - "fs-extra": "~0.8", + "fs-extra": "~0.10", "q": "~1.0", - "tmp": "~0.0.23" + "tmp": "~0.0.24" }, "devDependencies": { - "grunt": "~0.4", - "grunt-contrib-jshint": "~0.8", + "grunt": "~0.4.5", + "grunt-contrib-jshint": "~0.10", "grunt-jscs": "~0.6.1", "jscs-trailing-whitespace-in-source": "0.0.1" } From e1b0a45cf17a34c522a0960646c0dae58ff127c3 Mon Sep 17 00:00:00 2001 From: Joel Brandt Date: Sat, 12 Jul 2014 11:19:38 -0700 Subject: [PATCH 2/3] update call to tmp library for api change --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index d34ecdf..6654d7a 100644 --- a/main.js +++ b/main.js @@ -215,7 +215,7 @@ return Q.nfcall(tmp.dir, {unsafeCleanup : true}); } }) - .then(function (workingDir) { + .spread(function (workingDir) { test.workingDir = workingDir; var source = path.resolve(test.baseDir, test.input), From e2a0e5c34ad0e18a518609ebdfae75faa8399b20 Mon Sep 17 00:00:00 2001 From: Joel Brandt Date: Sat, 12 Jul 2014 12:09:50 -0700 Subject: [PATCH 3/3] correctly fix tmp api change --- main.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 6654d7a..57a9afb 100644 --- a/main.js +++ b/main.js @@ -212,10 +212,13 @@ return workingDir; })); } else { - return Q.nfcall(tmp.dir, {unsafeCleanup : true}); + return (Q.nfcall(tmp.dir, {unsafeCleanup : true}) + .spread(function (workingDir) { + return workingDir; + })); } }) - .spread(function (workingDir) { + .then(function (workingDir) { test.workingDir = workingDir; var source = path.resolve(test.baseDir, test.input),