@datapos/datapos-development 0.3.131 → 0.3.132
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -102,9 +102,7 @@ async function P() {
|
|
|
102
102
|
try {
|
|
103
103
|
const i = (await t.readFile("./licenses.md", "utf8")).trim(), n = await t.readFile("./README.md", "utf8"), s = n.indexOf(e), r = n.indexOf(o);
|
|
104
104
|
(s === -1 || r === -1) && (console.error("❌ Dependency license markers not found in readme file."), process.exit(1));
|
|
105
|
-
const d = n.substring(0, s + e.length) +
|
|
106
|
-
` + i + `
|
|
107
|
-
` + n.substring(r);
|
|
105
|
+
const d = n.substring(0, s + e.length) + i + n.substring(r);
|
|
108
106
|
await t.writeFile("README.md", d, "utf8"), console.log("✅ Readme file updated with license information");
|
|
109
107
|
} catch (i) {
|
|
110
108
|
console.error("❌ Error updating readme file.", i), process.exit(1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datapos/datapos-development",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.132",
|
|
4
4
|
"description": "A library of utilities for managing the Data Positioning repositories.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Jonathan Terrell <terrell.jm@gmail.com>",
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"test": "vitest",
|
|
66
66
|
"update:dataPosDeps": "npm run _update:sharedDep",
|
|
67
67
|
"_bump:version": "node -e \"import('./dist/datapos-development.es.js').then(m => m.bumpVersion())\"",
|
|
68
|
-
"_check:
|
|
69
|
-
"_check:
|
|
68
|
+
"_check:owaspDependencyCheck": "set -a && source .env && set +a && owasp-dependency-check --project \"@datapos/datapos-development\" --enableRetired --nvdApiKey \"$NVD_API_KEY\" --nodePackageSkipDevDependencies",
|
|
69
|
+
"_check:owaspBageInsertiions": "node -e \"import('./dist/datapos-development.es.js').then(m => m.insertOWASPDependencyCheckBadgeIntoReadme())\"",
|
|
70
70
|
"_document:licenceReportJSON": "license-report --only=prod,peer --department.value=n/a --licensePeriod=n/a --material=n/a --relatedTo.value=n/a > licenses.json",
|
|
71
71
|
"_document:licenceReportMarkdown": "license-report --config license-report-config.json --only=prod,peer --output=markdown > licenses.md",
|
|
72
72
|
"_document:licenceReportCheck": "license-report-check --source ./licenses.json --allowed 'MIT' --allowed 'n/a' --allowed 'Apache-2.0' --allowed 'CC0-1.0' --output=table",
|