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.5.7 to 0.5.8

13

dist/react-event-listener.cjs.js

@@ -8,9 +8,8 @@ 'use strict';

var _classCallCheck = _interopDefault(require('@babel/runtime/helpers/builtin/classCallCheck'));
var _inherits = _interopDefault(require('@babel/runtime/helpers/builtin/inherits'));
var _createClass = _interopDefault(require('@babel/runtime/helpers/builtin/createClass'));
var _possibleConstructorReturn = _interopDefault(require('@babel/runtime/helpers/builtin/possibleConstructorReturn'));
var _getPrototypeOf = _interopDefault(require('@babel/runtime/helpers/builtin/getPrototypeOf'));
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 _extends = _interopDefault(require('@babel/runtime/helpers/builtin/extends'));
var _objectSpread = _interopDefault(require('@babel/runtime/helpers/builtin/objectSpread'));
var React = _interopDefault(require('react'));

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

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

@@ -122,6 +121,8 @@

function (_React$Component) {
_inherits(EventListener, _React$Component);
function EventListener() {
_classCallCheck(this, EventListener);
return _possibleConstructorReturn(this, _getPrototypeOf(EventListener).apply(this, arguments));
return _possibleConstructorReturn(this, (EventListener.__proto__ || Object.getPrototypeOf(EventListener)).apply(this, arguments));
}

@@ -186,4 +187,2 @@

_inherits(EventListener, _React$Component);
return EventListener;

@@ -190,0 +189,0 @@ }(React.Component);

import _classCallCheck from '@babel/runtime/helpers/builtin/es6/classCallCheck';
import _inherits from '@babel/runtime/helpers/builtin/es6/inherits';
import _createClass from '@babel/runtime/helpers/builtin/es6/createClass';
import _possibleConstructorReturn from '@babel/runtime/helpers/builtin/es6/possibleConstructorReturn';
import _getPrototypeOf from '@babel/runtime/helpers/builtin/es6/getPrototypeOf';
import _inherits from '@babel/runtime/helpers/builtin/es6/inherits';
import _typeof from '@babel/runtime/helpers/builtin/es6/typeof';
import _objectWithoutProperties from '@babel/runtime/helpers/builtin/es6/objectWithoutProperties';
import _extends from '@babel/runtime/helpers/builtin/es6/extends';
import _objectSpread from '@babel/runtime/helpers/builtin/es6/objectSpread';
import React from 'react';

@@ -49,3 +48,3 @@ import PropTypes from 'prop-types';

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

@@ -115,6 +114,8 @@

function (_React$Component) {
_inherits(EventListener, _React$Component);
function EventListener() {
_classCallCheck(this, EventListener);
return _possibleConstructorReturn(this, _getPrototypeOf(EventListener).apply(this, arguments));
return _possibleConstructorReturn(this, (EventListener.__proto__ || Object.getPrototypeOf(EventListener)).apply(this, arguments));
}

@@ -179,4 +180,2 @@

_inherits(EventListener, _React$Component);
return EventListener;

@@ -183,0 +182,0 @@ }(React.Component);

@@ -16,20 +16,2 @@ (function (global, factory) {

function _setPrototypeOf(o, p) {
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
o.__proto__ = p;
return o;
};
return _setPrototypeOf(o, p);
}
function _inherits(subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function");
}
setPrototypeOf(subClass.prototype, superClass && superClass.prototype);
if (superClass) setPrototypeOf(subClass, superClass);
}
function _defineProperties(target, props) {

@@ -83,10 +65,20 @@ for (var i = 0; i < props.length; i++) {

function _getPrototypeOf(o) {
_getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) {
return o.__proto__;
function _setPrototypeOf(o, p) {
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
o.__proto__ = p;
return o;
};
return _getPrototypeOf(o);
return _setPrototypeOf(o, p);
}
function _inherits(subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function");
}
setPrototypeOf(subClass.prototype, superClass && superClass.prototype);
if (superClass) setPrototypeOf(subClass, superClass);
}
function _objectWithoutProperties(source, excluded) {

@@ -118,18 +110,34 @@ if (source == null) return {};

function _extends() {
_extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
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;
}
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
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;
}));
}
return target;
};
ownKeys.forEach(function (key) {
_defineProperty(target, key, source[key]);
});
}
return _extends.apply(this, arguments);
return target;
}

@@ -286,3 +294,3 @@

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

@@ -352,6 +360,8 @@

function (_React$Component) {
_inherits(EventListener, _React$Component);
function EventListener() {
_classCallCheck(this, EventListener);
return _possibleConstructorReturn(this, _getPrototypeOf(EventListener).apply(this, arguments));
return _possibleConstructorReturn(this, (EventListener.__proto__ || Object.getPrototypeOf(EventListener)).apply(this, arguments));
}

@@ -416,4 +426,2 @@

_inherits(EventListener, _React$Component);
return EventListener;

@@ -420,0 +428,0 @@ }(React.Component);

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

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

"devDependencies": {
"@babel/core": "^7.0.0-beta.47",
"@babel/plugin-transform-modules-commonjs": "^7.0.0-beta.47",
"@babel/plugin-transform-runtime": "^7.0.0-beta.47",
"@babel/preset-env": "^7.0.0-beta.47",
"@babel/preset-react": "^7.0.0-beta.47",
"@babel/preset-stage-3": "^7.0.0-beta.47",
"@babel/register": "^7.0.0-beta.47",
"@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-bridge.0",

@@ -75,3 +75,3 @@ "babel-eslint": "^8.0.1",

"dependencies": {
"@babel/runtime": "^7.0.0-beta.47",
"@babel/runtime": "^7.0.0-beta.42",
"fbjs": "^0.8.16",

@@ -78,0 +78,0 @@ "prop-types": "^15.6.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