@cyclonedx/cyclonedx-library 9.2.0 → 9.4.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 (166) hide show
  1. package/dist.d/builders/index.node.d.ts +9 -1
  2. package/dist.d/builders/index.node.d.ts.map +1 -1
  3. package/dist.d/contrib/bom/index.d.ts +20 -0
  4. package/dist.d/contrib/bom/index.d.ts.map +1 -0
  5. package/dist.d/{utils/bomUtility.d.ts → contrib/bom/utils.d.ts} +1 -1
  6. package/dist.d/contrib/bom/utils.d.ts.map +1 -0
  7. package/dist.d/contrib/fromNodePackageJson/_helpers/gitUrl.d.ts.map +1 -0
  8. package/dist.d/contrib/fromNodePackageJson/_helpers/packageJson.d.ts.map +1 -0
  9. package/dist.d/{builders/fromNodePackageJson.node.d.ts → contrib/fromNodePackageJson/builders.d.ts} +18 -9
  10. package/dist.d/contrib/fromNodePackageJson/builders.d.ts.map +1 -0
  11. package/dist.d/{factories/fromNodePackageJson.node.d.ts → contrib/fromNodePackageJson/factories.d.ts} +5 -5
  12. package/dist.d/contrib/fromNodePackageJson/factories.d.ts.map +1 -0
  13. package/dist.d/contrib/fromNodePackageJson/index.node.d.ts +31 -0
  14. package/dist.d/contrib/fromNodePackageJson/index.node.d.ts.map +1 -0
  15. package/dist.d/{types/nodePackageJson.d.ts → contrib/fromNodePackageJson/types.d.ts} +1 -1
  16. package/dist.d/contrib/fromNodePackageJson/types.d.ts.map +1 -0
  17. package/dist.d/{utils/npmjsUtility.node.d.ts → contrib/fromNodePackageJson/utils.d.ts} +2 -2
  18. package/dist.d/contrib/fromNodePackageJson/utils.d.ts.map +1 -0
  19. package/dist.d/contrib/index.common.d.ts +24 -0
  20. package/dist.d/contrib/index.common.d.ts.map +1 -0
  21. package/dist.d/contrib/index.node.d.ts +25 -0
  22. package/dist.d/contrib/index.node.d.ts.map +1 -0
  23. package/dist.d/contrib/index.web.d.ts +24 -0
  24. package/dist.d/contrib/index.web.d.ts.map +1 -0
  25. package/dist.d/contrib/license/_helpers/mime.node.d.ts.map +1 -0
  26. package/dist.d/{factories/license.d.ts → contrib/license/factories.d.ts} +3 -3
  27. package/dist.d/contrib/license/factories.d.ts.map +1 -0
  28. package/dist.d/contrib/license/index.common.d.ts +20 -0
  29. package/dist.d/contrib/license/index.common.d.ts.map +1 -0
  30. package/dist.d/contrib/license/index.node.d.ts +21 -0
  31. package/dist.d/contrib/license/index.node.d.ts.map +1 -0
  32. package/dist.d/contrib/license/index.web.d.ts +20 -0
  33. package/dist.d/contrib/license/index.web.d.ts.map +1 -0
  34. package/dist.d/{utils/licenseUtility.node.d.ts → contrib/license/utils.node.d.ts} +2 -2
  35. package/dist.d/contrib/license/utils.node.d.ts.map +1 -0
  36. package/dist.d/{factories/packageUrl.d.ts → contrib/packageUrl/factories.d.ts} +2 -2
  37. package/dist.d/contrib/packageUrl/factories.d.ts.map +1 -0
  38. package/dist.d/contrib/packageUrl/index.d.ts +20 -0
  39. package/dist.d/contrib/packageUrl/index.d.ts.map +1 -0
  40. package/dist.d/factories/index.common.d.ts +18 -2
  41. package/dist.d/factories/index.common.d.ts.map +1 -1
  42. package/dist.d/factories/index.node.d.ts +9 -1
  43. package/dist.d/factories/index.node.d.ts.map +1 -1
  44. package/dist.d/index.node.d.ts +4 -0
  45. package/dist.d/index.node.d.ts.map +1 -1
  46. package/dist.d/index.web.d.ts +3 -0
  47. package/dist.d/index.web.d.ts.map +1 -1
  48. package/dist.d/types/index.d.ts +25 -1
  49. package/dist.d/types/index.d.ts.map +1 -1
  50. package/dist.d/utils/index.common.d.ts +9 -1
  51. package/dist.d/utils/index.common.d.ts.map +1 -1
  52. package/dist.d/utils/index.node.d.ts +18 -2
  53. package/dist.d/utils/index.node.d.ts.map +1 -1
  54. package/dist.node/builders/index.node.js +2 -1
  55. package/dist.node/builders/index.node.js.map +1 -1
  56. package/dist.node/contrib/bom/index.js +56 -0
  57. package/dist.node/contrib/bom/index.js.map +1 -0
  58. package/dist.node/{utils/bomUtility.js → contrib/bom/utils.js} +1 -1
  59. package/dist.node/contrib/bom/utils.js.map +1 -0
  60. package/dist.node/contrib/fromNodePackageJson/_helpers/gitUrl.js.map +1 -0
  61. package/dist.node/contrib/fromNodePackageJson/_helpers/packageJson.js.map +1 -0
  62. package/dist.node/{builders/fromNodePackageJson.node.js → contrib/fromNodePackageJson/builders.js} +7 -7
  63. package/dist.node/contrib/fromNodePackageJson/builders.js.map +1 -0
  64. package/dist.node/{factories/fromNodePackageJson.node.js → contrib/fromNodePackageJson/factories.js} +17 -17
  65. package/dist.node/contrib/fromNodePackageJson/factories.js.map +1 -0
  66. package/dist.node/contrib/fromNodePackageJson/index.node.js +59 -0
  67. package/dist.node/contrib/fromNodePackageJson/index.node.js.map +1 -0
  68. package/dist.node/{types/nodePackageJson.js → contrib/fromNodePackageJson/types.js} +1 -1
  69. package/dist.node/contrib/fromNodePackageJson/types.js.map +1 -0
  70. package/dist.node/{utils/npmjsUtility.node.js → contrib/fromNodePackageJson/utils.js} +2 -2
  71. package/dist.node/contrib/fromNodePackageJson/utils.js.map +1 -0
  72. package/dist.node/contrib/index.common.js +57 -0
  73. package/dist.node/contrib/index.common.js.map +1 -0
  74. package/dist.node/contrib/index.node.js +61 -0
  75. package/dist.node/contrib/index.node.js.map +1 -0
  76. package/dist.node/contrib/license/_helpers/mime.node.js.map +1 -0
  77. package/dist.node/{factories/license.js → contrib/license/factories.js} +3 -3
  78. package/dist.node/contrib/license/factories.js.map +1 -0
  79. package/dist.node/contrib/license/index.common.js +56 -0
  80. package/dist.node/contrib/license/index.common.js.map +1 -0
  81. package/dist.node/contrib/license/index.node.js +60 -0
  82. package/dist.node/contrib/license/index.node.js.map +1 -0
  83. package/dist.node/{utils/licenseUtility.node.js → contrib/license/utils.node.js} +4 -4
  84. package/dist.node/contrib/license/utils.node.js.map +1 -0
  85. package/dist.node/{factories/packageUrl.js → contrib/packageUrl/factories.js} +2 -2
  86. package/dist.node/contrib/packageUrl/factories.js.map +1 -0
  87. package/dist.node/contrib/packageUrl/index.js +56 -0
  88. package/dist.node/contrib/packageUrl/index.js.map +1 -0
  89. package/dist.node/factories/index.common.js +5 -16
  90. package/dist.node/factories/index.common.js.map +1 -1
  91. package/dist.node/factories/index.node.js +5 -4
  92. package/dist.node/factories/index.node.js.map +1 -1
  93. package/dist.node/index.node.js +2 -1
  94. package/dist.node/index.node.js.map +1 -1
  95. package/dist.node/types/index.js +4 -1
  96. package/dist.node/types/index.js.map +1 -1
  97. package/dist.node/utils/index.common.js +2 -1
  98. package/dist.node/utils/index.common.js.map +1 -1
  99. package/dist.node/utils/index.node.js +8 -6
  100. package/dist.node/utils/index.node.js.map +1 -1
  101. package/dist.web/lib.dev.js +622 -253
  102. package/dist.web/lib.dev.js.map +1 -1
  103. package/dist.web/lib.js +1 -1
  104. package/dist.web/lib.js.map +1 -1
  105. package/package.json +23 -3
  106. package/res/schema/README.md +3 -1
  107. package/src/builders/index.node.ts +15 -1
  108. package/src/contrib/README.md +20 -0
  109. package/src/contrib/bom/index.ts +20 -0
  110. package/src/contrib/fromNodePackageJson/_helpers/README.md +6 -0
  111. package/src/{builders/fromNodePackageJson.node.ts → contrib/fromNodePackageJson/builders.ts} +17 -16
  112. package/src/{factories/fromNodePackageJson.node.ts → contrib/fromNodePackageJson/factories.ts} +15 -15
  113. package/src/contrib/fromNodePackageJson/index.node.ts +34 -0
  114. package/src/{utils/npmjsUtility.node.ts → contrib/fromNodePackageJson/utils.ts} +1 -1
  115. package/src/contrib/index.common.ts +25 -0
  116. package/src/contrib/index.node.ts +31 -0
  117. package/src/contrib/index.web.ts +30 -0
  118. package/src/contrib/license/_helpers/README.md +6 -0
  119. package/src/{factories/license.ts → contrib/license/factories.ts} +3 -3
  120. package/src/contrib/license/index.common.ts +22 -0
  121. package/src/contrib/license/index.node.ts +28 -0
  122. package/src/contrib/license/index.web.ts +28 -0
  123. package/src/{utils/licenseUtility.node.ts → contrib/license/utils.node.ts} +3 -3
  124. package/src/{factories/packageUrl.ts → contrib/packageUrl/factories.ts} +2 -2
  125. package/src/contrib/packageUrl/index.ts +20 -0
  126. package/src/factories/index.common.ts +24 -3
  127. package/src/factories/index.node.ts +14 -1
  128. package/src/index.common.ts +1 -0
  129. package/src/index.node.ts +7 -0
  130. package/src/index.web.ts +6 -0
  131. package/src/types/index.ts +37 -2
  132. package/src/utils/index.common.ts +15 -1
  133. package/src/utils/index.node.ts +25 -2
  134. package/dist.d/_helpers/gitUrl.d.ts.map +0 -1
  135. package/dist.d/_helpers/mime.node.d.ts.map +0 -1
  136. package/dist.d/_helpers/packageJson.d.ts.map +0 -1
  137. package/dist.d/builders/fromNodePackageJson.node.d.ts.map +0 -1
  138. package/dist.d/factories/fromNodePackageJson.node.d.ts.map +0 -1
  139. package/dist.d/factories/license.d.ts.map +0 -1
  140. package/dist.d/factories/packageUrl.d.ts.map +0 -1
  141. package/dist.d/types/nodePackageJson.d.ts.map +0 -1
  142. package/dist.d/utils/bomUtility.d.ts.map +0 -1
  143. package/dist.d/utils/licenseUtility.node.d.ts.map +0 -1
  144. package/dist.d/utils/npmjsUtility.node.d.ts.map +0 -1
  145. package/dist.node/_helpers/gitUrl.js.map +0 -1
  146. package/dist.node/_helpers/mime.node.js.map +0 -1
  147. package/dist.node/_helpers/packageJson.js.map +0 -1
  148. package/dist.node/builders/fromNodePackageJson.node.js.map +0 -1
  149. package/dist.node/factories/fromNodePackageJson.node.js.map +0 -1
  150. package/dist.node/factories/license.js.map +0 -1
  151. package/dist.node/factories/packageUrl.js.map +0 -1
  152. package/dist.node/types/nodePackageJson.js.map +0 -1
  153. package/dist.node/utils/bomUtility.js.map +0 -1
  154. package/dist.node/utils/licenseUtility.node.js.map +0 -1
  155. package/dist.node/utils/npmjsUtility.node.js.map +0 -1
  156. /package/dist.d/{_helpers → contrib/fromNodePackageJson/_helpers}/gitUrl.d.ts +0 -0
  157. /package/dist.d/{_helpers → contrib/fromNodePackageJson/_helpers}/packageJson.d.ts +0 -0
  158. /package/dist.d/{_helpers → contrib/license/_helpers}/mime.node.d.ts +0 -0
  159. /package/dist.node/{_helpers → contrib/fromNodePackageJson/_helpers}/gitUrl.js +0 -0
  160. /package/dist.node/{_helpers → contrib/fromNodePackageJson/_helpers}/packageJson.js +0 -0
  161. /package/dist.node/{_helpers → contrib/license/_helpers}/mime.node.js +0 -0
  162. /package/src/{utils/bomUtility.ts → contrib/bom/utils.ts} +0 -0
  163. /package/src/{_helpers → contrib/fromNodePackageJson/_helpers}/gitUrl.ts +0 -0
  164. /package/src/{_helpers → contrib/fromNodePackageJson/_helpers}/packageJson.ts +0 -0
  165. /package/src/{types/nodePackageJson.ts → contrib/fromNodePackageJson/types.ts} +0 -0
  166. /package/src/{_helpers → contrib/license/_helpers}/mime.node.ts +0 -0
