@cyclonedx/cyclonedx-library 1.9.1 → 1.10.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.
Files changed (140) hide show
  1. package/README.md +3 -1
  2. package/dist.d/_helpers/sortable.d.ts +37 -2
  3. package/dist.d/_helpers/sortable.d.ts.map +1 -1
  4. package/dist.d/builders/fromNodePackageJson.node.d.ts +5 -5
  5. package/dist.d/builders/fromNodePackageJson.node.d.ts.map +1 -1
  6. package/dist.d/factories/fromNodePackageJson.node.d.ts +5 -5
  7. package/dist.d/factories/fromNodePackageJson.node.d.ts.map +1 -1
  8. package/dist.d/factories/license.d.ts +2 -1
  9. package/dist.d/factories/license.d.ts.map +1 -1
  10. package/dist.d/factories/packageUrl.d.ts +1 -1
  11. package/dist.d/factories/packageUrl.d.ts.map +1 -1
  12. package/dist.d/models/attachment.d.ts +3 -4
  13. package/dist.d/models/attachment.d.ts.map +1 -1
  14. package/dist.d/models/bom.d.ts +6 -7
  15. package/dist.d/models/bom.d.ts.map +1 -1
  16. package/dist.d/models/component.d.ts +13 -13
  17. package/dist.d/models/component.d.ts.map +1 -1
  18. package/dist.d/models/externalReference.d.ts +7 -7
  19. package/dist.d/models/externalReference.d.ts.map +1 -1
  20. package/dist.d/models/hash.d.ts +2 -2
  21. package/dist.d/models/hash.d.ts.map +1 -1
  22. package/dist.d/models/license.d.ts +11 -12
  23. package/dist.d/models/license.d.ts.map +1 -1
  24. package/dist.d/models/metadata.d.ts +4 -5
  25. package/dist.d/models/metadata.d.ts.map +1 -1
  26. package/dist.d/models/organizationalContact.d.ts +6 -6
  27. package/dist.d/models/organizationalContact.d.ts.map +1 -1
  28. package/dist.d/models/organizationalEntity.d.ts +2 -3
  29. package/dist.d/models/organizationalEntity.d.ts.map +1 -1
  30. package/dist.d/models/property.d.ts +5 -4
  31. package/dist.d/models/property.d.ts.map +1 -1
  32. package/dist.d/models/swid.d.ts +6 -7
  33. package/dist.d/models/swid.d.ts.map +1 -1
  34. package/dist.d/models/tool.d.ts +6 -6
  35. package/dist.d/models/tool.d.ts.map +1 -1
  36. package/dist.d/serialize/baseSerializer.d.ts +2 -2
  37. package/dist.d/serialize/baseSerializer.d.ts.map +1 -1
  38. package/dist.d/serialize/bomRefDiscriminator.d.ts +1 -1
  39. package/dist.d/serialize/bomRefDiscriminator.d.ts.map +1 -1
  40. package/dist.d/serialize/json/normalize.d.ts +5 -5
  41. package/dist.d/serialize/json/normalize.d.ts.map +1 -1
  42. package/dist.d/serialize/json/types.d.ts +6 -4
  43. package/dist.d/serialize/json/types.d.ts.map +1 -1
  44. package/dist.d/serialize/jsonSerializer.d.ts +5 -5
  45. package/dist.d/serialize/jsonSerializer.d.ts.map +1 -1
  46. package/dist.d/serialize/types.d.ts +1 -1
  47. package/dist.d/serialize/types.d.ts.map +1 -1
  48. package/dist.d/serialize/xml/normalize.d.ts +5 -5
  49. package/dist.d/serialize/xml/normalize.d.ts.map +1 -1
  50. package/dist.d/serialize/xml/types.d.ts +2 -3
  51. package/dist.d/serialize/xml/types.d.ts.map +1 -1
  52. package/dist.d/serialize/xmlBaseSerializer.d.ts +5 -5
  53. package/dist.d/serialize/xmlBaseSerializer.d.ts.map +1 -1
  54. package/dist.d/serialize/xmlSerializer.node.d.ts +2 -2
  55. package/dist.d/serialize/xmlSerializer.node.d.ts.map +1 -1
  56. package/dist.d/serialize/xmlSerializer.web.d.ts +2 -2
  57. package/dist.d/serialize/xmlSerializer.web.d.ts.map +1 -1
  58. package/dist.d/spdx.d.ts +3 -3
  59. package/dist.d/spdx.d.ts.map +1 -1
  60. package/dist.d/spec.d.ts +1 -1
  61. package/dist.d/spec.d.ts.map +1 -1
  62. package/dist.node/_helpers/sortable.js +39 -0
  63. package/dist.node/_helpers/sortable.js.map +1 -1
  64. package/dist.node/builders/fromNodePackageJson.node.js.map +1 -1
  65. package/dist.node/factories/fromNodePackageJson.node.js.map +1 -1
  66. package/dist.node/factories/license.js.map +1 -1
  67. package/dist.node/models/attachment.js.map +1 -1
  68. package/dist.node/models/bom.js.map +1 -1
  69. package/dist.node/models/component.js +3 -3
  70. package/dist.node/models/component.js.map +1 -1
  71. package/dist.node/models/externalReference.js +2 -2
  72. package/dist.node/models/externalReference.js.map +1 -1
  73. package/dist.node/models/license.js.map +1 -1
  74. package/dist.node/models/metadata.js.map +1 -1
  75. package/dist.node/models/organizationalContact.js +2 -2
  76. package/dist.node/models/organizationalContact.js.map +1 -1
  77. package/dist.node/models/organizationalEntity.js.map +1 -1
  78. package/dist.node/models/property.js +2 -2
  79. package/dist.node/models/property.js.map +1 -1
  80. package/dist.node/models/swid.js.map +1 -1
  81. package/dist.node/models/tool.js +2 -2
  82. package/dist.node/models/tool.js.map +1 -1
  83. package/dist.node/serialize/json/normalize.js.map +1 -1
  84. package/dist.node/serialize/json/types.js.map +1 -1
  85. package/dist.node/serialize/xml/normalize.js.map +1 -1
  86. package/dist.node/serialize/xml/types.js.map +1 -1
  87. package/dist.node/serialize/xmlBaseSerializer.js +2 -2
  88. package/dist.node/serialize/xmlBaseSerializer.js.map +1 -1
  89. package/dist.web/lib.dev.js +52 -20
  90. package/dist.web/lib.dev.js.map +1 -1
  91. package/dist.web/lib.js +1 -1
  92. package/libs/universal-node-xml/index.d.ts +2 -2
  93. package/libs/universal-node-xml/index.js +0 -1
  94. package/libs/universal-node-xml/stringifiers/helpers.js +1 -2
  95. package/libs/universal-node-xml/stringifiers/xmlbuilder2.js +3 -4
  96. package/package.json +10 -5
  97. package/src/_helpers/sortable.ts +70 -2
  98. package/src/builders/fromNodePackageJson.node.ts +7 -6
  99. package/src/factories/fromNodePackageJson.node.ts +12 -12
  100. package/src/factories/license.ts +2 -1
  101. package/src/factories/packageUrl.ts +1 -1
  102. package/src/models/attachment.ts +3 -3
  103. package/src/models/bom.ts +7 -6
  104. package/src/models/component.ts +15 -13
  105. package/src/models/externalReference.ts +7 -6
  106. package/src/models/hash.ts +2 -2
  107. package/src/models/license.ts +13 -11
  108. package/src/models/metadata.ts +4 -4
  109. package/src/models/organizationalContact.ts +6 -5
  110. package/src/models/organizationalEntity.ts +2 -2
  111. package/src/models/property.ts +5 -4
  112. package/src/models/swid.ts +7 -6
  113. package/src/models/tool.ts +6 -5
  114. package/src/serialize/baseSerializer.ts +2 -2
  115. package/src/serialize/bomRefDiscriminator.ts +1 -1
  116. package/src/serialize/index.common.ts +3 -3
  117. package/src/serialize/index.node.ts +1 -1
  118. package/src/serialize/index.web.ts +1 -1
  119. package/src/serialize/json/index.ts +1 -1
  120. package/src/serialize/json/normalize.ts +8 -7
  121. package/src/serialize/json/types.ts +6 -6
  122. package/src/serialize/jsonSerializer.ts +5 -5
  123. package/src/serialize/types.ts +1 -1
  124. package/src/serialize/xml/index.ts +1 -1
  125. package/src/serialize/xml/normalize.ts +8 -6
  126. package/src/serialize/xml/types.ts +2 -5
  127. package/src/serialize/xmlBaseSerializer.ts +7 -7
  128. package/src/serialize/xmlSerializer.node.ts +2 -2
  129. package/src/serialize/xmlSerializer.web.ts +3 -3
  130. package/src/spdx.ts +3 -3
  131. package/src/spec.ts +1 -1
  132. package/typedoc.json +16 -0
  133. package/typedoc.node.json +8 -0
  134. package/typedoc.web.json +8 -0
  135. package/webpack.config.js +0 -2
  136. package/dist.d/_helpers/sortableSet.d.ts +0 -26
  137. package/dist.d/_helpers/sortableSet.d.ts.map +0 -1
  138. package/dist.node/_helpers/sortableSet.js +0 -28
  139. package/dist.node/_helpers/sortableSet.js.map +0 -1
  140. package/src/_helpers/sortableSet.ts +0 -31
