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

estraverse-fb

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

estraverse-fb - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

2

estraverse-fb.js

@@ -9,3 +9,3 @@ var estraverse = module.exports = require('estraverse');

var keys = VisitorKeys[nodeType];
if (keys) {

@@ -12,0 +12,0 @@ estraverse.VisitorKeys[nodeType] = keys;

@@ -1,15 +0,16 @@

module.exports = {
XJSIdentifier: [],
XJSNamespacedName: ['namespace', 'name'],
XJSMemberExpression: ['object', 'property'],
XJSEmptyExpression: [],
XJSExpressionContainer: ['expression'],
XJSElement: ['openingElement', 'closingElement', 'children'],
XJSClosingElement: ['name'],
XJSOpeningElement: ['name', 'attributes'],
XJSAttribute: ['name', 'value'],
XJSText: null,
XJSSpreadAttribute: ['argument'],
var unprefixedKeys = {
Identifier: [],
NamespacedName: ['namespace', 'name'],
MemberExpression: ['object', 'property'],
EmptyExpression: [],
ExpressionContainer: ['expression'],
Element: ['openingElement', 'closingElement', 'children'],
ClosingElement: ['name'],
OpeningElement: ['name', 'attributes'],
Attribute: ['name', 'value'],
Text: null,
SpreadAttribute: ['argument']
};
/* Flow Type Annotations */
var flowKeys = {
Type: [],

@@ -48,3 +49,10 @@ AnyTypeAnnotation: [],

DeclareModule: ["id", "body"]
/* End: Flow Type Annotations */
};
for (var key in unprefixedKeys) {
exports['XJS' + key] = exports['JSX' + key] = unprefixedKeys[key];
}
for (var key in flowKeys) {
exports[key] = flowKeys[key];
}
{
"name": "estraverse-fb",
"version": "1.2.0",
"version": "1.3.0",
"description": "Drop-in for estraverse that enables traversal over React's JSX nodes.",

@@ -5,0 +5,0 @@ "main": "estraverse-fb.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