lighthouse-badges 1.1.19 → 1.1.20

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.
@@ -22,24 +22,24 @@ jobs:
22
22
 
23
23
  - name: NPM Build
24
24
  run: |
25
- yarn install
26
- yarn run lint
25
+ npm install
26
+ npm run lint
27
27
 
28
28
  - name: Docker Build
29
29
  run: |
30
- yarn run docker:pull
31
- yarn run docker:build
30
+ npm run docker:pull
31
+ npm run docker:build
32
32
 
33
33
  - name: Unit & Integration Test
34
34
  run: |
35
- yarn run test
35
+ npm run test
36
36
  bash <(curl -s https://codecov.io/bash)
37
37
 
38
38
  - name: Node System Test
39
- run: yarn run system-test:light-run
39
+ run: npm run system-test:light-run
40
40
 
41
41
  - name: Docker System Test
42
- run: yarn run docker:system-test:run
42
+ run: npm run docker:system-test:run
43
43
 
44
44
  - name: Deploy to Github Registry
45
45
  if: github.ref == 'refs/heads/master'
@@ -70,7 +70,7 @@ jobs:
70
70
 
71
71
  - name: Deploy to Dockerhub
72
72
  if: github.ref == 'refs/heads/master'
73
- run: echo "$DOCKERHUB_TOKEN" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin ; yarn run docker:push
73
+ run: echo "$DOCKERHUB_TOKEN" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin ; npm run docker:push
74
74
  env:
75
75
  DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
76
76
  DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lighthouse-badges",
3
- "version": "1.1.19",
3
+ "version": "1.1.20",
4
4
  "description": "🚦Generate gh-badges (shields.io) based on Lighthouse performance.",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -44,21 +44,21 @@
44
44
  "argparse": "2.0.1",
45
45
  "badge-maker": "^3.3.1",
46
46
  "clui": "^0.3.6",
47
- "lighthouse": "^9.4.0",
47
+ "lighthouse": "^9.5.0",
48
48
  "ramda": "^0.28.0"
49
49
  },
50
50
  "devDependencies": {
51
- "@babel/core": "^7.17.4",
51
+ "@babel/core": "^7.17.5",
52
52
  "@babel/plugin-transform-runtime": "^7.17.0",
53
53
  "@babel/preset-env": "^7.16.11",
54
54
  "@babel/runtime": "^7.17.0",
55
55
  "babel-jest": "^27.5.0",
56
- "eslint": "^8.9.0",
56
+ "eslint": "^8.10.0",
57
57
  "eslint-config-airbnb-base": "^15.0.0",
58
58
  "eslint-plugin-import": "^2.25.4",
59
59
  "husky": "^7.0.2",
60
60
  "jest": "^27.5.0",
61
- "lint-staged": "^12.3.4",
61
+ "lint-staged": "^12.3.5",
62
62
  "npm-run-all": "^4.1.5"
63
63
  },
64
64
  "jest": {
@@ -21,7 +21,7 @@ const getSquashedScore = async (metrics) => ({
21
21
  lighthouse: R.pipe(
22
22
  R.map((metric) => R.sum(R.values(metric))),
23
23
  R.sum,
24
- R.divide(R.__, R.length(metrics) * R.length(R.keys(R.head(metrics)))),
24
+ (x) => (x / (R.length(metrics) * R.length(R.keys(R.head(metrics))))),
25
25
  R.curry(Math.round),
26
26
  )(metrics),
27
27
  });