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.0.1 to 2.0.2

5

CHANGELOG.md
# CHANGELOG - PageXray
version 2.0.2 2017-12-27
------------------------
### Fixed
* Fixed infinite loop for getting redirects URLs [#50](https://github.com/sitespeedio/pagexray/issues/50).
version 2.0.1 2017-12-19

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

13

lib/util.js

@@ -89,12 +89,17 @@ 'use strict';

}, {});
let nextUrl = redirections[url];
// Fixes https://github.com/sitespeedio/pagexray/issues/50
// for now
redirections[url] = undefined;
while (nextUrl) {
chain.push(nextUrl);
nextUrl = redirections[nextUrl];
// Right now we aren't the best in the world to handle redirects back
// and forth to the same page but it's kind of an edge case with redirects
// like:
// hepp --> hopp --> hepp --> happ --> hepp --> hipp
// https://github.com/sitespeedio/pagexray/issues/50
redirections[url] = undefined;
}
const finalUrl = chain.length > 0 ? chain[chain.length - 1] : url;
return {

@@ -101,0 +106,0 @@ finalUrl,

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