Comparing version 2.5.1 to 2.5.2
# CHANGELOG - PageXray | ||
version 2.5.2 2019-01.09 | ||
------------------------ | ||
### Fixed | ||
* If the HAR contains a URL for a page, use that URL (to get the right URL for a SPA) [#69](https://github.com/sitespeedio/pagexray/pull/69) | ||
version 2.5.1 2018-12-17 | ||
@@ -4,0 +9,0 @@ ------------------------ |
@@ -87,2 +87,3 @@ 'use strict'; | ||
const pageTimings = {}; | ||
const pageUrls = {}; | ||
for (let page of har.log.pages) { | ||
@@ -94,2 +95,7 @@ const pageStartTime = new Date(page.startedDateTime).getTime(); | ||
}; | ||
// Browsertime adds the URL to make sure we use the browsers URL | ||
// for SPA:s | ||
if (page._url) { | ||
pageUrls[page.id] = page._url; | ||
} | ||
} | ||
@@ -111,3 +117,5 @@ entries.forEach(entry => { | ||
currentPage = { | ||
url: entry.request.url, | ||
url: pageUrls[entry.pageref] | ||
? pageUrls[entry.pageref] | ||
: entry.request.url, | ||
meta: { browser: {}, startedDateTime: entry.startedDateTime }, | ||
@@ -114,0 +122,0 @@ finalUrl, |
{ | ||
"name": "pagexray", | ||
"version": "2.5.1", | ||
"version": "2.5.2", | ||
"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
38530
732