New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ti.detect

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ti.detect - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "ti.detect",
"version": "1.0.1",
"version": "1.0.2",
"description": "A simple Titanium library to detect things",

@@ -5,0 +5,0 @@ "main": "ti.detect.js",

@@ -6,6 +6,6 @@ var hasNotch = false;

if (
// iPhone X/Xs
// iPhone X/Xs/XR
Ti.Platform.displayCaps.platformWidth === 375 &&
Ti.Platform.displayCaps.platformHeight === 812 &&
Ti.Platform.displayCaps.logicalDensityFactor === 3) {
(Ti.Platform.displayCaps.logicalDensityFactor === 3 || Ti.Platform.displayCaps.logicalDensityFactor === 2)) {
return true;

@@ -15,3 +15,3 @@ }

if (
// iPhone XR/XR max
// iPhone XR/XS max
Ti.Platform.displayCaps.platformWidth === 414 &&

@@ -18,0 +18,0 @@ Ti.Platform.displayCaps.platformHeight === 896 &&

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