babel-helpers
Advanced tools
Comparing version 7.0.0-beta.1 to 7.0.0-beta.2
@@ -25,3 +25,3 @@ "use strict"; | ||
helpers.asyncGeneratorDelegate = defineHelper("\n export default function _asyncGeneratorDelegate(inner, awaitWrap) {\n var iter = {}, waiting = false;\n\n function pump(key, value) {\n waiting = true;\n value = new Promise(function (resolve) { resolve(inner[key](value)); });\n return { done: false, value: awaitWrap(value) };\n };\n\n if (typeof Symbol === \"function\" && Symbol.iterator) {\n iter[Symbol.iterator] = function () { return this; };\n }\n\n iter.next = function (value) {\n if (waiting) {\n waiting = false;\n return value;\n }\n return pump(\"next\", value);\n };\n\n if (typeof inner.throw === \"function\") {\n iter.throw = function (value) {\n if (waiting) {\n waiting = false;\n throw value;\n }\n return pump(\"throw\", value);\n };\n }\n\n if (typeof inner.return === \"function\") {\n iter.return = function (value) {\n return pump(\"return\", value);\n };\n }\n\n return iter;\n }\n"); | ||
helpers.asyncToGenerator = defineHelper("\n export default function _asyncToGenerator(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"); | ||
helpers.asyncToGenerator = defineHelper("\n export default function _asyncToGenerator(fn) {\n return function () {\n var self = this, args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\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.classCallCheck = defineHelper("\n export default function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n"); | ||
@@ -28,0 +28,0 @@ helpers.createClass = defineHelper("\n function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i ++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n export default function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n }\n"); |
{ | ||
"name": "babel-helpers", | ||
"version": "7.0.0-beta.1", | ||
"version": "7.0.0-beta.2", | ||
"description": "Collection of helper functions used by Babel transforms.", | ||
@@ -11,6 +11,6 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>", | ||
"dependencies": { | ||
"babel-template": "7.0.0-beta.1", | ||
"babel-traverse": "7.0.0-beta.1", | ||
"babel-types": "7.0.0-beta.1" | ||
"babel-template": "7.0.0-beta.2", | ||
"babel-traverse": "7.0.0-beta.2", | ||
"babel-types": "7.0.0-beta.2" | ||
} | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
25803
247
0
+ Addedbabel-code-frame@7.0.0-beta.2(transitive)
+ Addedbabel-helper-function-name@7.0.0-beta.2(transitive)
+ Addedbabel-helper-get-function-arity@7.0.0-beta.2(transitive)
+ Addedbabel-messages@7.0.0-beta.2(transitive)
+ Addedbabel-template@7.0.0-beta.2(transitive)
+ Addedbabel-traverse@7.0.0-beta.2(transitive)
+ Addedbabel-types@7.0.0-beta.2(transitive)
+ Addedbabylon@7.0.0-beta.25(transitive)
- Removedbabel-code-frame@7.0.0-beta.1(transitive)
- Removedbabel-helper-function-name@7.0.0-beta.1(transitive)
- Removedbabel-helper-get-function-arity@7.0.0-beta.1(transitive)
- Removedbabel-messages@7.0.0-beta.1(transitive)
- Removedbabel-template@7.0.0-beta.1(transitive)
- Removedbabel-traverse@7.0.0-beta.1(transitive)
- Removedbabel-types@7.0.0-beta.1(transitive)
- Removedbabylon@7.0.0-beta.22(transitive)
Updatedbabel-template@7.0.0-beta.2
Updatedbabel-traverse@7.0.0-beta.2
Updatedbabel-types@7.0.0-beta.2