Skip to content

Commit bd6beab

Browse files
committed
fix: update deps and add resolutions for vulnerabilities
1 parent c398b6b commit bd6beab

File tree

4 files changed

+2084
-1000
lines changed

4 files changed

+2084
-1000
lines changed

package.json

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@
2424
"license": "MIT",
2525
"dependencies": {
2626
"chalk": "^4.1.0",
27-
"chrome-launcher": "^0.15.0",
27+
"chrome-launcher": "^1.2.1",
2828
"compression": "^1.7.4",
29-
"dotenv": "^16.0.0",
29+
"dotenv": "^17.2.3",
3030
"express": "^4.17.1",
3131
"html-minifier-terser": "^7.2.0",
3232
"lighthouse": "^9.6.3",
33-
"puppeteer": "^24.8.2"
33+
"puppeteer": "^24.29.1"
3434
},
3535
"engines": {
3636
"node": ">=18.14.0"
@@ -47,21 +47,25 @@
4747
"@commitlint/cli": "^17.0.0",
4848
"@commitlint/config-conventional": "^17.0.0",
4949
"cypress": "^13.17.0",
50-
"eslint": "^8.32.0",
51-
"eslint-plugin-cypress": "^2.11.2",
52-
"eslint-plugin-import": "^2.27.4",
50+
"eslint": "^8.57.1",
51+
"eslint-plugin-cypress": "^2.15.2",
52+
"eslint-plugin-import": "^2.32.0",
5353
"husky": "^8.0.1",
54-
"jest": "^29.0.0",
54+
"jest": "^30.0.0",
5555
"netlify-plugin-cypress": "^2.2.1",
5656
"prettier": "^2.0.0",
57-
"strip-ansi": "^7.0.1"
57+
"strip-ansi": "^7.1.2"
5858
},
5959
"husky": {
6060
"hooks": {
6161
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
6262
}
6363
},
6464
"resolutions": {
65-
"koa": "^2.15.4"
66-
}
65+
"koa": "^2.15.4",
66+
"ws": "^8.17.1",
67+
"tar-fs": "^2.1.4",
68+
"@koa/cors": "^5.0.0"
69+
},
70+
"packageManager": "[email protected]+sha256.c17d3797fb9a9115bf375e31bfd30058cac6bc9c3b8807a3d8cb2094794b51ca"
6771
}

src/e2e/mocks/chrome-launcher.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
const chromeLauncher = () =>
22
jest.unstable_mockModule('chrome-launcher', () => {
33
return {
4-
default: {
5-
launch: () =>
6-
Promise.resolve({ port: 49920, kill: () => Promise.resolve() }),
7-
},
4+
launch: () =>
5+
Promise.resolve({ port: 49920, kill: () => Promise.resolve() }),
86
};
97
});
108

src/run-lighthouse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import puppeteer from 'puppeteer';
22
import lighthouse from 'lighthouse';
33
import log from 'lighthouse-logger';
4-
import chromeLauncher from 'chrome-launcher';
4+
import * as chromeLauncher from 'chrome-launcher';
55

66
export const getBrowserPath = async () => {
77
const browser = await puppeteer.launch({

0 commit comments

Comments
 (0)