@webextensions/simpleid
Advanced tools
Comparing version
@@ -1,7 +0,8 @@ | ||
let getRandomValues; | ||
let cryptoLib = null; | ||
if (typeof crypto === 'undefined') { | ||
getRandomValues = require('node:crypto').getRandomValues; | ||
cryptoLib = require('node:crypto'); | ||
} else { | ||
getRandomValues = crypto.getRandomValues; | ||
cryptoLib = crypto; | ||
} | ||
const getRandomValues = cryptoLib.getRandomValues.bind(cryptoLib); | ||
@@ -8,0 +9,0 @@ const pullAll = function (array, valuesToDelete) { |
{ | ||
"name": "@webextensions/simpleid", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Generate simple unique ID strings (simpleid)", | ||
@@ -5,0 +5,0 @@ "engines": { |
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
12436
0.19%243
0.41%0
-100%