@meteor-it/utils
Advanced tools
Comparing version 1.3.26 to 1.3.27
12
index.ts
@@ -285,3 +285,3 @@ import { Readable } from 'stream'; | ||
for (let i = 0; i < str.length; i++) { | ||
if (str.codePointAt(i) > 127) | ||
if (str.codePointAt(i)! > 127) | ||
ret += `&#${str.codePointAt(i)};`; | ||
@@ -304,3 +304,3 @@ else | ||
} | ||
let cachedGlobal = null; | ||
let cachedGlobal: any = null; | ||
/** | ||
@@ -344,7 +344,7 @@ * Returns global, for node it is just global, for browser it is window | ||
} | ||
let isNodeEnvironmentCache = null; | ||
let isNodeEnvironmentCache: any = null; | ||
/** | ||
* Check if running in node | ||
*/ | ||
export function isNodeEnvironment() { | ||
export function isNodeEnvironment(): boolean { | ||
if (isNodeEnvironmentCache !== null) | ||
@@ -366,7 +366,7 @@ return isNodeEnvironmentCache; | ||
} | ||
let isBrowserEnvironmentCache = null; | ||
let isBrowserEnvironmentCache: any = null; | ||
/** | ||
* Check if running in browser | ||
*/ | ||
export function isBrowserEnvironment() { | ||
export function isBrowserEnvironment(): boolean { | ||
if (isBrowserEnvironmentCache !== null) | ||
@@ -373,0 +373,0 @@ return isBrowserEnvironmentCache; |
{ | ||
"name": "@meteor-it/utils", | ||
"version": "1.3.26", | ||
"version": "1.3.27", | ||
"description": "Many useful utils", | ||
@@ -17,3 +17,3 @@ "module": "index.mjs", | ||
}, | ||
"gitHead": "ec32fbe49dece6806b0fbd5acae690d7b519956b" | ||
"gitHead": "7b240cacfacfe9f46c45796028c518753cc6f6b1" | ||
} |
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
85409