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

babel-plugin-class-autobind

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

babel-plugin-class-autobind - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

lib/index.js

@@ -37,4 +37,4 @@ 'use strict';

}
return;
}
return;
}

@@ -41,0 +41,0 @@ path.get('body').pushContainer('body', t.expressionStatement(t.assignmentExpression('=', t.memberExpression(t.thisExpression(), t.identifier(node.key.name)), t.callExpression(t.memberExpression(t.memberExpression(t.thisExpression(), t.identifier(node.key.name), false), t.identifier('bind'), false), [t.thisExpression()]))));

{
"description": "binds prefixed class handlers",
"author": "Alexander @coobaha Ryzhikov",
"version": "2.0.0",
"version": "2.0.1",
"main": "lib/index.js",

@@ -6,0 +6,0 @@ "devDependencies": {

# babel-plugin-class-autobind
**Please note that this will add implicit magic to your code**
This plugin will autobind all handlers for components listed in directive '@autobind'
prefixes = `on, _on, handle, _handle`;

@@ -6,0 +7,0 @@ ## Example

@@ -6,3 +6,5 @@ '@autobind Component,Bindable';

}
//comment
handleMe(){}
/*comment*/
onMe(){}

@@ -9,0 +11,0 @@ noBind(){}

@@ -6,3 +6,5 @@ class Component {

}
//comment
handleMe() {}
/*comment*/
onMe() {}

@@ -9,0 +11,0 @@ noBind() {}

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