@altano/remark-mdx-toc-with-slugs
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -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" | ||
} | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6329
10
+ Added@types/hast@3.0.4(transitive)
+ Added@types/mdast@4.0.4(transitive)
+ Added@types/unist@3.0.3(transitive)
+ Addeddevlop@1.1.0(transitive)
+ Addedestree-util-visit@2.0.0(transitive)
+ Addedmdast-util-from-markdown@2.0.2(transitive)
+ Addedmdast-util-mdxjs-esm@2.0.1(transitive)
+ Addedmdast-util-phrasing@4.1.0(transitive)
+ Addedmdast-util-to-markdown@2.1.2(transitive)
+ Addedmdast-util-to-string@4.0.0(transitive)
+ Addedmicromark@4.0.1(transitive)
+ Addedmicromark-core-commonmark@2.0.2(transitive)
+ Addedmicromark-factory-destination@2.0.1(transitive)
+ Addedmicromark-factory-label@2.0.1(transitive)
+ Addedmicromark-factory-space@2.0.1(transitive)
+ Addedmicromark-factory-title@2.0.1(transitive)
+ Addedmicromark-factory-whitespace@2.0.1(transitive)
+ Addedmicromark-util-character@2.1.1(transitive)
+ Addedmicromark-util-chunked@2.0.1(transitive)
+ Addedmicromark-util-classify-character@2.0.1(transitive)
+ Addedmicromark-util-combine-extensions@2.0.1(transitive)
+ Addedmicromark-util-decode-numeric-character-reference@2.0.2(transitive)
+ Addedmicromark-util-decode-string@2.0.1(transitive)
+ Addedmicromark-util-encode@2.0.1(transitive)
+ Addedmicromark-util-html-tag-name@2.0.1(transitive)
+ Addedmicromark-util-normalize-identifier@2.0.1(transitive)
+ Addedmicromark-util-resolve-all@2.0.1(transitive)
+ Addedmicromark-util-sanitize-uri@2.0.1(transitive)
+ Addedmicromark-util-subtokenize@2.0.3(transitive)
+ Addedmicromark-util-symbol@2.0.1(transitive)
+ Addedmicromark-util-types@2.0.1(transitive)
+ Addedunist-util-is@6.0.0(transitive)
+ Addedunist-util-stringify-position@4.0.0(transitive)
+ Addedunist-util-visit@5.0.0(transitive)
+ Addedunist-util-visit-parents@6.0.1(transitive)
- Removed@types/hast@2.3.10(transitive)
- Removeddiff@5.2.0(transitive)
- Removedestree-util-visit@1.2.1(transitive)
- Removedkleur@4.1.5(transitive)
- Removedmdast-util-from-markdown@1.3.1(transitive)
- Removedmdast-util-mdxjs-esm@1.3.1(transitive)
- Removedmdast-util-phrasing@3.0.1(transitive)
- Removedmdast-util-to-markdown@1.5.0(transitive)
- Removedmicromark@3.2.0(transitive)
- Removedmicromark-core-commonmark@1.1.0(transitive)
- Removedmicromark-factory-destination@1.1.0(transitive)
- Removedmicromark-factory-label@1.1.0(transitive)
- Removedmicromark-factory-space@1.1.0(transitive)
- Removedmicromark-factory-title@1.1.0(transitive)
- Removedmicromark-factory-whitespace@1.1.0(transitive)
- Removedmicromark-util-character@1.2.0(transitive)
- Removedmicromark-util-chunked@1.1.0(transitive)
- Removedmicromark-util-classify-character@1.1.0(transitive)
- Removedmicromark-util-combine-extensions@1.1.0(transitive)
- Removedmicromark-util-decode-numeric-character-reference@1.1.0(transitive)
- Removedmicromark-util-decode-string@1.1.0(transitive)
- Removedmicromark-util-encode@1.1.0(transitive)
- Removedmicromark-util-html-tag-name@1.2.0(transitive)
- Removedmicromark-util-normalize-identifier@1.1.0(transitive)
- Removedmicromark-util-resolve-all@1.1.0(transitive)
- Removedmicromark-util-sanitize-uri@1.2.0(transitive)
- Removedmicromark-util-subtokenize@1.1.0(transitive)
- Removedmicromark-util-symbol@1.1.0(transitive)
- Removedmicromark-util-types@1.1.0(transitive)
- Removedmri@1.2.0(transitive)
- Removedsade@1.8.1(transitive)
- Removeduvu@0.5.6(transitive)
Updatedestree-util-visit@^2.0.0
Updatedmdast-util-mdxjs-esm@^2.0.1
Updatedunist-util-visit@^5.0.0