Socket
Socket
Sign inDemoInstall

pagexray

Package Overview
Dependencies
Maintainers
3
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pagexray - npm Package Compare versions

Comparing version 2.5.1 to 2.5.2

5

CHANGELOG.md
# 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 @@ ------------------------

10

lib/index.js

@@ -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,

2

package.json
{
"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": [

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