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

react-reflex

Package Overview
Dependencies
Maintainers
1
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-reflex - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

src/lib/Browser.js

2

package.json
{
"name": "react-reflex",
"version": "1.0.4",
"version": "1.0.5",
"description": "A flex-based React layout component that works",

@@ -5,0 +5,0 @@ "main": "dist/lib/index.min.js",

@@ -76,2 +76,3 @@ ![re-flex](./resources/img/re-f%7Cex-banner.png)

* Opera
* Edge

@@ -78,0 +79,0 @@ ## Documentation & Samples

@@ -311,3 +311,3 @@ import ReactDOM from 'react-dom'

</ReflexElement>
<ReflexSplitter {...this.resizeProps}/>
<ReflexSplitter {...this.resizeProps} className="reflex-thin"/>
<ReflexElement {...this.resizeProps}>

@@ -314,0 +314,0 @@ <div className="pane-content">

@@ -7,6 +7,6 @@ ///////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////
import BrowserType from './BrowserType'
import throttle from 'lodash.throttle'
import Measure from 'react-measure'
import ReactDOM from 'react-dom'
import Browser from './Browser'
import React from 'react'

@@ -33,3 +33,3 @@

static defaultProps = {
renderOnResize: BrowserType.isSafari(),
renderOnResize: Browser.isSafari(),
propagateDimensions: false,

@@ -36,0 +36,0 @@ renderOnResizeRate: 60,

@@ -8,2 +8,3 @@ ///////////////////////////////////////////////////////////

import ReactDOM from 'react-dom'
import Browser from './Browser'
import React from 'react'

@@ -205,5 +206,5 @@

if (mobile.isAny()) {
if (Browser.isMobile()) {
classNames.push('mobile')
classNames.push('reflex-thin')
}

@@ -219,36 +220,1 @@

}
const mobile = {
getUserAgent: function () {
return navigator.userAgent;
},
isAndroid: function () {
return this.getUserAgent().match(/Android/i);
},
isBlackBerry: function () {
return this.getUserAgent().match(/BlackBerry/i);
},
isIOS: function () {
return this.getUserAgent().match(/iPhone|iPad|iPod/i);
},
isOpera: function () {
return this.getUserAgent().match(/Opera Mini/i);
},
isWindows: function () {
return this.isWindowsDesktop() || this.isWindowsMobile();
},
isWindowsMobile: function () {
return this.getUserAgent().match(/IEMobile/i);
},
isWindowsDesktop: function () {
return this.getUserAgent().match(/WPDesktop/i);
},
isAny: function () {
return this.isAndroid() ||
this.isBlackBerry() ||
this.isIOS() ||
this.isWindowsMobile();
}
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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