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

react-event-listener

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-event-listener - npm Package Compare versions

Comparing version 0.6.2 to 0.6.3

src/index.test.js

2

CHANGELOG.md

@@ -1,1 +0,1 @@

All notable changes are described on the [Releases](https://github.com/oliviertassinari/react-swipeable-views/releases) page.
All notable changes are described on the [Releases](https://github.com/oliviertassinari/react-event-listener/releases) page.

@@ -7,9 +7,10 @@ 'use strict';

var _classCallCheck = _interopDefault(require('@babel/runtime/helpers/builtin/classCallCheck'));
var _createClass = _interopDefault(require('@babel/runtime/helpers/builtin/createClass'));
var _possibleConstructorReturn = _interopDefault(require('@babel/runtime/helpers/builtin/possibleConstructorReturn'));
var _inherits = _interopDefault(require('@babel/runtime/helpers/builtin/inherits'));
var _typeof = _interopDefault(require('@babel/runtime/helpers/builtin/typeof'));
var _objectWithoutProperties = _interopDefault(require('@babel/runtime/helpers/builtin/objectWithoutProperties'));
var _objectSpread = _interopDefault(require('@babel/runtime/helpers/builtin/objectSpread'));
var _classCallCheck = _interopDefault(require('@babel/runtime/helpers/classCallCheck'));
var _createClass = _interopDefault(require('@babel/runtime/helpers/createClass'));
var _possibleConstructorReturn = _interopDefault(require('@babel/runtime/helpers/possibleConstructorReturn'));
var _getPrototypeOf = _interopDefault(require('@babel/runtime/helpers/getPrototypeOf'));
var _inherits = _interopDefault(require('@babel/runtime/helpers/inherits'));
var _typeof = _interopDefault(require('@babel/runtime/helpers/typeof'));
var _objectWithoutProperties = _interopDefault(require('@babel/runtime/helpers/objectWithoutProperties'));
var _extends = _interopDefault(require('@babel/runtime/helpers/extends'));
var React = _interopDefault(require('react'));

@@ -54,3 +55,3 @@ var PropTypes = _interopDefault(require('prop-types'));

function mergeDefaultEventOptions(options) {
return _objectSpread({}, defaultEventOptions, options);
return _extends({}, defaultEventOptions, options);
}

@@ -125,3 +126,3 @@

return _possibleConstructorReturn(this, (EventListener.__proto__ || Object.getPrototypeOf(EventListener)).apply(this, arguments));
return _possibleConstructorReturn(this, _getPrototypeOf(EventListener).apply(this, arguments));
}

@@ -128,0 +129,0 @@

@@ -64,2 +64,18 @@ (function (global, factory) {

function _getPrototypeOf(o) {
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
return o.__proto__ || Object.getPrototypeOf(o);
};
return _getPrototypeOf(o);
}
function _setPrototypeOf(o, p) {
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
o.__proto__ = p;
return o;
};
return _setPrototypeOf(o, p);
}
function _inherits(subClass, superClass) {

@@ -73,3 +89,2 @@ if (typeof superClass !== "function" && superClass !== null) {

value: subClass,
enumerable: false,
writable: true,

@@ -79,6 +94,6 @@ configurable: true

});
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
if (superClass) _setPrototypeOf(subClass, superClass);
}
function _objectWithoutProperties(source, excluded) {
function _objectWithoutPropertiesLoose(source, excluded) {
if (source == null) return {};

@@ -95,2 +110,10 @@ var target = {};

return target;
}
function _objectWithoutProperties(source, excluded) {
if (source == null) return {};
var target = _objectWithoutPropertiesLoose(source, excluded);
var key, i;
if (Object.getOwnPropertySymbols) {

@@ -110,34 +133,18 @@ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);

function _defineProperty(obj, key, value) {
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
function _extends() {
_extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
return obj;
}
function _objectSpread(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i] != null ? arguments[i] : {};
var ownKeys = Object.keys(source);
if (typeof Object.getOwnPropertySymbols === 'function') {
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
}));
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
}
ownKeys.forEach(function (key) {
_defineProperty(target, key, source[key]);
});
}
return target;
};
return target;
return _extends.apply(this, arguments);
}

@@ -150,4 +157,2 @@

* LICENSE file in the root directory of this source tree.
*
* @providesModule warning
*/

@@ -235,3 +240,3 @@

function mergeDefaultEventOptions(options) {
return _objectSpread({}, defaultEventOptions, options);
return _extends({}, defaultEventOptions, options);
}

@@ -306,3 +311,3 @@

return _possibleConstructorReturn(this, (EventListener.__proto__ || Object.getPrototypeOf(EventListener)).apply(this, arguments));
return _possibleConstructorReturn(this, _getPrototypeOf(EventListener).apply(this, arguments));
}

@@ -309,0 +314,0 @@

{
"name": "react-event-listener",
"version": "0.6.2",
"version": "0.6.3",
"description": "A React component that allow to bind events on the global scope",

@@ -33,9 +33,10 @@ "main": "dist/react-event-listener.cjs.js",

"devDependencies": {
"@babel/core": "7.0.0-beta.42",
"@babel/plugin-transform-modules-commonjs": "7.0.0-beta.42",
"@babel/plugin-transform-runtime": "7.0.0-beta.42",
"@babel/preset-env": "7.0.0-beta.42",
"@babel/preset-react": "7.0.0-beta.42",
"@babel/preset-stage-3": "7.0.0-beta.42",
"@babel/register": "7.0.0-beta.42",
"@babel/core": "7.0.0-rc.1",
"@babel/plugin-proposal-class-properties": "^7.0.0-rc.1",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0-rc.1",
"@babel/plugin-transform-modules-commonjs": "7.0.0-rc.1",
"@babel/plugin-transform-runtime": "7.0.0-rc.1",
"@babel/preset-env": "7.0.0-rc.1",
"@babel/preset-react": "7.0.0-rc.1",
"@babel/register": "7.0.0-rc.1",
"babel-core": "^7.0.0-bridge.0",

@@ -48,4 +49,4 @@ "babel-eslint": "^8.0.1",

"enzyme-adapter-react-16": "^1.0.1",
"eslint": "^4.8.0",
"eslint-config-airbnb": "^16.0.0",
"eslint": "^5.0.0",
"eslint-config-airbnb": "^17.0.0",
"eslint-plugin-babel": "^5.0.0",

@@ -57,3 +58,3 @@ "eslint-plugin-import": "^2.7.0",

"eslint-plugin-react": "^7.4.0",
"jsdom": "^11.3.0",
"jsdom": "^12.0.0",
"mocha": "^5.0.0",

@@ -66,3 +67,3 @@ "pkgfiles": "^2.3.2",

"rimraf": "^2.6.2",
"rollup": "^0.59.1",
"rollup": "^0.64.1",
"rollup-plugin-babel": "^4.0.0-beta.4",

@@ -73,7 +74,7 @@ "rollup-plugin-commonjs": "^9.1.3",

"rollup-plugin-size-snapshot": "^0.4.1",
"sinon": "^5.0.0",
"size-limit": "^0.18.0"
"sinon": "^6.1.2",
"size-limit": "^0.19.2"
},
"dependencies": {
"@babel/runtime": "7.0.0-beta.42",
"@babel/runtime": "7.0.0-rc.1",
"prop-types": "^15.6.0",

@@ -80,0 +81,0 @@ "warning": "^4.0.1"

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