angular-estree-parser
Advanced tools
Comparing version 6.1.0 to 6.2.0
@@ -0,0 +0,0 @@ export declare class Context { |
@@ -0,0 +0,0 @@ import { LinesAndColumns } from 'lines-and-columns'; |
@@ -0,0 +0,0 @@ import type { NGMicrosyntax, NGNode } from './types.js'; |
@@ -0,0 +0,0 @@ import { Context } from './context.js'; |
@@ -0,0 +0,0 @@ import type * as ng from '@angular/compiler'; |
@@ -0,0 +0,0 @@ import { ExpressionBinding as NGExpressionBinding, VariableBinding as NGVariableBinding, } from '@angular/compiler'; |
@@ -0,0 +0,0 @@ import type * as ng from '@angular/compiler'; |
@@ -72,3 +72,5 @@ import { findBackChar, findFrontChar, fitSpans, getLast, getNgType, } from './utils.js'; | ||
} | ||
case 'KeyedRead': { | ||
case 'KeyedRead': | ||
case 'SafeKeyedRead': { | ||
const isOptionalType = type === 'SafeKeyedRead'; | ||
const { key } = node; | ||
@@ -82,3 +84,3 @@ /* istanbul ignore next */ | ||
computed: true, | ||
optional: false, | ||
optional: isOptionalType, | ||
}, { | ||
@@ -85,0 +87,0 @@ end: node.sourceSpan.end, |
@@ -0,0 +0,0 @@ import type * as b from '@babel/types'; |
export {}; |
@@ -0,0 +0,0 @@ import * as ng from '@angular/compiler'; |
@@ -93,2 +93,5 @@ import * as ng from '@angular/compiler'; | ||
} | ||
if (node instanceof ng.SafeKeyedRead) { | ||
return "SafeKeyedRead"; | ||
} | ||
if (node instanceof ng.KeyedWrite) { | ||
@@ -95,0 +98,0 @@ return "KeyedWrite"; |
{ | ||
"name": "angular-estree-parser", | ||
"version": "6.1.0", | ||
"version": "6.2.0", | ||
"description": "A parser that converts Angular source code into an ESTree-compatible form", | ||
@@ -34,15 +34,15 @@ "keywords": [], | ||
"devDependencies": { | ||
"@angular/compiler": "15.2.2", | ||
"@babel/code-frame": "7.18.6", | ||
"@babel/parser": "7.21.2", | ||
"@babel/types": "7.21.2", | ||
"@angular/compiler": "15.2.5", | ||
"@babel/code-frame": "7.21.4", | ||
"@babel/parser": "7.21.4", | ||
"@babel/types": "7.21.4", | ||
"@types/babel-types": "7.0.11", | ||
"@types/babel__code-frame": "7.0.3", | ||
"@types/jest": "29.4.1", | ||
"@types/jest": "29.5.0", | ||
"@types/prettier": "2.7.2", | ||
"@typescript-eslint/eslint-plugin": "5.55.0", | ||
"@typescript-eslint/parser": "5.55.0", | ||
"@typescript-eslint/eslint-plugin": "5.57.0", | ||
"@typescript-eslint/parser": "5.57.0", | ||
"del-cli": "5.0.0", | ||
"eslint": "8.36.0", | ||
"eslint-config-prettier": "8.7.0", | ||
"eslint": "8.37.0", | ||
"eslint-config-prettier": "8.8.0", | ||
"eslint-plugin-import": "2.27.5", | ||
@@ -52,9 +52,9 @@ "jest": "29.5.0", | ||
"npm-run-all": "4.1.5", | ||
"prettier": "2.8.4", | ||
"prettier": "2.8.7", | ||
"standard-version": "9.5.0", | ||
"ts-jest": "29.0.5", | ||
"typescript": "4.9.5" | ||
"ts-jest": "29.1.0", | ||
"typescript": "5.0.3" | ||
}, | ||
"peerDependencies": { | ||
"@angular/compiler": "^15.2.2" | ||
"@angular/compiler": "^15.2.5" | ||
}, | ||
@@ -72,3 +72,3 @@ "engines": { | ||
}, | ||
"packageManager": "yarn@3.4.1" | ||
"packageManager": "yarn@3.5.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
924
40738