Socket
Socket
Sign inDemoInstall

universal-env

Package Overview
Dependencies
Maintainers
6
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

universal-env - npm Package Compare versions

Comparing version 3.2.2 to 3.2.3-0

2

package.json
{
"name": "universal-env",
"author": "rax",
"version": "3.2.2",
"version": "3.2.3-0",
"description": "",

@@ -6,0 +6,0 @@ "main": "lib/index.js",

@@ -7,2 +7,3 @@ declare const WXEnvironment: any;

declare const global: any;
declare const weex: any;

@@ -16,2 +17,3 @@ function isUndef(type): boolean {

export const isWeex = !isUndef(typeof WXEnvironment) && WXEnvironment.platform !== 'Web';
export const isWeex2 = isWeex && !isUndef(typeof weex) && weex.config && weex.config.weexMode === '2.0';
export const isKraken = !isUndef(typeof __kraken__);

@@ -18,0 +20,0 @@ export const isMiniApp = !isUndef(typeof my) && my !== null && !isUndef(typeof my.alert);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc