Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@babel/traverse

Package Overview
Dependencies
Maintainers
6
Versions
183
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/traverse - npm Package Compare versions

Comparing version 7.10.4 to 7.10.5

4

lib/index.js

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

var _includes = _interopRequireDefault(require("lodash/includes"));
var t = _interopRequireWildcard(require("@babel/types"));

@@ -107,3 +105,3 @@

traverse.hasType = function (tree, type, blacklistTypes) {
if ((0, _includes.default)(blacklistTypes, tree.type)) return false;
if (blacklistTypes == null ? void 0 : blacklistTypes.includes(tree.type)) return false;
if (tree.type === type) return true;

@@ -110,0 +108,0 @@ const state = {

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

var _includes = _interopRequireDefault(require("lodash/includes"));
var t = _interopRequireWildcard(require("@babel/types"));

@@ -36,4 +34,2 @@

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function matchesPattern(pattern, allowPartial) {

@@ -115,3 +111,3 @@ return t.matchesPattern(this.node, pattern, allowPartial);

} else {
return (0, _includes.default)(t.STATEMENT_OR_BLOCK_KEYS, this.key);
return t.STATEMENT_OR_BLOCK_KEYS.includes(this.key);
}

@@ -118,0 +114,0 @@ }

@@ -8,6 +8,2 @@ "use strict";

var _includes = _interopRequireDefault(require("lodash/includes"));
var _repeat = _interopRequireDefault(require("lodash/repeat"));
var _renamer = _interopRequireDefault(require("./lib/renamer"));

@@ -447,3 +443,3 @@

dump() {
const sep = (0, _repeat.default)("-", 60);
const sep = "-".repeat(60);
console.log(sep);

@@ -918,4 +914,4 @@ let scope = this;

if (this.hasUid(name)) return true;
if (!noGlobals && (0, _includes.default)(Scope.globals, name)) return true;
if (!noGlobals && (0, _includes.default)(Scope.contextVariables, name)) return true;
if (!noGlobals && Scope.globals.includes(name)) return true;
if (!noGlobals && Scope.contextVariables.includes(name)) return true;
return false;

@@ -922,0 +918,0 @@ }

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

var _clone = _interopRequireDefault(require("lodash/clone"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }

@@ -89,3 +85,3 @@

} else {
visitor[alias] = (0, _clone.default)(fns);
visitor[alias] = Object.assign({}, fns);
}

@@ -92,0 +88,0 @@ }

{
"name": "@babel/traverse",
"version": "7.10.4",
"version": "7.10.5",
"description": "The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes",

@@ -19,10 +19,10 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>",

"@babel/code-frame": "^7.10.4",
"@babel/generator": "^7.10.4",
"@babel/generator": "^7.10.5",
"@babel/helper-function-name": "^7.10.4",
"@babel/helper-split-export-declaration": "^7.10.4",
"@babel/parser": "^7.10.4",
"@babel/types": "^7.10.4",
"@babel/parser": "^7.10.5",
"@babel/types": "^7.10.5",
"debug": "^4.1.0",
"globals": "^11.1.0",
"lodash": "^4.17.13"
"lodash": "^4.17.19"
},

@@ -32,3 +32,3 @@ "devDependencies": {

},
"gitHead": "7fd40d86a0d03ff0e9c3ea16b29689945433d4df"
"gitHead": "f7964a9ac51356f7df6404a25b27ba1cffba1ba7"
}
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