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

js-crypto-random

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-crypto-random - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

dist/jscrandom.bundle.js

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

!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("crypto")):"function"==typeof define&&define.amd?define(["crypto"],r):"object"==typeof exports?exports.jscrandom=r(require("crypto")):e.jscrandom=r(e.crypto)}(this,(function(e){return(()=>{"use strict";var r={698:(e,r,t)=>{r.Qh=r.KI=void 0;var o=function(){return"undefined"!=typeof window?void 0:t(100)};r.KI=o;r.Qh=function(){if("undefined"!=typeof window&&window.crypto)return window.crypto}},100:r=>{r.exports=e}},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var i=t[e]={exports:{}};return r[e](i,i.exports,o),i.exports}o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{o.r(n),o.d(n,{default:()=>f,getRandomAsciiString:()=>i,getRandomBytes:()=>t,getRandomSampledString:()=>a,getRandomString:()=>d});var e=o(698),r=function(r){var t=e.Qh(),o=e.KI();if(void 0!==t&&"function"==typeof t.getRandomValues){var n=new Uint8Array(r);return t.getRandomValues(n),n}if(void 0!==o)return new Uint8Array(o.randomBytes(r));throw new Error("UnsupportedEnvironment")},t=r,i=function(e){for(var t=r(e),o="",n=0;n<e;n++)t[n]=t[n]%94+32,o+=String.fromCharCode(t[n]);return o},d=function(e){for(var t=r(e),o=r(e),n="",i=0;i<e;i++)o[i]=o[i]%3,t[i]=0===o[i]?t[i]%10+48:t[i]%26+(1===o[i]?65:97),n+=String.fromCharCode(t[i]);return n},a=function(e,t){var o=t.length;if(0===o)return"";for(var n=r(e),i="",d=0;d<e;d++)i+=t[n[d]%o];return i};const f={getRandomBytes:r,getRandomAsciiString:i,getRandomString:d,getRandomSampledString:a}})(),n})()}));
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("crypto")):"function"==typeof define&&define.amd?define(["crypto"],r):"object"==typeof exports?exports.jscrandom=r(require("crypto")):e.jscrandom=r(e.crypto)}(this,(function(e){return(()=>{"use strict";var r={698:(e,r,t)=>{r.Qh=r.KI=void 0;var o=function(){return"undefined"!=typeof window&&window.crypto||"undefined"==typeof window&&"undefined"!=typeof crypto?void 0:t(100)};r.KI=o;r.Qh=function(){return"undefined"!=typeof window&&window.crypto?window.crypto:"undefined"==typeof window&&"undefined"!=typeof crypto?crypto:void 0}},100:r=>{r.exports=e}},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var i=t[e]={exports:{}};return r[e](i,i.exports,o),i.exports}o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{o.r(n),o.d(n,{default:()=>u,getRandomAsciiString:()=>i,getRandomBytes:()=>t,getRandomSampledString:()=>f,getRandomString:()=>d});var e=o(698),r=function(r){var t=e.Qh(),o=e.KI();if(void 0!==t&&"function"==typeof t.getRandomValues){var n=new Uint8Array(r);return t.getRandomValues(n),n}if(void 0!==o)return new Uint8Array(o.randomBytes(r));throw new Error("UnsupportedEnvironment")},t=r,i=function(e){for(var t=r(e),o="",n=0;n<e;n++)t[n]=t[n]%94+32,o+=String.fromCharCode(t[n]);return o},d=function(e){for(var t=r(e),o=r(e),n="",i=0;i<e;i++)o[i]=o[i]%3,t[i]=0===o[i]?t[i]%10+48:t[i]%26+(1===o[i]?65:97),n+=String.fromCharCode(t[i]);return n},f=function(e,t){var o=t.length;if(0===o)return"";for(var n=r(e),i="",d=0;d<e;d++)i+=t[n[d]%o];return i};const u={getRandomBytes:r,getRandomAsciiString:i,getRandomString:d,getRandomSampledString:f}})(),n})()}));
{
"name": "js-crypto-random",
"version": "1.0.3",
"version": "1.0.4",
"description": "Universal Module for Secure Random Generator in JavaScript",

@@ -32,4 +32,4 @@ "main": "dist/index.js",

"dependencies": {
"js-crypto-env": "^1.0.3"
"js-crypto-env": "^1.0.4"
}
}
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