lighthouse-reporting
Advanced tools
Comparing version 1.6.5 to 1.6.6
@@ -39,5 +39,6 @@ import path from "path"; | ||
}; | ||
const getScores = (result) => Object.entries(result.lhr.categories).filter((c) => typeof c[1].score === "number").reduce( | ||
const getScores = (result) => Object.entries(result.lhr.categories).reduce( | ||
(prev, [key, c]) => { | ||
prev[key] = Math.floor(c.score * 100); | ||
const score = typeof c.score === "number" ? c.score : 0; | ||
prev[key] = Math.floor(score * 100); | ||
return prev; | ||
@@ -44,0 +45,0 @@ }, |
{ | ||
"name": "lighthouse-reporting", | ||
"version": "1.6.5", | ||
"version": "1.6.6", | ||
"type": "module", | ||
@@ -33,5 +33,5 @@ "scripts": { | ||
"@types/fs-extra": "^11.0.4", | ||
"@types/node": "^20.11.6", | ||
"@typescript-eslint/eslint-plugin": "^6.19.1", | ||
"@typescript-eslint/parser": "^6.19.1", | ||
"@types/node": "^20.11.16", | ||
"@typescript-eslint/eslint-plugin": "^6.20.0", | ||
"@typescript-eslint/parser": "^6.20.0", | ||
"eslint": "^8.56.0", | ||
@@ -41,3 +41,3 @@ "eslint-config-prettier": "^9.1.0", | ||
"get-port": "^7.0.0", | ||
"husky": "^8.0.3", | ||
"husky": "^9.0.10", | ||
"npm-run-all": "^4.1.5", | ||
@@ -48,3 +48,3 @@ "prettier": "^3.2.4", | ||
"vite": "^5.0.12", | ||
"vite-plugin-static-copy": "^1.0.0" | ||
"vite-plugin-static-copy": "^1.0.1" | ||
}, | ||
@@ -51,0 +51,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
51608
897