Skip to content

Commit

Permalink
Upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinovantes committed Apr 3, 2024
1 parent a3a4b53 commit 3fbc688
Show file tree
Hide file tree
Showing 5 changed files with 1,125 additions and 1,027 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ module.exports = {
'no-trailing-spaces': 'error',
'space-before-blocks': ['error', 'always'],
'space-before-function-paren': ['error', 'never'],
'n/prefer-node-protocol': ['error'],
indent: ['error', 4, {
SwitchCase: 1,
}],
Expand Down
2 changes: 1 addition & 1 deletion example/src/entryClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ async function main() {
app.mount('#app')
}

main().catch((err) => {
main().catch((err: unknown) => {
console.warn(err)
})
6 changes: 4 additions & 2 deletions example/src/entryServer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from 'node:assert'
import http from 'http'
import http from 'node:http'
import path from 'node:path'
import { renderToString } from '@vue/server-renderer'
import express from 'express'
Expand Down Expand Up @@ -31,7 +31,9 @@ app.use(DEFINE.PUBLIC_PATH, express.static(DEFINE.CLIENT_DIST_DIR))

function createAsyncHandler(handler: (req: express.Request, res: express.Response, next: express.NextFunction) => Promise<void>): express.RequestHandler {
return (req, res, next) => {
handler(req, res, next).catch(next)
handler(req, res, next).catch((err: unknown) => {
next(err)
})
}
}

Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
"@types/node": "^20.7.0",
"@types/webpack": "^5.28.0",
"@types/webpack-bundle-analyzer": "^4.4.1",
"@typescript-eslint/eslint-plugin": "^6.7.3",
"@typescript-eslint/parser": "^6.7.3",
"@typescript-eslint/eslint-plugin": "^7.5.0",
"@typescript-eslint/parser": "^7.5.0",
"copy-webpack-plugin": "^12.0.2",
"cross-env": "^7.0.3",
"css-loader": "^6.7.1",
Expand All @@ -56,7 +56,7 @@
"eslint-config-standard": "^17.0.0",
"eslint-import-resolver-typescript": "^3.5.3",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-n": "^16.1.0",
"eslint-plugin-n": "^17.0.0-6",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-vue": "^9.9.0",
Expand All @@ -74,8 +74,8 @@
"vue": "^3.2.33",
"vue-loader": "^17.0.0",
"vue-router": "^4.0.14",
"vue-ssr-assets-plugin": "^0.3.2",
"vue-tsc": "^1.8.15",
"vue-ssr-assets-plugin": "^0.4.0",
"vue-tsc": "^2.0.7",
"webpack": "^5.72.0",
"webpack-bundle-analyzer": "^4.5.0",
"webpack-cli": "^5.0.1",
Expand Down
Loading

0 comments on commit 3fbc688

Please sign in to comment.