@polkadot/x-randomvalues
Advanced tools
Comparing version 5.0.2-7 to 5.0.2-8
@@ -9,4 +9,2 @@ "use strict"; | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// Adapted from https://github.com/LinusU/react-native-get-random-values/blob/85f48393821c23b83b89a8177f56d3a81dc8b733/index.js | ||
// Copyright (c) 2018, 2020 Linus Unnebäck | ||
// SPDX-License-Identifier: MIT | ||
@@ -13,0 +11,0 @@ let warned = false; |
{ | ||
"name": "@polkadot/x-randomvalues", | ||
"version": "5.0.2-7" | ||
"version": "5.0.2-8" | ||
} |
{ | ||
"name": "@polkadot/x-randomvalues", | ||
"version": "5.0.2-7", | ||
"version": "5.0.2-8", | ||
"description": "A cross-environment window.crypto.getRandomValues replacement", | ||
@@ -5,0 +5,0 @@ "browser": "browser.js", |
@@ -14,4 +14,2 @@ "use strict"; | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// Adapted from https://github.com/LinusU/react-native-get-random-values/blob/85f48393821c23b83b89a8177f56d3a81dc8b733/index.js | ||
// Copyright (c) 2018, 2020 Linus Unnebäck | ||
// SPDX-License-Identifier: MIT | ||
@@ -29,4 +27,3 @@ function getRandomValuesNative(arr) { | ||
const getRandomValues = typeof global.crypto === 'object' && typeof global.crypto.getRandomValues === 'function' ? getRandomValuesGlobal // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-explicit-any | ||
: typeof global.nativeCallSyncHook === 'undefined' || !_reactNative.NativeModules.ExpoRandom ? _fallback.insecureRandomValues : getRandomValuesNative; | ||
const getRandomValues = typeof global.crypto === 'object' && typeof global.crypto.getRandomValues === 'function' ? getRandomValuesGlobal : typeof global.nativeCallSyncHook === 'undefined' || !_reactNative.NativeModules.ExpoRandom ? _fallback.insecureRandomValues : getRandomValuesNative; | ||
exports.getRandomValues = getRandomValues; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6551
117