Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.1.0 to 2.2.0

5

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

14

lib/collect.js

@@ -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": [

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