@babel/plugin-transform-shorthand-properties
Advanced tools
Comparing version 7.0.0-beta.31 to 7.0.0-beta.32
@@ -6,6 +6,4 @@ "use strict"; | ||
var t = _interopRequireWildcard(require("@babel/types")); | ||
var _core = require("@babel/core"); | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } | ||
function _default() { | ||
@@ -18,5 +16,6 @@ return { | ||
if (node.kind === "method") { | ||
var func = t.functionExpression(null, node.params, node.body, node.generator, node.async); | ||
var func = _core.types.functionExpression(null, node.params, node.body, node.generator, node.async); | ||
func.returnType = node.returnType; | ||
path.replaceWith(t.objectProperty(node.key, func, node.computed)); | ||
path.replaceWith(_core.types.objectProperty(node.key, func, node.computed)); | ||
} | ||
@@ -23,0 +22,0 @@ }, |
{ | ||
"name": "@babel/plugin-transform-shorthand-properties", | ||
"version": "7.0.0-beta.31", | ||
"version": "7.0.0-beta.32", | ||
"description": "Compile ES2015 shorthand properties to ES5", | ||
@@ -11,12 +11,9 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-shorthand-properties", | ||
], | ||
"dependencies": { | ||
"@babel/types": "7.0.0-beta.31" | ||
}, | ||
"peerDependencies": { | ||
"@babel/core": "7.0.0-beta.31" | ||
"@babel/core": "7.0.0-beta.32" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "7.0.0-beta.31", | ||
"@babel/helper-plugin-test-runner": "7.0.0-beta.31" | ||
"@babel/core": "7.0.0-beta.32", | ||
"@babel/helper-plugin-test-runner": "7.0.0-beta.32" | ||
} | ||
} |
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
1
2052
23
+ Added@babel/code-frame@7.0.0-beta.32(transitive)
+ Added@babel/core@7.0.0-beta.32(transitive)
+ Added@babel/generator@7.0.0-beta.32(transitive)
+ Added@babel/helper-function-name@7.0.0-beta.32(transitive)
+ Added@babel/helper-get-function-arity@7.0.0-beta.32(transitive)
+ Added@babel/helpers@7.0.0-beta.32(transitive)
+ Added@babel/template@7.0.0-beta.32(transitive)
+ Added@babel/traverse@7.0.0-beta.32(transitive)
+ Added@babel/types@7.0.0-beta.32(transitive)
+ Addedbabylon@7.0.0-beta.32(transitive)
- Removed@babel/types@7.0.0-beta.31
- Removed@babel/code-frame@7.0.0-beta.31(transitive)
- Removed@babel/core@7.0.0-beta.31(transitive)
- Removed@babel/generator@7.0.0-beta.31(transitive)
- Removed@babel/helper-function-name@7.0.0-beta.31(transitive)
- Removed@babel/helper-get-function-arity@7.0.0-beta.31(transitive)
- Removed@babel/helpers@7.0.0-beta.31(transitive)
- Removed@babel/template@7.0.0-beta.31(transitive)
- Removed@babel/traverse@7.0.0-beta.31(transitive)
- Removed@babel/types@7.0.0-beta.31(transitive)
- Removedbabylon@7.0.0-beta.31(transitive)