gardr-validator
Advanced tools
Comparing version 0.0.11 to 0.0.12
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 @@ |
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
2
149277
2337
+ Addedaws-sign2@0.5.0(transitive)
+ Addedhoek@1.2.0(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedrequest@2.29.0(transitive)
+ Addedtough-cookie@0.9.15(transitive)
- Removedaws-sign@0.3.0(transitive)
- Removedcookie-jar@0.3.0(transitive)
- Removedhoek@1.1.2(transitive)
- Removedrequest@2.27.0(transitive)
Updatedhoek@~1.2.0
Updatedrequest@~2.29.0