@magidoc/plugin-fuse-markdown
Advanced tools
Comparing version 5.0.3 to 6.0.0
import Fuse, { type IFuseOptions } from 'fuse.js'; | ||
import type Slugger from 'github-slugger'; | ||
import type { Lexer } from 'marked'; | ||
import type Slugger from 'github-slugger'; | ||
import { type TextExtractors } from '../markdown/extract'; | ||
@@ -5,0 +5,0 @@ import type { MarkdownDocument } from './document'; |
@@ -1,3 +0,3 @@ | ||
import type { Tokens, Lexer, TokensList } from 'marked'; | ||
import type Slugger from 'github-slugger'; | ||
import type { Lexer, Tokens, TokensList } from 'marked'; | ||
/** | ||
@@ -4,0 +4,0 @@ * A markdown header |
@@ -37,6 +37,3 @@ var IndexableMarkdownType; | ||
else if (token.depth <= lastHeader.depth) { | ||
newCurrentSection.headers = [ | ||
...currentSection.headers.filter((header) => header.depth < token.depth), | ||
header, | ||
]; | ||
newCurrentSection.headers = [...currentSection.headers.filter((header) => header.depth < token.depth), header]; | ||
} | ||
@@ -43,0 +40,0 @@ } |
@@ -0,3 +1,3 @@ | ||
import type { Token } from 'marked'; | ||
import type { TextExtractor } from './extract'; | ||
import type { Token } from 'marked'; | ||
export declare function defaultExtractors(): Record<Token['type'], TextExtractor>; |
@@ -0,4 +1,4 @@ | ||
import Slugger from 'github-slugger'; | ||
import { Lexer } from 'marked'; | ||
import Slugger from 'github-slugger'; | ||
export declare function defaultSlugger(): Slugger; | ||
export declare function defaultLexer(): Lexer; |
@@ -0,3 +1,3 @@ | ||
import Slugger from 'github-slugger'; | ||
import { Lexer } from 'marked'; | ||
import Slugger from 'github-slugger'; | ||
@@ -4,0 +4,0 @@ function defaultSlugger() { |
@@ -5,3 +5,3 @@ { | ||
"private": false, | ||
"version": "5.0.3", | ||
"version": "6.0.0", | ||
"type": "module", | ||
@@ -24,18 +24,16 @@ "license": "MIT", | ||
"dependencies": { | ||
"fuse.js": "^7.0.0", | ||
"github-slugger": "^2.0.0", | ||
"marked": "^12.0.2" | ||
"fuse.js": "7.0.0", | ||
"github-slugger": "2.0.0", | ||
"marked": "13.0.1" | ||
}, | ||
"devDependencies": { | ||
"@types/marked": "^6.0.0", | ||
"@types/node": "^20.12.8", | ||
"@types/prettier": "^3.0.0", | ||
"@vitest/coverage-v8": "^1.6.0", | ||
"rollup": "^4.17.2", | ||
"typescript": "^5.4.5", | ||
"vite": "^5.2.11", | ||
"vitest": "^1.6.0" | ||
"@types/node": "20.14.8", | ||
"@vitest/coverage-v8": "1.6.0", | ||
"rollup": "4.18.0", | ||
"typescript": "5.5.2", | ||
"vite": "5.3.1", | ||
"vitest": "1.6.0" | ||
}, | ||
"peerDependencies": { | ||
"fuse.js": "^6.6.2" | ||
"fuse.js": "6.6.2" | ||
}, | ||
@@ -42,0 +40,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
6
20188
20
326
+ Addedmarked@13.0.1(transitive)
- Removedmarked@12.0.2(transitive)
Updatedfuse.js@7.0.0
Updatedgithub-slugger@2.0.0
Updatedmarked@13.0.1