@aidc/utils
Advanced tools
Comparing version 0.2.25 to 0.2.26
@@ -1,2 +0,1 @@ | ||
var _navigator, _navigator2; | ||
export var isWindow = typeof window !== 'undefined'; | ||
@@ -6,5 +5,5 @@ export var isLocal = isWindow && window.location.hostname === 'localhost'; | ||
export var isProd = process.env.NODE_ENV === 'production'; | ||
export var isAE = /AliApp\(AE/.test((_navigator = navigator) === null || _navigator === void 0 ? void 0 : _navigator.userAgent); | ||
export var isChrome = /Chrome\//.test((_navigator2 = navigator) === null || _navigator2 === void 0 ? void 0 : _navigator2.userAgent); | ||
export var isAE = isWindow && /AliApp\(AE/.test(navigator.userAgent); | ||
export var isChrome = isWindow && /Chrome\//.test(navigator.userAgent); | ||
export var isChromeScript = typeof chrome !== 'undefined' && typeof chrome.runtime !== 'undefined'; | ||
export var isChromeBackground = isChromeScript && !isWindow; |
{ | ||
"name": "@aidc/utils", | ||
"version": "0.2.25", | ||
"version": "0.2.26", | ||
"repository": "git@gitlab.alibaba-inc.com:aidc-innovation/aidc-fe.git", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.js", |
20429
499