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

header-generator

Package Overview
Dependencies
Maintainers
2
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

header-generator - npm Package Compare versions

Comparing version 0.0.1-beta.2 to 0.0.1-beta.3

4

package.json
{
"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 @@

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