Socket
Socket
Sign inDemoInstall

@typescript-eslint/parser

Package Overview
Dependencies
5
Maintainers
1
Versions
3651
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.1-alpha.7 to 1.3.1-alpha.8

14

dist/analyze-scope.js

@@ -14,2 +14,3 @@ "use strict";

const visitor_keys_1 = require("./visitor-keys");
const typescript_estree_1 = require("@typescript-eslint/typescript-estree");
/**

@@ -77,2 +78,8 @@ * Define the override function of `Scope#__define` for global augmentation.

}
TSParameterProperty(node) {
this.visit(node.parameter);
if (node.decorators) {
this.rightHandNodes.push(...node.decorators);
}
}
}

@@ -141,4 +148,7 @@ class Referencer extends referencer_1.default {

this.visitPattern(params[i], { processRightHandNodes: true }, (pattern, info) => {
innerScope.__define(pattern, new definition_1.ParameterDefinition(pattern, node, i, info.rest));
this.referencingDefaultValue(pattern, info.assignments, null, true);
if (pattern.type !== typescript_estree_1.AST_NODE_TYPES.Identifier ||
pattern.name !== 'this') {
innerScope.__define(pattern, new definition_1.ParameterDefinition(pattern, node, i, info.rest));
this.referencingDefaultValue(pattern, info.assignments, null, true);
}
});

@@ -145,0 +155,0 @@ }

11

dist/visitor-keys.js

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

// Additional Properties.
ArrayPattern: ['elements', 'typeAnnotation'],
ArrayPattern: ['decorators', 'elements', 'typeAnnotation'],
ArrowFunctionExpression: ['typeParameters', 'params', 'returnType', 'body'],

@@ -32,2 +32,3 @@ ClassDeclaration: [

],
TaggedTemplateExpression: ['tag', 'typeParameters', 'quasi'],
FunctionDeclaration: ['id', 'typeParameters', 'params', 'returnType', 'body'],

@@ -37,4 +38,4 @@ FunctionExpression: ['id', 'typeParameters', 'params', 'returnType', 'body'],

MethodDefinition: ['decorators', 'key', 'value'],
ObjectPattern: ['properties', 'typeAnnotation'],
RestElement: ['argument', 'typeAnnotation'],
ObjectPattern: ['decorators', 'properties', 'typeAnnotation'],
RestElement: ['decorators', 'argument', 'typeAnnotation'],
NewExpression: ['callee', 'typeParameters', 'arguments'],

@@ -65,3 +66,3 @@ CallExpression: ['callee', 'typeParameters', 'arguments'],

TSConstructorType: ['typeParameters', 'params', 'returnType'],
TSDeclareFunction: ['id', 'typeParameters', 'params', 'returnType'],
TSDeclareFunction: ['id', 'typeParameters', 'params', 'returnType', 'body'],
TSDeclareKeyword: [],

@@ -101,3 +102,3 @@ TSEmptyBodyFunctionExpression: [

TSOptionalType: ['typeAnnotation'],
TSParameterProperty: ['parameter'],
TSParameterProperty: ['decorators', 'parameter'],
TSParenthesizedType: ['typeAnnotation'],

@@ -104,0 +105,0 @@ TSPrivateKeyword: [],

{
"name": "@typescript-eslint/parser",
"version": "1.3.1-alpha.7+cc8f906",
"version": "1.3.1-alpha.8+225fc26",
"description": "An ESLint custom parser which leverages TypeScript ESTree",

@@ -40,3 +40,3 @@ "main": "dist/parser.js",

"dependencies": {
"@typescript-eslint/typescript-estree": "1.3.1-alpha.7+cc8f906",
"@typescript-eslint/typescript-estree": "1.3.1-alpha.8+225fc26",
"eslint-scope": "^4.0.0",

@@ -48,5 +48,5 @@ "eslint-visitor-keys": "^1.0.0"

"@types/eslint-visitor-keys": "^1.0.0",
"@typescript-eslint/shared-fixtures": "1.3.1-alpha.7+cc8f906"
"@typescript-eslint/shared-fixtures": "1.3.1-alpha.8+225fc26"
},
"gitHead": "cc8f906b93db99c8d68923df179a41533f22c450"
"gitHead": "225fc2674783adabf1ab16b6798dfb8a473d3e9a"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc