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

espree

Package Overview
Dependencies
Maintainers
1
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

espree - npm Package Compare versions

Comparing version 1.11.0 to 1.12.0

6

lib/ast-node-factory.js

@@ -575,8 +575,10 @@ /**

* @param {ASTNode} body The program body
* @param {string} sourceType Either "module" or "script".
* @returns {ASTNode} An ASTNode representing an entire program
*/
createProgram: function (body) {
createProgram: function (body, sourceType) {
return {
type: astNodeTypes.Program,
body: body
body: body,
sourceType: sourceType
};

@@ -583,0 +585,0 @@ },

@@ -11,3 +11,3 @@ {

},
"version": "1.11.0",
"version": "1.12.0",
"files": [

@@ -14,0 +14,0 @@ "bin",

@@ -183,3 +183,2 @@ # Espree

* All Esprima/Harmony incompatibilities.
* Esprima-FB uses the term "XJS" to refer to its JSX support. This is seen primarily in the AST node types, such as `"XJSElement"`. Espree uses "JSX" to refer to JSX functionality, including AST node types. So, `"XJSElement"` in Esprima-FB is `"JSXElement"` in Espree (and the same is true for all JSX-related node types).

@@ -186,0 +185,0 @@ ## Frequently Asked Questions

Sorry, the diff of this file is too big to display

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