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 @@ { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
22988
635
0