universal-env
Advanced tools
Comparing version 2.0.0-beta.1 to 2.0.0-beta.2
@@ -1,1 +0,1 @@ | ||
"use strict";function isUndef(e){return"undefined"===e}Object.defineProperty(exports,"__esModule",{value:!0});var isWeb=!isUndef(typeof window)&&"onload"in window,isNode=!isUndef(typeof process)&&!(!process.versions||!process.versions.node),isWeex=!isUndef(typeof callNative)||!isUndef(typeof WXEnvironment)&&"Web"!==WXEnvironment.platform,isMiniApp=!isUndef(typeof my)&&!isUndef(my.navigateTo),isWechatMiniprogram=!isUndef(typeof wx)&&!isUndef(wx.navigateTo);exports.isMiniApp=isMiniApp,exports.isNode=isNode,exports.isWeb=isWeb,exports.isWechatMiniprogram=isWechatMiniprogram,exports.isWeex=isWeex; | ||
"use strict";function isUndef(e){return"undefined"===e}Object.defineProperty(exports,"__esModule",{value:!0});var isWeb=!isUndef(typeof window)&&"onload"in window,isNode=!isUndef(typeof process)&&!(!process.versions||!process.versions.node),isWeex=!isUndef(typeof callNative)||!isUndef(typeof WXEnvironment)&&"Web"!==WXEnvironment.platform,isMiniApp=!isUndef(typeof my)&&!isUndef(my.navigateTo),isWeChatMiniprogram=!isUndef(typeof wx)&&!isUndef(wx.navigateTo);exports.isMiniApp=isMiniApp,exports.isNode=isNode,exports.isWeChatMiniprogram=isWeChatMiniprogram,exports.isWeb=isWeb,exports.isWeex=isWeex; |
@@ -5,2 +5,2 @@ export declare const isWeb: boolean; | ||
export declare const isMiniApp: boolean; | ||
export declare const isWechatMiniprogram: boolean; | ||
export declare const isWeChatMiniprogram: boolean; |
@@ -13,8 +13,8 @@ 'use strict'; | ||
var isMiniApp = !isUndef(typeof my) && !isUndef(my.navigateTo); | ||
var isWechatMiniprogram = !isUndef(typeof wx) && !isUndef(wx.navigateTo); | ||
var isWeChatMiniprogram = !isUndef(typeof wx) && !isUndef(wx.navigateTo); | ||
exports.isMiniApp = isMiniApp; | ||
exports.isNode = isNode; | ||
exports.isWeChatMiniprogram = isWeChatMiniprogram; | ||
exports.isWeb = isWeb; | ||
exports.isWechatMiniprogram = isWechatMiniprogram; | ||
exports.isWeex = isWeex; |
{ | ||
"name": "universal-env", | ||
"author": "rax", | ||
"version": "2.0.0-beta.1", | ||
"version": "2.0.0-beta.2", | ||
"license": "BSD-3-Clause", | ||
@@ -12,3 +12,5 @@ "main": "index.js", | ||
"test": "rax-scripts test", | ||
"lint": "eslint --ext .js --ext .jsx --ext .ts --ext .tsx ./src" | ||
"lint": "eslint --ext .js --ext .jsx --ext .ts --ext .tsx ./src", | ||
"prebuild": "npm run lint && npm run test", | ||
"prepublish": "npm run build" | ||
}, | ||
@@ -15,0 +17,0 @@ "keywords": [ |
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
11751