diff --git a/.travis.yml b/.travis.yml index 8db16c09..0e9a436f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ sudo: false language: node_js -node_js: stable +node_js: lts/* services: - docker diff --git a/Dockerfile b/Dockerfile index dde08ad0..6801bf43 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:10-stretch +FROM node:14-stretch WORKDIR /usr/src/app # Bundle app source diff --git a/package.json b/package.json index e0392ccc..c95f40c1 100644 --- a/package.json +++ b/package.json @@ -14,19 +14,19 @@ "start:dev": "lerna run start:dev" }, "devDependencies": { - "@babel/cli": "7.8.4", + "@babel/cli": "7.13.16", "babel-core": "7.0.0-bridge.0", - "babel-jest": "25.1.0", - "eslint": "6.8.0", - "eslint-config-standard": "12.0.0", - "eslint-plugin-import": "2.20.1", - "eslint-plugin-node": "11.0.0", + "babel-jest": "26.6.3", + "eslint": "7.25.0", + "eslint-config-standard": "16.0.2", + "eslint-plugin-import": "2.22.1", + "eslint-plugin-node": "11.1.0", "eslint-plugin-promise": "4.2.1", - "eslint-plugin-standard": "4.0.1", - "jest": "25.1.0", - "remark": "11.0.2", - "remark-preset-lint-recommended": "3.0.3", - "lerna": "3.20.2", + "eslint-plugin-standard": "4.1.0", + "jest": "26.6.3", + "lerna": "3.22.1", + "remark": "13.0.0", + "remark-preset-lint-recommended": "5.0.0", "rimraf": "3.0.2", "supertest": "4.0.2" } diff --git a/packages/ove-service-layout/package.json b/packages/ove-service-layout/package.json index 7de0f7b1..cfde7a13 100644 --- a/packages/ove-service-layout/package.json +++ b/packages/ove-service-layout/package.json @@ -28,40 +28,40 @@ "test:benchmark": "node benchmark/benchmark.js" }, "dependencies": { - "@ove-lib/utils": "0.4.1", + "@ove-lib/utils": "0.5.0", "body-parser": "1.19.0", - "cors": "latest", + "cors": "2.8.5", "express": "4.17.1", - "http-status-codes": "1.4.0", - "node-fetch": "2.6.0", - "swagger-ui-express": "4.1.3", - "underscore": "1.9.2", + "http-status-codes": "2.1.4", + "node-fetch": "2.6.1", + "swagger-ui-express": "4.1.6", + "underscore": "1.13.1", "validate.js": "0.13.1", "yamljs": "0.3.0" }, "devDependencies": { - "@babel/cli": "7.8.4", - "@babel/core": "7.8.4", - "@babel/plugin-proposal-class-properties": "7.8.3", - "@babel/plugin-proposal-decorators": "7.8.3", - "@babel/plugin-proposal-export-namespace-from": "7.8.3", - "@babel/plugin-proposal-function-sent": "7.8.3", - "@babel/plugin-proposal-json-strings": "7.8.3", - "@babel/plugin-proposal-numeric-separator": "7.8.3", - "@babel/plugin-proposal-throw-expressions": "7.8.3", + "@babel/cli": "7.13.16", + "@babel/core": "7.13.16", + "@babel/plugin-proposal-class-properties": "7.13.0", + "@babel/plugin-proposal-decorators": "7.13.15", + "@babel/plugin-proposal-export-namespace-from": "7.12.13", + "@babel/plugin-proposal-function-sent": "7.12.13", + "@babel/plugin-proposal-json-strings": "7.13.8", + "@babel/plugin-proposal-numeric-separator": "7.12.13", + "@babel/plugin-proposal-throw-expressions": "7.12.13", "@babel/plugin-syntax-dynamic-import": "7.8.3", - "@babel/plugin-syntax-import-meta": "7.8.3", - "@babel/preset-env": "7.8.4", + "@babel/plugin-syntax-import-meta": "7.10.4", + "@babel/preset-env": "7.13.15", "babel-core": "7.0.0-bridge.0", - "babel-jest": "25.1.0", + "babel-jest": "26.6.3", "benchmark": "2.1.4", - "eslint": "6.8.0", - "eslint-plugin-jest": "23.7.0", - "jest": "25.1.0", + "eslint": "7.25.0", + "eslint-plugin-jest": "24.3.6", + "jest": "26.6.3", "jest-coverage-badges": "1.1.2", - "json-server": "0.16.0", + "json-server": "0.16.3", "microtime": "3.0.0", - "nodemon": "2.0.2", + "nodemon": "2.0.7", "supertest": "4.0.2", "sync-request": "6.1.0" }, diff --git a/packages/ove-service-persistence-inmemory/package.json b/packages/ove-service-persistence-inmemory/package.json index aac7c4df..2dfc875a 100644 --- a/packages/ove-service-persistence-inmemory/package.json +++ b/packages/ove-service-persistence-inmemory/package.json @@ -17,10 +17,10 @@ "author": "Senaka Fernando ", "license": "MIT", "dependencies": { - "@ove-lib/utils": "0.4.1", + "@ove-lib/utils": "0.5.0", "cors": "2.8.5", "express": "4.17.1", - "http-status-codes": "1.4.0" + "http-status-codes": "2.1.4" }, "jest": { "collectCoverageFrom": [ diff --git a/packages/ove-service-persistence-inmemory/src/server/api.js b/packages/ove-service-persistence-inmemory/src/server/api.js index a578a683..8db4861e 100644 --- a/packages/ove-service-persistence-inmemory/src/server/api.js +++ b/packages/ove-service-persistence-inmemory/src/server/api.js @@ -4,7 +4,7 @@ const HttpStatus = require('http-status-codes'); // Logs have been left out from most of the methods on purpose, as it contributes to significant // log file sizes. module.exports = function (app, log, Utils) { - let items = {}; + const items = {}; const getKeys = function (req, res) { // Keys do not start with a slash like paths in a URI, and therefore we ignore it. If the // path was '/', the key would be an empty string. For all other paths, the first path @@ -12,7 +12,7 @@ module.exports = function (app, log, Utils) { // would correspond to the actual key used in an app. if (!req.url.substring(1)) { // If the key was an empty string, we return a list for keys belonging to all apps. - let result = {}; + const result = {}; Object.keys(items).forEach(function (appName) { Object.keys(items[appName]).forEach(function (item) { result[appName + '/' + item] = items[appName][item].timestamp; @@ -31,7 +31,7 @@ module.exports = function (app, log, Utils) { if (appItems === undefined) { Utils.sendEmptySuccess(res); } else { - let result = {}; + const result = {}; Object.keys(appItems).forEach(function (item) { result[item] = appItems[item].timestamp; });