@angular-eslint/template-parser 18.0.0-alpha.1 → 18.0.0-alpha.10
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/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -42,4 +42,9 @@ declare function parseForESLint(code: string, options: ParserOptions): {
|
|
|
42
42
|
};
|
|
43
43
|
export { parseForESLint };
|
|
44
44
|
export declare function parse(code: string, options: ParserOptions): AST;
|
|
45
|
+
export declare const version: string;
|
|
46
|
+
export declare const meta: {
|
|
47
|
+
name: string;
|
|
48
|
+
version: string;
|
|
49
|
+
};
|
|
45
50
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,UAAU,EAEX,MAAM,0CAA0C,CAAC;AAElD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAS,YAAY,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EACL,6BAA6B,EAC7B,0BAA0B,EAC3B,MAAM,8BAA8B,CAAC;AAEtC,KAAK,eAAe,GAAG,GAAG,CAAC;AAE3B,UAAU,IAAI;IAEZ,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IACnB,IAAI,EAAE,eAAe,CAAC;CACvB;AAED,UAAU,WAAW;IACnB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC9B;AAED,UAAU,KAAM,SAAQ,QAAQ,CAAC,QAAQ;IACvC,IAAI,EAAE,eAAe,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,UAAU,GAAI,SAAQ,IAAI,EAAE,IAAI,CAAC,KAAK,EA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A0B,EAAE,OAAO,0BAA0B,CAAC;KAC/D,CAAC;CACH,CA4DA;AAED,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,GAAG,GAAG,CAE/D;AAID,eAAO,MAAM,OAAO,EAAE,MAA2C,CAAC;AAElE,eAAO,MAAM,IAAI;;;CAGhB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.parse = exports.parseForESLint = exports.createTemplateParseError = exports.TemplateParseError = void 0;
|
|
3
|
+
exports.meta = exports.version = exports.parse = exports.parseForESLint = exports.createTemplateParseError = exports.TemplateParseError = void 0;
|
|
4
4
|
const bundled_angular_compiler_1 = require("@angular-eslint/bundled-angular-compiler");
|
|
5
5
|
const eslint_scope_1 = require("eslint-scope");
|
|
6
6
|
const convert_source_span_to_loc_1 = require("./convert-source-span-to-loc");
|
|
@@ -218,7 +218,7 @@ function parseForESLint(code, options) {
|
|
|
218
218
|
end: (0, convert_source_span_to_loc_1.convertNodeSourceSpanToLoc)(endSourceSpan).end,
|
|
219
219
|
};
|
|
220
220
|
}
|
|
221
|
-
// TODO:
|
|
221
|
+
// TODO: Investigate no longer suppressing parse errors by default in v19
|
|
222
222
|
const suppressParseErrors = options.suppressParseErrors ?? true;
|
|
223
223
|
if (!suppressParseErrors && angularCompilerResult.errors?.length) {
|
|
224
224
|
throw createTemplateParseError(angularCompilerResult.errors[0]);
|
|
@@ -238,3 +238,10 @@ function parse(code, options) {
|
|
|
238
238
|
return parseForESLint(code, options).ast;
|
|
239
239
|
}
|
|
240
240
|
exports.parse = parse;
|
|
241
|
+
// NOTE - we cannot migrate this to an import statement because it will make TSC copy the package.json to the dist folder
|
|
242
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
243
|
+
exports.version = require('../package.json').version;
|
|
244
|
+
exports.meta = {
|
|
245
|
+
name: 'angular-eslint/template-parser',
|
|
246
|
+
version: exports.version,
|
|
247
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-eslint/template-parser",
|
|
3
|
-
"version": "18.0.0-alpha.
|
|
3
|
+
"version": "18.0.0-alpha.10",
|
|
4
4
|
"description": "Angular Template parser for ESLint",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"LICENSE"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@angular-eslint/bundled-angular-compiler": "18.0.0-alpha.
|
|
21
|
+
"@angular-eslint/bundled-angular-compiler": "18.0.0-alpha.10",
|
|
22
22
|
"eslint-scope": "^8.0.0"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|