@alwatr/util
Advanced tools
Comparing version 1.3.5 to 1.4.0
@@ -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 @@ |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
56678
424
Updated@alwatr/logger@^2.4.0
Updated@alwatr/math@^1.3.0
Updated@alwatr/type@^1.2.4