diff --git a/package.json b/package.json index 02040ee..c6cd659 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nodium", - "version": "0.1.1", + "version": "0.1.2", "description": "Pure nodejs selenium webdriver functional helpers", "homepage": "https://github.com/jeromemacias/nodium", "repository": { @@ -39,6 +39,7 @@ "chai": "~3.5", "chai-as-promised": "~5.3", "pm2": "*", - "request": "2.*" + "request": "2.*", + "json-server": "0.8.*" } } diff --git a/src/hook/jsonServer.js b/src/hook/jsonServer.js index 68a57f3..39018d1 100644 --- a/src/hook/jsonServer.js +++ b/src/hook/jsonServer.js @@ -1,3 +1,5 @@ +import jsonServer from 'json-server'; + export function jsonServerStart(defaults = {}, port = 3030) { const server = jsonServer.create(); server.use(bodyParser.json());