@polkadot/x-randomvalues
Advanced tools
Comparing version 11.0.2 to 11.1.1
@@ -19,2 +19,2 @@ const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; | ||
return Uint8Array.from(bytes); | ||
} | ||
} |
@@ -8,2 +8,2 @@ import { xglobal } from '@polkadot/x-global'; | ||
return xglobal.crypto.getRandomValues(arr); | ||
} | ||
} |
@@ -23,2 +23,2 @@ "use strict"; | ||
} | ||
exports.base64Decode = base64Decode; | ||
exports.base64Decode = base64Decode; |
@@ -13,2 +13,2 @@ "use strict"; | ||
} | ||
exports.getRandomValues = getRandomValues; | ||
exports.getRandomValues = getRandomValues; |
@@ -19,2 +19,2 @@ "use strict"; | ||
} | ||
exports.insecureRandomValues = insecureRandomValues; | ||
exports.insecureRandomValues = insecureRandomValues; |
@@ -15,2 +15,2 @@ "use strict"; | ||
} | ||
exports.getRandomValues = getRandomValues; | ||
exports.getRandomValues = getRandomValues; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.packageInfo = void 0; | ||
exports.packageInfo = { name: '@polkadot/x-randomvalues', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '11.0.2' }; | ||
exports.packageInfo = { name: '@polkadot/x-randomvalues', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '11.1.1' }; |
@@ -24,2 +24,2 @@ "use strict"; | ||
? fallback_js_1.insecureRandomValues | ||
: getRandomValuesNative); | ||
: getRandomValuesNative); |
@@ -15,2 +15,2 @@ let warned = false; | ||
return arr; | ||
} | ||
} |
@@ -9,2 +9,2 @@ import crypto from 'crypto'; | ||
return output; | ||
} | ||
} |
{ | ||
"author": "Jaco Greeff <jacogr@gmail.com>", | ||
"bugs": "https://github.com/polkadot-js/common/issues", | ||
"contributors": [], | ||
"description": "A cross-environment window.crypto.getRandomValues replacement", | ||
"engines": { | ||
"node": ">=14.0.0" | ||
"node": ">=14" | ||
}, | ||
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/x-randomvalues#readme", | ||
"license": "Apache-2.0", | ||
"maintainers": [], | ||
"name": "@polkadot/x-randomvalues", | ||
@@ -20,3 +18,3 @@ "repository": { | ||
"type": "module", | ||
"version": "11.0.2", | ||
"version": "11.1.1", | ||
"main": "./cjs/node.js", | ||
@@ -86,3 +84,3 @@ "module": "./node.js", | ||
"dependencies": { | ||
"@polkadot/x-global": "11.0.2", | ||
"@polkadot/x-global": "11.1.1", | ||
"tslib": "^2.5.0" | ||
@@ -89,0 +87,0 @@ }, |
@@ -1,1 +0,1 @@ | ||
export const packageInfo = { name: '@polkadot/x-randomvalues', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '11.0.2' }; | ||
export const packageInfo = { name: '@polkadot/x-randomvalues', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '11.1.1' }; |
@@ -20,2 +20,2 @@ import { NativeModules } from 'react-native'; | ||
? insecureRandomValues | ||
: getRandomValuesNative); | ||
: getRandomValuesNative); |
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
185
21254
+ Added@polkadot/x-global@11.1.1(transitive)
- Removed@polkadot/x-global@11.0.2(transitive)
Updated@polkadot/x-global@11.1.1