Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-property-literals

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.0.0-beta.31 to 7.0.0-beta.32

13

lib/index.js

@@ -6,13 +6,14 @@ "use strict";

function _default(_ref) {
var t = _ref.types;
var _core = require("@babel/core");
function _default() {
return {
visitor: {
ObjectProperty: {
exit: function exit(_ref2) {
var node = _ref2.node;
exit: function exit(_ref) {
var node = _ref.node;
var key = node.key;
if (!node.computed && t.isIdentifier(key) && !t.isValidES3Identifier(key.name)) {
node.key = t.stringLiteral(key.name);
if (!node.computed && _core.types.isIdentifier(key) && !_core.types.isValidES3Identifier(key.name)) {
node.key = _core.types.stringLiteral(key.name);
}

@@ -19,0 +20,0 @@ }

{
"name": "@babel/plugin-transform-property-literals",
"version": "7.0.0-beta.31",
"version": "7.0.0-beta.32",
"description": "Ensure that reserved words are quoted in object property keys",

@@ -12,8 +12,8 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-property-literals",

"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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc