@alwatr/math
Advanced tools
Comparing version 1.2.4 to 1.3.0
@@ -6,2 +6,8 @@ # Change Log | ||
# [1.3.0](https://github.com/Alwatr/alwatr-es-sdk/compare/@alwatr/math@1.2.4...@alwatr/math@1.3.0) (2023-12-19) | ||
### Features | ||
* use globalScope instead globalThis ([94342bb](https://github.com/Alwatr/alwatr-es-sdk/commit/94342bb7b467376173a65d8cdf6bb106338f425b)) by @njfamirm | ||
## [1.2.4](https://github.com/Alwatr/alwatr-es-sdk/compare/@alwatr/math@1.2.3...@alwatr/math@1.2.4) (2023-12-11) | ||
@@ -8,0 +14,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { definePackage } from '@alwatr/logger'; | ||
import { definePackage, globalScope } from '@alwatr/logger'; | ||
export { UnicodeDigits } from './unicode-digits.js'; | ||
@@ -146,3 +146,3 @@ definePackage('math', '1.x'); | ||
getRandomValues: (array) => { | ||
return globalThis.crypto.getRandomValues(array); | ||
return globalScope.crypto.getRandomValues(array); | ||
// TODO: check msCrypto | ||
@@ -160,4 +160,4 @@ }, | ||
get uuid() { | ||
if (globalThis.crypto?.randomUUID) { | ||
return globalThis.crypto.randomUUID(); | ||
if (globalScope.crypto?.randomUUID) { | ||
return globalScope.crypto.randomUUID(); | ||
} | ||
@@ -164,0 +164,0 @@ // else |
{ | ||
"name": "@alwatr/math", | ||
"version": "1.2.4", | ||
"version": "1.3.0", | ||
"description": "Simple useful Math library written in tiny TypeScript module.", | ||
@@ -33,8 +33,8 @@ "keywords": [ | ||
"dependencies": { | ||
"@alwatr/logger": "^2.3.3" | ||
"@alwatr/logger": "^2.4.0" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^20.10.4" | ||
"@types/node": "^20.10.5" | ||
}, | ||
"gitHead": "1f1dfe322510fb2057ba243156b48ccd247be88b" | ||
"gitHead": "4ed3a3f1528a1e3742990083b60fa55f35850f9e" | ||
} |
Sorry, the diff of this file is not supported yet
61401
Updated@alwatr/logger@^2.4.0