Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@altano/remark-mdx-toc-with-slugs

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@altano/remark-mdx-toc-with-slugs - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

13

dist/index.d.ts

@@ -1,9 +0,8 @@

import { TocEntry, RemarkMdxTocOptions } from 'remark-mdx-toc';
import { Plugin } from 'unified';
declare type TableOfContentsEntry = TocEntry & {
import type { RemarkMdxTocOptions, TocEntry } from "remark-mdx-toc";
import type { Plugin } from "unified";
export type TableOfContentsEntry = TocEntry & {
slug: string;
children: TableOfContentsEntry[];
};
declare type RemarkMdxTocWithSlugsOptions = RemarkMdxTocOptions;
export type RemarkMdxTocWithSlugsOptions = RemarkMdxTocOptions;
/**

@@ -15,3 +14,3 @@ * Remark plugin that, given a tree that has had remark-mdx-toc run over it

declare const remarkMdxTocWithSlugs: Plugin<[RemarkMdxTocWithSlugsOptions?]>;
export { RemarkMdxTocWithSlugsOptions, TableOfContentsEntry, remarkMdxTocWithSlugs as default };
export default remarkMdxTocWithSlugs;
//# sourceMappingURL=index.d.ts.map
{
"name": "@altano/remark-mdx-toc-with-slugs",
"version": "1.0.3",
"version": "1.0.4",
"description": "A remark plugin to generate a table of contents (including slugs) and convert it into MDX export",

@@ -9,11 +9,2 @@ "type": "module",

"types": "./dist/index.d.ts",
"scripts": {
"build": "tsup src/index.ts --format esm --dts",
"dev": "tsup src/index.ts --watch --format esm --dts",
"lint": "TIMING=1 eslint src/**/*.ts* --fix",
"format": "prettier --write src",
"clean": "rm -rf .turbo && rm -rf .tsbuildinfo && rm -rf node_modules && rm -rf dist",
"test": "vitest --run",
"test:watch": "vitest"
},
"author": {

@@ -32,3 +23,4 @@ "name": "Alan Norbauer",

"files": [
"dist"
"dist/**/*.js",
"dist/**/*.d.ts"
],

@@ -43,17 +35,36 @@ "keywords": [

"estree-util-value-to-estree": "^3.0.1",
"estree-util-visit": "^1.2.1",
"estree-util-visit": "^2.0.0",
"github-slugger": "^2.0.0",
"mdast-util-mdxjs-esm": "^1.3.1",
"mdast-util-mdxjs-esm": "^2.0.1",
"remark-mdx-toc": "^0.3.1",
"unist-util-visit": "^4.1.2"
"unist-util-visit": "^5.0.0"
},
"devDependencies": {
"@altano/remark-plugin-test-util": "*",
"@altano/tsconfig": "*",
"@types/node": "^18.15.13",
"vitest": "^0.30.1"
"@types/node": "^20.11.25",
"@types/unist": "^3.0.2",
"prettier": "^3.2.5",
"tsup": "^8.0.2",
"typescript": "^5.4.2",
"unified": "^10.1.2",
"vite": "^5.1.5",
"vitest": "^1.3.1",
"@altano/remark-plugin-test-util": "0.0.2",
"@altano/tsconfig": "0.0.0"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "tsup src/index.ts --format esm --onSuccess \"pnpm build:types\"",
"build:types": "tsc --emitDeclarationOnly --declaration",
"dev": "tsup src/index.ts --watch --format esm --dts",
"lint": "eslint src/**/*.ts*",
"lint:timing": "TIMING=1 eslint src/**/*.ts*",
"lint:fix": "TIMING=1 eslint src/**/*.ts* --fix",
"format": "prettier --check src",
"format:fix": "prettier --write src",
"clean": "rm -rf .turbo && rm -rf .tsbuildinfo && rm -rf node_modules && rm -rf dist",
"test": "vitest --run",
"test:watch": "vitest"
}
}
}
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