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

babel-eslint

Package Overview
Dependencies
Maintainers
2
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-eslint - npm Package Compare versions

Comparing version 3.1.8 to 3.1.9

test.js

27

acorn-to-esprima.js

@@ -178,3 +178,3 @@ var traverse = require("babel-core").traverse;

exit: function (node, parent) {
if (t.isSpreadProperty(node)) {
if (this.isSpreadProperty()) {
node.type = "Property";

@@ -187,11 +187,11 @@ node.kind = "init";

if (t.isTypeCastExpression(node)) {
if (this.isTypeCastExpression()) {
return node.expression;
}
if (t.isFlow(node)) {
if (this.isFlow()) {
return this.remove();
}
if (t.isRestElement(node)) {
if (this.isRestElement()) {
return node.argument;

@@ -202,10 +202,11 @@ }

if (t.isImportDeclaration(node)) {
if (this.isImportDeclaration()) {
delete node.isType;
}
if (t.isExportDeclaration(node)) {
if (t.isClassExpression(node.declaration)) {
if (this.isExportDeclaration(node)) {
var declar = this.get("declaration");
if (declar.isClassExpression()) {
node.declaration.type = "ClassDeclaration";
} else if (t.isFunctionExpression(node.declaration)) {
} else if (declar.isFunctionExpression()) {
node.declaration.type = "FunctionDeclaration";

@@ -217,7 +218,7 @@ }

if (t.isReferencedIdentifier(node, parent, { name: "super" })) {
if (this.isReferencedIdentifier({ name: "super" })) {
return t.inherits(t.thisExpression(), node);
}
if (t.isClassProperty(node)) {
if (this.isClassProperty()) {
delete node.key;

@@ -228,3 +229,3 @@ }

if (t.isFunction(node)) {
if (this.isFunction()) {
if (node.async) node.generator = true;

@@ -234,3 +235,3 @@ delete node.async;

if (t.isAwaitExpression(node)) {
if (this.isAwaitExpression()) {
node.type = "YieldExpression";

@@ -243,3 +244,3 @@ node.delegate = node.all;

if (t.isTemplateLiteral(node)) {
if (this.isTemplateLiteral()) {
node.quasis.forEach(function (q) {

@@ -246,0 +247,0 @@ q.range[0] -= 1;

{
"name": "babel-eslint",
"version": "3.1.8",
"version": "3.1.9",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

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