babel-helpers
Advanced tools
Comparing version 7.0.0-alpha.9 to 7.0.0-alpha.10
@@ -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 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"); | ||
helpers.asyncToGenerator = (0, _babelTemplate2.default)("\n (function (fn) {\n return function () {\n return new Promise((resolve, reject) => {\n var gen = fn.apply(this, arguments);\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.9", | ||
"version": "7.0.0-alpha.10", | ||
"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.9" | ||
"babel-template": "7.0.0-alpha.10" | ||
} | ||
} |
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
18117
+ Addedbabel-helper-function-name@7.0.0-alpha.7(transitive)
+ Addedbabel-helper-get-function-arity@7.0.0-alpha.7(transitive)
+ Addedbabel-messages@7.0.0-alpha.10(transitive)
+ Addedbabel-template@7.0.0-alpha.10(transitive)
+ Addedbabel-traverse@7.0.0-alpha.10(transitive)
+ Addedbabel-types@7.0.0-alpha.10(transitive)
+ Addedbabylon@7.0.0-beta.10(transitive)
- Removedbabel-messages@7.0.0-alpha.9(transitive)
- Removedbabel-template@7.0.0-alpha.9(transitive)
- Removedbabel-traverse@7.0.0-alpha.9(transitive)
- Removedbabel-types@7.0.0-alpha.9(transitive)
- Removedbabylon@7.0.0-beta.8(transitive)