@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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.node.js","sourceRoot":"","sources":["../../../src/contrib/license/index.node.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;EAiBE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,iDAA8B;AAI9B,sDAAqC"}
@@ -19,9 +19,9 @@ Copyright (c) OWASP Foundation. All Rights Reserved.
19
19
  */
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
21
  exports.LicenseEvidenceGatherer = void 0;
22
- const mime_node_1 = require("../_helpers/mime.node");
23
- const attachmentEncoding_1 = require("../enums/attachmentEncoding");
24
- const attachment_1 = require("../models/attachment");
22
+ const attachmentEncoding_1 = require("../../enums/attachmentEncoding");
23
+ const attachment_1 = require("../../models/attachment");
24
+ const mime_node_1 = require("./_helpers/mime.node");
25
25
  const LICENSE_FILENAME_PATTERN = /^(?:UN)?LICEN[CS]E|.\.LICEN[CS]E$|^NOTICE$/i;
26
26
  class LicenseEvidenceGatherer {
27
27
  #fs;
@@ -56,4 +56,4 @@ class LicenseEvidenceGatherer {
56
56
  }
57
57
  exports.LicenseEvidenceGatherer = LicenseEvidenceGatherer;
58
58
  function noop() { }
59
- //# sourceMappingURL=licenseUtility.node.js.map
59
+ //# sourceMappingURL=utils.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.node.js","sourceRoot":"","sources":["../../../src/contrib/license/utils.node.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;EAiBE;;;AAWF,uEAAmE;AACnE,wDAAoD;AACpD,oDAAkE;AAkBlE,MAAM,wBAAwB,GAAG,6CAA6C,CAAA;AAI9E,MAAa,uBAAuB;IACzB,GAAG,CAAY;IACf,KAAK,CAAc;IAS5B,YAAa,UAAoD,EAAE;QAEjE,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC,EAAE,IAAI,OAAO,CAAC,SAAS,CAAC,CAAA;QAC3C,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,IAAI,IAAI,OAAO,CAAC,WAAW,CAAC,CAAA;IAEnD,CAAC;IAGD,CAAE,kBAAkB,CAAE,UAAa,EAAE,UAAyB,IAAI;QAChE,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,UAAU,CAAC,CAAA;QAC9C,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACzB,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;gBACzC,SAAQ;YACV,CAAC;YACD,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,CAAA;YAClD,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;gBAG1C,SAAQ;YACV,CAAC;YACD,MAAM,WAAW,GAAG,IAAA,uCAA2B,EAAC,IAAI,CAAC,CAAA;YACrD,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;gBAC9B,SAAQ;YACV,CAAC;YACD,IAAI,CAAC;gBACH,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,uBAAU,CAGxC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,QAAQ,CAAC;yBAC1B,QAAQ,CAAC,QAAQ,CAAC,EACvB,EAAE,WAAW,EAAE,QAAQ,EAAE,uCAAkB,CAAC,MAAM,EAAE,CACrD,EAAE,CAAA;YACP,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO,CAAC,IAAI,KAAK,CAAC,wBAAwB,QAAQ,EAAE,EAAE,EAAC,KAAK,EAAC,CAAC,CAAC,CAAA;YACjE,CAAC;QACH,CAAC;IACH,CAAC;CACF;AAhDD,0DAgDC;AAGD,SAAS,IAAI,KAAU,CAAC"}
@@ -20,7 +20,7 @@ Copyright (c) OWASP Foundation. All Rights Reserved.
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
21
  exports.PackageUrlFactory = void 0;
22
22
  const packageurl_js_1 = require("packageurl-js");
23
- const externalReferenceType_1 = require("../enums/externalReferenceType");
23
+ const externalReferenceType_1 = require("../../enums/externalReferenceType");
24
24
  class PackageUrlFactory {
25
25
  #type;
26
26
  constructor(type) {
@@ -65,4 +65,4 @@ class PackageUrlFactory {
65
65
  }
66
66
  }
67
67
  exports.PackageUrlFactory = PackageUrlFactory;
68
- //# sourceMappingURL=packageUrl.js.map
68
+ //# sourceMappingURL=factories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"factories.js","sourceRoot":"","sources":["../../../src/contrib/packageUrl/factories.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;EAiBE;;;AAEF,iDAA8D;AAE9D,6EAAyE;AAGzE,MAAa,iBAAiB;IACnB,KAAK,CAAU;IAExB,YAAa,IAAc;QACzB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAA;IACnB,CAAC;IAED,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,KAAK,CAAA;IACnB,CAAC;IAGD,iBAAiB,CAAE,SAAoB,EAAE,OAAgB,KAAK;QAC5D,MAAM,UAAU,GAA6B,EAAE,CAAA;QAE/C,UAAU,CAAC,SAAS,GAAG,IAAI,CAAA;QAC3B,IAAI,OAAO,GAA0B,SAAS,CAAA;QAG9C,MAAM,OAAO,GAAG,IAAI;YAClB,CAAC,CAAC,SAAS,CAAC,kBAAkB,CAAC,MAAM,EAAE;YACvC,CAAC,CAAC,SAAS,CAAC,kBAAkB,CAAA;QAChC,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;YAC7B,MAAM,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAA;YACjC,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC,EAAE,CAAC;gBACpB,SAAQ;YACV,CAAC;YAMD,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;gBACpB,KAAK,6CAAqB,CAAC,GAAG;oBAC5B,CAAC,UAAU,CAAC,kCAAkB,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,CAAA;oBACpE,MAAK;gBACP,KAAK,6CAAqB,CAAC,YAAY;oBACrC,UAAU,CAAC,kCAAkB,CAAC,WAAW,CAAC,GAAG,GAAG,CAAA;oBAChD,MAAK;YACT,CAAC;QACH,CAAC;QAED,MAAM,MAAM,GAAG,SAAS,CAAC,MAAM,CAAA;QAC/B,IAAI,MAAM,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC;YACpB,UAAU,CAAC,kCAAkB,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,IAAI,CAClD,IAAI;gBACF,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE;gBACjB,CAAC,CAAC,MAAM,EACV,CAAC,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE,EAAE,CAAC,GAAG,QAAQ,CAAC,WAAW,EAAE,IAAI,QAAQ,CAAC,WAAW,EAAE,EAAE,CAChF,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;QACb,CAAC;QAED,IAAI,CAAC;YAGH,OAAO,IAAI,0BAAU,CACnB,IAAI,CAAC,KAAK,EACV,SAAS,CAAC,KAAK,EACf,SAAS,CAAC,IAAI,EACd,SAAS,CAAC,OAAO,EACjB,UAAU,EACV,OAAO,CACR,CAAA;QACH,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,SAAS,CAAA;QAClB,CAAC;IACH,CAAC;CACF;AAnED,8CAmEC"}
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /*!
3
+ This file is part of CycloneDX JavaScript Library.
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+
17
+ SPDX-License-Identifier: Apache-2.0
18
+ Copyright (c) OWASP Foundation. All Rights Reserved.
19
+ */
20
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ var desc = Object.getOwnPropertyDescriptor(m, k);
23
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
24
+ desc = { enumerable: true, get: function() { return m[k]; } };
25
+ }
26
+ Object.defineProperty(o, k2, desc);
27
+ }) : (function(o, m, k, k2) {
28
+ if (k2 === undefined) k2 = k;
29
+ o[k2] = m[k];
30
+ }));
31
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
32
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
33
+ }) : function(o, v) {
34
+ o["default"] = v;
35
+ });
36
+ var __importStar = (this && this.__importStar) || (function () {
37
+ var ownKeys = function(o) {
38
+ ownKeys = Object.getOwnPropertyNames || function (o) {
39
+ var ar = [];
40
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
41
+ return ar;
42
+ };
43
+ return ownKeys(o);
44
+ };
45
+ return function (mod) {
46
+ if (mod && mod.__esModule) return mod;
47
+ var result = {};
48
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
49
+ __setModuleDefault(result, mod);
50
+ return result;
51
+ };
52
+ })();
53
+ Object.defineProperty(exports, "__esModule", { value: true });
54
+ exports.Factories = void 0;
55
+ exports.Factories = __importStar(require("./factories"));
56
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/contrib/packageUrl/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;EAiBE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,yDAAwC"}
@@ -17,21 +17,10 @@ limitations under the License.
17
17
  SPDX-License-Identifier: Apache-2.0
