Socket
Socket
Sign inDemoInstall

espree

Package Overview
Dependencies
Maintainers
3
Versions
97
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 9.6.0 to 9.6.1

7

espree.js

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

/* eslint-disable jsdoc/no-multi-asterisks -- needed to preserve original formatting of licences */
/**

@@ -57,4 +59,5 @@ * @fileoverview Main Espree file that converts Acorn into Esprima output.

*/
/* eslint no-undefined:0, no-use-before-define: 0 */
/* eslint-enable jsdoc/no-multi-asterisks -- needed to preserve original formatting of licences */
import * as acorn from "acorn";

@@ -115,3 +118,3 @@ import jsx from "acorn-jsx";

if (!options || options.tokens !== true) {
options = Object.assign({}, options, { tokens: true }); // eslint-disable-line no-param-reassign
options = Object.assign({}, options, { tokens: true }); // eslint-disable-line no-param-reassign -- stylistic choice
}

@@ -118,0 +121,0 @@

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

/* eslint-disable no-param-reassign*/
/* eslint no-param-reassign: 0 -- stylistic choice */
import TokenTranslator from "./token-translator.js";

@@ -112,3 +113,3 @@ import { normalizeOptions } from "./options.js";

// Collect tokens
onToken: token => {
onToken(token) {
if (tokenTranslator) {

@@ -125,3 +126,3 @@

// Collect comments
onComment: (block, text, start, end, startLoc, endLoc) => {
onComment(block, text, start, end, startLoc, endLoc) {
if (state.comments) {

@@ -319,3 +320,3 @@ const comment = convertAcornCommentToEsprimaComment(block, text, start, end, startLoc, endLoc, code);

*/
jsx_readString(quote) { // eslint-disable-line camelcase
jsx_readString(quote) { // eslint-disable-line camelcase -- required by API
const result = super.jsx_readString(quote);

@@ -322,0 +323,0 @@

@@ -5,3 +5,2 @@ /**

*/
/* eslint no-underscore-dangle: 0 */

@@ -184,4 +183,3 @@ //------------------------------------------------------------------------------

const that = this,
tt = this._acornTokTypes,
const tt = this._acornTokTypes,
tokens = extra.tokens,

@@ -196,6 +194,6 @@ templateTokens = this._tokens;

*/
function translateTemplateTokens() {
tokens.push(convertTemplatePart(that._tokens, that._code));
that._tokens = [];
}
const translateTemplateTokens = () => {
tokens.push(convertTemplatePart(this._tokens, this._code));
this._tokens = [];
};

@@ -202,0 +200,0 @@ if (token.type === tt.eof) {

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

const version = "9.6.0";
const version = "9.6.1";
export default version;

@@ -19,3 +19,3 @@ {

},
"version": "9.6.0",
"version": "9.6.1",
"files": [

@@ -46,8 +46,8 @@ "lib",

"chai": "^4.3.6",
"eslint": "^8.13.0",
"eslint-config-eslint": "^7.0.0",
"eslint-plugin-jsdoc": "^39.2.4",
"eslint-plugin-node": "^11.1.0",
"eslint": "^8.44.0",
"eslint-config-eslint": "^8.0.0",
"eslint-plugin-n": "^16.0.0",
"eslint-release": "^3.2.0",
"esprima-fb": "^8001.2001.0-dev-harmony-fb",
"globals": "^13.20.0",
"lint-staged": "^13.2.0",

@@ -76,3 +76,3 @@ "mocha": "^9.2.2",

"test": "npm-run-all -p unit lint",
"lint": "eslint .",
"lint": "eslint . --report-unused-disable-directives",
"fixlint": "npm run lint -- --fix",

@@ -79,0 +79,0 @@ "build": "rollup -c rollup.config.js",

Sorry, the diff of this file is not supported yet

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