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
6
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.2.0 to 7.7.4

26

lib/index.js

@@ -8,23 +8,7 @@ "use strict";

function _helperPluginUtils() {
const data = require("@babel/helper-plugin-utils");
var _helperPluginUtils = require("@babel/helper-plugin-utils");
_helperPluginUtils = function () {
return data;
};
var _core = require("@babel/core");
return data;
}
function _core() {
const data = require("@babel/core");
_core = function () {
return data;
};
return data;
}
var _default = (0, _helperPluginUtils().declare)(api => {
var _default = (0, _helperPluginUtils.declare)(api => {
api.assertVersion(7);

@@ -40,6 +24,6 @@ return {

if (node.kind === "method") {
const 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);
func.returnType = node.returnType;
path.replaceWith(_core().types.objectProperty(node.key, func, node.computed));
path.replaceWith(_core.types.objectProperty(node.key, func, node.computed));
}

@@ -46,0 +30,0 @@ },

9

package.json
{
"name": "@babel/plugin-transform-shorthand-properties",
"version": "7.2.0",
"version": "7.7.4",
"description": "Compile ES2015 shorthand properties to ES5",

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

"devDependencies": {
"@babel/core": "^7.2.0",
"@babel/helper-plugin-test-runner": "^7.0.0"
}
"@babel/core": "^7.7.4",
"@babel/helper-plugin-test-runner": "^7.7.4"
},
"gitHead": "75767d87cb147709b9bd9b99bf44daa6688874a9"
}

Sorry, the diff of this file is not supported yet

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