Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@polkadot/x-randomvalues

Package Overview
Dependencies
Maintainers
2
Versions
721
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polkadot/x-randomvalues - npm Package Compare versions

Comparing version 5.0.2-7 to 5.0.2-8

2

fallback.js

@@ -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;

2

package-info.json
{
"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

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