@vostokplatform/signature-generator
Advanced tools
Comparing version 1.2.5 to 1.2.6
@@ -44,3 +44,3 @@ "use strict"; | ||
options = options || { type: 'Array' }; | ||
if (typeof window !== 'undefined' && typeof exports === 'undefined') { | ||
if (typeof window === 'object' && typeof window.document === 'object') { | ||
return browserRandom(count, options); | ||
@@ -47,0 +47,0 @@ } |
{ | ||
"name": "@vostokplatform/signature-generator", | ||
"version": "1.2.5", | ||
"version": "1.2.6", | ||
"main": "dist/index.js", | ||
@@ -20,3 +20,3 @@ "files": [ | ||
"prepare": "npm run build", | ||
"test": "npm run compile-test && jest", | ||
"test": "npm run compile-test && jest --config jest.config.json", | ||
"compile": "tsc -p ./", | ||
@@ -23,0 +23,0 @@ "compile-test": "tsc -p ./test", |
@@ -44,3 +44,3 @@ "use strict"; | ||
options = options || { type: 'Array' }; | ||
if (typeof window !== 'undefined' && typeof exports === 'undefined') { | ||
if (typeof window === 'object' && typeof window.document === 'object') { | ||
return browserRandom(count, options); | ||
@@ -47,0 +47,0 @@ } |
@@ -54,7 +54,9 @@ declare let exports: any; | ||
if (typeof window !== 'undefined' && typeof exports === 'undefined') { | ||
if (typeof window === 'object' && typeof window.document === 'object') { | ||
return browserRandom(count, options); | ||
} else if (typeof exports === 'object' && typeof module !== 'undefined') { | ||
} | ||
else if (typeof exports === 'object' && typeof module !== 'undefined') { | ||
return nodeRandom(count, options); | ||
} else { | ||
} | ||
else { | ||
throw new Error('Your environment is not defined'); | ||
@@ -61,0 +63,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
6221467
109069