Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-duplicate-keys

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-duplicate-keys - npm Package Compare versions

Comparing version 7.0.0-beta.47 to 7.0.0-beta.48

22

lib/index.js

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

_helperPluginUtils = function _helperPluginUtils() {
_helperPluginUtils = function () {
return data;

@@ -22,3 +22,3 @@ };

_core = function _core() {
_core = function () {
return data;

@@ -43,3 +43,5 @@ };

ObjectExpression(path) {
const node = path.node;
const {
node
} = path;
const plainProps = node.properties.filter(prop => !_core().types.isSpreadElement(prop) && !prop.computed);

@@ -50,15 +52,3 @@ const alreadySeenData = Object.create(null);

for (var _iterator = plainProps, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
var _ref;
if (_isArray) {
if (_i >= _iterator.length) break;
_ref = _iterator[_i++];
} else {
_i = _iterator.next();
if (_i.done) break;
_ref = _i.value;
}
const prop = _ref;
for (const prop of plainProps) {
const name = getName(prop.key);

@@ -65,0 +55,0 @@ let isDuplicate = false;

{
"name": "@babel/plugin-transform-duplicate-keys",
"version": "7.0.0-beta.47",
"version": "7.0.0-beta.48",
"description": "Compile objects with duplicate keys to valid strict ES5",

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

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