babel-helpers
Advanced tools
Comparing version 7.0.0-alpha.7 to 7.0.0-alpha.8
@@ -25,3 +25,3 @@ "use strict"; | ||
helpers.asyncToGenerator = (0, _babelTemplate2.default)("\n (function (fn) {\n return function () {\n var gen = fn.apply(this, arguments);\n return new Promise(function (resolve, reject) {\n function step(key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n return Promise.resolve(value).then(function (value) {\n step(\"next\", value);\n }, function (err) {\n step(\"throw\", err);\n });\n }\n }\n\n return step(\"next\");\n });\n };\n })\n"); | ||
helpers.asyncToGenerator = (0, _babelTemplate2.default)("\n (function (fn) {\n return function () {\n var gen = fn.apply(this, arguments);\n return new Promise(function (resolve, reject) {\n function step(key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n }\n function _next(value) { step(\"next\", value); }\n function _throw(err) { step(\"throw\", err); }\n\n _next();\n });\n };\n })\n"); | ||
@@ -28,0 +28,0 @@ helpers.classCallCheck = (0, _babelTemplate2.default)("\n (function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n });\n"); |
{ | ||
"name": "babel-helpers", | ||
"version": "7.0.0-alpha.7", | ||
"version": "7.0.0-alpha.8", | ||
"description": "Collection of helper functions used by Babel transforms.", | ||
@@ -11,4 +11,4 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>", | ||
"dependencies": { | ||
"babel-template": "7.0.0-alpha.7" | ||
"babel-template": "7.0.0-alpha.8" | ||
} | ||
} |
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
18119
+ Addedbabel-messages@7.0.0-alpha.8(transitive)
+ Addedbabel-template@7.0.0-alpha.8(transitive)
+ Addedbabel-traverse@7.0.0-alpha.8(transitive)
- Removedbabel-messages@7.0.0-alpha.3(transitive)
- Removedbabel-template@7.0.0-alpha.7(transitive)
- Removedbabel-traverse@7.0.0-alpha.7(transitive)
Updatedbabel-template@7.0.0-alpha.8