Comparing version 4.3.0 to 4.4.0
type AnchorContainerTagNameProps = 'ul' | 'ol'; | ||
export type MokujiOption = { | ||
type MokujiOption = { | ||
anchorType?: boolean; | ||
@@ -10,3 +10,6 @@ anchorLink?: boolean; | ||
}; | ||
export declare const Mokuji: (element: HTMLElement | null, externalOptions?: MokujiOption) => HTMLUListElement | HTMLOListElement | undefined; | ||
export {}; | ||
declare const Mokuji: (element: HTMLElement | null, externalOptions?: MokujiOption) => HTMLUListElement | HTMLOListElement | undefined; | ||
declare const destory: () => void; | ||
export { Mokuji, MokujiOption, destory }; |
{ | ||
"name": "mokuji.js", | ||
"version": "4.3.0", | ||
"version": "4.4.0", | ||
"description": "A table of content JavaScript Library", | ||
"scripts": { | ||
"build": "microbundle", | ||
"clean": "rimraf lib/", | ||
"watch": "microbundle watch", | ||
"test": "npm run lint", | ||
"prepare": "npm run clean && npm run build && husky install" | ||
"build": "tsup", | ||
"dev": "tsup --watch", | ||
"lint": "eslint --cache ./src/**/*.ts", | ||
"prepare": "npm run build && husky install" | ||
}, | ||
"source": "src/index.ts", | ||
"main": "dist/mokuji.js", | ||
"types": "dist/index.d.ts", | ||
"module": "dist/mokuji.module.js", | ||
"esmodule": "dist/mokuji.modern.js", | ||
"unpkg": "dist/mokuji.umd.js", | ||
"type": "module", | ||
"main": "./dist/index.js", | ||
"exports": { | ||
"import": "./dist/index.js", | ||
"require": "./dist/index.cjs", | ||
"default": "./dist/index.js" | ||
}, | ||
"types": "./dist/index.d.ts", | ||
"directories": { | ||
@@ -22,11 +23,15 @@ "lib": "lib" | ||
"files": [ | ||
"dist/", | ||
"lib/", | ||
"src/", | ||
"dist", | ||
"LICENSE", | ||
"package.json", | ||
"READNME.md" | ||
], | ||
"lint-staged": { | ||
"*.{js,ts}": [ | ||
"prettier --write" | ||
"*.{js,ts,tsx}": [ | ||
"eslint --fix --cache", | ||
"eslint --cache", | ||
"prettier --write --cache" | ||
], | ||
"*.{ts,tsx}": [ | ||
"bash -c 'tsc --noEmit --skipLibCheck'" | ||
] | ||
@@ -51,11 +56,13 @@ }, | ||
"devDependencies": { | ||
"@types/node": "~18.13.0", | ||
"@types/node": "~20.2.3", | ||
"@typescript-eslint/eslint-plugin": "^5.59.7", | ||
"eslint": "^8.41.0", | ||
"eslint-config-prettier": "^8.8.0", | ||
"eslint-plugin-unicorn": "^47.0.0", | ||
"husky": "^8.0.3", | ||
"lint-staged": "^13.1.1", | ||
"microbundle": "^0.15.1", | ||
"prettier": "^2.8.4", | ||
"rimraf": "^4.1.2", | ||
"typescript": "~4.9.5" | ||
}, | ||
"dependencies": {} | ||
"lint-staged": "^13.2.2", | ||
"prettier": "^2.8.8", | ||
"tsup": "^6.7.0", | ||
"typescript": "~5.0.4" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Yes
32157
10
8
34
1