Comparing version 2.1.0 to 2.2.0
# CHANGELOG - PageXray | ||
version 2.2.0 2018-03-19 | ||
------------------------ | ||
### Added | ||
* Adding totalTime to results for each asset and domain [#59](https://github.com/sitespeedio/pagexray/pull/59). | ||
version 2.1.0 2018-02-01 | ||
@@ -4,0 +9,0 @@ ------------------------ |
@@ -32,2 +32,3 @@ 'use strict'; | ||
}; | ||
content.totalTime = 0; | ||
return content; | ||
@@ -50,3 +51,2 @@ } | ||
const responseHeaders = headers.flatten(response.headers); | ||
const timings = { | ||
@@ -61,2 +61,10 @@ blocked: getTiming(entry, 'blocked'), | ||
const totalTime = | ||
timings.blocked + | ||
timings.dns + | ||
timings.connect + | ||
timings.send + | ||
timings.wait + | ||
timings.receive; | ||
return { | ||
@@ -77,2 +85,3 @@ type: contentType, | ||
}, | ||
totalTime, | ||
timings, | ||
@@ -94,3 +103,2 @@ cookies: request.cookies.length | ||
const contentData = domains[domain] || newContentDataWithTimings(); | ||
contentData.transferSize += asset.transferSize; | ||
@@ -100,3 +108,3 @@ contentData.contentSize += asset.contentSize; | ||
contentData.requests += 1; | ||
contentData.totalTime += asset.totalTime; | ||
contentData.timings.blocked += asset.timings.blocked; | ||
@@ -103,0 +111,0 @@ contentData.timings.dns += asset.timings.dns; |
{ | ||
"name": "pagexray", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "Xray your HAR file and know all about the page", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
35148
673