Skip to content

Commit 0f2b9a5

Browse files
committed
update koa packages
1 parent 278f673 commit 0f2b9a5

File tree

4 files changed

+110
-81
lines changed

4 files changed

+110
-81
lines changed

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,16 @@
3636
"vitest": "^3.0.4"
3737
},
3838
"dependencies": {
39-
"@koa/bodyparser": "^5.0.0",
40-
"@koa/cors": "^4.0.0",
41-
"@koa/router": "^12.0.0",
39+
"@koa/bodyparser": "^6.0.0",
40+
"@koa/cors": "^5.0.0",
41+
"@koa/router": "^15.1.0",
4242
"@ldhop/core": "^1.0.0-alpha.1",
4343
"@solid/access-token-verifier": "^2.0.5",
4444
"@types/co-body": "^6.1.3",
4545
"@types/jsonwebtoken": "^9.0.10",
46-
"@types/koa": "^2.13.7",
46+
"@types/koa": "^3.0.1",
4747
"@types/koa-static": "^4.0.3",
48-
"@types/koa__cors": "^4.0.1",
48+
"@types/koa__cors": "^5.0.1",
4949
"@types/koa__router": "^12.0.0",
5050
"@types/lodash": "^4.14.196",
5151
"@types/n3": "^1.16.0",
@@ -54,17 +54,17 @@
5454
"ajv": "^8.12.0",
5555
"ajv-formats": "^2.1.1",
5656
"css-authn": "^0.4.0",
57-
"dotenv": "^16.0.0",
57+
"dotenv": "^17.2.3",
5858
"handlebars": "^4.7.8",
5959
"helmet": "^8.1.0",
6060
"jsonwebtoken": "^9.0.3",
6161
"juice": "^10.0.0",
62-
"koa": "^2.14.2",
63-
"koa-helmet": "^7.0.2",
62+
"koa": "^3.1.1",
63+
"koa-helmet": "^8.0.3",
6464
"koa-static": "^5.0.0",
6565
"lodash": "^4.17.21",
6666
"n3": "^1.17.0",
67-
"nodemailer": "^6.9.4",
67+
"nodemailer": "^7.0.11",
6868
"rdf-namespaces": "^1.16.0",
6969
"typescript": "^5.1.6"
7070
},

src/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ router
7272
)
7373

7474
app
75-
.use(helmet())
75+
.use(helmet.default())
7676
.use(cors())
7777
.use(
7878
bodyParser({

src/test/integration-start.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import fetch from 'cross-fetch'
2-
import Mail from 'nodemailer/lib/mailer'
2+
import type { SendMailOptions } from 'nodemailer'
33
import {
44
afterEach,
55
beforeEach,
@@ -14,7 +14,7 @@ import * as mailerService from '../services/mailerService.js'
1414
import { authenticatedFetch, otherAuthenticatedFetch } from './setup.js'
1515

1616
describe('Initialize email integration via /init', () => {
17-
let sendMailSpy: MockInstance<(options: Mail.Options) => Promise<void>>
17+
let sendMailSpy: MockInstance<(options: SendMailOptions) => Promise<void>>
1818

1919
beforeEach(() => {
2020
sendMailSpy = vi.spyOn(mailerService, 'sendMail')

0 commit comments

Comments
 (0)