Skip to content

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
twalker committed Jan 10, 2015
1 parent 240d586 commit c2fc7d9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mocki",
"version": "0.4.22",
"version": "0.4.23",
"private": true,
"author": "tim walker",
"license": "MIT",
Expand All @@ -18,16 +18,16 @@
},
"main": "index.js",
"dependencies": {
"body-parser": "1.0.2",
"body-parser": "1.10.1",
"cuid": "~1.2.4",
"express": "4.1.1"
"express": "4.10.7"
},
"devDependencies": {
"mocha": "~1.18.2",
"supertest": "~0.12.0",
"chai": "~1.9.1",
"errorhandler": "^1.0.1",
"morgan": "^1.0.1"
"mocha": "~2.1.0",
"supertest": "~0.15.0",
"chai": "~1.10.0",
"errorhandler": "^1.3.2",
"morgan": "^1.5.1"
},
"scripts": {
"start": "node server",
Expand Down
6 changes: 3 additions & 3 deletions routes/mocki.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ var actions = {
}

function dirNotFound(){
res.json(404, {error: collectionDir + ' not found.'});
res.status(404).json({error: collectionDir + ' not found.'});
}

},
Expand All @@ -87,7 +87,7 @@ var actions = {
res.json(JSON.parse(data));
});
} else {
res.json(404, {error: filePath + ' not found.'});
res.status(404).json({error: filePath + ' not found.'});
}
});
},
Expand All @@ -110,7 +110,7 @@ var actions = {
if(err) throw err;
fs.unlink(filePath, function(err){
if(err) throw err;
res.send(204);
res.sendStatus(204);
});
});
}
Expand Down

0 comments on commit c2fc7d9

Please sign in to comment.