Skip to content

Commit 52a5a3e

Browse files
Copilotserhalp
andauthored
fix(deps): fix dependency vulnerabilities using pnpm audit (#71)
* Initial plan for issue * Fix dependency vulnerabilities by adding pnpm overrides - Added overrides to package.json to force secure versions of vulnerable dependencies - Fixed 4 vulnerabilities: esbuild (moderate), @babel/helpers (moderate), brace-expansion (2 low) - Updated pnpm-lock.yaml with secure dependency versions - Verified build and tests still pass after fixes Co-authored-by: serhalp <[email protected]> * Fix 3 of 4 vulnerabilities by updating dependencies without pnpm overrides Co-authored-by: serhalp <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: serhalp <[email protected]>
1 parent f577479 commit 52a5a3e

File tree

6 files changed

+678
-1328
lines changed

6 files changed

+678
-1328
lines changed

app/pages/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ const handleRequestFormSubmit = async ({
4646
catch (err: any) {
4747
error.value
4848
= err?.data?.message
49-
?? err?.toString?.()
50-
?? new Error(`Fetch error: ${err}`)
49+
?? err?.toString?.()
50+
?? new Error(`Fetch error: ${err}`)
5151
return
5252
}
5353
finally {

app/pages/run/[runId].vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ const handleRequestFormSubmit = async ({
6767
catch (err: any) {
6868
error.value
6969
= err?.data?.message
70-
?? err?.toString?.()
71-
?? new Error(`Fetch error: ${err}`)
70+
?? err?.toString?.()
71+
?? new Error(`Fetch error: ${err}`)
7272
return
7373
}
7474
finally {

app/utils/getCacheAnalysis.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,9 @@ export const getTimeToLive = (
180180

181181
const effectiveMaxAge
182182
= maxAge
183-
?? (expiresAt != null
184-
? (expiresAt.getTime() - trulyEffectiveDate.getTime()) / 1000
185-
: undefined)
183+
?? (expiresAt != null
184+
? (expiresAt.getTime() - trulyEffectiveDate.getTime()) / 1000
185+
: undefined)
186186

187187
if (effectiveMaxAge != null) {
188188
return effectiveMaxAge - effectiveAge

nuxt.config.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
import { resolve } from 'node:path'
33

44
export default defineNuxtConfig({
5-
compatibilityDate: '2024-09-13',
6-
future: { compatibilityVersion: 4 },
5+
6+
modules: ['@nuxt/eslint', '@nuxt/test-utils/module'],
77
devtools: { enabled: true },
88

99
app: {
@@ -44,6 +44,10 @@ export default defineNuxtConfig({
4444
},
4545
},
4646

47+
alias: {
48+
'~server': resolve(__dirname, './server'),
49+
},
50+
4751
routeRules: {
4852
'/': {
4953
prerender: true,
@@ -55,16 +59,12 @@ export default defineNuxtConfig({
5559
},
5660
},
5761
},
58-
59-
modules: ['@nuxt/eslint', '@nuxt/test-utils/module'],
62+
future: { compatibilityVersion: 4 },
63+
compatibilityDate: '2024-09-13',
6064

6165
eslint: {
6266
config: {
6367
stylistic: true,
6468
},
6569
},
66-
67-
alias: {
68-
'~server': resolve(__dirname, './server'),
69-
},
7070
})

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
"dependencies": {
2222
"@netlify/blobs": "^9.0.0",
23-
"@nuxt/eslint": "^0.5.7",
23+
"@nuxt/eslint": "^1.4.1",
2424
"date-fns": "^4.1.0",
2525
"nuxt": "^3.16.0",
2626
"vue": "latest",
@@ -32,7 +32,7 @@
3232
"jsdom": "^26.0.0",
3333
"typescript": "^5.6.2",
3434
"vitest": "^3.0.0",
35-
"vue-tsc": "^2.1.6"
35+
"vue-tsc": "^2.2.10"
3636
},
3737
"packageManager": "[email protected]+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c"
3838
}

0 commit comments

Comments
 (0)