New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

get-random-values

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-random-values - npm Package Compare versions

Comparing version 1.2.2 to 2.0.0

6

index.js

@@ -0,4 +1,10 @@

/** @type {Window} */
var window = require('global/window');
var nodeCrypto = require('crypto');
/**
* @template {ArrayBufferView | null} T
* @param {T} buf
* @returns {T}
*/
function getRandomValues(buf) {

@@ -5,0 +11,0 @@ if (window.crypto && window.crypto.getRandomValues) {

2

LICENSE.txt

@@ -1,2 +0,2 @@

Copyright 2014–2020 Kenan Yildirim <https://kenany.me/>
Copyright 2014–2022 Kenan Yildirim <https://kenany.me/>

@@ -3,0 +3,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of

{
"name": "get-random-values",
"version": "1.2.2",
"version": "2.0.0",
"description": "`window.crypto.getRandomValues` with fallback to Node.js crypto",

@@ -10,3 +10,3 @@ "keywords": [

"license": "MIT",
"author": "Kenan Yildirim <kenan@kenany.me> (http://kenany.me/)",
"author": "Kenan Yildirim <kenan@kenany.me> (https://kenany.me/)",
"main": "index.js",

@@ -21,3 +21,3 @@ "files": [

"engines": {
"node": "10 || 12 || >=14"
"node": "14 || 16 || >=18"
},

@@ -32,11 +32,10 @@ "scripts": {

"devDependencies": {
"@kenan/renovate-config": "1.4.0",
"@semantic-release/changelog": "5.0.1",
"@semantic-release/git": "9.0.0",
"conventional-changelog-conventionalcommits": "4.4.0",
"@semantic-release/changelog": "6.0.1",
"@semantic-release/git": "10.0.1",
"conventional-changelog-conventionalcommits": "^5.0.0",
"is-browser": "2.1.0",
"lodash.foreach": "4.5.0",
"lodash.isfunction": "3.0.9",
"semantic-release": "17.1.1",
"tape": "5.0.1"
"semantic-release": "^19.0.3",
"tape": "5.5.3"
},

@@ -43,0 +42,0 @@ "browser": {

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