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

@typescript-eslint/typescript-estree

Package Overview
Dependencies
Maintainers
1
Versions
3941
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@typescript-eslint/typescript-estree - npm Package Compare versions

Comparing version 1.10.3-alpha.8 to 1.10.3-alpha.9

29

dist/convert-comments.js

@@ -90,9 +90,20 @@ "use strict";

container = node_utils_1.getNodeContainer(ast, start, end);
if (container &&
container.parent &&
container.parent.kind === ts.SyntaxKind.JsxOpeningElement &&
// Make sure this is the end of the opening element and not type parameter
end === container.parent.end &&
if ((container.parent &&
container.parent.parent &&
container.parent.parent.kind === ts.SyntaxKind.JsxElement) {
// Rescan after an opening element or fragment
(container.parent.kind === ts.SyntaxKind.JsxOpeningElement &&
// Make sure this is the end of a tag like `<Component<number>>`
container.parent.end === end)) ||
container.parent.kind === ts.SyntaxKind.JsxOpeningFragment ||
// Rescan after a self-closing element if it's inside another JSX element
(container.parent.kind === ts.SyntaxKind.JsxSelfClosingElement &&
(container.parent.parent.kind === ts.SyntaxKind.JsxElement ||
container.parent.parent.kind === ts.SyntaxKind.JsxFragment)) ||
// Rescan after a closing element if it's inside another JSX element
((container.parent.kind === ts.SyntaxKind.JsxClosingElement ||
container.parent.kind === ts.SyntaxKind.JsxClosingFragment) &&
container.parent.parent.parent &&
(container.parent.parent.parent.kind === ts.SyntaxKind.JsxElement ||
container.parent.parent.parent.kind ===
ts.SyntaxKind.JsxFragment))) {
kind = triviaScanner.reScanJsxToken();

@@ -104,2 +115,8 @@ continue;

container = node_utils_1.getNodeContainer(ast, start, end);
// Rescan after a JSX expression
if (container.parent &&
container.parent.kind === ts.SyntaxKind.JsxExpression) {
kind = triviaScanner.reScanJsxToken();
continue;
}
if (container.kind === ts.SyntaxKind.TemplateMiddle ||

@@ -106,0 +123,0 @@ container.kind === ts.SyntaxKind.TemplateTail) {

{
"name": "@typescript-eslint/typescript-estree",
"version": "1.10.3-alpha.8+9a387b0",
"version": "1.10.3-alpha.9+34cfa53",
"description": "A parser that converts TypeScript source code into an ESTree compatible form",

@@ -49,5 +49,5 @@ "main": "dist/parser.js",

"@babel/types": "^7.3.2",
"@typescript-eslint/shared-fixtures": "1.10.3-alpha.8+9a387b0"
"@typescript-eslint/shared-fixtures": "1.10.3-alpha.9+34cfa53"
},
"gitHead": "9a387b03e5f8b7d2ca9c0e373387c17a1a20b4a0"
"gitHead": "34cfa53da623683bcf5e78eea746f73873a7a726"
}

Sorry, the diff of this file is not supported yet

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