node-scripts-docs
Advanced tools
Comparing version
@@ -50,3 +50,4 @@ "use strict"; | ||
static scriptToFragmentFilename(scriptName) { | ||
return `.${scriptName}.md`; | ||
// $ needs to be duplicated, as it's otherwise interpreted as part of $1,$2,$3,... references | ||
return `.${scriptName.replace(/\:/g, "$$$$")}.md`; | ||
} | ||
@@ -58,3 +59,3 @@ static fragmentFilenameToScript(fragmentName) { | ||
} | ||
return matches[1]; | ||
return matches[1].replace(/\$\$/g, ":"); | ||
} | ||
@@ -61,0 +62,0 @@ static async exists(storePath) { |
@@ -5,6 +5,6 @@ "use strict"; | ||
it("converts script name to filename as expected", () => { | ||
expect(FragmentStore_1.FragmentStore.scriptToFragmentFilename("test:coverage")).toStrictEqual(".test:coverage.md"); | ||
expect(FragmentStore_1.FragmentStore.scriptToFragmentFilename("test:coverage")).toStrictEqual(".test$$coverage.md"); | ||
}); | ||
it("converts filename to script name as expected", () => { | ||
expect(FragmentStore_1.FragmentStore.fragmentFilenameToScript(".test:coverage.md")).toStrictEqual("test:coverage"); | ||
expect(FragmentStore_1.FragmentStore.fragmentFilenameToScript(".test$$coverage.md")).toStrictEqual("test:coverage"); | ||
}); | ||
@@ -11,0 +11,0 @@ it("returns null for invalid fragment file name conversion", () => { |
{ | ||
"name": "node-scripts-docs", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"description": "Generate documentation for your `package.json` scripts.", | ||
@@ -21,3 +21,3 @@ "license": "UNLICENSED", | ||
"docs:build": "docker run --rm -it -p 8000:8000 -v ${PWD}:/docs ghcr.io/oliversalzburg/mkdocs-material-ex:main build --site-dir=public", | ||
"docs:scripts": "yarn nsd-debug --include-locals", | ||
"docs:scripts": "yarn nsd-debug", | ||
"docs:serve": "docker run --rm -it -p 8000:8000 -v ${PWD}:/docs ghcr.io/oliversalzburg/mkdocs-material-ex:main", | ||
@@ -33,3 +33,3 @@ "npm:publish": "yarn build && npm publish", | ||
"globby": "11.1.0", | ||
"marked": "4.0.14", | ||
"marked": "4.0.15", | ||
"minimist": "1.2.6", | ||
@@ -39,11 +39,11 @@ "tslib": "2.4.0" | ||
"devDependencies": { | ||
"@types/jest": "27.4.1", | ||
"@types/jest": "27.5.1", | ||
"@types/marked": "4.0.3", | ||
"@types/minimist": "1.2.2", | ||
"@types/node": "17.0.10", | ||
"@types/prettier": "2.6.0", | ||
"@types/prettier": "2.6.1", | ||
"@types/prettier-package-json": "2.1.1", | ||
"@yarnpkg/sdks": "2.6.0", | ||
"eslint": "8.14.0", | ||
"jest": "27.5.1", | ||
"eslint": "8.15.0", | ||
"jest": "28.1.0", | ||
"lint-staged": "12.4.1", | ||
@@ -53,5 +53,5 @@ "prettier": "2.6.2", | ||
"prettier-plugin-organize-imports": "2.3.4", | ||
"prettier-plugin-sh": "0.10.1", | ||
"ts-jest": "27.1.4", | ||
"typescript": "4.6.3" | ||
"prettier-plugin-sh": "0.11.0", | ||
"ts-jest": "28.0.2", | ||
"typescript": "4.6.4" | ||
}, | ||
@@ -66,3 +66,3 @@ "keywords": [ | ||
], | ||
"packageManager": "yarn@3.2.0" | ||
"packageManager": "yarn@3.2.1" | ||
} |
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
Explicitly Unlicensed Item
License(Experimental) Something was found which is explicitly marked as unlicensed.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Explicitly Unlicensed Item
License(Experimental) Something was found which is explicitly marked as unlicensed.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
101147
0.21%1144
0.09%+ Added
- Removed
Updated