phantomas 2.5.0 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/Dockerfile +9 -3
  2. package/package.json +2 -2
package/Dockerfile CHANGED
@@ -41,9 +41,15 @@ COPY package.json .
41
41
  COPY package-lock.json .
42
42
  RUN npm ci
43
43
 
44
- # TODO: find the chrome binary and symlink it to the PATH
45
- RUN ldd $(find . -wholename '*chrome-linux/chrome') && \
46
- $(find . -wholename '*chrome-linux/chrome') --version
44
+ # find the chrome binary and symlink it to the PATH
45
+ # e.g. ./.cache/puppeteer/chrome/linux-112.0.5615.121/chrome-linux64/chrome
46
+ RUN echo "Chrome found in: " $(find . -wholename '*chrome-linux64/chrome') && \
47
+ ln -s $(find . -wholename '*chrome-linux64/chrome') .
48
+
49
+ ENV PATH ${PATH}":/opt/phantomas"
50
+
51
+ RUN ldd chrome && \
52
+ chrome --version
47
53
 
48
54
  ARG GITHUB_SHA="dev"
49
55
  ENV COMMIT_SHA ${GITHUB_SHA}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phantomas",
3
- "version": "2.5.0",
3
+ "version": "2.6.0",
4
4
  "author": "macbre <maciej.brencz@gmail.com> (http://macbre.net)",
5
5
  "description": "Headless Chromium-based web performance metrics collector and monitoring tool",
6
6
  "main": "./lib/index.js",
@@ -33,7 +33,7 @@
33
33
  "decamelize": "^5.0.0",
34
34
  "fast-stats": "0.0.6",
35
35
  "js-yaml": "^4.0.0",
36
- "puppeteer": "^14.4.1"
36
+ "puppeteer": "^20.0.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@jest/globals": "^28.0.0",