Socket
Socket
Sign inDemoInstall

angular-estree-parser

Package Overview
Dependencies
Maintainers
1
Versions
43
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 2.5.0 to 2.5.1

7

lib/transform.js

@@ -128,3 +128,3 @@ "use strict";

const { keys, values } = node;
const tValues = values.map(value => _t(value));
const tValues = values.map((value) => _t(value));
const tProperties = keys.map(({ key, quoted }, index) => {

@@ -140,2 +140,3 @@ const tValue = tValues[index];

: _c('Identifier', { name: key }, keySpan);
const shorthand = tKey.end < tKey.start;
return _c('ObjectProperty', {

@@ -145,3 +146,3 @@ key: tKey,

method: false,
shorthand: false,
shorthand,
computed: false,

@@ -307,3 +308,3 @@ }, { start: _getOuterStart(tKey), end: _getOuterEnd(tValue) });

function _transformReceiverAndName(receiver, tName, props, { end = _getOuterEnd(tName), hasParentParens = false } = {}) {
if (_isImplicitThis(receiver)) {
if (_isImplicitThis(receiver) || receiver.span.start === tName.start) {
return tName;

@@ -310,0 +311,0 @@ }

@@ -52,3 +52,3 @@ "use strict";

const visited = new Set();
visitSpan(ast, span => {
visitSpan(ast, (span) => {
if (!visited.has(span)) {

@@ -68,3 +68,3 @@ span.start -= prefix.length;

if (Array.isArray(ast)) {
return ast.forEach(value => visitSpan(value, fn));
return ast.forEach((value) => visitSpan(value, fn));
}

@@ -71,0 +71,0 @@ for (const key of Object.keys(ast)) {

{
"name": "angular-estree-parser",
"version": "2.5.0",
"version": "2.5.1",
"description": "A parser that converts Angular source code into an ESTree-compatible form",

@@ -36,6 +36,6 @@ "keywords": [],

"@types/jest": "23.3.14",
"@types/prettier": "1.18.3",
"@types/prettier": "2.3.0",
"jest": "23.6.0",
"jest-snapshot-serializer-raw": "1.1.0",
"prettier": "1.18.2",
"prettier": "2.3.2",
"prettier-config-ikatyang": "1.1.1",

@@ -46,3 +46,3 @@ "standard-version": "4.4.0",

"tslint-config-prettier": "1.18.0",
"tslint-plugin-prettier": "2.1.0",
"tslint-plugin-prettier": "2.3.0",
"typescript": "4.1.2"

@@ -49,0 +49,0 @@ },

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