astro-custom-toc 4.0.3 → 4.0.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.
@@ -8,7 +8,8 @@ const rehypeCustomToc = (userOptions) => {
8
8
  const createBaseTransformer = rehypeCustomTocBase;
9
9
  const transformer = createBaseTransformer(userOptions);
10
10
  return (tree, file) => {
11
- if (!file.data.astro?.frontmatter || file.data.astro.frontmatter["showToc"] !== true)
11
+ // @ts-expect-error Disable a TypeScript rule because it conflicts with an ESLint rule.
12
+ if (file.data.astro?.frontmatter?.showToc !== true)
12
13
  return;
13
14
  void transformer(tree, file);
14
15
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-custom-toc",
3
- "version": "4.0.3",
3
+ "version": "4.0.4",
4
4
  "description": "Astro Integration to generate a customizable table of contents",
5
5
  "publishConfig": {
6
6
  "provenance": true
@@ -51,10 +51,10 @@
51
51
  "@robot-inventor/eslint-config": "^11.0.0",
52
52
  "@robot-inventor/tsconfig-base": "^7.0.0",
53
53
  "astro": "^6.0.0",
54
- "eslint": "^9.0.0",
54
+ "eslint": "^10.0.0",
55
55
  "knip": "^6.0.0",
56
56
  "prettier": "^3.2.5",
57
- "typescript": "^5.9.2",
57
+ "typescript": "^6.0.0",
58
58
  "vfile": "^6.0.3"
59
59
  }
60
60
  }