Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoSign in
Socket

@babel/helper-wrap-function

Package Overview
Dependencies
Maintainers
4
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/helper-wrap-function - npm Package Compare versions

Comparing version
7.27.1
to
7.28.3
+3
-3
lib/index.js

@@ -51,4 +51,4 @@ "use strict";

let params = [];
const shoudlForwardParams = node.params.some(p => isPattern(p));
if (shoudlForwardParams) {
const shouldForwardParams = node.params.some(p => isPattern(p));
if (shouldForwardParams) {
params = node.params;

@@ -66,3 +66,3 @@ node.params = [];

const container = functionExpression(null, params, blockStatement(body.body), true);
if (shoudlForwardParams) {
if (shouldForwardParams) {
body.body = [returnStatement(callExpression(memberExpression(callExpression(callId, [container]), identifier("apply")), [thisExpression(), identifier("arguments")]))];

@@ -69,0 +69,0 @@ path.get("body.body.0.argument.callee.object.arguments.0").unwrapFunctionEnvironment();

{
"name": "@babel/helper-wrap-function",
"version": "7.27.1",
"version": "7.28.3",
"description": "Helper to wrap functions inside a function call.",

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

"dependencies": {
"@babel/template": "^7.27.1",
"@babel/traverse": "^7.27.1",
"@babel/types": "^7.27.1"
"@babel/template": "^7.27.2",
"@babel/traverse": "^7.28.3",
"@babel/types": "^7.28.2"
},

@@ -22,0 +22,0 @@ "engines": {

Sorry, the diff of this file is not supported yet