@@ -16,5 +16,13 @@ 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 * as FromNodePackageJson from './fromNodePackageJson.node';
19
+ import * as _FromNodePackageJson from '../contrib/fromNodePackageJson/builders';
20
+ /**
21
+ * Deprecated — Alias of {@link Contrib.FromNodePackageJson.Builders}.
22
+ *
23
+ * @deprecated This re-export location is deprecated.
24
+ * Import `Contrib.FromNodePackageJson.Builders` instead.
25
+ * The exported symbol itself is NOT deprecated - only this import path.
26
+ */
27
+ export declare const FromNodePackageJson: typeof _FromNodePackageJson;
20
28
  //# sourceMappingURL=index.node.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.node.d.ts","sourceRoot":"","sources":["../../src/builders/index.node.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,OAAO,KAAK,mBAAmB,MAAM,4BAA4B,CAAA"}
1
+ {"version":3,"file":"index.node.d.ts","sourceRoot":"","sources":["../../src/builders/index.node.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,OAAO,KAAK,oBAAoB,MAAM,yCAAyC,CAAA;AAK/E;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,6BAAuB,CAAA"}
@@ -0,0 +1,20 @@
1
+ /*!
2
+ This file is part of CycloneDX JavaScript Library.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+
16
+ SPDX-License-Identifier: Apache-2.0
17
+ Copyright (c) OWASP Foundation. All Rights Reserved.
18
+ */
19
+ export * as Utils from './utils';
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contrib/bom/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA"}
@@ -20,4 +20,4 @@ Copyright (c) OWASP Foundation. All Rights Reserved.
20
20
  * Generate valid random SerialNumbers for {@link Models.Bom.serialNumber | Models.Bom.serialNumber}.
21
21
  */
22
22
  export declare function randomSerialNumber(): string;
23
- //# sourceMappingURL=bomUtility.d.ts.map
23
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/contrib/bom/utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF;;GAEG;AACH,wBAAgB,kBAAkB,IAAK,MAAM,CAc5C"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gitUrl.d.ts","sourceRoot":"","sources":["../../../../src/contrib/fromNodePackageJson/_helpers/gitUrl.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AASF;;GAEG;AACH,wBAAgB,qBAAqB,CAAE,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,GAAG,GAAG,MAAM,GAAG,SAAS,CA0B1F"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"packageJson.d.ts","sourceRoot":"","sources":["../../../../src/contrib/fromNodePackageJson/_helpers/packageJson.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAE,IAAI,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAO/D"}
@@ -16,18 +16,27 @@ 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 { ComponentType } from '../enums/componentType';
20
- import type * as Factories from '../factories/index.node';
21
- import { Component } from '../models/component';
22
- import { Tool } from '../models/tool';
23
- import type { NodePackageJson } from '../types/nodePackageJson';
19
+ /**
20
+ * Node-specifics.
21
+ *
22
+ * Intended to run on normalized data structures
23
+ * based on [PackageJson spec](https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/package.json)
24
+ * and explained by [PackageJson description](https://docs.npmjs.com/cli/v9/configuring-npm/package-json).
25
+ * Normalization should be done downstream, for example via [`normalize-package-data`](https://www.npmjs.com/package/normalize-package-data).
26
+ */
27
+ import { ComponentType } from '../../enums/componentType';
28
+ import { Component } from '../../models/component';
29
+ import { Tool } from '../../models/tool';
30
+ import type { LicenseFactory } from '../license/factories';
31
+ import type { ExternalReferenceFactory } from './factories';
32
+ import type { NodePackageJson } from './types';
24
33
  /**
25
34
  * Node-specific ToolBuilder.
26
35
  */
27
36
  export declare class ToolBuilder {
28
37
  #private;
29
38
  constructor(extRefFactory: ToolBuilder['extRefFactory']);
30
- get extRefFactory(): Factories.FromNodePackageJson.ExternalReferenceFactory;
39
+ get extRefFactory(): ExternalReferenceFactory;
31
40
  makeTool(data: NodePackageJson): Tool | undefined;
32
41
  }
33
42
  /**
@@ -36,8 +45,8 @@ export declare class ToolBuilder {
36
45
  export declare class ComponentBuilder {
37
46
  #private;
38
47
  constructor(extRefFactory: ComponentBuilder['extRefFactory'], licenseFactory: ComponentBuilder['licenseFactory']);
39
- get extRefFactory(): Factories.FromNodePackageJson.ExternalReferenceFactory;
40
- get licenseFactory(): Factories.LicenseFactory;
48
+ get extRefFactory(): ExternalReferenceFactory;
49
+ get licenseFactory(): LicenseFactory;
41
50
  makeComponent(data: NodePackageJson, type?: ComponentType): Component | undefined;
42
51
  }
43
- //# sourceMappingURL=fromNodePackageJson.node.d.ts.map
52
+ //# sourceMappingURL=builders.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"builders.d.ts","sourceRoot":"","sources":["../../../src/contrib/fromNodePackageJson/builders.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF;;;;;;;GAOG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAGlD,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAA;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C;;GAEG;AACH,qBAAa,WAAW;;gBAGT,aAAa,EAAE,WAAW,CAAC,eAAe,CAAC;IAIxD,IAAI,aAAa,IAAK,wBAAwB,CAE7C;IAID,QAAQ,CAAE,IAAI,EAAE,eAAe,GAAG,IAAI,GAAG,SAAS;CAcnD;AAED;;GAEG;AACH,qBAAa,gBAAgB;;gBAKzB,aAAa,EAAE,gBAAgB,CAAC,eAAe,CAAC,EAChD,cAAc,EAAE,gBAAgB,CAAC,gBAAgB,CAAC;IAMpD,IAAI,aAAa,IAAK,wBAAwB,CAE7C;IAED,IAAI,cAAc,IAAK,cAAc,CAEpC;IAED,aAAa,CAAE,IAAI,EAAE,eAAe,EAAE,IAAI,GAAE,aAAqC,GAAG,SAAS,GAAG,SAAS;CAwD1G"}
@@ -25,10 +25,10 @@ Copyright (c) OWASP Foundation. All Rights Reserved.
25
25
  * Normalization should be done downstream, for example via [`normalize-package-data`](https://www.npmjs.com/package/normalize-package-data).
26
26
  */
27
27
  import type { PackageURL } from 'packageurl-js';
28
- import type { Component } from '../models/component';
29
- import { ExternalReference } from '../models/externalReference';
30
- import type { NodePackageJson } from '../types/nodePackageJson';
31
- import { PackageUrlFactory as PlainPackageUrlFactory } from './packageUrl';
28
+ import type { Component } from '../../models/component';
29
+ import { ExternalReference } from '../../models/externalReference';
30
+ import { PackageUrlFactory as PlainPackageUrlFactory } from '../packageUrl/factories';
31
+ import type { NodePackageJson } from './types';
32
32
  /**
33
33
  * Node-specific ExternalReferenceFactory.
34
34
  */
@@ -47,4 +47,4 @@ export declare class PackageUrlFactory extends PlainPackageUrlFactory<'npm'> {
47
47
  #private;
48
48
  makeFromComponent(component: Component, sort?: boolean): PackageURL | undefined;
49
49
  }
50
- //# sourceMappingURL=fromNodePackageJson.node.d.ts.map
50
+ //# sourceMappingURL=factories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"factories.d.ts","sourceRoot":"","sources":["../../../src/contrib/fromNodePackageJson/factories.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAM/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAElE,OAAO,EAAE,iBAAiB,IAAI,sBAAsB,EAAE,MAAM,yBAAyB,CAAA;AAErF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAG9C;;GAEG;AACH,qBAAa,wBAAwB;IACnC,sBAAsB,CAAE,IAAI,EAAE,eAAe,GAAG,iBAAiB,EAAE;IAWnE,OAAO,CAAE,IAAI,EAAE,eAAe,GAAG,iBAAiB,GAAG,SAAS;IAuB9D,YAAY,CAAE,IAAI,EAAE,eAAe,GAAG,iBAAiB,GAAG,SAAS;IAUnE,gBAAgB,CAAE,IAAI,EAAE,eAAe,GAAG,iBAAiB,GAAG,SAAS;IAiBvE,QAAQ,CAAC,IAAI,EAAE,eAAe,GAAG,iBAAiB,GAAG,SAAS;CAwB/D;AAED;;;GAGG;AACH,qBAAa,iBAAkB,SAAQ,sBAAsB,CAAC,KAAK,CAAC;;IAEzD,iBAAiB,CAAE,SAAS,EAAE,SAAS,EAAE,IAAI,GAAE,OAAe,GAAG,UAAU,GAAG,SAAS;CA8CjG"}
@@ -0,0 +1,31 @@
1
+ /*!
2
+ This file is part of CycloneDX JavaScript Library.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+
16
+ SPDX-License-Identifier: Apache-2.0
17
+ Copyright (c) OWASP Foundation. All Rights Reserved.
18
+ */
19
+ /**
20
+ * Node-specifics.
21
+ *
22
+ * Intended to run on normalized data structures
23
+ * based on [PackageJson spec](https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/package.json)
24
+ * and explained by [PackageJson description](https://docs.npmjs.com/cli/v9/configuring-npm/package-json).
25
+ * Normalization should be done downstream, for example via [`normalize-package-data`](https://www.npmjs.com/package/normalize-package-data).
26
+ */
27
+ export * as Builders from './builders';
28
+ export * as Factories from './factories';
29
+ export * as Types from './types';
30
+ export * as Utils from './utils';
31
+ //# sourceMappingURL=index.node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.node.d.ts","sourceRoot":"","sources":["../../../src/contrib/fromNodePackageJson/index.node.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF;;;;;;;GAOG;AAEH,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAA;AACtC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAA;AACxC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAChC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA"}
@@ -66,4 +66,4 @@ export declare function isNodePackageJson(value: any): value is NodePackageJson;
66
66
  * @alpha
67
67
  */
68
68
  export declare function assertNodePackageJson(value: any): asserts value is NodePackageJson;
69
- //# sourceMappingURL=nodePackageJson.d.ts.map
69
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/contrib/fromNodePackageJson/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF;;;;;;;GAOG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,KAAK,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,GAAG,CAAC,EAAE,MAAM,CAAA;KACb,CAAC,CAAA;IACF,MAAM,CAAC,EAAE,MAAM,GAAG;QAChB,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,KAAK,CAAC,EAAE,MAAM,CAAA;KACf,CAAA;IACD,IAAI,CAAC,EAAE,MAAM,GAAG;QACd,GAAG,CAAC,EAAE,MAAM,CAAA;KACb,CAAA;IACD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,GAAG;QACpB,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,GAAG,CAAC,EAAE,MAAM,CAAA;QACZ,SAAS,CAAC,EAAE,MAAM,CAAA;KACnB,CAAA;IAED,IAAI,CAAC,EAAE,GAAG,CAAA;CACX;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAE,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,eAAe,CAOvE;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAE,KAAK,EAAE,GAAG,GAAG,OAAO,CAAC,KAAK,IAAI,eAAe,CAOnF"}
@@ -16,7 +16,7 @@ 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 { HashAlgorithm } from '../enums/hashAlogorithm';
19
+ import { HashAlgorithm } from '../../enums/hashAlogorithm';
20
20
  /**
21
21
  * @throws {@link RangeError} if value is unparsable
22
22
  */
@@ -26,4 +26,4 @@ export declare function parsePackageIntegrity(integrity: string): [HashAlgorithm
26
26
  * @see {@link https://github.com/package-url/purl-spec/blob/master/PURL-TYPES.rst#npm}
27
27
  */
28
28
  export declare const defaultRegistryMatcher: RegExp;
29
- //# sourceMappingURL=npmjsUtility.node.d.ts.map
29
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/contrib/fromNodePackageJson/utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,OAAO,EAAC,aAAa,EAAC,MAAM,4BAA4B,CAAA;AAgDxD;;GAEG;AACH,wBAAgB,qBAAqB,CAAE,SAAS,EAAE,MAAM,GAAG,CAAC,aAAa,EAAE,MAAM,CAAC,CAWjF;AAGD;;;GAGG;AACH,eAAO,MAAM,sBAAsB,QAA6C,CAAA"}
@@ -0,0 +1,24 @@
1
+ /*!
2
+ This file is part of CycloneDX JavaScript Library.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+
16
+ SPDX-License-Identifier: Apache-2.0
17
+ Copyright (c) OWASP Foundation. All Rights Reserved.
18
+ */
19
+ /**
20
+ * Some features in this library are marked as contrib. These are community-provided extensions and are not part of the official standard. They are optional and may evolve independently from the core.
21
+ */
22
+ export * as Bom from './bom';
23
+ export * as PackageUrl from './packageUrl';
24
+ //# sourceMappingURL=index.common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.common.d.ts","sourceRoot":"","sources":["../../src/contrib/index.common.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF;;GAEG;AAEH,OAAO,KAAK,GAAG,MAAM,OAAO,CAAA;AAC5B,OAAO,KAAK,UAAU,MAAM,cAAc,CAAA"}
@@ -0,0 +1,25 @@
1
+ /*!
2
+ This file is part of CycloneDX JavaScript Library.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+
16
+ SPDX-License-Identifier: Apache-2.0
17
+ Copyright (c) OWASP Foundation. All Rights Reserved.
18
+ */
19
+ /**
20
+ * Some features in this library are marked as contrib. These are community-provided extensions and are not part of the official standard. They are optional and may evolve independently from the core.
21
+ */
22
+ export * from './index.common';
23
+ export * as FromNodePackageJson from './fromNodePackageJson/index.node';
24
+ export * as License from './license/index.node';
25
+ //# sourceMappingURL=index.node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.node.d.ts","sourceRoot":"","sources":["../../src/contrib/index.node.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF;;GAEG;AAEH,cAAc,gBAAgB,CAAA;AAI9B,OAAO,KAAK,mBAAmB,MAAM,kCAAkC,CAAA;AACvE,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAA"}
@@ -0,0 +1,24 @@
1
+ /*!
2
+ This file is part of CycloneDX JavaScript Library.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+
16
+ SPDX-License-Identifier: Apache-2.0
17
+ Copyright (c) OWASP Foundation. All Rights Reserved.
18
+ */
19
+ /**
20
+ * Some features in this library are marked as contrib. These are community-provided extensions and are not part of the official standard. They are optional and may evolve independently from the core.
21
+ */
22
+ export * from './index.common';
23
+ export * as License from './license/index.web';
24
+ //# sourceMappingURL=index.web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../src/contrib/index.web.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF;;GAEG;AAEH,cAAc,gBAAgB,CAAA;AAI9B,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mime.node.d.ts","sourceRoot":"","sources":["../../../../src/contrib/license/_helpers/mime.node.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAIF,KAAK,QAAQ,GAAG,MAAM,CAAA;AA8BtB,wBAAgB,2BAA2B,CAAE,QAAQ,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAKnF"}
@@ -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 type { DisjunctiveLicense, License } from '../models/license';
20
- import { LicenseExpression, NamedLicense, SpdxLicense } from '../models/license';
19
+ import type { DisjunctiveLicense, License } from '../../models/license';
20
+ import { LicenseExpression, NamedLicense, SpdxLicense } from '../../models/license';
21
21
  export declare class LicenseFactory {
22
22
  makeFromString(value: string): License;
23
23
  /**
@@ -31,4 +31,4 @@ export declare class LicenseFactory {
31
31
  makeSpdxLicense(value: string | any): SpdxLicense;
32
32
  makeNamedLicense(value: string | any): NamedLicense;
33
33
  }
34
- //# sourceMappingURL=license.d.ts.map
34
+ //# sourceMappingURL=factories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"factories.d.ts","sourceRoot":"","sources":["../../../src/contrib/license/factories.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,OAAO,KAAK,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACvE,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAGnF,qBAAa,cAAc;IACzB,cAAc,CAAE,KAAK,EAAE,MAAM,GAAG,OAAO;IAgBvC;;OAEG;IACH,cAAc,CAAE,KAAK,EAAE,MAAM,GAAG,GAAG,GAAG,iBAAiB;IAQvD,eAAe,CAAE,KAAK,EAAE,MAAM,GAAG,kBAAkB;IAQnD;;OAEG;IACH,eAAe,CAAE,KAAK,EAAE,MAAM,GAAG,GAAG,GAAG,WAAW;IASlD,gBAAgB,CAAE,KAAK,EAAE,MAAM,GAAG,GAAG,GAAG,YAAY;CAGrD"}
@@ -0,0 +1,20 @@
1
+ /*!
2
+ This file is part of CycloneDX JavaScript Library.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+
16
+ SPDX-License-Identifier: Apache-2.0
17
+ Copyright (c) OWASP Foundation. All Rights Reserved.
18
+ */
19
+ export * as Factories from './factories';
20
+ //# sourceMappingURL=index.common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.common.d.ts","sourceRoot":"","sources":["../../../src/contrib/license/index.common.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,OAAO,KAAK,SAAS,MAAM,aAAa,CAAA"}
@@ -0,0 +1,21 @@
1
+ /*!
2
+ This file is part of CycloneDX JavaScript Library.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+
16
+ SPDX-License-Identifier: Apache-2.0
17
+ Copyright (c) OWASP Foundation. All Rights Reserved.
18
+ */
19
+ export * from './index.common';
20
+ export * as Utils from './utils.node';
21
+ //# sourceMappingURL=index.node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.node.d.ts","sourceRoot":"","sources":["../../../src/contrib/license/index.node.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,cAAc,gBAAgB,CAAA;AAI9B,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA"}
@@ -0,0 +1,20 @@
1
+ /*!
2
+ This file is part of CycloneDX JavaScript Library.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+
16
+ SPDX-License-Identifier: Apache-2.0
17
+ Copyright (c) OWASP Foundation. All Rights Reserved.
18
+ */
19
+ export * from './index.common';
20
+ //# sourceMappingURL=index.web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../src/contrib/license/index.web.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,cAAc,gBAAgB,CAAA"}
@@ -23,7 +23,7 @@ Copyright (c) OWASP Foundation. All Rights Reserved.
23
23
  * @module
24
24
  */
25
25
  import type { Stats } from 'node:fs';
26
- import { Attachment } from '../models/attachment';
26
+ import { Attachment } from '../../models/attachment';
27
27
  export interface FsUtils<P extends string> {
28
28
  readdirSync: (path: P) => P[];
29
29
  readFileSync: (path: P) => Buffer;
@@ -52,4 +52,4 @@ export declare class LicenseEvidenceGatherer<P extends string = string> {
52
52
  });
53
53
  getFileAttachments(prefixPath: P, onError?: ErrorReporter): Generator<FileAttachment<P>>;
54
54
  }
55
- //# sourceMappingURL=licenseUtility.node.d.ts.map
55
+ //# sourceMappingURL=utils.node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.node.d.ts","sourceRoot":"","sources":["../../../src/contrib/license/utils.node.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAGpC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAGpD,MAAM,WAAW,OAAO,CAAC,CAAC,SAAS,MAAM;IACvC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC,KAAM,CAAC,EAAE,CAAA;IAC9B,YAAY,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,MAAM,CAAA;IACjC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,KAAK,CAAA;CAC7B;AAED,MAAM,WAAW,SAAS,CAAC,CAAC,SAAS,MAAM;IACzC,IAAI,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,KAAK,CAAC,CAAA;CAC3B;AAED,MAAM,WAAW,cAAc,CAAC,CAAC,SAAS,MAAM;IAC9C,QAAQ,EAAE,CAAC,CAAA;IACX,IAAI,EAAE,CAAC,CAAA;IACP,IAAI,EAAE,UAAU,CAAA;CACjB;AAID,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,EAAC,KAAK,KAAK,GAAG,CAAA;AAE5C,qBAAa,uBAAuB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;;IAK5D;;;;;OAKG;gBACU,OAAO,GAAE;QAAE,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;QAAC,IAAI,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAA;KAAO;IAQjE,kBAAkB,CAAE,UAAU,EAAE,CAAC,EAAE,OAAO,GAAE,aAAoB,GAAG,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;CA6BlG"}
@@ -17,11 +17,11 @@ 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 type { Component } from '../models/component';
20
+ import type { Component } from '../../models/component';
21
21
  export declare class PackageUrlFactory<PurlType extends PackageURL['type'] = PackageURL['type']> {
22
22
  #private;
23
23
  constructor(type: PurlType);
24
24
  get type(): PurlType;
25
25
  makeFromComponent(component: Component, sort?: boolean): PackageURL | undefined;
26
26
  }
27
- //# sourceMappingURL=packageUrl.d.ts.map
27
+ //# sourceMappingURL=factories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"factories.d.ts","sourceRoot":"","sources":["../../../src/contrib/packageUrl/factories.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,OAAO,EAAE,UAAU,EAAsB,MAAM,eAAe,CAAA;AAG9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAEvD,qBAAa,iBAAiB,CAAC,QAAQ,SAAS,UAAU,CAAC,MAAM,CAAC,GAAG,UAAU,CAAC,MAAM,CAAC;;gBAGxE,IAAI,EAAE,QAAQ;IAI3B,IAAI,IAAI,IAAK,QAAQ,CAEpB;IAGD,iBAAiB,CAAE,SAAS,EAAE,SAAS,EAAE,IAAI,GAAE,OAAe,GAAG,UAAU,GAAG,SAAS;CAuDxF"}
@@ -0,0 +1,20 @@
1
+ /*!
2
+ This file is part of CycloneDX JavaScript Library.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+
16
+ SPDX-License-Identifier: Apache-2.0
17
+ Copyright (c) OWASP Foundation. All Rights Reserved.
18
+ */
19
+ export * as Factories from './factories';
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contrib/packageUrl/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,OAAO,KAAK,SAAS,MAAM,aAAa,CAAA"}
@@ -16,6 +16,22 @@ 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 * from './license';
20
- export * from './packageUrl';
19
+ import { LicenseFactory as _LicenseFactory } from '../contrib/license/factories';
20
+ import { PackageUrlFactory as _PackageUrlFactory } from '../contrib/packageUrl/factories';
21
+ /**
22
+ * Deprecated — Alias of {@link Contrib.License.Factories.LicenseFactory}.
23
+ *
24
+ * @deprecated This re-export location is deprecated.
25
+ * Import `Contrib.License.Factories.LicenseFactory` instead.
26
+ * The exported symbol itself is NOT deprecated - only this import path.
27
+ */
28
+ export declare const LicenseFactory: typeof _LicenseFactory;
29
+ /**
30
+ * Deprecated — Alias of {@link Contrib.PackageUrl.Factories.PackageUrlFactory}.
31
+ *
32
+ * @deprecated This re-export location is deprecated.
33
+ * Import `Contrib.PackageUrl.Factories.PackageUrlFactory` instead.
34
+ * The exported symbol itself is NOT deprecated - only this import path.
35
+ */
36
+ export declare const PackageUrlFactory: typeof _PackageUrlFactory;
21
37
  //# sourceMappingURL=index.common.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.common.d.ts","sourceRoot":"","sources":["../../src/factories/index.common.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAIF,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.common.d.ts","sourceRoot":"","sources":["../../src/factories/index.common.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,OAAO,EAAC,cAAc,IAAI,eAAe,EAAC,MAAM,8BAA8B,CAAA;AAC9E,OAAO,EAAC,iBAAiB,IAAI,kBAAkB,EAAC,MAAM,iCAAiC,CAAA;AAKvF;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,wBAAkB,CAAA;AAE7C;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,2BAAqB,CAAA"}
@@ -16,6 +16,14 @@ 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 * as _FromNodePackageJson from '../contrib/fromNodePackageJson/factories';
19
20
  export * from './index.common';
20
- export * as FromNodePackageJson from './fromNodePackageJson.node';
21
+ /**
22
+ * Deprecated — Alias of {@link Contrib.FromNodePackageJson.Factories}.
23
+ *
24
+ * @deprecated This re-export location is deprecated.
25
+ * Import `Contrib.FromNodePackageJson.Factories` instead.
26
+ * The exported symbol itself is NOT deprecated - only this import path.
27
+ */
28
+ export declare const FromNodePackageJson: typeof _FromNodePackageJson;
21
29
  //# sourceMappingURL=index.node.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.node.d.ts","sourceRoot":"","sources":["../../src/factories/index.node.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,cAAc,gBAAgB,CAAA;AAI9B,OAAO,KAAK,mBAAmB,MAAM,4BAA4B,CAAA"}
1
+ {"version":3,"file":"index.node.d.ts","sourceRoot":"","sources":["../../src/factories/index.node.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,OAAO,KAAK,oBAAoB,MAAM,0CAA0C,CAAA;AAEhF,cAAc,gBAAgB,CAAA;AAM9B;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,6BAAuB,CAAA"}
@@ -17,9 +17,13 @@ SPDX-License-Identifier: Apache-2.0
17
17
  Copyright (c) OWASP Foundation. All Rights Reserved.
18
18
  */
19
19
  export * from './index.common';
20
+ /** @deprecated next */
20
21
  export * as Builders from './builders/index.node';
22
+ export * as Contrib from './contrib/index.node';
23
+ /** @deprecated next */
21
24
  export * as Factories from './factories/index.node';
22
25
  export * as Serialize from './serialize/index.node';
26
+ /** @deprecated next */
23
27
  export * as Utils from './utils/index.node';
24
28
  export * as Validation from './validation/index.node';
25
29
  //# sourceMappingURL=index.node.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.node.d.ts","sourceRoot":"","sources":["../src/index.node.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAMF,cAAc,gBAAgB,CAAA;AAI9B,OAAO,KAAK,QAAQ,MAAM,uBAAuB,CAAA;AACjD,OAAO,KAAK,SAAS,MAAM,wBAAwB,CAAA;AACnD,OAAO,KAAK,SAAS,MAAM,wBAAwB,CAAA;AACnD,OAAO,KAAK,KAAK,MAAM,oBAAoB,CAAA;AAC3C,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAA"}
1
+ {"version":3,"file":"index.node.d.ts","sourceRoot":"","sources":["../src/index.node.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAMF,cAAc,gBAAgB,CAAA;AAI9B,uBAAuB;AACvB,OAAO,KAAK,QAAQ,MAAM,uBAAuB,CAAA;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAA;AAC/C,uBAAuB;AACvB,OAAO,KAAK,SAAS,MAAM,wBAAwB,CAAA;AACnD,OAAO,KAAK,SAAS,MAAM,wBAAwB,CAAA;AACnD,uBAAuB;AACvB,OAAO,KAAK,KAAK,MAAM,oBAAoB,CAAA;AAC3C,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAA"}
@@ -17,8 +17,11 @@ SPDX-License-Identifier: Apache-2.0
17
17
  Copyright (c) OWASP Foundation. All Rights Reserved.
18
18
  */
19
19
  export * from './index.common';
20
+ export * as Contrib from './contrib/index.web';
21
+ /** @deprecated next */
20
22
  export * as Factories from './factories/index.web';
21
23
  export * as Serialize from './serialize/index.web';
24
+ /** @deprecated next */
22
25
  export * as Utils from './utils/index.web';
23
26
  export * as Validation from './validation/index.web';
24
27
  //# sourceMappingURL=index.web.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../src/index.web.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,cAAc,gBAAgB,CAAA;AAI9B,OAAO,KAAK,SAAS,MAAM,uBAAuB,CAAA;AAClD,OAAO,KAAK,SAAS,MAAM,uBAAuB,CAAA;AAClD,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAA;AAC1C,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAA"}
1
+ {"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../src/index.web.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,cAAc,gBAAgB,CAAA;AAI9B,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAA;AAC9C,uBAAuB;AACvB,OAAO,KAAK,SAAS,MAAM,uBAAuB,CAAA;AAClD,OAAO,KAAK,SAAS,MAAM,uBAAuB,CAAA;AAClD,uBAAuB;AACvB,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAA;AAC1C,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAA"}
@@ -16,9 +16,33 @@ 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 { assertNodePackageJson as _assertNodePackageJson, isNodePackageJson as _isNodePackageJson, type NodePackageJson as _NodePackageJson } from '../contrib/fromNodePackageJson/types';
19
20
  export * from './cpe';
20
21
  export * from './cwe';
21
22
  export * from './integer';
22
23
  export * from './mimeType';
23
- export * from './nodePackageJson';
24
+ /**
25
+ * Deprecated — Alias of {@link Contrib.FromNodePackageJson.Types.NodePackageJson}.
26
+ *
27
+ * @deprecated This re-export location is deprecated.
28
+ * Import `Contrib.FromNodePackageJson.Types.NodePackageJson` instead.
29
+ * The exported symbol itself is NOT deprecated - only this import path.
30
+ */
31
+ export type NodePackageJson = _NodePackageJson;
32
+ /**
33
+ * Deprecated — Alias of {@link Contrib.FromNodePackageJson.Types.assertNodePackageJson}.
34
+ *
35
+ * @deprecated This re-export location is deprecated.
36
+ * Import `Contrib.FromNodePackageJson.Types.assertNodePackageJson` instead.
37
+ * The exported symbol itself is NOT deprecated - only this import path.
38
+ */
39
+ export declare const assertNodePackageJson: typeof _assertNodePackageJson;
40
+ /**
41
+ * Deprecated — Alias of {@link Contrib.FromNodePackageJson.Types.isNodePackageJson}.
42
+ *
43
+ * @deprecated This re-export location is deprecated.
44
+ * Import `Contrib.FromNodePackageJson.Types.isNodePackageJson` instead.
45
+ * The exported symbol itself is NOT deprecated - only this import path.
46
+ */
47
+ export declare const isNodePackageJson: typeof _isNodePackageJson;
24
48
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,cAAc,OAAO,CAAA;AACrB,cAAc,OAAO,CAAA;AACrB,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAG1B,cAAc,mBAAmB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,OAAO,EACL,qBAAqB,IAAI,sBAAsB,EAC/C,iBAAiB,IAAI,kBAAkB,EACvC,KAAK,eAAe,IAAI,gBAAgB,EACzC,MAAM,sCAAsC,CAAA;AAG7C,cAAc,OAAO,CAAA;AACrB,cAAc,OAAO,CAAA;AACrB,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAI1B;;;;;;GAMG;AACH,MAAM,MAAM,eAAe,GAAG,gBAAgB,CAAA;AAE9C;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,+BAAyB,CAAA;AAE3D;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,2BAAqB,CAAA"}
@@ -16,5 +16,13 @@ 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 * as BomUtility from './bomUtility';
19
+ import * as _BomUtils from '../contrib/bom/utils';
20
+ /**
21
+ * Deprecated — Alias of {@link Contrib.Bom.Utils}.
22
+ *
23
+ * @deprecated This re-export location is deprecated.
24
+ * Import `Contrib.Bom.Utils` instead.
25
+ * The exported symbol itself is NOT deprecated - only this import path.
26
+ */
27
+ export declare const BomUtility: typeof _BomUtils;
20
28
  //# sourceMappingURL=index.common.d.ts.map