New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@lhci/utils

Package Overview
Dependencies
Maintainers
2
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lhci/utils - npm Package Compare versions

Comparing version 0.1.1-alpha.3 to 0.1.1-alpha.4

4

package.json
{
"name": "@lhci/utils",
"version": "0.1.1-alpha.3",
"version": "0.1.1-alpha.4",
"license": "Apache-2.0",

@@ -15,3 +15,3 @@ "repository": {

},
"gitHead": "4da32a1c9070c11322976f450d93debebff03fff"
"gitHead": "45bf8a61a6b98d760e9cefeabfe1ba847b3718d5"
}

@@ -225,2 +225,17 @@ /**

*/
function getNumericValue(audit) {
if (
typeof audit.numericValue !== 'number' &&
audit.details &&
typeof audit.details.overallSavingsMs === 'number'
) {
return audit.details.overallSavingsMs;
}
return audit.numericValue;
}
/**
* @param {LH.AuditResult} audit
*/
function normalizeNumericValue(audit) {

@@ -231,3 +246,3 @@ if (audit.scoreDisplayMode === 'notApplicable') {

return audit.numericValue;
return getNumericValue(audit);
}

@@ -265,3 +280,6 @@

if (typeof baseAudit.numericValue === 'number' || typeof compareAudit.numericValue === 'number') {
if (
typeof getNumericValue(baseAudit) === 'number' ||
typeof getNumericValue(compareAudit) === 'number'
) {
diffs.push(

@@ -268,0 +286,0 @@ createAuditDiff({

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc