Socket
Socket
Sign inDemoInstall

acorn-jsx

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

acorn-jsx - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

22

index.js

@@ -0,1 +1,3 @@

'use strict';
const XHTMLEntities = require('./xhtml');

@@ -6,3 +8,10 @@

const {tokTypes: tt, TokContext, tokContexts, TokenType, isNewLine, isIdentifierStart, isIdentifierChar} = require("acorn");
const acorn = require("acorn");
const tt = acorn.tokTypes;
const TokContext = acorn.TokContext;
const tokContexts = acorn.tokContexts;
const TokenType = acorn.TokenType;
const isNewLine = acorn.isNewLine;
const isIdentifierStart = acorn.isIdentifierStart;
const isIdentifierChar = acorn.isIdentifierChar;

@@ -52,3 +61,4 @@ const tc_oTag = new TokContext('<tag', false);

module.exports = function(options = {}) {
module.exports = function(options) {
options = options || {};
return function(Parser) {

@@ -60,4 +70,4 @@ return plugin({

}
}
module.exports.tokTypes = tok
};
module.exports.tokTypes = tok;

@@ -121,3 +131,3 @@ function plugin(options, Parser) {

return out;
};
}

@@ -435,2 +445,2 @@ jsx_readString(quote) {

};
};
}

@@ -5,3 +5,3 @@ {

"homepage": "https://github.com/RReverser/acorn-jsx",
"version": "5.0.0",
"version": "5.0.1",
"maintainers": [

@@ -8,0 +8,0 @@ {

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