astro-eslint-parser 0.8.0 → 0.9.0

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/lib/index.d.ts CHANGED
@@ -294,7 +294,8 @@ declare function parseForESLint$1(code: string, options?: any): {
294
294
  ast: AstroProgram;
295
295
  services: Record<string, any> & {
296
296
  isAstro: true;
297
- getAstroAst: () => ParseResult;
297
+ getAstroAst: () => ParseResult["ast"];
298
+ getAstroResult: () => ParseResult;
298
299
  };
299
300
  visitorKeys: {
300
301
  [type: string]: string[];
package/lib/index.js CHANGED
@@ -2059,6 +2059,9 @@ function parseForESLint(code, options) {
2059
2059
  isAstro: true,
2060
2060
  getAstroAst() {
2061
2061
  return resultTemplate.ast;
2062
+ },
2063
+ getAstroResult() {
2064
+ return resultTemplate;
2062
2065
  }
2063
2066
  });
2064
2067
  resultScript.visitorKeys = Object.assign({}, KEYS, resultScript.visitorKeys);
package/lib/index.mjs CHANGED
@@ -2033,6 +2033,9 @@ function parseForESLint(code, options) {
2033
2033
  isAstro: true,
2034
2034
  getAstroAst() {
2035
2035
  return resultTemplate.ast;
2036
+ },
2037
+ getAstroResult() {
2038
+ return resultTemplate;
2036
2039
  }
2037
2040
  });
2038
2041
  resultScript.visitorKeys = Object.assign({}, KEYS, resultScript.visitorKeys);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-eslint-parser",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "Astro component parser for ESLint",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.mjs",