From bea9a5f7d9a1a1e7a023f8638f26bfbf586f6a86 Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Fri, 22 Mar 2019 13:35:29 -0700 Subject: [PATCH] chore: upgrade deps to fix npm audit complaints --- .travis.yml | 1 - package.json | 24 ++++++++++++------------ test/executor.test.js | 2 +- test/helpers/browser.js | 3 ++- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.travis.yml b/.travis.yml index 504c75d..a231ba5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,6 @@ sudo: false language: node_js node_js: - - "4" - "6" - "8" diff --git a/package.json b/package.json index b328208..d721426 100644 --- a/package.json +++ b/package.json @@ -20,29 +20,29 @@ "lint": "eslint ." }, "engines": { - "node": ">=4" + "node": ">=6" }, "license": "MIT", "dependencies": { - "async": "~0.9.0", - "commondir": "0.0.1", - "debug": "^2.0.0", - "lodash": "^4.17.5", - "semver": "^4.1.0", - "strong-globalize": "^2.6.2", - "toposort": "^0.2.10" + "async": "^0.9.2", + "commondir": "^1.0.1", + "debug": "^3.2.6", + "lodash": "^4.17.11", + "semver": "^5.6.0", + "strong-globalize": "^4.1.3", + "toposort": "^2.0.2" }, "devDependencies": { - "browserify": "^4.1.8", "bluebird": "^3.1.1", + "browserify": "^16.2.3", "chai": "^1.10.0", "coffee-script": "^1.8.0", "coffeeify": "^0.7.0", "eslint": "^2.5.3", "eslint-config-loopback": "^1.0.0", - "fs-extra": "^0.12.0", + "fs-extra": "^7.0.1", "loopback": "^2.16.3", - "mocha": "^1.19.0", - "supertest": "^0.14.0" + "mocha": "^6.0.2", + "supertest": "^4.0.2" } } diff --git a/test/executor.test.js b/test/executor.test.js index 40646a2..1cbb5e4 100644 --- a/test/executor.test.js +++ b/test/executor.test.js @@ -237,7 +237,7 @@ describe('executor', function() { it('skips definition of already defined LoopBack models', function() { var builtinModel = { name: 'User', - definition: fs.readJsonFileSync( + definition: fs.readJson( require.resolve('loopback/common/models/user.json') ), config: { dataSource: 'db' }, diff --git a/test/helpers/browser.js b/test/helpers/browser.js index 5580e0f..c063a3a 100644 --- a/test/helpers/browser.js +++ b/test/helpers/browser.js @@ -8,7 +8,8 @@ var vm = require('vm'); function createContext() { var context = { // required by browserify - XMLHttpRequest: function() { throw new Error('not implemented'); }, + XMLHttpRequest: function() {}, + clearTimeout: function() {}, FormData: function() { throw new Error('not implemented'); }, localStorage: {