crypto-es
Advanced tools
Comparing version 2.0.1 to 2.0.2
/* eslint-disable no-use-before-define */ | ||
let crypto; | ||
try { | ||
crypto = globalThis?.crypto || global?.crypto || window?.crypto || self?.crypto || frames?.[0]?.crypto; | ||
} catch (error) {} | ||
const crypto = | ||
(typeof globalThis != 'undefined' ? globalThis : void 0)?.crypto || | ||
(typeof global != 'undefined' ? global : void 0)?.crypto || | ||
(typeof window != 'undefined' ? window : void 0)?.crypto || | ||
(typeof self != 'undefined' ? self : void 0)?.crypto || | ||
(typeof frames != 'undefined' ? frames : void 0)?.[0]?.crypto; | ||
@@ -8,0 +10,0 @@ let randomWordArray; |
{ | ||
"name": "crypto-es", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "A cryptography algorithms library compatible with ES6 and TypeScript", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
237202
7393