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

react-auto-bind

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-auto-bind - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

15

index.js

@@ -5,3 +5,3 @@ /* global define, window */

var exclude = [
const exclude = [
'render',

@@ -11,2 +11,3 @@ 'componentWillReceiveProps',

'componentDidUpdate',
'componentDidCatch',
'shouldComponentUpdate',

@@ -19,5 +20,5 @@ 'componentWillUnmount',

function reactAutoBind(self, ...bindOnly) {
const reactAutoBind = (self, ...bindOnly) => {
((bindOnly.length && bindOnly) || Object.getOwnPropertyNames(self.constructor.prototype))
.forEach(function (key) {
.forEach(key => {
const val = self[key];

@@ -33,3 +34,3 @@

return self;
}
};

@@ -39,8 +40,6 @@ if (typeof module !== 'undefined' && module.exports) {

} else if (typeof define === 'function' && define.amd) {
// register as 'react-auto-bind', consistent with npm package name
define('react-auto-bind', [], function () {
return reactAutoBind;
});
// Register as 'react-auto-bind', consistent with npm package name
define('react-auto-bind', [], () => reactAutoBind);
} else {
window.reactAutoBind = reactAutoBind;
}
{
"name": "react-auto-bind",
"version": "0.4.0",
"version": "0.4.1",
"description": "Auto bind methods to their class instance excluding React Lifecycle Methods",

@@ -5,0 +5,0 @@ "license": "MIT",

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