header-generator
Advanced tools
Comparing version 0.0.1-beta.2 to 0.0.1-beta.3
{ | ||
"name": "header-generator", | ||
"version": "0.0.1-beta.2", | ||
"version": "0.0.1-beta.3", | ||
"description": "NodeJs package for generating browser-like headers.", | ||
@@ -17,3 +17,3 @@ "author": { | ||
"dependencies": { | ||
"generative-bayesian-network": "0.1.0-beta.1", | ||
"bayesian-network": "git+https://github.com/apify/generative-bayesian-network.git#main", | ||
"ow": "^0.23.0" | ||
@@ -20,0 +20,0 @@ }, |
@@ -1,2 +0,2 @@ | ||
const { BayesianNetwork } = require('generative-bayesian-network'); | ||
const { BayesianNetwork } = require('bayesian-network'); | ||
const { default: ow } = require('ow'); | ||
@@ -40,18 +40,6 @@ | ||
*/ | ||
function getRandomInteger(minimum, maximum) { | ||
return minimum + Math.floor(Math.random() * (maximum - minimum + 1)); | ||
} | ||
/* | ||
* @private | ||
*/ | ||
function shuffleArray(array) { | ||
if (array.length > 1) { | ||
for (let x = 0; x < array.length; x++) { | ||
const position1 = getRandomInteger(0, array.length - 1); | ||
const position2 = getRandomInteger(0, array.length - 1); | ||
const holder = array[position1]; | ||
array[position1] = array[position2]; | ||
array[position2] = holder; | ||
} | ||
for (let i = array.length - 1; i > 0; i--) { | ||
const j = Math.floor(Math.random() * (i + 1)); | ||
[array[i], array[j]] = [array[j], array[i]]; | ||
} | ||
@@ -58,0 +46,0 @@ |
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
Git dependency
Supply chain riskContains a dependency which resolves to a remote git URL. Dependencies fetched from git URLs are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
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
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
4039815
351
1
1