header-generator
Advanced tools
Comparing version 1.1.0-beta.0 to 1.1.0-beta.1
{ | ||
"name": "header-generator", | ||
"version": "1.1.0-beta.0", | ||
"version": "1.1.0-beta.1", | ||
"description": "NodeJs package for generating browser-like headers.", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -118,2 +118,6 @@ const { BayesianNetwork } = require('generative-bayesian-network'); | ||
if (!browser) { | ||
return []; | ||
} | ||
return headersOrder[browser]; | ||
@@ -120,0 +124,0 @@ } |
@@ -14,2 +14,6 @@ const getUserAgent = (headers) => { | ||
const getBrowser = (userAgent) => { | ||
if (!userAgent) { | ||
return; | ||
} | ||
let browser; | ||
@@ -16,0 +20,0 @@ if (userAgent.includes('Firefox')) { |
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
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
5404743
1412