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.13.0 to 7.13.13

2

lib/context.js

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

const keys = t.VISITOR_KEYS[node.type];
if (!(keys == null ? void 0 : keys.length)) return false;
if (!(keys != null && keys.length)) return false;

@@ -38,0 +38,0 @@ for (const key of keys) {

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

traverse.hasType = function (tree, type, denylistTypes) {
if (denylistTypes == null ? void 0 : denylistTypes.includes(tree.type)) return false;
if (denylistTypes != null && denylistTypes.includes(tree.type)) return false;
if (tree.type === type) return true;

@@ -107,0 +107,0 @@ const state = {

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

if (binding == null ? void 0 : binding.hasValue) {
if (binding != null && binding.hasValue) {
return binding.value;

@@ -135,0 +135,0 @@ } else {

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

var _debug = _interopRequireDefault(require("debug"));
var _index = _interopRequireDefault(require("../index"));

@@ -51,3 +49,5 @@

const debug = (0, _debug.default)("babel");
const buildDebug = require("debug");
const debug = buildDebug("babel");
const REMOVED = 1 << 0;

@@ -54,0 +54,0 @@ exports.REMOVED = REMOVED;

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

if ((_inferer = inferer) == null ? void 0 : _inferer.validParent) {
if ((_inferer = inferer) != null && _inferer.validParent) {
return this.parentPath.getTypeAnnotation();

@@ -76,0 +76,0 @@ }

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

if (!((_this$opts = this.opts) == null ? void 0 : _this$opts.noScope)) {
if (!((_this$opts = this.opts) != null && _this$opts.noScope)) {
this._removeFromScope();

@@ -33,0 +33,0 @@ }

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

var _globals = _interopRequireDefault(require("globals"));
var t = _interopRequireWildcard(require("@babel/types"));

@@ -27,2 +25,4 @@

const globals = require("globals");
function gatherNodeParts(node, parts) {

@@ -475,3 +475,3 @@ switch (node == null ? void 0 : node.type) {

if ((binding == null ? void 0 : binding.constant) && binding.path.isGenericType("Array")) {
if (binding != null && binding.constant && binding.path.isGenericType("Array")) {
return node;

@@ -897,3 +897,3 @@ }

if (((_previousPath = previousPath) == null ? void 0 : _previousPath.isPattern()) && binding.kind !== "param") {} else {
if ((_previousPath = previousPath) != null && _previousPath.isPattern() && binding.kind !== "param") {} else {
return binding;

@@ -972,3 +972,3 @@ }

exports.default = Scope;
Scope.globals = Object.keys(_globals.default.builtin);
Scope.globals = Object.keys(globals.builtin);
Scope.contextVariables = ["arguments", "undefined", "Infinity", "NaN"];
{
"name": "@babel/traverse",
"version": "7.13.0",
"version": "7.13.13",
"description": "The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes",

@@ -20,14 +20,13 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>",

"@babel/code-frame": "^7.12.13",
"@babel/generator": "^7.13.0",
"@babel/generator": "^7.13.9",
"@babel/helper-function-name": "^7.12.13",
"@babel/helper-split-export-declaration": "^7.12.13",
"@babel/parser": "^7.13.0",
"@babel/types": "^7.13.0",
"@babel/parser": "^7.13.13",
"@babel/types": "^7.13.13",
"debug": "^4.1.0",
"globals": "^11.1.0",
"lodash": "^4.17.19"
"globals": "^11.1.0"
},
"devDependencies": {
"@babel/helper-plugin-test-runner": "7.12.13"
"@babel/helper-plugin-test-runner": "7.13.10"
}
}
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