@typescript-eslint/scope-manager 8.47.1-alpha.2 → 8.47.1-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/analyze.d.ts CHANGED
@@ -50,4 +50,4 @@ export interface AnalyzeOptions {
50
50
  /**
51
51
  * Takes an AST and returns the analyzed scopes.
52
52
  */
53
- export declare function analyze(tree: TSESTree.Node, providedOptions?: AnalyzeOptions): ScopeManager;
53
+ export declare function analyze(tree: TSESTree.Program, providedOptions?: AnalyzeOptions): ScopeManager;
@@ -62,7 +62,7 @@ class Referencer extends Visitor_1.Visitor {
62
62
  }
63
63
  currentScope(dontThrowOnNull) {
64
64
  if (!dontThrowOnNull) {
65
- (0, assert_1.assert)(this.scopeManager.currentScope, 'aaa');
65
+ (0, assert_1.assert)(this.scopeManager.currentScope, 'Expected currentScope to exist. This usually happens when analyze() is called with an incomplete AST node instead of a complete Program node.');
66
66
  }
67
67
  return this.scopeManager.currentScope;
68
68
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typescript-eslint/scope-manager",
3
- "version": "8.47.1-alpha.2",
3
+ "version": "8.47.1-alpha.4",
4
4
  "description": "TypeScript scope analyser for ESLint",
5
5
  "files": [
6
6
  "dist",
@@ -47,11 +47,11 @@
47
47
  "typecheck": "yarn run -BT nx typecheck"
48
48
  },
49
49
  "dependencies": {
50
- "@typescript-eslint/types": "8.47.1-alpha.2",
51
- "@typescript-eslint/visitor-keys": "8.47.1-alpha.2"
50
+ "@typescript-eslint/types": "8.47.1-alpha.4",
51
+ "@typescript-eslint/visitor-keys": "8.47.1-alpha.4"
52
52
  },
53
53
  "devDependencies": {
54
- "@typescript-eslint/typescript-estree": "8.47.1-alpha.2",
54
+ "@typescript-eslint/typescript-estree": "8.47.1-alpha.4",
55
55
  "@vitest/coverage-v8": "^3.1.3",
56
56
  "@vitest/pretty-format": "^3.1.3",
57
57
  "eslint": "*",