Socket
Socket
Sign inDemoInstall

@babel/helper-define-map

Package Overview
Dependencies
18
Maintainers
6
Versions
55
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.12.13 to 7.13.12

6

lib/index.js

@@ -14,4 +14,2 @@ "use strict";

var _has = _interopRequireDefault(require("lodash/has"));
var t = _interopRequireWildcard(require("@babel/types"));

@@ -35,6 +33,8 @@

const has = Function.prototype.call.bind(Object.prototype.hasOwnProperty);
function push(mutatorMap, node, kind, file, scope) {
const alias = t.toKeyAlias(node);
let map = {};
if ((0, _has.default)(mutatorMap, alias)) map = mutatorMap[alias];
if (has(mutatorMap, alias)) map = mutatorMap[alias];
mutatorMap[alias] = map;

@@ -41,0 +41,0 @@ map._inherits = map._inherits || [];

{
"name": "@babel/helper-define-map",
"version": "7.12.13",
"version": "7.13.12",
"description": "Helper function to define a map",

@@ -18,5 +18,4 @@ "repository": {

"@babel/helper-function-name": "^7.12.13",
"@babel/types": "^7.12.13",
"lodash": "^4.17.19"
"@babel/types": "^7.13.12"
}
}
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