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

nuke-core

Package Overview
Dependencies
Maintainers
5
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuke-core - npm Package Compare versions

Comparing version 2.0.16 to 2.0.17

2

lib/util/platform.js

@@ -19,3 +19,3 @@ 'use strict';

} else {
var userAgent = navigator ? navigator.userAgent.toLowerCase() : 'iPhone';
var userAgent = typeof navigator !== 'undefined' && navigator.userAgent ? navigator.userAgent.toLowerCase() : 'iPhone';
platform.iOS = /iPhone|iPod|iPad|IOS/i.test(userAgent);

@@ -22,0 +22,0 @@ platform.android = /Android/i.test(userAgent);

{
"name": "nuke-core",
"version": "2.0.16",
"version": "2.0.17",
"description": "nuke 核心变量",

@@ -5,0 +5,0 @@ "main": "lib/nuke",

@@ -11,9 +11,9 @@ const isWeex = typeof callNative === 'function';

let WeexEnv =
typeof window !== 'undefined' && window.hasOwnProperty('__weex_env__')
? Object.assign({}, window.__weex_env__)
: Object.assign({}, WXEnvironment);
typeof window !== 'undefined' && window.hasOwnProperty('__weex_env__') ?
Object.assign({}, window.__weex_env__) :
Object.assign({}, WXEnvironment);
platform.iOS = WeexEnv.platform === 'iOS';
platform.android = WeexEnv.platform === 'android';
} else {
var userAgent = navigator ? navigator.userAgent.toLowerCase() : 'iPhone';
var userAgent = typeof navigator !== 'undefined' && navigator.userAgent ? navigator.userAgent.toLowerCase() : 'iPhone';
platform.iOS = /iPhone|iPod|iPad|IOS/i.test(userAgent);

@@ -20,0 +20,0 @@ platform.android = /Android/i.test(userAgent);

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