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

react-swipeable

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-swipeable - npm Package Compare versions

Comparing version 1.4.0 to 1.5.0

5

package.json
{
"name": "react-swipeable",
"version": "1.4.0",
"version": "1.5.0",
"description": "Swipe bindings for react",

@@ -28,3 +28,6 @@ "main": "Swipeable.js",

"react": ">=0.12.x"
},
"dependencies": {
"object-assign": "^2.0.0"
}
}

8

Swipeable.js
var React = require('react')
var assign = require('object-assign')

@@ -7,3 +8,2 @@ var FLICK_THRESHOLD = 0.6

propTypes: {
className: React.PropTypes.string,
onSwiped: React.PropTypes.func,

@@ -29,3 +29,2 @@ onFlick: React.PropTypes.func,

return {
className: '',
delta: 10

@@ -128,8 +127,7 @@ }

render: function () {
return React.createElement('div', {
className: this.props.className,
return React.createElement('div', assign({
onTouchStart: this.touchStart,
onTouchMove: this.touchMove,
onTouchEnd: this.touchEnd
}, this.props.children)
}, this.props), this.props.children)
}

@@ -136,0 +134,0 @@ })

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