Skip to content

Commit

Permalink
Update dependencies (#229)
Browse files Browse the repository at this point in the history
* Update dependencies

* Linting fix
  • Loading branch information
danielburnley authored Aug 3, 2023
1 parent f39b819 commit 12772c1
Show file tree
Hide file tree
Showing 10 changed files with 776 additions and 679 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
"extends": ["airbnb-base", "plugin:prettier/recommended"],

"rules": {
"no-empty-function": ["error", { "allow": ["constructors"] }],
"no-unused-vars": [
1,
{
Expand Down
1,413 changes: 755 additions & 658 deletions package-lock.json

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
"@types/csurf": "^1.11.2",
"@types/express-session": "^1.17.7",
"@types/http-errors": "^2.0.1",
"@types/jest": "^29.5.2",
"@types/jest": "^29.5.3",
"@types/jsonwebtoken": "^9.0.2",
"@types/node": "^18.16.0",
"@types/nunjucks": "^3.2.3",
Expand All @@ -145,33 +145,33 @@
"@types/superagent": "^4.1.18",
"@types/supertest": "^2.0.12",
"@types/uuid": "^9.0.2",
"@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.61.0",
"@typescript-eslint/eslint-plugin": "^6.2.1",
"@typescript-eslint/parser": "^6.2.1",
"audit-ci": "^6.6.1",
"concurrently": "^8.2.0",
"cookie-session": "^2.0.0",
"cypress": "12.17.0",
"cypress": "12.17.3",
"cypress-multi-reporters": "^1.6.3",
"dotenv": "^16.3.1",
"eslint": "^8.44.0",
"eslint": "^8.46.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.8.0",
"eslint-config-prettier": "^8.9.0",
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-plugin-cypress": "^2.13.3",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.3",
"jest": "^29.6.1",
"jest": "^29.6.2",
"jest-html-reporter": "^3.10.1",
"jest-junit": "^16.0.0",
"jsonwebtoken": "^9.0.1",
"lint-staged": "^13.2.3",
"mocha-junit-reporter": "^2.2.0",
"nock": "^13.3.1",
"nodemon": "^2.0.22",
"mocha-junit-reporter": "^2.2.1",
"nock": "^13.3.2",
"nodemon": "^3.0.1",
"prettier": "^2.8.8",
"prettier-plugin-jinja-template": "^0.5.0",
"sass": "^1.63.6",
"sass": "^1.64.2",
"supertest": "^6.3.3",
"ts-jest": "^29.1.1",
"typescript": "^5.1.6"
Expand Down
3 changes: 1 addition & 2 deletions server/app.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import express from 'express'

import path from 'path'
import express from 'express'

import nunjucksSetup from './utils/nunjucksSetup'
import errorHandler from './errorHandler'
Expand Down
2 changes: 1 addition & 1 deletion server/data/hmppsAuthClient.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import superagent from 'superagent'
import { URLSearchParams } from 'url'
import superagent from 'superagent'

import type TokenStore from './tokenStore'
import logger from '../../logger'
Expand Down
4 changes: 2 additions & 2 deletions server/data/restClient.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Readable } from 'stream'
import superagent from 'superagent'
import Agent, { HttpsAgent } from 'agentkeepalive'
import { Readable } from 'stream'

import logger from '../../logger'
import sanitiseError from '../sanitisedError'
Expand Down Expand Up @@ -125,7 +125,7 @@ export default class RestClient {
reject(error)
} else if (response) {
const s = new Readable()
// eslint-disable-next-line no-underscore-dangle,@typescript-eslint/no-empty-function
// eslint-disable-next-line no-underscore-dangle,no-empty-function
s._read = () => {}
s.push(response.body)
s.push(null)
Expand Down
2 changes: 1 addition & 1 deletion server/middleware/setUpWebSecurity.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import crypto from 'crypto'
import express, { Router, Request, Response, NextFunction } from 'express'
import helmet from 'helmet'
import crypto from 'crypto'

export default function setUpWebSecurity(): Router {
const router = express.Router()
Expand Down
2 changes: 1 addition & 1 deletion server/routes/common/api.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Request, RequestHandler, Response } from 'express'
import path from 'path'
import { Request, RequestHandler, Response } from 'express'
import OffenderService from '../../services/offenderService'

const placeHolderImage = path.join(process.cwd(), '/assets/images/prisoner-profile-image.png')
Expand Down
2 changes: 1 addition & 1 deletion server/routes/testutils/appSetup.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import path from 'path'
import express, { Express } from 'express'
import cookieSession from 'cookie-session'
import createError from 'http-errors'
import path from 'path'

import routes from '../index'
import nunjucksSetup from '../../utils/nunjucksSetup'
Expand Down
2 changes: 1 addition & 1 deletion server/utils/nunjucksSetup.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable no-param-reassign */
import * as pathModule from 'path'
import nunjucks from 'nunjucks'
import express from 'express'
import * as pathModule from 'path'
import {
addressToLines,
findError,
Expand Down

0 comments on commit 12772c1

Please sign in to comment.