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.0 to 1.0.1

2

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

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

@@ -23,3 +23,3 @@ var hasNotch = false;

function init(){
hasNotch = OS_IOS && hasIOSNotch();
hasNotch = Ti.Platform.osname === 'iphone' && hasIOSNotch();
Alloy.CFG.TiDetect.statusbarHeight = hasNotch ? 44 : 20;

@@ -30,1 +30,7 @@ Alloy.CFG.TiDetect.hasNotch = hasNotch;

init();
// exporting init function. There is no need to call this
// unless you want to re-evaluate properties. (which shouldn't be needed at all)
module.exports = {
init: init
};
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