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 0.13.1 to 0.14.0

5

CHANGELOG.md
# CHANGELOG - PageXray
version 0.14.0 2016-11-27
------------------------
### Added
* Added breakdown for first vs third party asset content types
version 0.13.1 2016-10-17

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

@@ -105,2 +105,38 @@ 'use strict';

contentType: (asset, myPage) => {
if (myPage.contentTypes === {}) {
// we have a couple of default content types that we always reports
// if we find others, just add them
myPage.contentTypes = {
html: {
transferSize: 0,
contentSize: 0,
headerSize: 0,
requests: 0,
},
css: {
transferSize: 0,
contentSize: 0,
headerSize: 0,
requests: 0,
},
javascript: {
transferSize: 0,
contentSize: 0,
headerSize: 0,
requests: 0,
},
image: {
transferSize: 0,
contentSize: 0,
headerSize: 0,
requests: 0,
},
font: {
transferSize: 0,
contentSize: 0,
headerSize: 0,
requests: 0,
},
};
}
if (asset.status === 200) {

@@ -107,0 +143,0 @@ // TODO how to handle unknown?

39

lib/index.js

@@ -45,36 +45,3 @@ 'use strict';

httpVersion: util.getHTTPVersion(har.log.entries[0].response.httpVersion),
// we have a couple of default content types that we always reports
// if we find others, just add them
contentTypes: {
html: {
transferSize: 0,
contentSize: 0,
headerSize: 0,
requests: 0,
},
css: {
transferSize: 0,
contentSize: 0,
headerSize: 0,
requests: 0,
},
javascript: {
transferSize: 0,
contentSize: 0,
headerSize: 0,
requests: 0,
},
image: {
transferSize: 0,
contentSize: 0,
headerSize: 0,
requests: 0,
},
font: {
transferSize: 0,
contentSize: 0,
headerSize: 0,
requests: 0,
},
},
contentTypes: {},
assets: [],

@@ -84,5 +51,7 @@ responseCodes: {},

cookieStats: new Statistics(),
contentTypes: {},
},
thirdParty: {
cookieStats: new Statistics(),
contentTypes: {},
},

@@ -118,2 +87,3 @@ domains: {},

// is it a third party asset?
let stats = myPage.thirdParty;

@@ -133,2 +103,3 @@

stats.cookieStats.add(asset.cookies);
collect.contentType(asset, stats);
}

@@ -135,0 +106,0 @@

{
"name": "pagexray",
"version": "0.13.1",
"version": "0.14.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