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

angular-estree-parser

Package Overview
Dependencies
Maintainers
0
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-estree-parser - npm Package Compare versions

Comparing version 10.1.0 to 10.2.0

18

lib/transform-node.js

@@ -263,10 +263,21 @@ import * as angular from '@angular/compiler';

}
if (node instanceof angular.PrefixNot) {
const isPrefixNot = node instanceof angular.PrefixNot;
if (isPrefixNot || node instanceof angular.TypeofExpression) {
const expression = this.#transform(node.expression);
const operator = isPrefixNot ? '!' : 'typeof';
let { start } = node.sourceSpan;
if (!isPrefixNot) {
const index = this.text.lastIndexOf(operator, start);
// istanbul ignore next 7
if (index === -1) {
throw new Error(`Cannot find operator ${operator} from index ${start} in ${JSON.stringify(this.text)}`);
}
start = index;
}
return this.#create({
type: 'UnaryExpression',
prefix: true,
operator: '!',
operator,
argument: expression,
start: node.sourceSpan.start, // !
start,
end: getOuterEnd(expression),

@@ -359,2 +370,3 @@ }, { hasParentParens: isInParentParens });

// PrefixNot
// TypeofExpression
function transform(node, text) {

@@ -361,0 +373,0 @@ return new Transformer(node, text).node;

2

package.json
{
"name": "angular-estree-parser",
"version": "10.1.0",
"version": "10.2.0",
"description": "A parser that converts Angular source code into an ESTree-compatible form",

@@ -5,0 +5,0 @@ "keywords": [],

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