chore: upgrade deps to fix npm audit complaints

This commit is contained in:
Raymond Feng 2019-03-22 13:35:29 -07:00
parent 2746bf5bde
commit 97a0636ca4
6 changed files with 7247 additions and 15 deletions

1
.npmrc Normal file
View File

@ -0,0 +1 @@
package-lock=true

View File

@ -1,7 +1,6 @@
sudo: false
language: node_js
node_js:
- "4"
- "6"
- "8"

7231
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -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": "^2.6.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"
}
}

View File

@ -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' },

View File

@ -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: {