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

rc-util

Package Overview
Dependencies
Maintainers
4
Versions
211
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-util - npm Package Compare versions

Comparing version 4.5.1 to 4.6.0

4

es/Dom/addEventListener.js
import addDOMEventListener from 'add-dom-event-listener';
import ReactDOM from 'react-dom';
export default function addEventListenerWrap(target, eventType, cb) {
export default function addEventListenerWrap(target, eventType, cb, option) {
/* eslint camelcase: 2 */

@@ -9,3 +9,3 @@ var callback = ReactDOM.unstable_batchedUpdates ? function run(e) {

} : cb;
return addDOMEventListener(target, eventType, callback);
return addDOMEventListener(target, eventType, callback, option);
}
# History
----
## 4.6.0 / 2016-10-15
- addDOMEventListener support option
## 3.4.0 / 2016-08-16

@@ -5,0 +9,0 @@

@@ -18,3 +18,3 @@ 'use strict';

function addEventListenerWrap(target, eventType, cb) {
function addEventListenerWrap(target, eventType, cb, option) {
/* eslint camelcase: 2 */

@@ -24,4 +24,4 @@ var callback = _reactDom2['default'].unstable_batchedUpdates ? function run(e) {

} : cb;
return (0, _addDomEventListener2['default'])(target, eventType, callback);
return (0, _addDomEventListener2['default'])(target, eventType, callback, option);
}
module.exports = exports['default'];
{
"name": "rc-util",
"version": "4.5.1",
"version": "4.6.0",
"description": "Common Utils For React Component",

@@ -56,3 +56,3 @@ "keywords": [

"dependencies": {
"add-dom-event-listener": "1.x",
"add-dom-event-listener": "^1.1.0",
"babel-runtime": "6.x",

@@ -59,0 +59,0 @@ "prop-types": "^15.5.10",

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