@xylabs/platform
Advanced tools
Comparing version 2.14.3 to 2.15.0
@@ -49,5 +49,5 @@ { | ||
"devDependencies": { | ||
"@xylabs/ts-scripts-yarn3": "^3.2.42", | ||
"@xylabs/tsconfig": "^3.2.42", | ||
"@xylabs/tsconfig-dom": "^3.2.42", | ||
"@xylabs/ts-scripts-yarn3": "^3.4.1", | ||
"@xylabs/tsconfig": "^3.4.1", | ||
"@xylabs/tsconfig-dom": "^3.4.1", | ||
"typescript": "^5.3.3" | ||
@@ -66,4 +66,4 @@ }, | ||
"sideEffects": false, | ||
"version": "2.14.3", | ||
"version": "2.15.0", | ||
"type": "module" | ||
} |
@@ -11,4 +11,7 @@ import type { subtle as subtleType } from 'node:crypto' | ||
export const getGlobal = <T extends object>() => (isWebworker() ? (self as unknown as T) : isBrowser() ? (window as unknown as T) : globalThis) | ||
export const getGlobal = <T extends object>() => | ||
isWebworker() ? (self as unknown as T) | ||
: isBrowser() ? (window as unknown as T) | ||
: globalThis | ||
export const subtle = getGlobal<Window>().crypto.subtle as typeof subtleType |
@@ -11,2 +11,5 @@ export { subtle } from 'node:crypto' | ||
export const getGlobal = <T extends object>() => (isBrowser() ? (window as unknown as T) : isWebworker() ? (self as unknown as T) : globalThis) | ||
export const getGlobal = <T extends object>() => | ||
isBrowser() ? (window as unknown as T) | ||
: isWebworker() ? (self as unknown as T) | ||
: globalThis |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
22475
177