babel-plugin-transform-function-sent
Advanced tools
Comparing version 7.0.0-beta.2 to 7.0.0-beta.3
"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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3592
51
+ Addedbabel-code-frame@7.0.0-beta.3(transitive)
+ Addedbabel-helper-function-name@7.0.0-beta.3(transitive)
+ Addedbabel-helper-get-function-arity@7.0.0-beta.3(transitive)
+ Addedbabel-helper-wrap-function@7.0.0-beta.3(transitive)
+ Addedbabel-plugin-syntax-function-sent@7.0.0-beta.3(transitive)
+ Addedbabel-template@7.0.0-beta.3(transitive)
+ Addedbabel-traverse@7.0.0-beta.3(transitive)
+ Addedbabel-types@7.0.0-beta.3(transitive)
+ Addedbabylon@7.0.0-beta.27(transitive)
- Removedbabel-code-frame@7.0.0-beta.2(transitive)
- Removedbabel-helper-function-name@7.0.0-beta.2(transitive)
- Removedbabel-helper-get-function-arity@7.0.0-beta.2(transitive)
- Removedbabel-helper-wrap-function@7.0.0-beta.2(transitive)
- Removedbabel-messages@7.0.0-beta.2(transitive)
- Removedbabel-plugin-syntax-function-sent@7.0.0-beta.2(transitive)
- Removedbabel-template@7.0.0-beta.2(transitive)
- Removedbabel-traverse@7.0.0-beta.2(transitive)
- Removedbabel-types@7.0.0-beta.2(transitive)
- Removedbabylon@7.0.0-beta.25(transitive)