@shopify/performance
Advanced tools
Comparing version 0.0.0-snapshot-20230328183850 to 0.0.0-snapshot-20230329183100
@@ -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": "0.0.0-snapshot-20230328183850", | ||
"version": "0.0.0-snapshot-20230329183100", | ||
"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
87872
1461