New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

astro-toc

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

astro-toc - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

package.json
{
"name": "astro-toc",
"description": "Table of Contents (ToC) generator for Astro. Use custom components for interactivity.",
"version": "0.1.1",
"version": "0.1.2",
"type": "module",

@@ -6,0 +6,0 @@ "exports": {

@@ -30,3 +30,3 @@ <div>

This render mode can render your `toc` as `<ul>`, `<ol>` or `<menu>`; set the `style` property to select your flavour.
This render mode can render your `ToC` as `<ul>`, `<ol>` or `<menu>`; set the `as` property to select your flavour.

@@ -36,4 +36,4 @@ | Property | Type | Description |

| toc | `{ depth: number; title: string; url?: string; [string]: any }[]` | `depth` and `title` are required. |
| style `optional` | `string` | [bullet](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul) \| [number](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol) \| [menu](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/menu) |
| maxDepth `optional` | `number` \| `string` | How many levels should be rendered |
| as `optional` | `string` | [bullet](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul) \| [number](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol) \| [menu](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/menu) |
| maxDepth `optional` | `number` | How many levels should be rendered |

@@ -40,0 +40,0 @@ ```ts

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc