header-generator
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -69,5 +69,5 @@ "use strict"; | ||
}); | ||
(0, ow_1.default)(options, 'HeaderGeneratorOptions', ow_1.default.object.exactShape(exports.headerGeneratorOptionsShape)); | ||
(0, ow_1.default)(options, 'HeaderGeneratorOptions', ow_1.default.object.partialShape(exports.headerGeneratorOptionsShape)); | ||
// Use a default setup when the necessary values are not provided | ||
const { browsers = constants_1.SUPPORTED_BROWSERS, operatingSystems = constants_1.SUPPORTED_OPERATING_SYSTEMS, devices = [constants_1.SUPPORTED_DEVICES[0]], locales = ['en-US'], httpVersion = '2', browserListQuery = '', } = options; | ||
const { browsers = constants_1.SUPPORTED_BROWSERS, operatingSystems = constants_1.SUPPORTED_OPERATING_SYSTEMS, devices = ['desktop'], locales = ['en-US'], httpVersion = '2', browserListQuery = '', } = options; | ||
this.globalOptions = { | ||
@@ -74,0 +74,0 @@ browsers: this._prepareBrowsersConfig(browsers, browserListQuery, httpVersion), |
{ | ||
"name": "header-generator", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "NodeJS package for generating realistic browser-like HTTP headers.", | ||
@@ -27,3 +27,3 @@ "author": { | ||
"browserslist": "^4.21.1", | ||
"generative-bayesian-network": "^2.1.0", | ||
"generative-bayesian-network": "^2.1.1", | ||
"ow": "^0.28.1", | ||
@@ -46,3 +46,3 @@ "tslib": "^2.4.0" | ||
}, | ||
"gitHead": "e8d1869ed2d0bda0b6aeabe4339de6378013cf25" | ||
"gitHead": "732b9e394be58a0c7e9fbbc2e389502ef2d51db9" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
203311