Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-shorthand-properties

Package Overview
Dependencies
1
Maintainers
4
Versions
69
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.18.6 to 7.21.4-esm

lib/index.js.map

14

lib/index.js

@@ -7,7 +7,4 @@ "use strict";

exports.default = void 0;
var _helperPluginUtils = require("@babel/helper-plugin-utils");
var _core = require("@babel/core");
var _default = (0, _helperPluginUtils.declare)(api => {

@@ -22,10 +19,6 @@ api.assertVersion(7);

} = path;
if (node.kind === "method") {
const func = _core.types.functionExpression(null, node.params, node.body, node.generator, node.async);
func.returnType = node.returnType;
const computedKey = _core.types.toComputedKey(node);
if (_core.types.isStringLiteral(computedKey, {

@@ -40,3 +33,2 @@ value: "__proto__"

},
ObjectProperty(path) {

@@ -46,6 +38,4 @@ const {

} = path;
if (node.shorthand) {
const computedKey = _core.types.toComputedKey(node);
if (_core.types.isStringLiteral(computedKey, {

@@ -60,7 +50,7 @@ value: "__proto__"

}
}
};
});
exports.default = _default;
exports.default = _default;
//# sourceMappingURL=index.js.map
{
"name": "@babel/plugin-transform-shorthand-properties",
"version": "7.18.6",
"version": "7.21.4-esm",
"description": "Compile ES2015 shorthand properties to ES5",

@@ -20,10 +20,10 @@ "repository": {

"dependencies": {
"@babel/helper-plugin-utils": "^7.18.6"
"@babel/helper-plugin-utils": "^7.21.4-esm"
},
"peerDependencies": {
"@babel/core": "^7.0.0-0"
"@babel/core": "^7.0.0-0 || 7.21.4-esm"
},
"devDependencies": {
"@babel/core": "^7.18.6",
"@babel/helper-plugin-test-runner": "^7.18.6"
"@babel/core": "^7.21.4-esm",
"@babel/helper-plugin-test-runner": "^7.21.4-esm"
},

@@ -30,0 +30,0 @@ "engines": {

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc