diff --git a/app.js b/app.js index 90895ef..dfee76f 100644 --- a/app.js +++ b/app.js @@ -75,10 +75,7 @@ app.all("*", (req, res, next) => { // runs the changed request with the transformed values so // that they become compliant with the expected API - request(options) - .on("finish", resolve) - .on("error", reject) - .pipe(res); + request(options).on("finish", resolve).on("error", reject).pipe(res); } catch (err) { reject(err); } diff --git a/package.json b/package.json index 3a4c135..d4fa1ea 100644 --- a/package.json +++ b/package.json @@ -17,13 +17,14 @@ }, "license": "Apache-2.0", "author": "Platforme", + "main": "app.js", "files": [ "app.js", "lib/**/*.js", "test/**/*.js" ], - "main": "app.js", "scripts": { + "dev": "nodemon app.js", "lint": "eslint \"./**/*.js\"", "lint-fix": "eslint \"./**/*.js\" --fix", "prettier": "prettier \"./**/*.{js,json}\" --write", @@ -36,16 +37,17 @@ "consola": "^2.11.3", "express": "^4.17.1", "hive-js-util": "^0.2.2", - "request": "^2.88.0", - "yonius": "^0.2.16" + "request": "^2.88.2", + "yonius": "^0.2.21" }, "devDependencies": { "eslint": "^6.8.0", "eslint-config-hive": "^0.2.2", - "mocha": "^7.0.0", - "npm-check-updates": "^4.0.1", - "prettier": "^1.19.1", - "prettier-config-hive": "^0.1.1", - "sort-package-json": "^1.36.0" + "mocha": "^7.1.1", + "nodemon": "^2.0.3", + "npm-check-updates": "^4.1.2", + "prettier": "^2.0.4", + "prettier-config-hive": "^0.1.7", + "sort-package-json": "^1.41.0" } }