@typescript-eslint/typescript-estree 8.41.1-alpha.7 → 8.41.1-alpha.9
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.
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as ts from 'typescript';
|
2
2
|
import type { ParseSettings } from '../parseSettings';
|
3
3
|
import type { ASTAndDefiniteProgram } from './shared';
|
4
|
-
export declare function useProvidedPrograms(programInstances: Iterable<ts.Program>, parseSettings: ParseSettings): ASTAndDefiniteProgram
|
4
|
+
export declare function useProvidedPrograms(programInstances: Iterable<ts.Program>, parseSettings: ParseSettings): ASTAndDefiniteProgram;
|
5
5
|
/**
|
6
6
|
* Utility offered by parser to help consumers construct their own program instance.
|
7
7
|
*
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useProvidedPrograms.d.ts","sourceRoot":"","sources":["../../src/create-program/useProvidedPrograms.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAQtD,wBAAgB,mBAAmB,CACjC,gBAAgB,EAAE,QAAQ,CAAC,EAAE,CAAC,OAAO,CAAC,EACtC,aAAa,EAAE,aAAa,GAC3B,qBAAqB,
|
1
|
+
{"version":3,"file":"useProvidedPrograms.d.ts","sourceRoot":"","sources":["../../src/create-program/useProvidedPrograms.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAQtD,wBAAgB,mBAAmB,CACjC,gBAAgB,EAAE,QAAQ,CAAC,EAAE,CAAC,OAAO,CAAC,EACtC,aAAa,EAAE,aAAa,GAC3B,qBAAqB,CAoCvB;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,EAClB,gBAAgB,CAAC,EAAE,MAAM,GACxB,EAAE,CAAC,OAAO,CAIZ"}
|
package/dist/parser.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../src/parser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAKtC,OAAO,KAAK,EACV,cAAc,EAEd,eAAe,EAChB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AA4B5C,wBAAgB,iBAAiB,IAAI,IAAI,CAExC;AAGD,wBAAgB,+BAA+B,IAAI,IAAI,CAEtD;
|
1
|
+
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../src/parser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAKtC,OAAO,KAAK,EACV,cAAc,EAEd,eAAe,EAChB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AA4B5C,wBAAgB,iBAAiB,IAAI,IAAI,CAExC;AAGD,wBAAgB,+BAA+B,IAAI,IAAI,CAEtD;AAwCD,MAAM,MAAM,GAAG,CAAC,CAAC,SAAS,eAAe,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,SAAS,IAAI,GACnE;IAAE,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAA;CAAE,GAChC,EAAE,CAAC,GACL,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,IAAI,GAAG;IAAE,MAAM,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAA;CAAE,GAAG,EAAE,CAAC,GAC9D,QAAQ,CAAC,OAAO,CAAC;AAGnB,MAAM,WAAW,8BAA8B,CAAC,CAAC,SAAS,eAAe;IACvE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IACZ,QAAQ,EAAE,cAAc,CAAC;CAC1B;AAMD,wBAAgB,KAAK,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe,EAC/D,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,CAAC,GACV,GAAG,CAAC,CAAC,CAAC,CAGR;AA4CD,wBAAgB,kCAAkC,IAAI,IAAI,CAEzD;AAED,wBAAgB,wBAAwB,CACtC,CAAC,SAAS,eAAe,GAAG,eAAe,EAE3C,IAAI,EAAE,MAAM,GAAG,EAAE,CAAC,UAAU,EAC5B,eAAe,EAAE,CAAC,GACjB,8BAA8B,CAAC,CAAC,CAAC,CA+GnC"}
|
package/dist/parser.js
CHANGED
@@ -47,10 +47,7 @@ function getProgramAndAST(parseSettings, hasFullTypeInformation) {
|
|
47
47
|
}
|
48
48
|
}
|
49
49
|
if (parseSettings.programs) {
|
50
|
-
|
51
|
-
if (fromProvidedPrograms) {
|
52
|
-
return fromProvidedPrograms;
|
53
|
-
}
|
50
|
+
return (0, useProvidedPrograms_1.useProvidedPrograms)(parseSettings.programs, parseSettings);
|
54
51
|
}
|
55
52
|
// no need to waste time creating a program as the caller didn't want parser services
|
56
53
|
// so we can save time and just create a lonesome source file
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@typescript-eslint/typescript-estree",
|
3
|
-
"version": "8.41.1-alpha.
|
3
|
+
"version": "8.41.1-alpha.9",
|
4
4
|
"description": "A parser that converts TypeScript source code into an ESTree compatible form",
|
5
5
|
"files": [
|
6
6
|
"dist",
|
@@ -52,10 +52,10 @@
|
|
52
52
|
"typecheck": "yarn run -BT nx typecheck"
|
53
53
|
},
|
54
54
|
"dependencies": {
|
55
|
-
"@typescript-eslint/project-service": "8.41.1-alpha.
|
56
|
-
"@typescript-eslint/tsconfig-utils": "8.41.1-alpha.
|
57
|
-
"@typescript-eslint/types": "8.41.1-alpha.
|
58
|
-
"@typescript-eslint/visitor-keys": "8.41.1-alpha.
|
55
|
+
"@typescript-eslint/project-service": "8.41.1-alpha.9",
|
56
|
+
"@typescript-eslint/tsconfig-utils": "8.41.1-alpha.9",
|
57
|
+
"@typescript-eslint/types": "8.41.1-alpha.9",
|
58
|
+
"@typescript-eslint/visitor-keys": "8.41.1-alpha.9",
|
59
59
|
"debug": "^4.3.4",
|
60
60
|
"fast-glob": "^3.3.2",
|
61
61
|
"is-glob": "^4.0.3",
|