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

babel-helper-wrap-function

Package Overview
Dependencies
Maintainers
1
Versions
9
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.0.0-beta.2 to 7.0.0-beta.3

18

lib/index.js

@@ -6,14 +6,8 @@ "use strict";

var _babelHelperFunctionName = require("babel-helper-function-name");
var _babelHelperFunctionName = _interopRequireDefault(require("babel-helper-function-name"));
var _babelHelperFunctionName2 = _interopRequireDefault(_babelHelperFunctionName);
var _babelTemplate = _interopRequireDefault(require("babel-template"));
var _babelTemplate = require("babel-template");
var t = _interopRequireWildcard(require("babel-types"));
var _babelTemplate2 = _interopRequireDefault(_babelTemplate);
var _babelTypes = require("babel-types");
var t = _interopRequireWildcard(_babelTypes);
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

@@ -23,4 +17,4 @@

var buildWrapper = (0, _babelTemplate2.default)("\n (() => {\n var REF = FUNCTION;\n return function NAME(PARAMS) {\n return REF.apply(this, arguments);\n };\n })\n");
var namedBuildWrapper = (0, _babelTemplate2.default)("\n (() => {\n var REF = FUNCTION;\n function NAME(PARAMS) {\n return REF.apply(this, arguments);\n }\n return NAME;\n })\n");
var buildWrapper = (0, _babelTemplate.default)("\n (() => {\n var REF = FUNCTION;\n return function NAME(PARAMS) {\n return REF.apply(this, arguments);\n };\n })\n");
var namedBuildWrapper = (0, _babelTemplate.default)("\n (() => {\n var REF = FUNCTION;\n function NAME(PARAMS) {\n return REF.apply(this, arguments);\n }\n return NAME;\n })\n");

@@ -89,3 +83,3 @@ function classOrObjectMethod(path, callId) {

if (!functionId) {
(0, _babelHelperFunctionName2.default)({
(0, _babelHelperFunctionName.default)({
node: retFunction,

@@ -92,0 +86,0 @@ parent: path.parent,

{
"name": "babel-helper-wrap-function",
"version": "7.0.0-beta.2",
"version": "7.0.0-beta.3",
"description": "Helper to wrap functions inside a function call.",

@@ -9,7 +9,7 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-wrap-function",

"dependencies": {
"babel-helper-function-name": "7.0.0-beta.2",
"babel-template": "7.0.0-beta.2",
"babel-traverse": "7.0.0-beta.2",
"babel-types": "7.0.0-beta.2"
"babel-helper-function-name": "7.0.0-beta.3",
"babel-template": "7.0.0-beta.3",
"babel-traverse": "7.0.0-beta.3",
"babel-types": "7.0.0-beta.3"
}
}
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