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

gardr-validator

Package Overview
Dependencies
Maintainers
4
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gardr-validator - npm Package Compare versions

Comparing version 0.0.11 to 0.0.12

4

lib/phantom/defaults.js
module.exports = {
headers: {

@@ -10,4 +9,3 @@ 'Cache-Control': 'no-cache',

pageRunTime: 10000,
userAgent: 'Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26 \
(KHTML, like Gecko) Version/6.0 Mobile/10A5355d Safari/8536.25'
userAgent: 'Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5355d Safari/8536.25'
};

@@ -157,4 +157,3 @@ var async = require('async');

var userAgent = 'Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5355d Safari/8536.25';
module.exports = function (harvested, report, nextValidator) {
module.exports = function (harvested, report, nextValidator, options) {

@@ -171,3 +170,3 @@ if (!harvested.harInput) {

'Accept-Encoding': 'gzip',
'User-Agent': userAgent
'User-Agent': options.userAgent
},

@@ -179,3 +178,3 @@ 'encoding': null

headers: {
'User-Agent': userAgent
'User-Agent': options.userAgent
},

@@ -182,0 +181,0 @@ 'encoding': null

@@ -1,2 +0,2 @@

/* jshint: */
/* */

@@ -9,3 +9,3 @@ var createHAR = require('../../createHAR.js');

module.exports = {
validate: function (harvested, report, next) {
validate: function (harvested) {

@@ -33,5 +33,4 @@ function filterHttp(entry) {

processResources(harvested, report, next);
processResources.apply(this, Array.prototype.slice.call(arguments));
}
};
{
"name": "gardr-validator",
"version": "0.0.11",
"version": "0.0.12",
"main": "index.js",

@@ -15,8 +15,8 @@ "scripts": {

"async": "~0.2.9",
"hoek": "~1.1.1",
"hoek": "~1.2.0",
"moment": "~2.4.0",
"request": "~2.27.0"
"request": "~2.29.0"
},
"devDependencies": {
"mocha": "~1.13.0",
"mocha": "~1.15.0",
"proxyquire": "~0.5.1",

@@ -23,0 +23,0 @@ "buster-assertions": "~0.10.4",

@@ -66,3 +66,3 @@ var http = require('http');

done();
});
}, {});
});

@@ -167,3 +167,3 @@

done();
});
}, {});
});

@@ -170,0 +170,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