@ahmedrangel/rand-user-agent
Advanced tools
Comparing version 2.0.0 to 2.0.1
import { JSONfrequencyNormalize, JSONIsFrequency, JSONinterval, randomElement } from "./helpers.js"; | ||
import { createRequire } from "module"; | ||
const require = createRequire(import.meta.url); | ||
const data = require("./data/user-agents.json"); | ||
import data from "./data/user-agents.js"; | ||
export const randUA = (device, browser = null, os = null) => { | ||
@@ -6,0 +4,0 @@ let content = data; |
{ | ||
"name": "@ahmedrangel/rand-user-agent", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "This is an adapted version of rand-user-agent specifically designed for environments lacking access to server file systems (fs), such as Cloudflare Workers.", | ||
@@ -5,0 +5,0 @@ "exports": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
AI-detected potential security risk
Supply chain riskAI has determined that this package may contain potential security issues or vulnerabilities.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
1232177
11
7217
1
1