@babel/helpers
Advanced tools
Comparing version 7.0.0-beta.37 to 7.0.0-beta.38
@@ -19,3 +19,3 @@ "use strict"; | ||
helpers.typeof = defineHelper("\n export default function _typeof(obj) {\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function (obj) { return typeof obj; };\n } else {\n _typeof = function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype\n ? \"symbol\"\n : typeof obj;\n };\n }\n\n return _typeof(obj);\n }\n"); | ||
helpers.jsx = defineHelper("\n var REACT_ELEMENT_TYPE;\n\n export default function _createRawReactElement(type, props, key, children) {\n if (!REACT_ELEMENT_TYPE) {\n REACT_ELEMENT_TYPE = (typeof Symbol === \"function\" && Symbol.for && Symbol.for(\"react.element\")) || 0xeac7;\n }\n\n var defaultProps = type && type.defaultProps;\n var childrenLength = arguments.length - 3;\n\n if (!props && childrenLength !== 0) {\n // If we're going to assign props.children, we create a new object now\n // to avoid mutating defaultProps.\n props = {};\n }\n if (props && defaultProps) {\n for (var propName in defaultProps) {\n if (props[propName] === void 0) {\n props[propName] = defaultProps[propName];\n }\n }\n } else if (!props) {\n props = defaultProps || {};\n }\n\n if (childrenLength === 1) {\n props.children = children;\n } else if (childrenLength > 1) {\n var childArray = new Array(childrenLength);\n for (var i = 0; i < childrenLength; i++) {\n childArray[i] = arguments[i + 3];\n }\n props.children = childArray;\n }\n\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key === undefined ? null : '' + key,\n ref: null,\n props: props,\n _owner: null,\n };\n }\n"); | ||
helpers.jsx = defineHelper("\n var REACT_ELEMENT_TYPE;\n\n export default function _createRawReactElement(type, props, key, children) {\n if (!REACT_ELEMENT_TYPE) {\n REACT_ELEMENT_TYPE = (typeof Symbol === \"function\" && Symbol.for && Symbol.for(\"react.element\")) || 0xeac7;\n }\n\n var defaultProps = type && type.defaultProps;\n var childrenLength = arguments.length - 3;\n\n if (!props && childrenLength !== 0) {\n // If we're going to assign props.children, we create a new object now\n // to avoid mutating defaultProps.\n props = {\n children: void 0,\n };\n }\n if (props && defaultProps) {\n for (var propName in defaultProps) {\n if (props[propName] === void 0) {\n props[propName] = defaultProps[propName];\n }\n }\n } else if (!props) {\n props = defaultProps || {};\n }\n\n if (childrenLength === 1) {\n props.children = children;\n } else if (childrenLength > 1) {\n var childArray = new Array(childrenLength);\n for (var i = 0; i < childrenLength; i++) {\n childArray[i] = arguments[i + 3];\n }\n props.children = childArray;\n }\n\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key === undefined ? null : '' + key,\n ref: null,\n props: props,\n _owner: null,\n };\n }\n"); | ||
helpers.asyncIterator = defineHelper("\n export default function _asyncIterator(iterable) {\n if (typeof Symbol === \"function\") {\n if (Symbol.asyncIterator) {\n var method = iterable[Symbol.asyncIterator];\n if (method != null) return method.call(iterable);\n }\n if (Symbol.iterator) {\n return iterable[Symbol.iterator]();\n }\n }\n throw new TypeError(\"Object is not async iterable\");\n }\n"); | ||
@@ -22,0 +22,0 @@ helpers.AwaitValue = defineHelper("\n export default function _AwaitValue(value) {\n this.wrapped = value;\n }\n"); |
{ | ||
"name": "@babel/helpers", | ||
"version": "7.0.0-beta.37", | ||
"version": "7.0.0-beta.38", | ||
"description": "Collection of helper functions used by Babel transforms.", | ||
@@ -11,9 +11,9 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>", | ||
"dependencies": { | ||
"@babel/template": "7.0.0-beta.37", | ||
"@babel/traverse": "7.0.0-beta.37", | ||
"@babel/types": "7.0.0-beta.37" | ||
"@babel/template": "7.0.0-beta.38", | ||
"@babel/traverse": "7.0.0-beta.38", | ||
"@babel/types": "7.0.0-beta.38" | ||
}, | ||
"devDependencies": { | ||
"@babel/helper-plugin-test-runner": "7.0.0-beta.37" | ||
"@babel/helper-plugin-test-runner": "7.0.0-beta.38" | ||
} | ||
} |
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
34704
329
+ Added@babel/code-frame@7.0.0-beta.38(transitive)
+ Added@babel/generator@7.0.0-beta.38(transitive)
+ Added@babel/helper-function-name@7.0.0-beta.38(transitive)
+ Added@babel/helper-get-function-arity@7.0.0-beta.38(transitive)
+ Added@babel/template@7.0.0-beta.38(transitive)
+ Added@babel/traverse@7.0.0-beta.38(transitive)
+ Added@babel/types@7.0.0-beta.38(transitive)
+ Addedbabylon@7.0.0-beta.38(transitive)
+ Addedjsesc@2.5.2(transitive)
+ Addedsource-map@0.5.7(transitive)
+ Addedtrim-right@1.0.1(transitive)
- Removed@babel/code-frame@7.0.0-beta.37(transitive)
- Removed@babel/helper-function-name@7.0.0-beta.37(transitive)
- Removed@babel/helper-get-function-arity@7.0.0-beta.37(transitive)
- Removed@babel/template@7.0.0-beta.37(transitive)
- Removed@babel/traverse@7.0.0-beta.37(transitive)
- Removed@babel/types@7.0.0-beta.37(transitive)
- Removedbabylon@7.0.0-beta.37(transitive)
Updated@babel/types@7.0.0-beta.38