This commit is contained in:
Peter Hedenskog 2021-11-28 21:40:27 +01:00 committed by GitHub
parent b79c17d888
commit c78c6f9919
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 10 additions and 11 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -74,7 +74,7 @@ module.exports = {
const greenDomainJSONpath = path.join(
__dirname,
'data',
'url2green.json'
'url2green.json.gz'
);
let hostingGreenCheck;

View File

@ -7,7 +7,7 @@ module.exports = {
if (grams === 0) return '0';
else if (grams === undefined) return 0;
else if (grams < kg) {
return Number(grams).toFixed(2) + ' grams';
return Number(grams).toFixed(4) + ' grams';
} else {
return Number(grams / kg).toFixed(3) + ' kg';
}

14
npm-shrinkwrap.json generated
View File

@ -10,7 +10,7 @@
"license": "MIT",
"dependencies": {
"@google-cloud/storage": "5.8.3",
"@tgwf/co2": "0.6.1",
"@tgwf/co2": "0.8.0",
"aws-sdk": "2.882.0",
"axe-core": "4.3.5",
"browsertime": "14.11.0",
@ -1015,9 +1015,9 @@
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
},
"node_modules/@tgwf/co2": {
"version": "0.6.1",
"resolved": "https://registry.npmjs.org/@tgwf/co2/-/co2-0.6.1.tgz",
"integrity": "sha512-1VQrbEC3qlp76+wdrHhDALeFTr5tyaovCWAQ9ZhSovbhVK9Zhapz3LR6HbG0gHWt8hGv1/PpfnhDa0ywu9uObQ==",
"version": "0.8.0",
"resolved": "https://registry.npmjs.org/@tgwf/co2/-/co2-0.8.0.tgz",
"integrity": "sha512-vN08Vf3ziOuaZ8MQM+rO3g9T5kPg2ygp6uE7GgLwkd7TvoIX10Zw3G1ouZtwxY5wy0oXuMRN6X3OGcrP1YGSVA==",
"dependencies": {
"debug": "^4.1.1"
}
@ -8258,9 +8258,9 @@
}
},
"@tgwf/co2": {
"version": "0.6.1",
"resolved": "https://registry.npmjs.org/@tgwf/co2/-/co2-0.6.1.tgz",
"integrity": "sha512-1VQrbEC3qlp76+wdrHhDALeFTr5tyaovCWAQ9ZhSovbhVK9Zhapz3LR6HbG0gHWt8hGv1/PpfnhDa0ywu9uObQ==",
"version": "0.8.0",
"resolved": "https://registry.npmjs.org/@tgwf/co2/-/co2-0.8.0.tgz",
"integrity": "sha512-vN08Vf3ziOuaZ8MQM+rO3g9T5kPg2ygp6uE7GgLwkd7TvoIX10Zw3G1ouZtwxY5wy0oXuMRN6X3OGcrP1YGSVA==",
"requires": {
"debug": "^4.1.1"
},

View File

@ -71,7 +71,7 @@
"main": "./lib/sitespeed.js",
"dependencies": {
"@google-cloud/storage": "5.8.3",
"@tgwf/co2": "0.6.1",
"@tgwf/co2": "0.8.0",
"aws-sdk": "2.882.0",
"axe-core": "4.3.5",
"browsertime": "14.11.0",