From ef456896deb8dc6d2c6b2d6c15656febd6f42f82 Mon Sep 17 00:00:00 2001 From: Chris Blanchard Date: Sun, 9 Aug 2015 15:56:23 +0100 Subject: [PATCH] Run everything with --harmony --- lib/gather/controller.js | 2 +- lib/gather/gather.js | 2 +- package.json | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/gather/controller.js b/lib/gather/controller.js index cde80d7..935dab3 100644 --- a/lib/gather/controller.js +++ b/lib/gather/controller.js @@ -38,7 +38,7 @@ module.exports = function (namespace) { }); namespace.emit("gather:history", { - gatherHistory: previousGathers.slice(0,5).map(function (gather) { return gather.toJson(); }); + gatherHistory: previousGathers.slice(0,5).map((gather) => {return gather.toJson()}) }); }; diff --git a/lib/gather/gather.js b/lib/gather/gather.js index 6fd8eef..4c4a845 100644 --- a/lib/gather/gather.js +++ b/lib/gather/gather.js @@ -26,7 +26,7 @@ function Gather (options) { this.onEvent = function () {}; // Noop } - if (typof options.onDone === 'function') { + if (typeof options.onDone === 'function') { this.onDone = options.onDone; } else { this.onDone = function () {}; diff --git a/package.json b/package.json index 0215194..0887e80 100644 --- a/package.json +++ b/package.json @@ -8,11 +8,11 @@ "Skulks with Shotguns" ], "scripts": { - "test": "NODE_ENV=test mocha spec/", - "start": "npm run compile && node index.js", + "test": "NODE_ENV=test mocha --harmony spec/", + "start": "npm run compile && node --harmony index.js", "watch": "node_modules/gulp/bin/gulp.js watch", "compile": "node_modules/gulp/bin/gulp.js", - "dev": "nodemon index.js" + "dev": "nodemon --harmony index.js" }, "repository": { "type": "git", @@ -50,5 +50,5 @@ "nodemon": "~1.3.7", "supertest": "~1.0.1" }, - "engine": "node >= 0.10.1" + "engine": "node >= 0.12.1" }