Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@alwatr/util

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alwatr/util - npm Package Compare versions

Comparing version 1.3.5 to 1.4.0

6

CHANGELOG.md

@@ -6,2 +6,8 @@ # Change Log

# [1.4.0](https://github.com/Alwatr/alwatr-es-sdk/compare/@alwatr/util@1.3.5...@alwatr/util@1.4.0) (2023-12-19)
### Features
* use globalScope instead globalThis ([94342bb](https://github.com/Alwatr/alwatr-es-sdk/commit/94342bb7b467376173a65d8cdf6bb106338f425b)) by @njfamirm
## [1.3.5](https://github.com/Alwatr/alwatr-es-sdk/compare/@alwatr/util@1.3.4...@alwatr/util@1.3.5) (2023-12-11)

@@ -8,0 +14,0 @@

12

package.json
{
"name": "@alwatr/util",
"version": "1.3.5",
"version": "1.4.0",
"description": "Util library written in tiny TypeScript module.",

@@ -43,11 +43,11 @@ "keywords": [

"dependencies": {
"@alwatr/logger": "^2.3.3",
"@alwatr/math": "^1.2.4",
"@alwatr/type": "^1.2.3"
"@alwatr/logger": "^2.4.0",
"@alwatr/math": "^1.3.0",
"@alwatr/type": "^1.2.4"
},
"devDependencies": {
"@types/node": "^20.10.4",
"@types/node": "^20.10.5",
"flatstr": "^1.0.12"
},
"gitHead": "7f4b8af06224bea811c74ddb3bac1480ed8a9fed"
"gitHead": "4ed3a3f1528a1e3742990083b60fa55f35850f9e"
}

@@ -0,6 +1,7 @@

import { globalScope } from '@alwatr/logger';
type IndexableWindow = Record<string, any>;
export declare const win: IndexableWindow;
export declare const requestAnimationFrame: typeof globalThis.requestAnimationFrame;
export declare const requestIdleCallback: typeof globalThis.requestIdleCallback;
export declare const requestAnimationFrame: typeof globalScope.requestAnimationFrame;
export declare const requestIdleCallback: typeof globalScope.requestIdleCallback;
export {};
//# sourceMappingURL=polyfill.d.ts.map

@@ -1,2 +0,3 @@

export const win = globalThis;
import { globalScope } from '@alwatr/logger';
export const win = globalScope;
const requestAnimationFrameFallback = (callback) => setTimeout(() => callback(Date.now()), 1000 / 60);

@@ -3,0 +4,0 @@ export const requestAnimationFrame = win.requestAnimationFrame ||

Sorry, the diff of this file is not supported yet

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