18
18
  Copyright (c) OWASP Foundation. All Rights Reserved.
19
19
  */
20
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
21
- if (k2 === undefined) k2 = k;
22
- var desc = Object.getOwnPropertyDescriptor(m, k);
23
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
24
- desc = { enumerable: true, get: function() { return m[k]; } };
25
- }
26
- Object.defineProperty(o, k2, desc);
27
- }) : (function(o, m, k, k2) {
28
- if (k2 === undefined) k2 = k;
29
- o[k2] = m[k];
30
- }));
31
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
32
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
33
- };
34
20
  Object.defineProperty(exports, "__esModule", { value: true });
35
- __exportStar(require("./license"), exports);
36
- __exportStar(require("./packageUrl"), exports);
21
+ exports.PackageUrlFactory = exports.LicenseFactory = void 0;
22
+ const factories_1 = require("../contrib/license/factories");
23
+ const factories_2 = require("../contrib/packageUrl/factories");
24
+ exports.LicenseFactory = factories_1.LicenseFactory;
25
+ exports.PackageUrlFactory = factories_2.PackageUrlFactory;
37
26
  //# sourceMappingURL=index.common.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.common.js","sourceRoot":"","sources":["../../src/factories/index.common.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;EAiBE;;;;;;;;;;;;;;;;AAIF,4CAAyB;AACzB,+CAA4B"}
