Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

universal-env

Package Overview
Dependencies
Maintainers
5
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 1.0.3 to 1.0.4

3

lib/index.js

@@ -34,3 +34,4 @@ "use strict";

if (isMiniApp || isWechatApp || isWeex) {
return systemInfo.platform.toLowerCase() === 'android';
var platform = systemInfo.platform || '';
return platform.toLowerCase() === 'android';
} else if (isWeb) {

@@ -37,0 +38,0 @@ return Boolean(navigator.userAgent.match(/android/i));

{
"name": "universal-env",
"author": "rax",
"version": "1.0.3",
"version": "1.0.4",
"license": "BSD-3-Clause",

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

@@ -29,3 +29,4 @@ // https://www.w3.org/TR/html5/webappapis.html#dom-navigator-appcodename

if (isMiniApp || isWechatApp || isWeex) {
return systemInfo.platform.toLowerCase() === 'android';
const platform = systemInfo.platform || '';
return platform.toLowerCase() === 'android';
} else if (isWeb) {

@@ -32,0 +33,0 @@ return Boolean(navigator.userAgent.match(/android/i));

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