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

babel-plugin-transform-function-sent

Package Overview
Dependencies
Maintainers
6
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-function-sent - npm Package Compare versions

Comparing version 7.0.0-beta.2 to 7.0.0-beta.3

25

lib/index.js
"use strict";
exports.__esModule = true;
exports.default = _default;
exports.default = function (_ref) {
var _babelPluginSyntaxFunctionSent = _interopRequireDefault(require("babel-plugin-syntax-function-sent"));
var _babelHelperWrapFunction = _interopRequireDefault(require("babel-helper-wrap-function"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _default(_ref) {
var t = _ref.types;

@@ -36,3 +43,3 @@

return {
inherits: _babelPluginSyntaxFunctionSent2.default,
inherits: _babelPluginSyntaxFunctionSent.default,
visitor: {

@@ -52,16 +59,6 @@ MetaProperty: function MetaProperty(path, state) {

fnPath.node.body.body.unshift(t.variableDeclaration("let", [t.variableDeclarator(sentId, t.yieldExpression())]));
(0, _babelHelperWrapFunction2.default)(fnPath, state.addHelper("skipFirstGeneratorNext"));
(0, _babelHelperWrapFunction.default)(fnPath, state.addHelper("skipFirstGeneratorNext"));
}
}
};
};
var _babelPluginSyntaxFunctionSent = require("babel-plugin-syntax-function-sent");
var _babelPluginSyntaxFunctionSent2 = _interopRequireDefault(_babelPluginSyntaxFunctionSent);
var _babelHelperWrapFunction = require("babel-helper-wrap-function");
var _babelHelperWrapFunction2 = _interopRequireDefault(_babelHelperWrapFunction);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
}
{
"name": "babel-plugin-transform-function-sent",
"version": "7.0.0-beta.2",
"version": "7.0.0-beta.3",
"description": "Compile the function.sent meta propety to valid ES2015 code",

@@ -12,8 +12,8 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-function-sent",

"dependencies": {
"babel-helper-wrap-function": "7.0.0-beta.2",
"babel-plugin-syntax-function-sent": "7.0.0-beta.2"
"babel-helper-wrap-function": "7.0.0-beta.3",
"babel-plugin-syntax-function-sent": "7.0.0-beta.3"
},
"devDependencies": {
"babel-helper-plugin-test-runner": "7.0.0-beta.2"
"babel-helper-plugin-test-runner": "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