Socket
Socket
Sign inDemoInstall

@babel/helper-wrap-function

Package Overview
Dependencies
4
Maintainers
6
Versions
82
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.12.13 to 7.13.0

10

lib/index.js

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

function plainFunction(path, callId) {
function plainFunction(path, callId, noNewArrows) {
const node = path.node;

@@ -65,3 +65,5 @@ const isDeclaration = path.isFunctionDeclaration();

if (path.isArrowFunctionExpression()) {
path.arrowFunctionToExpression();
path.arrowFunctionToExpression({
noNewArrows
});
}

@@ -116,8 +118,8 @@

function wrapFunction(path, callId) {
function wrapFunction(path, callId, noNewArrows = true) {
if (path.isMethod()) {
classOrObjectMethod(path, callId);
} else {
plainFunction(path, callId);
plainFunction(path, callId, noNewArrows);
}
}

6

package.json
{
"name": "@babel/helper-wrap-function",
"version": "7.12.13",
"version": "7.13.0",
"description": "Helper to wrap functions inside a function call.",

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

"@babel/template": "^7.12.13",
"@babel/traverse": "^7.12.13",
"@babel/types": "^7.12.13"
"@babel/traverse": "^7.13.0",
"@babel/types": "^7.13.0"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc