Comparing version 0.13.1 to 0.14.0
# 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? |
@@ -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": [ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
24588
499
1