You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

node-scripts-docs

Package Overview
Dependencies
Maintainers
1
Versions
331
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-scripts-docs - npm Package Compare versions

Comparing version

to
0.0.14

5

output/FragmentStore.js

@@ -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) {

4

output/FragmentStore.test.js

@@ -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