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

babel-eslint

Package Overview
Dependencies
Maintainers
1
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 1.0.10 to 1.0.11

8

acorn-to-esprima.js

@@ -22,2 +22,6 @@ var tokTypes = require("babel").acorn.tokTypes;

function isCompatTag(tagName) {
return tagName && /^[a-z]|\-/.test(tagName);
}
var astTransformVisitor = {

@@ -57,4 +61,6 @@ noScope: true,

return t.inherits(t.thisExpression(), node);
} else if (!t.isJSXAttribute(parent) && !isCompatTag(node.name)) {
node.type = "Identifier";
} else {
node.type = "Identifier";
// just ignore this node as it'd be something like <div> or an attribute name
}

@@ -61,0 +67,0 @@ }

6

index.js
var acornToEsprima = require("./acorn-to-esprima");
var traverse = require("babel").traverse;
var extend = require("lodash/object/extend");
var assign = require("lodash.assign");
var Module = require("module");

@@ -36,3 +36,3 @@ var acorn = require("babel").acorn;

var estraverse = escopeMod.require("estraverse");
extend(estraverse.VisitorKeys, t.VISITOR_KEYS);
assign(estraverse.VisitorKeys, t.VISITOR_KEYS);

@@ -77,3 +77,3 @@ // monkeypatch escope

}
throw err;

@@ -80,0 +80,0 @@ }

{
"name": "babel-eslint",
"version": "1.0.10",
"version": "1.0.11",
"description": "",

@@ -12,3 +12,3 @@ "main": "index.js",

"babel": "^4.6.0",
"lodash": "^3.3.1"
"lodash.assign": "^3.0.0"
},

@@ -15,0 +15,0 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>",

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