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.6 to 1.0.7

2

lib/index.js

@@ -50,3 +50,3 @@ "use strict";

if (isMiniApp || isWechatApp || isWeex) {
return ['ios', 'iOS', 'iPhone OS'].includes(systemInfo.platform);
return ['ios', 'iOS', 'iPhone OS'].indexOf(systemInfo.platform) > -1;
} else if (isWeb) {

@@ -53,0 +53,0 @@ return Boolean(navigator.userAgent.match(/(iphone|ipod|ipad)/i));

{
"name": "universal-env",
"author": "rax",
"version": "1.0.6",
"version": "1.0.7",
"license": "BSD-3-Clause",

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

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

if (isMiniApp || isWechatApp || isWeex) {
return ['ios', 'iOS', 'iPhone OS'].includes(systemInfo.platform);
return ['ios', 'iOS', 'iPhone OS'].indexOf(systemInfo.platform) > -1;
} else if (isWeb) {

@@ -44,0 +44,0 @@ return Boolean(navigator.userAgent.match(/(iphone|ipod|ipad)/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