get-random-values
Advanced tools
Comparing version 1.2.2 to 2.0.0
@@ -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) { |
@@ -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": { |
8
37
4324
4