Skip to content

Commit

Permalink
Pupil-api: Update dependencies (#1796)
Browse files Browse the repository at this point in the history
* Update dependencies

* Update test for X-XSS-Protection
  • Loading branch information
jon-shipley authored Jan 12, 2021
1 parent acc73d5 commit 37402d6
Show file tree
Hide file tree
Showing 4 changed files with 1,248 additions and 1,175 deletions.
9 changes: 4 additions & 5 deletions pupil-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,20 @@
"@azure/service-bus": "^1.1.1",
"applicationinsights": "^1.0.8",
"azure-storage": "^2.10.1",
"bluebird": "^3.7.2",
"body-parser": "^1.18.2",
"cors": "^2.8.4",
"dotenv": "^8.1.0",
"express": "^4.16.2",
"express-winston": "^4.0.2",
"feature-toggles": "^1.4.0",
"helmet": "^3.21.2",
"helmet": "^4.3.1",
"ioredis": "^4.15.1",
"ioredis-ratelimit": "^2.0.1",
"moment": "^2.22.1",
"morgan": "^1.9.0",
"ramda": "^0.27.0",
"to-bool": "0.0.1",
"uuid": "^3.3.2",
"uuid": "^8.3.2",
"winston": "^3.2.1",
"winston-azure-application-insights": "^2.0.0"
},
Expand All @@ -52,11 +51,11 @@
"gulp": "^4.0.2",
"jest": "^26.1.0",
"node-mocks-http": "^1.7.0",
"standard": "^14.3.1",
"standard": "^16.0.3",
"swagger-ui-express": "^4.0.1",
"ts-jest": "^26.1.3",
"tslint": "^6.0.0",
"tslint-config-standard": "^9.0.0",
"typescript": "^3.8.2"
"typescript": "^4.1.3"
}
}
4 changes: 2 additions & 2 deletions pupil-api/src/App.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import * as express from 'express'
import * as bodyParser from 'body-parser'
import * as cors from 'cors'
import * as helmet from 'helmet'
import * as uuidV4 from 'uuid/v4'
import { v4 as uuidv4 } from 'uuid'
import * as appInsights from './helpers/app-insights'
const corsOptions = require('./helpers/cors-options')
const setupLogging = require('./helpers/logger')
Expand Down Expand Up @@ -112,7 +112,7 @@ class App {

// error handler
this.express.use(function (err, req, res, next) {
const errorId = uuidV4()
const errorId = uuidv4()
// only providing error information in development
// @TODO: change this to a real logger with an error string that contains
// all pertinent information. Assume 2nd/3rd line support would pick this
Expand Down
Loading

0 comments on commit 37402d6

Please sign in to comment.