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

react-swipeable

Package Overview
Dependencies
Maintainers
2
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 3.5.0 to 3.5.1

6

CHANGELOG.md

@@ -1,3 +0,7 @@

# 3.4.0
# 3.5.1
* fix React 15.2.0 warning for unknown properties on DOM elements
# 3.5.0
* Add configurable container element via `nodeName` prop, defaults to `'div'`. See [#24](https://github.com/dogfessional/react-swipeable/issues/24) and [#40](https://github.com/dogfessional/react-swipeable/pull/40) for more info.

@@ -4,0 +8,0 @@

@@ -155,7 +155,25 @@ 'use strict';

render: function render() {
return React.createElement(this.props.nodeName, _extends({}, this.props, {
var newProps = _extends({}, this.props, {
onTouchStart: this.touchStart,
onTouchMove: this.touchMove,
onTouchEnd: this.touchEnd
}), this.props.children);
});
delete newProps.onSwiped;
delete newProps.onSwiping;
delete newProps.onSwipingUp;
delete newProps.onSwipingRight;
delete newProps.onSwipingDown;
delete newProps.onSwipingLeft;
delete newProps.onSwipedUp;
delete newProps.onSwipedRight;
delete newProps.onSwipedDown;
delete newProps.onSwipedLeft;
delete newProps.flickThreshold;
delete newProps.delta;
delete newProps.preventDefaultTouchmoveEvent;
delete newProps.nodeName;
delete newProps.children;
return React.createElement(this.props.nodeName, newProps, this.props.children);
}

@@ -162,0 +180,0 @@ });

2

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

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

@@ -154,10 +154,28 @@ const React = require('react')

render: function () {
const newProps = {
...this.props,
onTouchStart: this.touchStart,
onTouchMove: this.touchMove,
onTouchEnd: this.touchEnd,
}
delete newProps.onSwiped
delete newProps.onSwiping
delete newProps.onSwipingUp
delete newProps.onSwipingRight
delete newProps.onSwipingDown
delete newProps.onSwipingLeft
delete newProps.onSwipedUp
delete newProps.onSwipedRight
delete newProps.onSwipedDown
delete newProps.onSwipedLeft
delete newProps.flickThreshold
delete newProps.delta
delete newProps.preventDefaultTouchmoveEvent
delete newProps.nodeName
delete newProps.children
return React.createElement(
this.props.nodeName,
{
...this.props,
onTouchStart: this.touchStart,
onTouchMove: this.touchMove,
onTouchEnd: this.touchEnd,
},
newProps,
this.props.children

@@ -164,0 +182,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