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 4.2.2-12 to 4.2.2-13

2

browser.d.ts

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

export default function getRandomValues<T extends Uint8Array>(arr: T): T;
export declare function getRandomValues<T extends Uint8Array>(arr: T): T;

@@ -6,3 +6,3 @@ "use strict";

});
exports.default = getRandomValues;
exports.getRandomValues = getRandomValues;

@@ -9,0 +9,0 @@ // Copyright 2017-2020 @polkadot/x-randomvalues authors & contributors

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

export default function insecureRandomValues<T extends Uint8Array>(arr: T): T;
export declare function insecureRandomValues<T extends Uint8Array>(arr: T): T;

@@ -6,3 +6,3 @@ "use strict";

});
exports.default = insecureRandomValues;
exports.insecureRandomValues = insecureRandomValues;
// Copyright 2017-2020 @polkadot/x-randomvalues authors & contributors

@@ -9,0 +9,0 @@ // SPDX-License-Identifier: Apache-2.0

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

export default function getRandomValues<T extends Uint8Array>(arr: T): T;
export declare function getRandomValues<T extends Uint8Array>(arr: T): T;

@@ -8,3 +8,3 @@ "use strict";

});
exports.default = getRandomValues;
exports.getRandomValues = getRandomValues;

@@ -11,0 +11,0 @@ var _crypto = _interopRequireDefault(require("crypto"));

{
"name": "@polkadot/x-randomvalues",
"version": "4.2.2-12",
"version": "4.2.2-13",
"description": "A cross-environment window.crypto.getRandomValues replacement",

@@ -27,12 +27,25 @@ "browser": "browser.js",

},
"./browser": "./browser.js",
"./browser": {
"import": "./browser.mjs",
"default": "./browser.js"
},
"./browser.d.ts": "./browser.d.ts",
"./fallback": "./fallback.js",
"./fallback": {
"import": "./fallback.mjs",
"default": "./fallback.js"
},
"./fallback.d.ts": "./fallback.d.ts",
"./node": "./node.js",
"./index.d.ts": "./node.d.ts",
"./node": {
"import": "./node.mjs",
"default": "./node.js"
},
"./node.d.ts": "./node.d.ts",
"./package.json": "./package.json",
"./react-native": "./react-native.js",
"./react-native": {
"import": "./react-native.mjs",
"default": "./react-native.js"
},
"./react-native.d.ts": "./react-native.d.ts"
}
}

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

import insecureRandomValues from './fallback';
declare const _default: typeof insecureRandomValues;
export default _default;
import { insecureRandomValues } from './fallback';
export declare const getRandomValues: typeof insecureRandomValues;
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
exports.getRandomValues = void 0;
var _reactNative = require("react-native");
var _fallback = _interopRequireDefault(require("./fallback"));
var _fallback = require("./fallback");

@@ -30,5 +28,4 @@ // Copyright 2017-2020 @polkadot/x-randomvalues authors & contributors

var _default = 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.default : getRandomValuesNative;
exports.default = _default;
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;
exports.getRandomValues = getRandomValues;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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