Socket
Socket
Sign inDemoInstall

eslint-scope

Package Overview
Dependencies
2
Maintainers
4
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.0.0 to 7.0.0

8

lib/referencer.js

@@ -473,2 +473,10 @@ /*

StaticBlock(node) {
this.scopeManager.__nestClassStaticBlockScope(node);
this.visitChildren(node);
this.close(node);
}
MethodDefinition(node) {

@@ -475,0 +483,0 @@ this.visitProperty(node);

@@ -31,2 +31,3 @@ /*

ClassFieldInitializerScope,
ClassStaticBlockScope,
ClassScope,

@@ -232,2 +233,6 @@ ForScope,

__nestClassStaticBlockScope(node) {
return this.__nestScope(new ClassStaticBlockScope(this, this.__currentScope, node));
}
__nestSwitchScope(node) {

@@ -234,0 +239,0 @@ return this.__nestScope(new SwitchScope(this, this.__currentScope, node));

20

lib/scope.js

@@ -160,3 +160,4 @@ /*

/**
* One of 'module', 'block', 'switch', 'function', 'catch', 'with', 'function', 'class', 'global'.
* One of "global", "module", "function", "function-expression-name", "block", "switch", "catch", "with", "for",
* "class", "class-field-initializer", "class-static-block".
* @member {string} Scope#type

@@ -229,3 +230,9 @@ */

this.variableScope =
(this.type === "global" || this.type === "function" || this.type === "module" || this.type === "class-field-initializer") ? this : upperScope.variableScope;
this.type === "global" ||
this.type === "module" ||
this.type === "function" ||
this.type === "class-field-initializer" ||
this.type === "class-static-block"
? this
: upperScope.variableScope;

@@ -743,2 +750,8 @@ /**

class ClassStaticBlockScope extends Scope {
constructor(scopeManager, upperScope, block) {
super(scopeManager, "class-static-block", upperScope, block, true);
}
}
export {

@@ -756,5 +769,6 @@ Scope,

ClassScope,
ClassFieldInitializerScope
ClassFieldInitializerScope,
ClassStaticBlockScope
};
/* vim: set sw=4 ts=4 et tw=80 : */

2

lib/version.js

@@ -1,3 +0,3 @@

const version = "6.0.0";
const version = "7.0.0";
export default version;

@@ -14,3 +14,3 @@ {

},
"version": "6.0.0",
"version": "7.0.0",
"engines": {

@@ -54,5 +54,5 @@ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"

"eslint-plugin-node": "^11.1.0",
"eslint-release": "^3.1.2",
"eslint-visitor-keys": "^3.0.0",
"espree": "^8.0.0",
"eslint-release": "^3.2.0",
"eslint-visitor-keys": "^3.1.0",
"espree": "^9.0.0",
"mocha": "^9.0.1",

@@ -59,0 +59,0 @@ "npm-license": "^0.3.3",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc