File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,8 @@ export class ToolBuilder {
3737 return this . #extRefFactory
3838 }
3939
40+ // Current implementation does not return `undefined` yet, but it is an option for future implementation.
41+ // To prevent breaking changes, it is declared to return `undefined`.
4042 makeTool ( data : PackageJson ) : Models . Tool | undefined {
4143 const [ name , vendor ] = typeof data . name === 'string'
4244 ? splitNameGroup ( data . name )
Original file line number Diff line number Diff line change @@ -35,10 +35,6 @@ export class PackageUrlFactory {
3535 }
3636
3737 makeFromComponent ( component : Component , sort : boolean = false ) : PackageURL | undefined {
38- /**
39- * For the list/spec of the well-known keys, see
40- * {@link https://github.com/package-url/purl-spec/blob/master/PURL-SPECIFICATION.rst#known-qualifiers-keyvalue-pairs}
41- */
4238 const qualifiers : PackageURL [ 'qualifiers' ] = { }
4339 let subpath : PackageURL [ 'subpath' ]
4440
Original file line number Diff line number Diff line change @@ -19,8 +19,11 @@ Copyright (c) OWASP Foundation. All Rights Reserved.
1919
2020/**
2121 * Known PURL qualifier names.
22- * To be used until {@link https://github.com/package-url/packageurl-js/pull/34} gets merged
22+ * To be used until {@link https://github.com/package-url/packageurl-js/pull/34} gets merged and released,
2323 * and {@link https://github.com/package-url/packageurl-js/issues/35} gets sorted out.
24+ *
25+ * For the list/spec of the well-known keys,
26+ * see {@link https://github.com/package-url/purl-spec/blob/master/PURL-SPECIFICATION.rst#known-qualifiers-keyvalue-pairs}
2427 */
2528export const enum PackageUrlQualifierNames {
2629 DownloadURL = 'download_url' ,
You can’t perform that action at this time.
0 commit comments