1
+ {"version":3,"file":"index.common.js","sourceRoot":"","sources":["../../src/factories/index.common.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;EAiBE;;;AAEF,4DAA8E;AAC9E,+DAAuF;AAY1E,QAAA,cAAc,GAAG,0BAAe,CAAA;AAShC,QAAA,iBAAiB,GAAG,6BAAkB,CAAA"}
@@ -33,9 +33,6 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
33
33
  }) : function(o, v) {
34
34
  o["default"] = v;
35
35
  });
36
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
37
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
38
- };
39
36
  var __importStar = (this && this.__importStar) || (function () {
40
37
  var ownKeys = function(o) {
41
38
  ownKeys = Object.getOwnPropertyNames || function (o) {
@@ -53,8 +50,12 @@ var __importStar = (this && this.__importStar) || (function () {
53
50
  return result;
54
51
  };
55
52
  })();
53
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
54
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
55
+ };
56
56
  Object.defineProperty(exports, "__esModule", { value: true });
57
57
  exports.FromNodePackageJson = void 0;
58
+ const _FromNodePackageJson = __importStar(require("../contrib/fromNodePackageJson/factories"));
58
59
  __exportStar(require("./index.common"), exports);
59
- exports.FromNodePackageJson = __importStar(require("./fromNodePackageJson.node"));
60
+ exports.FromNodePackageJson = _FromNodePackageJson;
60
61
  //# sourceMappingURL=index.node.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.node.js","sourceRoot":"","sources":["../../src/factories/index.node.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;EAiBE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,iDAA8B;AAI9B,kFAAiE"}
1
+ {"version":3,"file":"index.node.js","sourceRoot":"","sources":["../../src/factories/index.node.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;EAiBE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,+FAAgF;AAEhF,iDAA8B;AAajB,QAAA,mBAAmB,GAAG,oBAAoB,CAAA"}
@@ -54,9 +54,10 @@ var __importStar = (this && this.__importStar) || (function () {
54
54
  };
55
55
  })();
56
56
  Object.defineProperty(exports, "__esModule", { value: true });
57
- exports._Resources = exports.Validation = exports.Utils = exports.Serialize = exports.Factories = exports.Builders = void 0;
57
+ exports._Resources = exports.Validation = exports.Utils = exports.Serialize = exports.Factories = exports.Contrib = exports.Builders = void 0;
58
58
  __exportStar(require("./index.common"), exports);
59
59
  exports.Builders = __importStar(require("./builders/index.node"));
60
+ exports.Contrib = __importStar(require("./contrib/index.node"));
60
61
  exports.Factories = __importStar(require("./factories/index.node"));
61
62
  exports.Serialize = __importStar(require("./serialize/index.node"));
62
63
  exports.Utils = __importStar(require("./utils/index.node"));
@@ -1 +1 @@
1
- {"version":3,"file":"index.node.js","sourceRoot":"","sources":["../src/index.node.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;EAiBE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMF,iDAA8B;AAI9B,kEAAiD;AACjD,oEAAmD;AACnD,oEAAmD;AACnD,4DAA2C;AAC3C,sEAAqD;AAOrD,+DAA8C"}
1
+ {"version":3,"file":"index.node.js","sourceRoot":"","sources":["../src/index.node.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;EAiBE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMF,iDAA8B;AAK9B,kEAAiD;AACjD,gEAA+C;AAE/C,oEAAmD;AACnD,oEAAmD;AAEnD,4DAA2C;AAC3C,sEAAqD;AAOrD,+DAA8C"}
@@ -32,9 +32,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
32
32
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
33
33
  };
34
34
  Object.defineProperty(exports, "__esModule", { value: true });
35
+ exports.isNodePackageJson = exports.assertNodePackageJson = void 0;
36
+ const types_1 = require("../contrib/fromNodePackageJson/types");
35
37
  __exportStar(require("./cpe"), exports);
36
38
  __exportStar(require("./cwe"), exports);
37
39
  __exportStar(require("./integer"), exports);
38
40
  __exportStar(require("./mimeType"), exports);
39
- __exportStar(require("./nodePackageJson"), exports);
41
+ exports.assertNodePackageJson = types_1.assertNodePackageJson;
42
+ exports.isNodePackageJson = types_1.isNodePackageJson;
40
43
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;EAiBE;;;;;;;;;;;;;;;;AAEF,wCAAqB;AACrB,wCAAqB;AACrB,4CAAyB;AACzB,6CAA0B;AAG1B,oDAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;EAiBE;;;;;;;;;;;;;;;;;AAEF,gEAI6C;AAG7C,wCAAqB;AACrB,wCAAqB;AACrB,4CAAyB;AACzB,6CAA0B;AAoBb,QAAA,qBAAqB,GAAG,6BAAsB,CAAA;AAS9C,QAAA,iBAAiB,GAAG,yBAAkB,CAAA"}
@@ -52,5 +52,6 @@ var __importStar = (this && this.__importStar) || (function () {
52
52
  })();
53
53
  Object.defineProperty(exports, "__esModule", { value: true });
54
54
  exports.BomUtility = void 0;
55
- exports.BomUtility = __importStar(require("./bomUtility"));
55
+ const _BomUtils = __importStar(require("../contrib/bom/utils"));
56
+ exports.BomUtility = _BomUtils;
56
57
  //# sourceMappingURL=index.common.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.common.js","sourceRoot":"","sources":["../../src/utils/index.common.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;EAiBE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,2DAA0C"}
1
+ {"version":3,"file":"index.common.js","sourceRoot":"","sources":["../../src/utils/index.common.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;EAiBE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIF,gEAAiD;AASpC,QAAA,UAAU,GAAG,SAAS,CAAA"}
@@ -33,9 +33,6 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
33
33
  }) : function(o, v) {
34
34
  o["default"] = v;
35
35
  });
36
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
37
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
38
- };
39
36
  var __importStar = (this && this.__importStar) || (function () {
40
37
  var ownKeys = function(o) {
41
38
  ownKeys = Object.getOwnPropertyNames || function (o) {
@@ -53,9 +50,14 @@ var __importStar = (this && this.__importStar) || (function () {
53
50
  return result;
54
51
  };
55
52
  })();
53
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
54
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
55
+ };
56
56
  Object.defineProperty(exports, "__esModule", { value: true });
57
- exports.NpmjsUtility = exports.LicenseUtility = void 0;
57
+ exports.LicenseUtility = exports.NpmjsUtility = void 0;
58
+ const _NpmjsUtility = __importStar(require("../contrib/fromNodePackageJson/utils"));
59
+ const _LicenseUtility = __importStar(require("../contrib/license/utils.node"));
58
60
  __exportStar(require("./index.common"), exports);
59
- exports.LicenseUtility = __importStar(require("./licenseUtility.node"));
60
- exports.NpmjsUtility = __importStar(require("./npmjsUtility.node"));
61
+ exports.NpmjsUtility = _NpmjsUtility;
62
+ exports.LicenseUtility = _LicenseUtility;
61
63
  //# sourceMappingURL=index.node.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.node.js","sourceRoot":"","sources":["../../src/utils/index.node.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;EAiBE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,iDAA8B;AAI9B,wEAAuD;AACvD,oEAAmD"}
1
+ {"version":3,"file":"index.node.js","sourceRoot":"","sources":["../../src/utils/index.node.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;EAiBE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,oFAAqE;AACrE,+EAAgE;AAGhE,iDAA8B;AAajB,QAAA,YAAY,GAAG,aAAa,CAAA;AAS5B,QAAA,cAAc,GAAG,eAAe,CAAA"}