Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@babel/plugin-transform-shorthand-properties

Package Overview
Dependencies
Maintainers
5
Versions
73
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.46 to 7.0.0-beta.47

18

lib/index.js

@@ -9,3 +9,3 @@ "use strict";

function _helperPluginUtils() {
var data = require("@babel/helper-plugin-utils");
const data = require("@babel/helper-plugin-utils");

@@ -20,3 +20,3 @@ _helperPluginUtils = function _helperPluginUtils() {

function _core() {
var data = require("@babel/core");
const data = require("@babel/core");

@@ -30,11 +30,11 @@ _core = function _core() {

var _default = (0, _helperPluginUtils().declare)(function (api) {
var _default = (0, _helperPluginUtils().declare)(api => {
api.assertVersion(7);
return {
visitor: {
ObjectMethod: function ObjectMethod(path) {
var node = path.node;
ObjectMethod(path) {
const node = path.node;
if (node.kind === "method") {
var func = _core().types.functionExpression(null, node.params, node.body, node.generator, node.async);
const func = _core().types.functionExpression(null, node.params, node.body, node.generator, node.async);

@@ -45,5 +45,6 @@ func.returnType = node.returnType;

},
ObjectProperty: function ObjectProperty(_ref) {
var node = _ref.node;
ObjectProperty({
node
}) {
if (node.shorthand) {

@@ -53,2 +54,3 @@ node.shorthand = false;

}
}

@@ -55,0 +57,0 @@ };

{
"name": "@babel/plugin-transform-shorthand-properties",
"version": "7.0.0-beta.46",
"version": "7.0.0-beta.47",
"description": "Compile ES2015 shorthand properties to ES5",

@@ -12,11 +12,11 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-shorthand-properties",

"dependencies": {
"@babel/helper-plugin-utils": "7.0.0-beta.46"
"@babel/helper-plugin-utils": "7.0.0-beta.47"
},
"peerDependencies": {
"@babel/core": "7.0.0-beta.46"
"@babel/core": "7.0.0-beta.47"
},
"devDependencies": {
"@babel/core": "7.0.0-beta.46",
"@babel/helper-plugin-test-runner": "7.0.0-beta.46"
"@babel/core": "7.0.0-beta.47",
"@babel/helper-plugin-test-runner": "7.0.0-beta.47"
}
}
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