@citolab/tspci-tao 2.9.13 → 2.11.0
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.
- package/CHANGELOG.md +19 -0
- package/package.json +2 -2
- package/readme.md +7 -0
- package/release-notes.md +24 -0
- package/src/createPackage.mjs +35 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [2.11.0](https://github.com/Citolab/tspci/compare/v2.10.0...v2.11.0) (2026-08-19)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* generate a CycloneDX SBOM of the bundle ([fdc8cf7](https://github.com/Citolab/tspci/commit/fdc8cf7caf8d25b58737866d654315e6cb2e6fcf))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [2.10.0](https://github.com/Citolab/tspci/compare/v2.9.13...v2.10.0) (2026-08-18)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @citolab/tspci-tao
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [2.9.13](https://github.com/Citolab/tspci/compare/v2.9.12...v2.9.13) (2026-03-18)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @citolab/tspci-tao
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@citolab/tspci-tao",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.0",
|
|
4
4
|
"description": "create a zip file that can be imported into TAO",
|
|
5
5
|
"author": "patrick <patrick.deklein@cito.nl>, Marcel Hoekstra <marcel.hoekstra@cito.nl>",
|
|
6
6
|
"repository": "",
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
"access": "public",
|
|
17
17
|
"registry": "https://registry.npmjs.org/"
|
|
18
18
|
},
|
|
19
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "ad0858f9b665b6778cdf19685e858e167847e930"
|
|
20
20
|
}
|
package/readme.md
CHANGED
|
@@ -131,3 +131,10 @@ Other config properties should be placed under: config -> tspci:
|
|
|
131
131
|
Add a svg file with the name {typeIdentifier}.svg in the root of the PCI directory to have a custom icon for the PCI in TAO.
|
|
132
132
|
|
|
133
133
|

|
|
134
|
+
|
|
135
|
+
## sbom
|
|
136
|
+
|
|
137
|
+
A CycloneDX SBOM of the bundle is copied next to the zip in `dist/` as
|
|
138
|
+
`tao-pci-<typeIdentifier>_<version>.sbom.cdx.json`. Pass `--include-sbom` to also add `sbom.cdx.json`
|
|
139
|
+
to the package itself, or `--no-sbom` to skip generating one. See [@citolab/tspci](https://github.com/Citolab/tspci/tree/main/lib/tspci#sbom)
|
|
140
|
+
for the configuration.
|
package/release-notes.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
# 2.11.0
|
|
2
|
+
|
|
3
|
+
- a CycloneDX SBOM of the bundle is copied next to the zip in `dist/` as `tao-pci-<typeIdentifier>_<version>.sbom.cdx.json`
|
|
4
|
+
- `--include-sbom` also adds `sbom.cdx.json` to the package itself, `--no-sbom` skips generating one
|
|
5
|
+
|
|
6
|
+
_The notes for 2.4.0 up to and including 2.10.0 were reconstructed from the git history afterwards, so
|
|
7
|
+
they list the highlights per minor version. Versions without an entry contained no changes for this
|
|
8
|
+
package: all packages in this repository are published in lockstep. `CHANGELOG.md` has the complete
|
|
9
|
+
list of published versions._
|
|
10
|
+
|
|
11
|
+
# 2.7.0
|
|
12
|
+
|
|
13
|
+
- added `setResponse`, so TAO can push a response into the PCI
|
|
14
|
+
- added a GPL-3.0 LICENSE file to the package
|
|
15
|
+
|
|
16
|
+
# 2.6.0
|
|
17
|
+
|
|
18
|
+
- support for javascript PCIs, with `onCompleted` implemented by default
|
|
19
|
+
- replaced the deprecated `fs.rmdir` with `fs.rm`
|
|
20
|
+
|
|
21
|
+
# 2.4.0
|
|
22
|
+
|
|
23
|
+
- fixed the destination location of the export
|
|
24
|
+
|
|
1
25
|
# 2.3.0
|
|
2
26
|
- added a script to add TAO support in a PCI that only support the IMS interface.
|
|
3
27
|
|
package/src/createPackage.mjs
CHANGED
|
@@ -330,6 +330,15 @@ export const bundle = () => {
|
|
|
330
330
|
}
|
|
331
331
|
// console.log(propertiesToReplace.short)
|
|
332
332
|
|
|
333
|
+
// SBOM: delivered next to the package by default, optionally inside it
|
|
334
|
+
handleSbom({
|
|
335
|
+
distDirectory: path.join(PACKAGE_ROOT_PATH, path.dirname((packageData.main || "dist/index.js").replace(/^\//, ""))),
|
|
336
|
+
outputDirectory,
|
|
337
|
+
packageTempDirectory: outputDirectoryTemp,
|
|
338
|
+
baseName: `tao-pci-${propertiesToReplace.typeIdentifier}_${packageData.version}`,
|
|
339
|
+
packageData,
|
|
340
|
+
});
|
|
341
|
+
|
|
333
342
|
// zip the folder
|
|
334
343
|
const zipName = `tao-pci-${propertiesToReplace.typeIdentifier}_${packageData.version}.zip`;
|
|
335
344
|
zipDirectory(outputDirectoryTemp, path.join(outputDirectory, zipName)).then(
|
|
@@ -426,3 +435,29 @@ function isBoolean(val) {
|
|
|
426
435
|
return false;
|
|
427
436
|
}
|
|
428
437
|
}
|
|
438
|
+
|
|
439
|
+
// The CRA requires an SBOM as part of the technical documentation, not as part
|
|
440
|
+
// of the delivery to the customer, so it is written next to the package per
|
|
441
|
+
// version. Use --include-sbom (or config.tspci.sbom.includeInPackage) to also
|
|
442
|
+
// ship it inside the package, and --no-sbom to skip it altogether.
|
|
443
|
+
function handleSbom({ distDirectory, outputDirectory, packageTempDirectory, baseName, packageData }) {
|
|
444
|
+
const settings = packageData?.config?.tspci?.sbom || {};
|
|
445
|
+
if (settings.enabled === false || process.argv.includes("--no-sbom")) {
|
|
446
|
+
return "";
|
|
447
|
+
}
|
|
448
|
+
const fileName = settings.fileName || "sbom.cdx.json";
|
|
449
|
+
const source = path.join(distDirectory, fileName);
|
|
450
|
+
if (!fs.existsSync(source)) {
|
|
451
|
+
console.warn(`no SBOM found at ${source}, skipping it`);
|
|
452
|
+
return "";
|
|
453
|
+
}
|
|
454
|
+
fs.copyFileSync(source, path.join(outputDirectory, `${baseName}.${fileName}`));
|
|
455
|
+
console.log(`created sbom: ${baseName}.${fileName}`);
|
|
456
|
+
|
|
457
|
+
const includeInPackage = process.argv.includes("--include-sbom") || settings.includeInPackage === true;
|
|
458
|
+
if (!includeInPackage) {
|
|
459
|
+
return "";
|
|
460
|
+
}
|
|
461
|
+
fs.copyFileSync(source, path.join(packageTempDirectory, fileName));
|
|
462
|
+
return fileName;
|
|
463
|
+
}
|