New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@lit-protocol/nacl

Package Overview
Dependencies
Maintainers
4
Versions
509
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lit-protocol/nacl - npm Package Compare versions

Comparing version 2.0.30 to 2.0.31

2

package.json
{
"name": "@lit-protocol/nacl",
"version": "2.0.30",
"version": "2.0.31",
"type": "commonjs",

@@ -5,0 +5,0 @@ "tags": [

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

var _nacl = {
lowlevel: {}
lowlevel: {},
};

@@ -1150,33 +1150,33 @@ _nacl.lowlevel = {

};
// (function () {
// // Initialize PRNG if environment provides CSPRNG.
// // If not, methods calling randombytes will throw.
// var crypto =
// typeof self !== 'undefined' ? self.crypto || self.msCrypto : null;
// if (crypto && crypto.getRandomValues) {
// // Browsers.
// var QUOTA = 65536;
// _nacl.setPRNG(function (x, n) {
// var i,
// v = new Uint8Array(n);
// for (i = 0; i < n; i += QUOTA) {
// crypto.getRandomValues(v.subarray(i, i + Math.min(n - i, QUOTA)));
// }
// for (i = 0; i < n; i++) x[i] = v[i];
// cleanup(v);
// });
// } else if (typeof require !== 'undefined') {
// // Node.js.
// crypto = require('crypto');
// if (crypto && crypto.randomBytes) {
// _nacl.setPRNG(function (x, n) {
// var i,
// v = crypto.randomBytes(n);
// for (i = 0; i < n; i++) x[i] = v[i];
// cleanup(v);
// });
// }
// }
// })();
(function () {
// Initialize PRNG if environment provides CSPRNG.
// If not, methods calling randombytes will throw.
var crypto = typeof self !== 'undefined' ? self.crypto || self.msCrypto : null;
if (crypto && crypto.getRandomValues) {
// Browsers.
var QUOTA = 65536;
_nacl.setPRNG(function (x, n) {
var i, v = new Uint8Array(n);
for (i = 0; i < n; i += QUOTA) {
crypto.getRandomValues(v.subarray(i, i + Math.min(n - i, QUOTA)));
}
for (i = 0; i < n; i++)
x[i] = v[i];
cleanup(v);
});
}
else if (typeof require !== 'undefined') {
// Node.js.
crypto = require('crypto');
if (crypto && crypto.randomBytes) {
_nacl.setPRNG(function (x, n) {
var i, v = crypto.randomBytes(n);
for (i = 0; i < n; i++)
x[i] = v[i];
cleanup(v);
});
}
}
})();
exports.nacl = _nacl.default || _nacl;
//# sourceMappingURL=nacl.js.map

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