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

react-autobind

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-autobind - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

7

lib/autoBind.js

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

if (context === undefined) {
'console' in window && console.error('Autobind error: No context provided.');
console.error('Autobind error: No context provided.');
return;

@@ -31,2 +31,7 @@ }

if (descriptor === undefined) {
console.warn('Autobind: "' + method + '" method not found in class.');
return;
}
// Return if it's special case function or if not a function at all

@@ -33,0 +38,0 @@ if (wontBind.indexOf(method) !== -1 || typeof descriptor.value !== 'function') {

2

package.json
{
"name": "react-autobind",
"version": "1.0.5",
"version": "1.0.6",
"description": "Automatically binds methods defined within a component's Class to the current object's lexical `this` instance (similarly to the default behavior of React.createClass).",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -17,3 +17,3 @@ const wontBind = [

if(context === undefined) {
'console' in window && console.error('Autobind error: No context provided.');
console.error('Autobind error: No context provided.');
return;

@@ -35,2 +35,7 @@ }

if(descriptor === undefined) {
console.warn(`Autobind: "${method}" method not found in class.`);
return;
}
// Return if it's special case function or if not a function at all

@@ -37,0 +42,0 @@ if(wontBind.indexOf(method) !== -1 || typeof descriptor.value !== 'function') {

Sorry, the diff of this file is not supported yet

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