Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-shorthand-properties

Package Overview
Dependencies
Maintainers
4
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-shorthand-properties - npm Package Compare versions

Comparing version 7.0.0-beta.31 to 7.0.0-beta.32

9

lib/index.js

@@ -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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc