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

@babel/traverse

Package Overview
Dependencies
Maintainers
4
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.0.0-beta.31 to 7.0.0-beta.32

2

lib/path/conversion.js

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

this.get("body").unshiftContainer("body", t.expressionStatement(t.callExpression(this.hub.file.addHelper("newArrowCheck"), [t.thisExpression(), checkBinding ? t.identifier(checkBinding.name) : t.identifier(thisBinding)])));
this.replaceWith(t.callExpression(t.memberExpression((0, _helperFunctionName.default)(this) || this.node, t.identifier("bind")), [checkBinding ? t.identifier(checkBinding.name) : t.thisExpression()]));
this.replaceWith(t.callExpression(t.memberExpression((0, _helperFunctionName.default)(this, true) || this.node, t.identifier("bind")), [checkBinding ? t.identifier(checkBinding.name) : t.thisExpression()]));
}

@@ -122,0 +122,0 @@ }

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

var _crawlCallsCount = 0;
function gatherNodeParts(node, parts) {

@@ -387,2 +385,4 @@ if (t.isModuleDeclaration(node)) {

_proto.registerDeclaration = function registerDeclaration(path) {
if (path.isFlow()) return;
if (path.isLabeledStatement()) {

@@ -482,3 +482,2 @@ this.registerLabel(path);

if (local && local.path.isFlow()) local = null;
parent.references[name] = true;

@@ -636,10 +635,2 @@

_proto.crawl = function crawl() {
_crawlCallsCount++;
this._crawl();
_crawlCallsCount--;
};
_proto._crawl = function _crawl() {
var path = this.path;

@@ -887,10 +878,2 @@ this.references = Object.create(null);

_proto.warnOnFlowBinding = function warnOnFlowBinding(binding) {
if (_crawlCallsCount === 0 && binding && binding.path.isFlow()) {
console.warn("\n You or one of the Babel plugins you are using are using Flow declarations as bindings.\n Support for this will be removed in version 7. To find out the caller, grep for this\n message and change it to a `console.trace()`.\n ");
}
return binding;
};
_proto.getBinding = function getBinding(name) {

@@ -901,3 +884,3 @@ var scope = this;

var binding = scope.getOwnBinding(name);
if (binding) return this.warnOnFlowBinding(binding);
if (binding) return binding;
} while (scope = scope.parent);

@@ -907,3 +890,3 @@ };

_proto.getOwnBinding = function getOwnBinding(name) {
return this.warnOnFlowBinding(this.bindings[name]);
return this.bindings[name];
};

@@ -910,0 +893,0 @@

{
"name": "@babel/traverse",
"version": "7.0.0-beta.31",
"version": "7.0.0-beta.32",
"description": "The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes",

@@ -11,6 +11,6 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>",

"dependencies": {
"@babel/code-frame": "7.0.0-beta.31",
"@babel/helper-function-name": "7.0.0-beta.31",
"@babel/types": "7.0.0-beta.31",
"babylon": "7.0.0-beta.31",
"@babel/code-frame": "7.0.0-beta.32",
"@babel/helper-function-name": "7.0.0-beta.32",
"@babel/types": "7.0.0-beta.32",
"babylon": "7.0.0-beta.32",
"debug": "^3.0.1",

@@ -22,5 +22,5 @@ "globals": "^10.0.0",

"devDependencies": {
"@babel/generator": "7.0.0-beta.31",
"@babel/helper-plugin-test-runner": "7.0.0-beta.31"
"@babel/generator": "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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc