Comparing version 0.4.4 to 0.4.5
10
mcl.js
'use strict'; | ||
(generator => { | ||
if (typeof exports === 'object') { | ||
if (typeof window === 'object') { | ||
const crypto = window.crypto || window.msCrypto | ||
const exports = {} | ||
window.mcl = generator(exports, crypto, false) | ||
} else { | ||
const crypto = require('crypto') | ||
crypto.getRandomValues = crypto.randomFillSync | ||
generator(exports, crypto, true) | ||
} else { | ||
const crypto = window.crypto || window.msCrypto | ||
const exports = {} | ||
window.mcl = generator(exports, crypto, false) | ||
} | ||
@@ -12,0 +12,0 @@ })((exports, crypto, isNodeJs) => { |
{ | ||
"name": "mcl-wasm", | ||
"version": "0.4.4", | ||
"version": "0.4.5", | ||
"description": "mcl ; A portable and fast pairing-based cryptography library for Node.js by WebAssembly", | ||
@@ -5,0 +5,0 @@ "main": "mcl.js", |
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
483510