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

ibox

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ibox - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

26

ibox.js
(function(window) {
var navigator = window.navigator,
userAgent = navigator.userAgent,
isIDevice = /(iPad|iPhone|iPod).*OS/i.test(userAgent),
isAndroid = /Android\s+[\d.]+/i.test(userAgent),
isIDevice = /(iPad|iPhone|iPod)\s+OS/i.test(userAgent),
isAndroid = /Android[\s\/]+[\d.]+/i.test(userAgent),
isWebkit = /WebKit\/[\d.]+/i.test(userAgent),

@@ -22,2 +22,3 @@ isSafari = isIDevice ? (navigator.standalone ? isWebkit : (/Safari/i.test(userAgent) && !/CriOS/i.test(userAgent) && !/MQQBrowser/i.test(userAgent))) : false,

},
dummyStyle = document.createElement('div').style,

@@ -33,3 +34,3 @@ vendor = (function () {

if ( t in dummyStyle ) {
return vendors[i];
return vendors[i].substr(0, vendors[i].length - 1);
}

@@ -40,9 +41,10 @@ }

})(),
cssVendor = vendor ? '-' + vendor.substr(0, vendor.length - 1).toLowerCase() + '-' : '',
eventVendor = (function() {
if (vendor && vendor != 't') {
return vendor + 'ransitionEnd';
cssVendor = vendor ? '-' + vendor.toLowerCase() + '-' : '',
transitionEndEvent = (function() {
if (vendor == 'webkit' || vendor === 'O') {
return vendor.toLowerCase() + 'TransitionEnd';
}
return 'transitionend';
})(),
idSeed = 1000,

@@ -516,6 +518,6 @@ makeId = function(prefix) {

handler = function() {
target.removeEventListener(eventVendor, handler, false);
target.removeEventListener(transitionEndEvent, handler, false);
cb && cb.call(me);
};
target.addEventListener(eventVendor, handler, false);
target.addEventListener(transitionEndEvent, handler, false);
},

@@ -575,2 +577,8 @@

function prefixStyle(style) {
if ( vendor === '' ) return style;
style = style.charAt(0).toUpperCase() + style.substr(1);
return vendor + style;
}
dummyStyle = null;

@@ -577,0 +585,0 @@

{
"name": "ibox",
"description": "iBox is a WebApp UI JavaScript library that the feature like iOS.",
"version": "0.0.4",
"version": "0.0.5",
"homepage": "https://github.com/maxzhang/ibox",

@@ -6,0 +6,0 @@ "author": "Max Zhang <zhangdaiping@gmail.com>",

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