Socket
Socket
Sign inDemoInstall

@babel/helper-member-expression-to-functions

Package Overview
Dependencies
Maintainers
6
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/helper-member-expression-to-functions - npm Package Compare versions

Comparing version 7.10.1 to 7.10.3

11

lib/index.js

@@ -167,2 +167,5 @@ "use strict";

});
const parentIsCall = parentPath.isCallExpression({
callee: node
});
startingOptional.replaceWith(toNonOptional(startingOptional, baseRef));

@@ -176,2 +179,4 @@

}
} else if (parentIsCall) {
member.replaceWith(this.boundGet(member));
} else {

@@ -293,3 +298,5 @@ member.replaceWith(this.get(member));

if (parentPath.isObjectProperty({
if (parentPath.isForXStatement({
left: node
}) || parentPath.isObjectProperty({
value: node

@@ -313,5 +320,5 @@ }) && parentPath.parentPath.isObjectPattern() || parentPath.isAssignmentPattern({

function memberExpressionToFunctions(path, visitor, state) {
path.traverse(visitor, Object.assign(Object.assign(Object.assign({}, handle), state), {}, {
path.traverse(visitor, Object.assign({}, handle, state, {
memoiser: new AssignmentMemoiser()
}));
}

6

package.json
{
"name": "@babel/helper-member-expression-to-functions",
"version": "7.10.1",
"version": "7.10.3",
"description": "Helper function to replace certain member expressions with function calls",

@@ -17,5 +17,5 @@ "repository": {

"dependencies": {
"@babel/types": "^7.10.1"
"@babel/types": "^7.10.3"
},
"gitHead": "88f57a7ea659d25232bf62de1efceb5d6299b8cf"
"gitHead": "2787ee2f967b6d8e1121fca00a8d578d75449a53"
}
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