5757There are also tests in the ` test-complete ` folder. The setup for these is more complicated and can
5858be found in the ` Jenkinsfile ` file in this repository in the ` runE2ETests ` function.
5959
60+ ## Generating documentation
61+
62+ After installing the project dependencies, you can build the reference documentation locally from the root
63+ directory of the marklogic package:
64+
65+ npm run doc
66+
67+ The documentation is generated in the ` ./doc ` gitignored directory. The documentation can also be
68+ accessed online at < https://docs.marklogic.com/jsdoc/index.html > .
69+
6070## Explanation of overrides in package.json
6171
6272Each override is being documented here so we have some ability in the future to remove an override as needed.
@@ -86,30 +96,12 @@ glob-parent: "6.0.2"
8696- Why needed: Older versions vulnerable to regex attacks
8797- CVE/Issue: CVE-2020 -28469 - ReDoS vulnerability
8898
89- jsdoc: "4.0.0"
90- - Purpose: Fixes high-severity data access vulnerability in older jsdoc versions
91- - Affects: gulp-jsdoc3 → jsdoc
92- - Why needed:
[email protected] uses older jsdoc with known vulnerabilities
93- - CVE/Issue: High severity vulnerability in taffydb (jsdoc dependency)
94-
95- markdown-it: "14.1.0"
96- - Purpose: Use latest markdown parser for JSDoc
97- - Affects: gulp-jsdoc3 → jsdoc → markdown-it
98- - Why needed: Latest version (no vulnerabilities), handles RFC 7464 parsing
99- - Note: No newer version available, ensures consistency
100-
10199minimatch: "5.1.0"
102100- Purpose: Fixes ReDoS (Regular Expression Denial of Service) vulnerability
103101- Affects: mocha, gulp-mocha, and other build tools
104102- Why needed: Older minimatch versions have catastrophic backtracking vulnerability
105103- CVE/Issue: CVE-2022 -3517 - ReDoS vulnerability
106104
107- sanitize-html: "2.17.0"
108- - Purpose: Ensure JSDoc template uses non-vulnerable HTML sanitizer
109- - Affects: gulp-jsdoc3 → ink-docstrap → sanitize-html
110- - Why needed: Older versions have XSS vulnerabilities
111- - Note: Also in devDependencies, override ensures transitive deps use safe version
112-
113105semver: "7.5.3"
114106- Purpose: Fixes ReDoS in version parsing
115107- Affects: Multiple packages across dependency tree
@@ -122,12 +114,6 @@ tar-fs: "2.1.4"
122114- Why needed: Older tar-fs allows extracting files outside intended directory
123115- CVE/Issue: CVE-2024 -28861 - Path traversal
124116
125- tmp: "0.2.4"
126- - Purpose: Fixes arbitrary file write vulnerability
127- - Affects: gulp-jsdoc3 → jsdoc → tmp
128- - Why needed: Older tmp versions have file system security issues
129- - CVE/Issue: CVE-2024 -28858 - Arbitrary file write
130-
131117The following are related to this npm supply chain attack - https://orca.security/resources/blog/qix-npm-attack/ .
132118
133119ansi-styles: "4.3.0"
0 commit comments