@shopify/performance
Advanced tools
Comparing version 3.2.5 to 4.0.0
@@ -93,4 +93,4 @@ 'use strict'; | ||
return events.filter(({ | ||
duration | ||
}) => duration === 0).length / events.length; | ||
metadata | ||
}) => Boolean(metadata === null || metadata === void 0 ? void 0 : metadata.cached)).length / events.length; | ||
} | ||
@@ -97,0 +97,0 @@ |
@@ -96,3 +96,4 @@ 'use strict'; | ||
name: entry.name, | ||
size: entry.encodedBodySize | ||
size: entry.encodedBodySize, | ||
cached: entry.transferSize === 0 && entry.decodedBodySize > 0 | ||
} | ||
@@ -99,0 +100,0 @@ }, { |
@@ -62,2 +62,3 @@ export declare enum EventType { | ||
size?: number; | ||
cached?: boolean; | ||
}; | ||
@@ -70,2 +71,3 @@ } | ||
size?: number; | ||
cached?: boolean; | ||
}; | ||
@@ -72,0 +74,0 @@ } |
{ | ||
"name": "@shopify/performance", | ||
"version": "3.2.5", | ||
"version": "4.0.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Primitives for collecting browser performance metrics", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
87848
1461