From 8acef79687bb3db9752ef75c73bc2d3bbb49b214 Mon Sep 17 00:00:00 2001 From: Matt Godbolt Date: Tue, 15 Apr 2014 20:37:03 -0500 Subject: [PATCH] Freshen packages, use fs-extra to delete temp dir --- app.js | 7 ++----- package.json | 10 +++++----- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/app.js b/app.js index d5b2d586..809bc030 100755 --- a/app.js +++ b/app.js @@ -34,7 +34,7 @@ var nopt = require('nopt'), path = require('path'), async = require('async'), LRU = require('lru-cache'), - fs = require('fs'); + fs = require('fs-extra'); var opts = nopt({ 'env': [String], @@ -190,10 +190,7 @@ function compile(req, res) { cacheStats(); } res.end(result); - fs.unlink(outputFilename, function() { - fs.unlink(inputFilename, - function() { fs.rmdir(dirPath); }); - }); + fs.remove(dirPath); taskFinished(); }); }); diff --git a/package.json b/package.json index bd7054a3..39555ef2 100644 --- a/package.json +++ b/package.json @@ -8,12 +8,12 @@ }, "main": "./app.js", "dependencies": { - "connect": "2.3.x", - "async": "0.1.x", + "connect": "2.14.x", + "async": "0.7.x", + "fs-extra": "0.8.x", "nopt": "1.0.x", - "temp": "0.4.x", - "ffi": "1.2.x", - "lru-cache": "2.2.x" + "temp": "0.7.x", + "lru-cache": "2.5.x" }, "devDependencies": { "supervisor": "0.3.1"