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

babel-plugin-aexpr-source-transformation

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-aexpr-source-transformation - npm Package Compare versions

Comparing version 2.3.0 to 2.3.1

2

dist/index.js

@@ -160,3 +160,3 @@ "use strict";

// TODO: is there a general way to exclude non-variables?
!t.isObjectProperty(path.parent) && !t.isClassDeclaration(path.parent) && !t.isClassMethod(path.parent) && !t.isImportSpecifier(path.parent) && !t.isMemberExpression(path.parent) && !t.isObjectMethod(path.parent) && !t.isVariableDeclarator(path.parent) && !t.isFunctionDeclaration(path.parent) && !t.isRestElement(path.parent) && (!t.isAssignmentExpression(path.parent) || !(path.parentKey === 'left'))) {
!t.isObjectProperty(path.parent) && !t.isClassDeclaration(path.parent) && !t.isClassMethod(path.parent) && !t.isImportSpecifier(path.parent) && !t.isMemberExpression(path.parent) && !t.isObjectMethod(path.parent) && !t.isVariableDeclarator(path.parent) && !t.isFunctionDeclaration(path.parent) && !(t.isArrowFunctionExpression(path.parent) && path.parentKey === 'params') && !(t.isFunctionExpression(path.parent) && path.parentKey === 'params') && !t.isRestElement(path.parent) && (!t.isAssignmentExpression(path.parent) || !(path.parentKey === 'left'))) {
if (path.scope.hasBinding(path.node.name)) {

@@ -163,0 +163,0 @@ //logIdentifier('get local var', path)

@@ -198,2 +198,4 @@ const AEXPR_IDENTIFIER_NAME = "aexpr";

!t.isFunctionDeclaration(path.parent) &&
!(t.isArrowFunctionExpression(path.parent) && path.parentKey === 'params') &&
!(t.isFunctionExpression(path.parent) && path.parentKey === 'params') &&
!t.isRestElement(path.parent) &&

@@ -200,0 +202,0 @@ (!t.isAssignmentExpression(path.parent) || !(path.parentKey === 'left'))

{
"name": "babel-plugin-aexpr-source-transformation",
"version": "2.3.0",
"version": "2.3.1",
"description": "3rd implementation strategy of active expressions, via a babel transformation",

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

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