package/README.md CHANGED
@@ -138,6 +138,8 @@ bom.metadata.component.dependencies.add(componentA.bomRef)
138
138
  There is no pre-rendered documentation at the time.
139
139
  Instead, there are annotated type definitions, so that your IDE and tools may pick up the documentation when you use this library downstream.
140
140
 
141
+ Additionally, there is a prepared set of configs for [TypeDoc](https://typedoc.org), so that you can build the API documentation from source via `npm run api-doc`.
142
+
141
143
  ## Development & Contributing
142
144
 
143
145
  Feel free to open issues, bugreports or pull requests.
@@ -154,7 +156,7 @@ See the [LICENSE][license_file] file for the full license.
154
156
  [contributing_file]: https://github.com/CycloneDX/cyclonedx-javascript-library/blob/main/CONTRIBUTING.md
155
157
  [examples]: https://github.com/CycloneDX/cyclonedx-javascript-library/tree/main/examples/README.md
156
158
 
157
- [shield_gh-workflow-test]: https://img.shields.io/github/workflow/status/CycloneDX/cyclonedx-javascript-library/Node%20CI/main?logo=GitHub&logoColor=white "tests"
159
+ [shield_gh-workflow-test]: https://img.shields.io/github/actions/workflow/status/CycloneDX/cyclonedx-javascript-library/nodejs.yml?branch=main&logo=GitHub&logoColor=white "tests"
158
160
  [shield_npm-version]: https://img.shields.io/npm/v/@cyclonedx/cyclonedx-library?logo=npm&logoColor=white "npm"
159
161
  [shield_license]: https://img.shields.io/github/license/CycloneDX/cyclonedx-javascript-library?logo=open%20source%20initiative&logoColor=white "license"
160
162
  [shield_website]: https://img.shields.io/badge/https://-cyclonedx.org-blue.svg "homepage"
@@ -16,7 +16,42 @@ limitations under the License.
16
16
  SPDX-License-Identifier: Apache-2.0
17
17
  Copyright (c) OWASP Foundation. All Rights Reserved.
18
18
  */
19
- export interface Sortable<T> {
20
- sorted: () => T[];
19
+ import type { Stringable } from './stringable';
20
+ export interface Sortable<TItem> {
21
+ sorted: () => TItem[];
21
22
  }
23
+ export interface Comparable<TOther> {
24
+ /**
25
+ * Compare one object with another.
26
+ *
27
+ * The purpose of this method is not to test for equality, but have deterministic comparability.
28
+ * As long as this method is deterministic, there is no need for a proper ordering in any result/downstream.
29
+ */
30
+ compare: (other: TOther) => number;
31
+ }
32
+ declare const compareObjectsSymbol: unique symbol;
33
+ declare abstract class SortableSet<TItem> extends Set<TItem> implements Sortable<TItem>, Comparable<Sortable<TItem>> {
34
+ /**
35
+ * Comparator function to apply to two items.
36
+ */
37
+ protected abstract [compareObjectsSymbol](a: TItem, b: TItem): number;
38
+ /**
39
+ * Get a sorted array of all items in the collection..
40
+ */
41
+ sorted(): TItem[];
42
+ /**
43
+ * Comparator function to apply to two objects of the collection..
44
+ */
45
+ compare(other: Sortable<TItem>): number;
46
+ }
47
+ export declare abstract class SortableComparables<TItem extends Comparable<TItem>> extends SortableSet<TItem> {
48
+ protected [compareObjectsSymbol](a: TItem, b: TItem): number;
49
+ }
50
+ export declare abstract class SortableStringables<TItem extends Stringable = Stringable> extends SortableSet<TItem> {
51
+ protected [compareObjectsSymbol](a: TItem, b: TItem): number;
52
+ }
53
+ export declare abstract class SortableNumbers<TItem extends number = number> extends SortableSet<TItem> {
54
+ protected [compareObjectsSymbol](a: TItem, b: TItem): number;
55
+ }
56
+ export {};
22
57
  //# sourceMappingURL=sortable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sortable.d.ts","sourceRoot":"","sources":["../../src/_helpers/sortable.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,MAAM,WAAW,QAAQ,CAAC,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC,EAAE,CAAA;CAClB"}
1
+ {"version":3,"file":"sortable.d.ts","sourceRoot":"","sources":["../../src/_helpers/sortable.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAE9C,MAAM,WAAW,QAAQ,CAAC,KAAK;IAC7B,MAAM,EAAE,MAAM,KAAK,EAAE,CAAA;CACtB;AAED,MAAM,WAAW,UAAU,CAAC,MAAM;IAChC;;;;;OAKG;IACH,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;CACnC;AAED,QAAA,MAAM,oBAAoB,eAAsC,CAAA;AAEhE,uBAAe,WAAW,CAAC,KAAK,CAAE,SAAQ,GAAG,CAAC,KAAK,CAAE,YAAW,QAAQ,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC1G;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,CAAC,oBAAoB,CAAC,CAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,GAAG,MAAM;IAEtE;;OAEG;IACH,MAAM,IAAK,KAAK,EAAE;IAIlB;;OAEG;IACH,OAAO,CAAE,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,GAAG,MAAM;CAkBzC;AAED,8BAAsB,mBAAmB,CAAC,KAAK,SAAS,UAAU,CAAC,KAAK,CAAC,CAAE,SAAQ,WAAW,CAAC,KAAK,CAAC;IACnG,SAAS,CAAC,CAAC,oBAAoB,CAAC,CAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,GAAG,MAAM;CAG9D;AAED,8BAAsB,mBAAmB,CAAC,KAAK,SAAS,UAAU,GAAG,UAAU,CAAE,SAAQ,WAAW,CAAC,KAAK,CAAC;IACzG,SAAS,CAAC,CAAC,oBAAoB,CAAC,CAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,GAAG,MAAM;CAG9D;AAED,8BAAsB,eAAe,CAAC,KAAK,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,WAAW,CAAC,KAAK,CAAC;IAC7F,SAAS,CAAC,CAAC,oBAAoB,CAAC,CAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,GAAG,MAAM;CAG9D"}
@@ -16,15 +16,15 @@ limitations under the License.
16
16
  SPDX-License-Identifier: Apache-2.0
17
17
  Copyright (c) OWASP Foundation. All Rights Reserved.
18
18
  */
19
- import { PackageJson } from '../_helpers/packageJson';
20
- import * as Enums from '../enums';
21
- import * as Factories from '../factories/index.node';
22
- import * as Models from '../models';
23
19
  /**
24
20
  * Node-specifics.
25
21
  *
26
- * @see {@link https://docs.npmjs.com/cli/v8/configuring-npm/package-json PackageJson spec}
22
+ * @see [PackageJson spec](https://docs.npmjs.com/cli/v8/configuring-npm/package-json)
27
23
  */
24
+ import type { PackageJson } from '../_helpers/packageJson';
25
+ import * as Enums from '../enums';
26
+ import type * as Factories from '../factories/index.node';
27
+ import * as Models from '../models';
28
28
  /**
29
29
  * Node-specific ToolBuilder.
30
30
  */
@@ -1 +1 @@
1
- {"version":3,"file":"fromNodePackageJson.node.d.ts","sourceRoot":"","sources":["../../src/builders/fromNodePackageJson.node.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,OAAO,EAAE,WAAW,EAAkB,MAAM,yBAAyB,CAAA;AACrE,OAAO,KAAK,KAAK,MAAM,UAAU,CAAA;AACjC,OAAO,KAAK,SAAS,MAAM,yBAAyB,CAAA;AACpD,OAAO,KAAK,MAAM,MAAM,WAAW,CAAA;AAEnC;;;;GAIG;AAEH;;GAEG;AACH,qBAAa,WAAW;;gBAGT,aAAa,EAAE,WAAW,CAAC,eAAe,CAAC;IAIxD,IAAI,aAAa,IAAK,SAAS,CAAC,mBAAmB,CAAC,wBAAwB,CAE3E;IAID,QAAQ,CAAE,IAAI,EAAE,WAAW,GAAG,MAAM,CAAC,IAAI,GAAG,SAAS;CActD;AAED;;GAEG;AACH,qBAAa,gBAAgB;;gBAKzB,aAAa,EAAE,gBAAgB,CAAC,eAAe,CAAC,EAChD,cAAc,EAAE,gBAAgB,CAAC,gBAAgB,CAAC;IAMpD,IAAI,aAAa,IAAK,SAAS,CAAC,mBAAmB,CAAC,wBAAwB,CAE3E;IAED,IAAI,cAAc,IAAK,SAAS,CAAC,cAAc,CAE9C;IAED,aAAa,CAAE,IAAI,EAAE,WAAW,EAAE,IAAI,GAAE,KAAK,CAAC,aAA2C,GAAG,MAAM,CAAC,SAAS,GAAG,SAAS;CAwDzH"}
1
+ {"version":3,"file":"fromNodePackageJson.node.d.ts","sourceRoot":"","sources":["../../src/builders/fromNodePackageJson.node.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF;;;;GAIG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAE1D,OAAO,KAAK,KAAK,MAAM,UAAU,CAAA;AACjC,OAAO,KAAK,KAAK,SAAS,MAAM,yBAAyB,CAAA;AACzD,OAAO,KAAK,MAAM,MAAM,WAAW,CAAA;AAEnC;;GAEG;AACH,qBAAa,WAAW;;gBAGT,aAAa,EAAE,WAAW,CAAC,eAAe,CAAC;IAIxD,IAAI,aAAa,IAAK,SAAS,CAAC,mBAAmB,CAAC,wBAAwB,CAE3E;IAID,QAAQ,CAAE,IAAI,EAAE,WAAW,GAAG,MAAM,CAAC,IAAI,GAAG,SAAS;CActD;AAED;;GAEG;AACH,qBAAa,gBAAgB;;gBAKzB,aAAa,EAAE,gBAAgB,CAAC,eAAe,CAAC,EAChD,cAAc,EAAE,gBAAgB,CAAC,gBAAgB,CAAC;IAMpD,IAAI,aAAa,IAAK,SAAS,CAAC,mBAAmB,CAAC,wBAAwB,CAE3E;IAED,IAAI,cAAc,IAAK,SAAS,CAAC,cAAc,CAE9C;IAED,aAAa,CAAE,IAAI,EAAE,WAAW,EAAE,IAAI,GAAE,KAAK,CAAC,aAA2C,GAAG,MAAM,CAAC,SAAS,GAAG,SAAS;CAwDzH"}
@@ -16,15 +16,15 @@ limitations under the License.
16
16
  SPDX-License-Identifier: Apache-2.0
17
17
  Copyright (c) OWASP Foundation. All Rights Reserved.
18
18
  */
19
- import { PackageURL } from 'packageurl-js';
20
- import { PackageJson } from '../_helpers/packageJson';
21
- import * as Models from '../models';
22
- import { PackageUrlFactory as PlainPackageUrlFactory } from './packageUrl';
23
19
  /**
24
20
  * Node-specifics.
25
21
  *
26
- * @see {@link https://docs.npmjs.com/cli/v8/configuring-npm/package-json PackageJson spec}
22
+ * @see [PackageJson spec](https://docs.npmjs.com/cli/v8/configuring-npm/package-json)
27
23
  */
24
+ import type { PackageURL } from 'packageurl-js';
25
+ import type { PackageJson } from '../_helpers/packageJson';
26
+ import * as Models from '../models';
27
+ import { PackageUrlFactory as PlainPackageUrlFactory } from './packageUrl';
28
28
  /**
29
29
  * Node-specific ExternalReferenceFactory.
30
30
  */
@@ -1 +1 @@
1
- {"version":3,"file":"fromNodePackageJson.node.d.ts","sourceRoot":"","sources":["../../src/factories/fromNodePackageJson.node.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAG1C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAGrD,OAAO,KAAK,MAAM,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,iBAAiB,IAAI,sBAAsB,EAAE,MAAM,cAAc,CAAA;AAE1E;;;;GAIG;AAEH;;GAEG;AACH,qBAAa,wBAAwB;IACnC,sBAAsB,CAAE,IAAI,EAAE,WAAW,GAAG,MAAM,CAAC,iBAAiB,EAAE;IAUtE,OAAO,CAAE,IAAI,EAAE,WAAW,GAAG,MAAM,CAAC,iBAAiB,GAAG,SAAS;IAsBjE,YAAY,CAAE,IAAI,EAAE,WAAW,GAAG,MAAM,CAAC,iBAAiB,GAAG,SAAS;IAUtE,gBAAgB,CAAE,IAAI,EAAE,WAAW,GAAG,MAAM,CAAC,iBAAiB,GAAG,SAAS;CAgB3E;AAID;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,sBAAsB;;IAClD,iBAAiB,CAAE,SAAS,EAAE,MAAM,CAAC,SAAS,EAAE,IAAI,GAAE,OAAe,GAAG,UAAU,GAAG,SAAS;CAsCxG"}
1
+ {"version":3,"file":"fromNodePackageJson.node.d.ts","sourceRoot":"","sources":["../../src/factories/fromNodePackageJson.node.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF;;;;GAIG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAG/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAG1D,OAAO,KAAK,MAAM,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,iBAAiB,IAAI,sBAAsB,EAAE,MAAM,cAAc,CAAA;AAE1E;;GAEG;AACH,qBAAa,wBAAwB;IACnC,sBAAsB,CAAE,IAAI,EAAE,WAAW,GAAG,MAAM,CAAC,iBAAiB,EAAE;IAUtE,OAAO,CAAE,IAAI,EAAE,WAAW,GAAG,MAAM,CAAC,iBAAiB,GAAG,SAAS;IAsBjE,YAAY,CAAE,IAAI,EAAE,WAAW,GAAG,MAAM,CAAC,iBAAiB,GAAG,SAAS;IAUtE,gBAAgB,CAAE,IAAI,EAAE,WAAW,GAAG,MAAM,CAAC,iBAAiB,GAAG,SAAS;CAgB3E;AAID;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,sBAAsB;;IAClD,iBAAiB,CAAE,SAAS,EAAE,MAAM,CAAC,SAAS,EAAE,IAAI,GAAE,OAAe,GAAG,UAAU,GAAG,SAAS;CAsCxG"}
@@ -16,7 +16,8 @@ limitations under the License.
16
16
  SPDX-License-Identifier: Apache-2.0
17
17
  Copyright (c) OWASP Foundation. All Rights Reserved.
18
18
  */
19
- import { DisjunctiveLicense, License, LicenseExpression, NamedLicense, SpdxLicense } from '../models';
19
+ import type { DisjunctiveLicense, License } from '../models';
20
+ import { LicenseExpression, NamedLicense, SpdxLicense } from '../models';
20
21
  export declare class LicenseFactory {
21
22
  makeFromString(value: string): License;
22
23
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"license.d.ts","sourceRoot":"","sources":["../../src/factories/license.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAGrG,qBAAa,cAAc;IACzB,cAAc,CAAE,KAAK,EAAE,MAAM,GAAG,OAAO;IAQvC;;OAEG;IACH,cAAc,CAAE,KAAK,EAAE,MAAM,GAAG,iBAAiB;IAIjD,eAAe,CAAE,KAAK,EAAE,MAAM,GAAG,kBAAkB;IAQnD;;OAEG;IACH,qBAAqB,CAAE,KAAK,EAAE,MAAM,GAAG,GAAG,GAAG,WAAW;IASxD,uBAAuB,CAAE,KAAK,EAAE,MAAM,GAAG,GAAG,GAAG,YAAY;CAG5D"}
1
+ {"version":3,"file":"license.d.ts","sourceRoot":"","sources":["../../src/factories/license.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,OAAO,KAAK,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAC5D,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAGxE,qBAAa,cAAc;IACzB,cAAc,CAAE,KAAK,EAAE,MAAM,GAAG,OAAO;IAQvC;;OAEG;IACH,cAAc,CAAE,KAAK,EAAE,MAAM,GAAG,iBAAiB;IAIjD,eAAe,CAAE,KAAK,EAAE,MAAM,GAAG,kBAAkB;IAQnD;;OAEG;IACH,qBAAqB,CAAE,KAAK,EAAE,MAAM,GAAG,GAAG,GAAG,WAAW;IASxD,uBAAuB,CAAE,KAAK,EAAE,MAAM,GAAG,GAAG,GAAG,YAAY;CAG5D"}
@@ -17,7 +17,7 @@ SPDX-License-Identifier: Apache-2.0
17
17
  Copyright (c) OWASP Foundation. All Rights Reserved.
18
18
  */
19
19
  import { PackageURL } from 'packageurl-js';
20
- import { Component } from '../models';
20
+ import type { Component } from '../models';
21
21
  export declare class PackageUrlFactory {
22
22
  #private;
23
23
  constructor(type: PackageUrlFactory['type']);
@@ -1 +1 @@
1
- {"version":3,"file":"packageUrl.d.ts","sourceRoot":"","sources":["../../src/factories/packageUrl.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAI1C,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAErC,qBAAa,iBAAiB;;gBAGf,IAAI,EAAE,iBAAiB,CAAC,MAAM,CAAC;IAI5C,IAAI,IAAI,IAAK,UAAU,CAAC,MAAM,CAAC,CAE9B;IAED,iBAAiB,CAAE,SAAS,EAAE,SAAS,EAAE,IAAI,GAAE,OAAe,GAAG,UAAU,GAAG,SAAS;CAoDxF"}
1
+ {"version":3,"file":"packageUrl.d.ts","sourceRoot":"","sources":["../../src/factories/packageUrl.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAI1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAE1C,qBAAa,iBAAiB;;gBAGf,IAAI,EAAE,iBAAiB,CAAC,MAAM,CAAC;IAI5C,IAAI,IAAI,IAAK,UAAU,CAAC,MAAM,CAAC,CAE9B;IAED,iBAAiB,CAAE,SAAS,EAAE,SAAS,EAAE,IAAI,GAAE,OAAe,GAAG,UAAU,GAAG,SAAS;CAoDxF"}
@@ -16,8 +16,8 @@ limitations under the License.
16
16
  SPDX-License-Identifier: Apache-2.0
17
17
  Copyright (c) OWASP Foundation. All Rights Reserved.
18
18
  */
19
- import { AttachmentEncoding } from '../enums';
20
- interface OptionalProperties {
19
+ import type { AttachmentEncoding } from '../enums';
20
+ export interface OptionalAttachmentProperties {
21
21
  contentType?: Attachment['contentType'];
22
22
  encoding?: Attachment['encoding'];
23
23
  }
@@ -25,7 +25,6 @@ export declare class Attachment {
25
25
  contentType?: string;
26
26
  content: string;
27
27
  encoding?: AttachmentEncoding;
28
- constructor(content: Attachment['content'], op?: OptionalProperties);
28
+ constructor(content: Attachment['content'], op?: OptionalAttachmentProperties);
29
29
  }
30
- export {};
31
30
  //# sourceMappingURL=attachment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"attachment.d.ts","sourceRoot":"","sources":["../../src/models/attachment.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAE7C,UAAU,kBAAkB;IAC1B,WAAW,CAAC,EAAE,UAAU,CAAC,aAAa,CAAC,CAAA;IACvC,QAAQ,CAAC,EAAE,UAAU,CAAC,UAAU,CAAC,CAAA;CAClC;AAED,qBAAa,UAAU;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,kBAAkB,CAAA;gBAEhB,OAAO,EAAE,UAAU,CAAC,SAAS,CAAC,EAAE,EAAE,GAAE,kBAAuB;CAKzE"}
1
+ {"version":3,"file":"attachment.d.ts","sourceRoot":"","sources":["../../src/models/attachment.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAElD,MAAM,WAAW,4BAA4B;IAC3C,WAAW,CAAC,EAAE,UAAU,CAAC,aAAa,CAAC,CAAA;IACvC,QAAQ,CAAC,EAAE,UAAU,CAAC,UAAU,CAAC,CAAA;CAClC;AAED,qBAAa,UAAU;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,kBAAkB,CAAA;gBAEhB,OAAO,EAAE,UAAU,CAAC,SAAS,CAAC,EAAE,EAAE,GAAE,4BAAiC;CAKnF"}
@@ -16,10 +16,10 @@ limitations under the License.
16
16
  SPDX-License-Identifier: Apache-2.0
17
17
  Copyright (c) OWASP Foundation. All Rights Reserved.
18
18
  */
19
- import { PositiveInteger, UrnUuid } from '../types';
19
+ import type { PositiveInteger, UrnUuid } from '../types';
20
20
  import { ComponentRepository } from './component';
21
21
  import { Metadata } from './metadata';
22
- interface OptionalProperties {
22
+ export interface OptionalBomProperties {
23
23
  metadata?: Bom['metadata'];
24
24
  components?: Bom['components'];
25
25
  version?: Bom['version'];
@@ -30,10 +30,10 @@ export declare class Bom {
30
30
  metadata: Metadata;
31
31
  components: ComponentRepository;
32
32
  /**
33
- * @throws {TypeError} if {@link op.version} is neither {@link PositiveInteger} nor {@link undefined}
34
- * @throws {TypeError} if {@link op.serialNumber} is neither {@link UrnUuid} nor {@link undefined}
33
+ * @throws {TypeError} if `op.version` is neither {@link PositiveInteger} nor `undefined`
34
+ * @throws {TypeError} if `op.serialNumber` is neither {@link UrnUuid} nor `undefined`
35
35
  */
36
- constructor(op?: OptionalProperties);
36
+ constructor(op?: OptionalBomProperties);
37
37
  get version(): PositiveInteger;
38
38
  /**
39
39
  * @throws {TypeError} if value is not {@link PositiveInteger}
@@ -41,9 +41,8 @@ export declare class Bom {
41
41
  set version(value: PositiveInteger);
42
42
  get serialNumber(): UrnUuid | undefined;
43
43
  /**
44
- * @throws {TypeError} if value is neither {@link UrnUuid} nor {@link undefined}
44
+ * @throws {TypeError} if value is neither {@link UrnUuid} nor `undefined`
45
45
  */
46
46
  set serialNumber(value: UrnUuid | undefined);
47
47
  }
48
- export {};
49
48
  //# sourceMappingURL=bom.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bom.d.ts","sourceRoot":"","sources":["../../src/models/bom.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,OAAO,EAAgC,eAAe,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AACjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,UAAU,kBAAkB;IAC1B,QAAQ,CAAC,EAAE,GAAG,CAAC,UAAU,CAAC,CAAA;IAC1B,UAAU,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC,CAAA;IAC9B,OAAO,CAAC,EAAE,GAAG,CAAC,SAAS,CAAC,CAAA;IACxB,YAAY,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAA;CACnC;AAED,qBAAa,GAAG;;IACd,QAAQ,EAAE,QAAQ,CAAA;IAClB,UAAU,EAAE,mBAAmB,CAAA;IAc/B;;;OAGG;gBACU,EAAE,GAAE,kBAAuB;IAOxC,IAAI,OAAO,IAAK,eAAe,CAE9B;IAED;;OAEG;IACH,IAAI,OAAO,CAAE,KAAK,EAAE,eAAe,EAKlC;IAED,IAAI,YAAY,IAAK,OAAO,GAAG,SAAS,CAEvC;IAED;;OAEG;IACH,IAAI,YAAY,CAAE,KAAK,EAAE,OAAO,GAAG,SAAS,EAK3C;CACF"}
1
+ {"version":3,"file":"bom.d.ts","sourceRoot":"","sources":["../../src/models/bom.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,OAAO,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAExD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,EAAE,GAAG,CAAC,UAAU,CAAC,CAAA;IAC1B,UAAU,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC,CAAA;IAC9B,OAAO,CAAC,EAAE,GAAG,CAAC,SAAS,CAAC,CAAA;IACxB,YAAY,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAA;CACnC;AAED,qBAAa,GAAG;;IACd,QAAQ,EAAE,QAAQ,CAAA;IAClB,UAAU,EAAE,mBAAmB,CAAA;IAc/B;;;OAGG;gBACU,EAAE,GAAE,qBAA0B;IAO3C,IAAI,OAAO,IAAK,eAAe,CAE9B;IAED;;OAEG;IACH,IAAI,OAAO,CAAE,KAAK,EAAE,eAAe,EAKlC;IAED,IAAI,YAAY,IAAK,OAAO,GAAG,SAAS,CAEvC;IAED;;OAEG;IACH,IAAI,YAAY,CAAE,KAAK,EAAE,OAAO,GAAG,SAAS,EAK3C;CACF"}
@@ -16,19 +16,20 @@ limitations under the License.
16
16
  SPDX-License-Identifier: Apache-2.0
17
17
  Copyright (c) OWASP Foundation. All Rights Reserved.
18
18
  */
19
- import { PackageURL } from 'packageurl-js';
20
- import { Comparable, SortableSet } from '../_helpers/sortableSet';
19
+ import type { PackageURL } from 'packageurl-js';
20
+ import type { Comparable } from '../_helpers/sortable';
21
+ import { SortableComparables } from '../_helpers/sortable';
21
22
  import { treeIteratorSymbol } from '../_helpers/tree';
22
- import { ComponentScope, ComponentType } from '../enums';
23
- import { CPE } from '../types';
23
+ import type { ComponentScope, ComponentType } from '../enums';
24
+ import type { CPE } from '../types';
24
25
  import { BomRef, BomRefRepository } from './bomRef';
25
26
  import { ExternalReferenceRepository } from './externalReference';
26
27
  import { HashDictionary } from './hash';
27
28
  import { LicenseRepository } from './license';
28
- import { OrganizationalEntity } from './organizationalEntity';
29
+ import type { OrganizationalEntity } from './organizationalEntity';
29
30
  import { PropertyRepository } from './property';
30
- import { SWID } from './swid';
31
- interface OptionalProperties {
31
+ import type { SWID } from './swid';
32
+ export interface OptionalComponentProperties {
32
33
  bomRef?: BomRef['value'];
33
34
  author?: Component['author'];
34
35
  copyright?: Component['copyright'];
@@ -48,7 +49,7 @@ interface OptionalProperties {
48
49
  cpe?: Component['cpe'];
49
50
  properties?: Component['properties'];
50
51
  }
51
- export declare class Component implements Comparable {
52
+ export declare class Component implements Comparable<Component> {
52
53
  #private;
53
54
  type: ComponentType;
54
55
  name: string;
@@ -69,19 +70,18 @@ export declare class Component implements Comparable {
69
70
  components: ComponentRepository;
70
71
  properties: PropertyRepository;
71
72
  /**
72
- * @throws {TypeError} if {@link op.cpe} is neither {@link CPE} nor {@link undefined}
73
+ * @throws {TypeError} if `op.cpe` is neither {@link CPE} nor `undefined`
73
74
  */
74
- constructor(type: Component['type'], name: Component['name'], op?: OptionalProperties);
75
+ constructor(type: Component['type'], name: Component['name'], op?: OptionalComponentProperties);
75
76
  get bomRef(): BomRef;
76
77
  get cpe(): CPE | undefined;
77
78
  /**
78
- * @throws {TypeError} if value is neither {@link CPE} nor {@link undefined}
79
+ * @throws {TypeError} if value is neither {@link CPE} nor `undefined`
79
80
  */
80
81
  set cpe(value: CPE | undefined);
81
82
  compare(other: Component): number;
82
83
  }
83
- export declare class ComponentRepository extends SortableSet<Component> {
84
+ export declare class ComponentRepository extends SortableComparables<Component> {
84
85
  [treeIteratorSymbol](): Generator<Component>;
85
86
  }
86
- export {};
87
87
  //# sourceMappingURL=component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../src/models/component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAE1C,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AACrD,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxD,OAAO,EAAE,GAAG,EAAS,MAAM,UAAU,CAAA;AACrC,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AACnD,OAAO,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAA;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAA;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAC7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAE7B,UAAU,kBAAkB;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC,OAAO,CAAC,CAAA;IACxB,MAAM,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAA;IAC5B,SAAS,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,CAAA;IAClC,WAAW,CAAC,EAAE,SAAS,CAAC,aAAa,CAAC,CAAA;IACtC,kBAAkB,CAAC,EAAE,SAAS,CAAC,oBAAoB,CAAC,CA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
- import { Comparable, SortableSet } from '../_helpers/sortableSet';
20
- import { ExternalReferenceType } from '../enums';
21
- interface OptionalProperties {
19
+ import type { Comparable } from '../_helpers/sortable';
20
+ import { SortableComparables } from '../_helpers/sortable';
21
+ import type { ExternalReferenceType } from '../enums';
22
+ export interface OptionalExternalReferenceProperties {
22
23
  comment?: ExternalReference['comment'];
23
24
  }
24
- export declare class ExternalReference implements Comparable {
25
+ export declare class ExternalReference implements Comparable<ExternalReference> {
25
26
  url: URL | string;
26
27
  type: ExternalReferenceType;
27
28
  comment?: string;
28
- constructor(url: ExternalReference['url'], type: ExternalReference['type'], op?: OptionalProperties);
29
+ constructor(url: ExternalReference['url'], type: ExternalReference['type'], op?: OptionalExternalReferenceProperties);
29
30
  compare(other: ExternalReference): number;
30
31
  }
31
- export declare class ExternalReferenceRepository extends SortableSet<ExternalReference> {
32
+ export declare class ExternalReferenceRepository extends SortableComparables<ExternalReference> {
32
33
  }
33
- export {};
34
34
  //# sourceMappingURL=externalReference.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"externalReference.d.ts","sourceRoot":"","sources":["../../src/models/externalReference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAEhD,UAAU,kBAAkB;IAC1B,OAAO,CAAC,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAA;CACvC;AAED,qBAAa,iBAAkB,YAAW,UAAU;IAClD,GAAG,EAAE,GAAG,GAAG,MAAM,CAAA;IACjB,IAAI,EAAE,qBAAqB,CAAA;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAA;gBAEH,GAAG,EAAE,iBAAiB,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,iBAAiB,CAAC,MAAM,CAAC,EAAE,EAAE,GAAE,kBAAuB;IAMxG,OAAO,CAAE,KAAK,EAAE,iBAAiB,GAAG,MAAM;CAM3C;AAED,qBAAa,2BAA4B,SAAQ,WAAW,CAAC,iBAAiB,CAAC;CAC9E"}
1
+ {"version":3,"file":"externalReference.d.ts","sourceRoot":"","sources":["../../src/models/externalReference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAErD,MAAM,WAAW,mCAAmC;IAClD,OAAO,CAAC,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAA;CACvC;AAED,qBAAa,iBAAkB,YAAW,UAAU,CAAC,iBAAiB,CAAC;IACrE,GAAG,EAAE,GAAG,GAAG,MAAM,CAAA;IACjB,IAAI,EAAE,qBAAqB,CAAA;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAA;gBAEH,GAAG,EAAE,iBAAiB,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,iBAAiB,CAAC,MAAM,CAAC,EAAE,EAAE,GAAE,mCAAwC;IAMzH,OAAO,CAAE,KAAK,EAAE,iBAAiB,GAAG,MAAM;CAM3C;AAED,qBAAa,2BAA4B,SAAQ,mBAAmB,CAAC,iBAAiB,CAAC;CACtF"}
@@ -16,8 +16,8 @@ limitations under the License.
16
16
  SPDX-License-Identifier: Apache-2.0
17
17
  Copyright (c) OWASP Foundation. All Rights Reserved.
18
18
  */
19
- import { Sortable } from '../_helpers/sortable';
20
- import { HashAlgorithm } from '../enums';
19
+ import type { Sortable } from '../_helpers/sortable';
20
+ import type { HashAlgorithm } from '../enums';
21
21
  export type HashContent = string;
22
22
  export type Hash = readonly [
23
23
  HashAlgorithm,
@@ -1 +1 @@
1
- {"version":3,"file":"hash.d.ts","sourceRoot":"","sources":["../../src/models/hash.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAGxC,MAAM,MAAM,WAAW,GAAG,MAAM,CAAA;AAEhC,MAAM,MAAM,IAAI,GAAG,SAAS;IAGT,aAAa;IACb,WAAW;CAE7B,CAAA;AAED,mBAAmB;AACnB,qBAAa,cAAe,SAAQ,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAE,YAAW,QAAQ,CAAC,IAAI,CAAC;;IAQjF,MAAM,IAAK,IAAI,EAAE;CAGlB;AAED,+EAA+E;AAC/E,qBAAa,cAAe,SAAQ,cAAc;CAAG"}
1
+ {"version":3,"file":"hash.d.ts","sourceRoot":"","sources":["../../src/models/hash.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAG7C,MAAM,MAAM,WAAW,GAAG,MAAM,CAAA;AAEhC,MAAM,MAAM,IAAI,GAAG,SAAS;IAGT,aAAa;IACb,WAAW;CAE7B,CAAA;AAED,mBAAmB;AACnB,qBAAa,cAAe,SAAQ,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAE,YAAW,QAAQ,CAAC,IAAI,CAAC;;IAQjF,MAAM,IAAK,IAAI,EAAE;CAGlB;AAED,+EAA+E;AAC/E,qBAAa,cAAe,SAAQ,cAAc;CAAG"}
@@ -16,24 +16,24 @@ limitations under the License.
16
16
  SPDX-License-Identifier: Apache-2.0
17
17
  Copyright (c) OWASP Foundation. All Rights Reserved.
18
18
  */
19
- import { Sortable } from '../_helpers/sortable';
20
- import { SpdxId } from '../spdx';
21
- import { Attachment } from './attachment';
19
+ import type { Sortable } from '../_helpers/sortable';
20
+ import type { SpdxId } from '../spdx';
21
+ import type { Attachment } from './attachment';
22
22
  export declare class LicenseExpression {
23
23
  #private;
24
24
  static isEligibleExpression(expression: string | any): boolean;
25
25
  /**
26
- * @throws {RangeError} if {@link expression} is not eligible({@link LicenseExpression.isEligibleExpression})
26
+ * @throws {RangeError} if `expression` is not {@link LicenseExpression.isEligibleExpression eligible}
27
27
  */
28
28
  constructor(expression: LicenseExpression['expression']);
29
29
  get expression(): string;
30
30
  /**
31
- * @throws {RangeError} if expression is not eligible({@link LicenseExpression.isEligibleExpression})
31
+ * @throws {RangeError} if value is not {@link LicenseExpression.isEligibleExpression eligible}
32
32
  */
33
33
  set expression(value: string);
34
34
  compare(other: LicenseExpression): number;
35
35
  }
36
- interface NamedLicenseOptionalProperties {
36
+ export interface OptionalNamedLicenseProperties {
37
37
  text?: NamedLicense['text'];
38
38
  url?: NamedLicense['url'];
39
39
  }
@@ -41,10 +41,10 @@ export declare class NamedLicense {
41
41
  name: string;
42
42
  text?: Attachment;
43
43
  url?: URL | string;
44
- constructor(name: NamedLicense['name'], op?: NamedLicenseOptionalProperties);
44
+ constructor(name: NamedLicense['name'], op?: OptionalNamedLicenseProperties);
45
45
  compare(other: NamedLicense): number;
46
46
  }
47
- interface SpdxLicenseOptionalProperties {
47
+ export interface OptionalSpdxLicenseProperties {
48
48
  text?: SpdxLicense['text'];
49
49
  url?: SpdxLicense['url'];
50
50
  }
@@ -53,12 +53,12 @@ export declare class SpdxLicense {
53
53
  text?: Attachment;
54
54
  url?: URL | string;
55
55
  /**
56
- * @throws {RangeError} if {@link id} is not supported SPDX id({@link isSupportedSpdxId})
56
+ * @throws {RangeError} if `id` is not {@link isSupportedSpdxId supported}
57
57
  */
58
- constructor(id: SpdxLicense['id'], op?: SpdxLicenseOptionalProperties);
58
+ constructor(id: SpdxLicense['id'], op?: OptionalSpdxLicenseProperties);
59
59
  get id(): SpdxId;
60
60
  /**
61
- * @throws {RangeError} if value is not supported SPDX id({@link isSupportedSpdxId})
61
+ * @throws {RangeError} if value is not {@link isSupportedSpdxId supported}
62
62
  */
63
63
  set id(value: SpdxId);
64
64
  compare(other: SpdxLicense): number;
@@ -69,5 +69,4 @@ export declare class LicenseRepository extends Set<License> implements Sortable<
69
69
  #private;
70
70
  sorted(): License[];
71
71
  }
72
- export {};
73
72
  //# sourceMappingURL=license.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"license.d.ts","sourceRoot":"","sources":["../../src/models/license.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAC/C,OAAO,EAAqB,MAAM,EAAE,MAAM,SAAS,CAAA;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,qBAAa,iBAAiB;;IAC5B,MAAM,CAAC,oBAAoB,CAAE,UAAU,EAAE,MAAM,GAAG,GAAG,GAAG,OAAO;IAW/D;;OAEG;gBACU,UAAU,EAAE,iBAAiB,CAAC,YAAY,CAAC;IAIxD,IAAI,UAAU,IAAK,MAAM,CAExB;IAED;;OAEG;IACH,IAAI,UAAU,CAAE,KAAK,EAAE,MAAM,EAK5B;IAED,OAAO,CAAE,KAAK,EAAE,iBAAiB,GAAG,MAAM;CAG3C;AAED,UAAU,8BAA8B;IACtC,IAAI,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAA;IAC3B,GAAG,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC,CAAA;CAC1B;AAED,qBAAa,YAAY;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,GAAG,CAAC,EAAE,GAAG,GAAG,MAAM,CAAA;gBAEL,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,EAAE,EAAE,GAAE,8BAAmC;IAMhF,OAAO,CAAE,KAAK,EAAE,YAAY,GAAG,MAAM;CAGtC;AAED,UAAU,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ache-2.0
17
17
  Copyright (c) OWASP Foundation. All Rights Reserved.
18
18
  */
19
- import { Component } from './component';
19
+ import type { Component } from './component';
20
20
  import { OrganizationalContactRepository } from './organizationalContact';
21
- import { OrganizationalEntity } from './organizationalEntity';
21
+ import type { OrganizationalEntity } from './organizationalEntity';
22
22
  import { ToolRepository } from './tool';
23
- interface OptionalProperties {
23
+ export interface OptionalMetadataProperties {
24
24
  timestamp?: Metadata['timestamp'];
25
25
  tools?: Metadata['tools'];
26
26
  authors?: Metadata['authors'];
@@ -35,7 +35,6 @@ export declare class Metadata {
35
35
  component?: Component;
36
36
  manufacture?: OrganizationalEntity;
37
37
  supplier?: OrganizationalEntity;
38
- constructor(op?: OptionalProperties);
38
+ constructor(op?: OptionalMetadataProperties);
39
39
  }
40
- export {};
41
40
  //# sourceMappingURL=metadata.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../src/models/metadata.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,+BAA+B,EAAE,MAAM,yBAAyB,CAAA;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAA;AAEvC,UAAU,kBAAkB;IAC1B,SAAS,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAA;IACjC,KAAK,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;IACzB,OAAO,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAA;IAC7B,SAAS,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAA;IACjC,WAAW,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAA;IACrC,QAAQ,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAA;CAChC;AAED,qBAAa,QAAQ;IAC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the License.
16
16
  SPDX-License-Identifier: Apache-2.0
17
17
  Copyright (c) OWASP Foundation. All Rights Reserved.
18
18
  */
19
- import { Comparable, SortableSet } from '../_helpers/sortableSet';
20
- interface OptionalProperties {
19
+ import type { Comparable } from '../_helpers/sortable';
20
+ import { SortableComparables } from '../_helpers/sortable';
21
+ export interface OptionalOrganizationalContactProperties {
21
22
  name?: OrganizationalContact['name'];
22
23
  email?: OrganizationalContact['email'];
23
24
  phone?: OrganizationalContact['phone'];
24
25
  }
25
- export declare class OrganizationalContact implements Comparable {
26
+ export declare class OrganizationalContact implements Comparable<OrganizationalContact> {
26
27
  name?: string;
27
28
  email?: string;
28
29
  phone?: string;
29
- constructor(op?: OptionalProperties);
30
+ constructor(op?: OptionalOrganizationalContactProperties);
30
31
  compare(other: OrganizationalContact): number;
31
32
  }
32
- export declare class OrganizationalContactRepository extends SortableSet<OrganizationalContact> {
33
+ export declare class OrganizationalContactRepository extends SortableComparables<OrganizationalContact> {
33
34
  }
34
- export {};
35
35
  //# sourceMappingURL=organizationalContact.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"organizationalContact.d.ts","sourceRoot":"","sources":["../../src/models/organizationalContact.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAEjE,UAAU,kBAAkB;IAC1B,IAAI,CAAC,EAAE,qBAAqB,CAAC,MAAM,CAAC,CAAA;IACpC,KAAK,CAAC,EAAE,qBAAqB,CAAC,OAAO,CAAC,CAAA;IACtC,KAAK,CAAC,EAAE,qBAAqB,CAAC,OAAO,CAAC,CAAA;CACvC;AAED,qBAAa,qBAAsB,YAAW,UAAU;IACtD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;gBAED,EAAE,GAAE,kBAAuB;IAMxC,OAAO,CAAE,KAAK,EAAE,qBAAqB,GAAG,MAAM;CAO/C;AAED,qBAAa,+BAAgC,SAAQ,WAAW,CAAC,qBAAqB,CAAC;CACtF"}
1
+ {"version":3,"file":"organizationalContact.d.ts","sourceRoot":"","sources":["../../src/models/organizationalContact.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAE1D,MAAM,WAAW,uCAAuC;IACtD,IAAI,CAAC,EAAE,qBAAqB,CAAC,MAAM,CAAC,CAAA;IACpC,KAAK,CAAC,EAAE,qBAAqB,CAAC,OAAO,CAAC,CAAA;IACtC,KAAK,CAAC,EAAE,qBAAqB,CAAC,OAAO,CAAC,CAAA;CACvC;AAED,qBAAa,qBAAsB,YAAW,UAAU,CAAC,qBAAqB,CAAC;IAC7E,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;gBAED,EAAE,GAAE,uCAA4C;IAM7D,OAAO,CAAE,KAAK,EAAE,qBAAqB,GAAG,MAAM;CAO/C;AAED,qBAAa,+BAAgC,SAAQ,mBAAmB,CAAC,qBAAqB,CAAC;CAC9F"}
@@ -17,7 +17,7 @@ SPDX-License-Identifier: Apache-2.0
17
17
  Copyright (c) OWASP Foundation. All Rights Reserved.
18
18
  */
19
19
  import { OrganizationalContactRepository } from './organizationalContact';
20
- interface OptionalProperties {
20
+ export interface OptionalOrganizationalEntityProperties {
21
21
  name?: OrganizationalEntity['name'];
22
22
  url?: OrganizationalEntity['url'];
23
23
  contact?: OrganizationalEntity['contact'];
@@ -26,7 +26,6 @@ export declare class OrganizationalEntity {
26
26
  name?: string;
27
27
  url: Set<URL | string>;
28
28
  contact: OrganizationalContactRepository;
29
- constructor(op?: OptionalProperties);
29
+ constructor(op?: OptionalOrganizationalEntityProperties);
30
30
  }
31
- export {};
32
31
  //# sourceMappingURL=organizationalEntity.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"organizationalEntity.d.ts","sourceRoot":"","sources":["../../src/models/organizationalEntity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,OAAO,EAAE,+BAA+B,EAAE,MAAM,yBAAyB,CAAA;AAEzE,UAAU,kBAAkB;IAC1B,IAAI,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,CAAA;IACnC,GAAG,CAAC,EAAE,oBAAoB,CAAC,KAAK,CAAC,CAAA;IACjC,OAAO,CAAC,EAAE,oBAAoB,CAAC,SAAS,CAAC,CAAA;CAC1C;AAED,qBAAa,oBAAoB;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,GAAG,CAAC,GAAG,GAAG,MAAM,CAAC,CAAA;IACtB,OAAO,EAAE,+BAA+B,CAAA;gBAE3B,EAAE,GAAE,kBAAuB;CAKzC"}
1
+ {"version":3,"file":"organizationalEntity.d.ts","sourceRoot":"","sources":["../../src/models/organizationalEntity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,OAAO,EAAE,+BAA+B,EAAE,MAAM,yBAAyB,CAAA;AAEzE,MAAM,WAAW,sCAAsC;IACrD,IAAI,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,CAAA;IACnC,GAAG,CAAC,EAAE,oBAAoB,CAAC,KAAK,CAAC,CAAA;IACjC,OAAO,CAAC,EAAE,oBAAoB,CAAC,SAAS,CAAC,CAAA;CAC1C;AAED,qBAAa,oBAAoB;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,GAAG,CAAC,GAAG,GAAG,MAAM,CAAC,CAAA;IACtB,OAAO,EAAE,+BAA+B,CAAA;gBAE3B,EAAE,GAAE,sCAA2C;CAK7D"}
@@ -16,16 +16,17 @@ limitations under the License.
16
16
  SPDX-License-Identifier: Apache-2.0
17
17
  Copyright (c) OWASP Foundation. All Rights Reserved.
18
18
  */
19
- import { Comparable, SortableSet } from '../_helpers/sortableSet';
19
+ import type { Comparable } from '../_helpers/sortable';
20
+ import { SortableComparables } from '../_helpers/sortable';
20
21
  /**
21
- * @see {@link https://github.com/CycloneDX/cyclonedx-property-taxonomy property-taxonomy}
22
+ * @see [CycloneDX Property Taxonomy](https://github.com/CycloneDX/cyclonedx-property-taxonomy)
22
23
  */
23
- export declare class Property implements Comparable {
24
+ export declare class Property implements Comparable<Property> {
24
25
  name: string;
25
26
  value: string;
26
27
  constructor(name: Property['name'], value: Property['value']);
27
28
  compare(other: Property): number;
28
29
  }
29
- export declare class PropertyRepository extends SortableSet<Property> {
30
+ export declare class PropertyRepository extends SortableComparables<Property> {
30
31
  }
31
32
  //# sourceMappingURL=property.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"property.d.ts","sourceRoot":"","sources":["../../src/models/property.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAEjE;;GAEG;AACH,qBAAa,QAAS,YAAW,UAAU;IACzC,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;gBAEA,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC;IAK7D,OAAO,CAAE,KAAK,EAAE,QAAQ,GAAG,MAAM;CAKlC;AAED,qBAAa,kBAAmB,SAAQ,WAAW,CAAC,QAAQ,CAAC;CAC5D"}
1
+ {"version":3,"file":"property.d.ts","sourceRoot":"","sources":["../../src/models/property.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAE1D;;GAEG;AACH,qBAAa,QAAS,YAAW,UAAU,CAAC,QAAQ,CAAC;IACnD,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;gBAEA,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC;IAK7D,OAAO,CAAE,KAAK,EAAE,QAAQ,GAAG,MAAM;CAKlC;AAED,qBAAa,kBAAmB,SAAQ,mBAAmB,CAAC,QAAQ,CAAC;CACpE"}
@@ -16,9 +16,9 @@ limitations under the License.
16
16
  SPDX-License-Identifier: Apache-2.0
17
17
  Copyright (c) OWASP Foundation. All Rights Reserved.
18
18
  */
19
- import { NonNegativeInteger } from '../types';
20
- import { Attachment } from './attachment';
21
- interface OptionalProperties {
19
+ import type { NonNegativeInteger } from '../types';
20
+ import type { Attachment } from './attachment';
21
+ export interface OptionalSWIDProperties {
22
22
  version?: SWID['version'];
23
23
  patch?: SWID['patch'];
24
24
  text?: SWID['text'];
@@ -37,14 +37,13 @@ export declare class SWID {
37
37
  text?: Attachment;
38
38
  url?: URL | string;
39
39
  /**
40
- * @throws {TypeError} if {@link op.tagVersion} is neither {@link NonNegativeInteger} nor {@link undefined}
40
+ * @throws {TypeError} if `op.tagVersion` is neither {@link NonNegativeInteger} nor `undefined`
41
41
  */
42
- constructor(tagId: SWID['tagId'], name: SWID['name'], op?: OptionalProperties);
42
+ constructor(tagId: SWID['tagId'], name: SWID['name'], op?: OptionalSWIDProperties);
43
43
  get tagVersion(): NonNegativeInteger | undefined;
44
44
  /**
45
- * @throws {TypeError} if value is neither {@link NonNegativeInteger} nor {@link undefined}
45
+ * @throws {TypeError} if value is neither {@link NonNegativeInteger} nor `undefined`
46
46
  */
47
47
  set tagVersion(value: NonNegativeInteger | undefined);
48
48
  }
49
- export {};
50
49
  //# sourceMappingURL=swid.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"swid.d.ts","sourceRoot":"","sources":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