Socket
Socket
Sign inDemoInstall

react-easy-swipe

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-easy-swipe - npm Package Compare versions

Comparing version 0.0.16 to 0.0.17

51

lib/react-swipe.js

@@ -31,2 +31,28 @@ (function (global, factory) {

var _extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
}
return target;
};
function _objectWithoutProperties(obj, keys) {
var target = {};
for (var i in obj) {
if (keys.indexOf(i) >= 0) continue;
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
target[i] = obj[i];
}
return target;
}
function _classCallCheck(instance, Constructor) {

@@ -262,5 +288,20 @@ if (!(instance instanceof Constructor)) {

var _props = this.props,
tagName = _props.tagName,
className = _props.className,
style = _props.style,
children = _props.children,
allowMouseEvents = _props.allowMouseEvents,
onSwipeUp = _props.onSwipeUp,
onSwipeDown = _props.onSwipeDown,
onSwipeLeft = _props.onSwipeLeft,
onSwipeRight = _props.onSwipeRight,
onSwipeStart = _props.onSwipeStart,
onSwipeMove = _props.onSwipeMove,
onSwipeEnd = _props.onSwipeEnd,
props = _objectWithoutProperties(_props, ['tagName', 'className', 'style', 'children', 'allowMouseEvents', 'onSwipeUp', 'onSwipeDown', 'onSwipeLeft', 'onSwipeRight', 'onSwipeStart', 'onSwipeMove', 'onSwipeEnd']);
return _react2.default.createElement(
this.props.tagName,
{
_extends({
ref: function ref(node) {

@@ -272,6 +313,6 @@ return _this2.swiper = node;

onTouchEnd: this._handleSwipeEnd,
className: this.props.className,
style: this.props.style
},
this.props.children
className: className,
style: style
}, props),
children
);

@@ -278,0 +319,0 @@ }

2

package.json
{
"name": "react-easy-swipe",
"version": "0.0.16",
"version": "0.0.17",
"description": "React easy swipe - Easy handler for common touch operations",

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

@@ -28,3 +28,3 @@ # REACT EASY SWIPE

import ReactDOM from 'react-dom';
import Swipe from './react-easy-swipe';
import Swipe from 'react-easy-swipe';

@@ -31,0 +31,0 @@ class MyComponent extends Component {

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