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 4.1.0 to 4.2.0

5

CHANGELOG.md
# CHANGELOG - PageXray
version 4.2.0 2021-05-28
------------------------
### Added
* Attach info about render blocking assets coming/working in Chrome 92 [#104](https://github.com/sitespeedio/pagexray/pull/104).
version 4.1.0 2021-04-08

@@ -4,0 +9,0 @@ ------------------------

7

lib/collect.js

@@ -68,3 +68,3 @@ 'use strict';

const requestHeaders = headers.flatten(request.headers);
return {
const asset = {
type: contentType,

@@ -93,2 +93,7 @@ url: request.url,

};
if (entry._renderBlocking) {
asset.renderBlocking = entry._renderBlocking;
}
return asset;
},

@@ -95,0 +100,0 @@

@@ -192,2 +192,16 @@ 'use strict';

if (asset.renderBlocking) {
if (!currentPage.renderBlocking) {
currentPage.renderBlocking = {
blocking: 0,
potentiallyBlocking: 0
};
}
if (asset.renderBlocking === 'potentially_blocking') {
currentPage.renderBlocking.potentiallyBlocking += 1;
} else if (asset.renderBlocking === 'blocking') {
currentPage.renderBlocking.blocking += 1;
}
}
currentPage.transferSize += entry.response.bodySize;

@@ -194,0 +208,0 @@ currentPage.contentSize +=

2

package.json
{
"name": "pagexray",
"version": "4.1.0",
"version": "4.2.0",
"description": "Xray your HAR file and know all about the page",

@@ -5,0 +5,0 @@ "keywords": [

@@ -44,3 +44,6 @@ # PageXray

let pages = pagexray.convert(har);
const pages = pagexray.convert(har);
// Or ofyou want to include the each asset information
// const pages = pagexray.convert(har, {includeAssets: true});
console.log(pages)

@@ -47,0 +50,0 @@ ```

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