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

@alwatr/math

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alwatr/math - npm Package Compare versions

Comparing version 1.2.4 to 1.3.0

6

CHANGELOG.md

@@ -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 @@

8

math.js

@@ -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

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