@cyclonedx/cyclonedx-library 2.0.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/dist.d/enums/componentType.d.ts +5 -1
- package/dist.d/enums/componentType.d.ts.map +1 -1
- package/dist.d/enums/externalReferenceType.d.ts +23 -0
- package/dist.d/enums/externalReferenceType.d.ts.map +1 -1
- package/dist.d/enums/vulnerability/ratingMethod.d.ts +9 -4
- package/dist.d/enums/vulnerability/ratingMethod.d.ts.map +1 -1
- package/dist.d/models/bomLink.d.ts +66 -0
- package/dist.d/models/bomLink.d.ts.map +1 -0
- package/dist.d/models/bomRef.d.ts +4 -2
- package/dist.d/models/bomRef.d.ts.map +1 -1
- package/dist.d/models/externalReference.d.ts +2 -1
- package/dist.d/models/externalReference.d.ts.map +1 -1
- package/dist.d/models/index.d.ts +1 -0
- package/dist.d/models/index.d.ts.map +1 -1
- package/dist.d/models/vulnerability/affect.d.ts +3 -2
- package/dist.d/models/vulnerability/affect.d.ts.map +1 -1
- package/dist.d/serialize/json/normalize.d.ts.map +1 -1
- package/dist.d/serialize/json/types.d.ts +9 -5
- package/dist.d/serialize/json/types.d.ts.map +1 -1
- package/dist.d/serialize/xml/normalize.d.ts +9 -9
- package/dist.d/serialize/xml/normalize.d.ts.map +1 -1
- package/dist.d/spec.d.ts +9 -5
- package/dist.d/spec.d.ts.map +1 -1
- package/dist.d/types/integer.d.ts +2 -2
- package/dist.node/_helpers/packageUrl.js +1 -1
- package/dist.node/_helpers/packageUrl.js.map +1 -1
- package/dist.node/enums/attachmentEncoding.js +1 -1
- package/dist.node/enums/attachmentEncoding.js.map +1 -1
- package/dist.node/enums/componentScope.js +1 -1
- package/dist.node/enums/componentScope.js.map +1 -1
- package/dist.node/enums/componentType.js +5 -1
- package/dist.node/enums/componentType.js.map +1 -1
- package/dist.node/enums/externalReferenceType.js +24 -1
- package/dist.node/enums/externalReferenceType.js.map +1 -1
- package/dist.node/enums/hashAlogorithm.js +1 -1
- package/dist.node/enums/hashAlogorithm.js.map +1 -1
- package/dist.node/enums/vulnerability/affectStatus.js +1 -1
- package/dist.node/enums/vulnerability/affectStatus.js.map +1 -1
- package/dist.node/enums/vulnerability/analysisJustification.js +1 -1
- package/dist.node/enums/vulnerability/analysisJustification.js.map +1 -1
- package/dist.node/enums/vulnerability/analysisResponse.js +1 -1
- package/dist.node/enums/vulnerability/analysisResponse.js.map +1 -1
- package/dist.node/enums/vulnerability/analysisState.js +1 -1
- package/dist.node/enums/vulnerability/analysisState.js.map +1 -1
- package/dist.node/enums/vulnerability/ratingMethod.js +3 -1
- package/dist.node/enums/vulnerability/ratingMethod.js.map +1 -1
- package/dist.node/enums/vulnerability/severity.js +1 -1
- package/dist.node/enums/vulnerability/severity.js.map +1 -1
- package/dist.node/models/bomLink.js +80 -0
- package/dist.node/models/bomLink.js.map +1 -0
- package/dist.node/models/bomRef.js.map +1 -1
- package/dist.node/models/externalReference.js.map +1 -1
- package/dist.node/models/index.js +1 -0
- package/dist.node/models/index.js.map +1 -1
- package/dist.node/models/vulnerability/affect.js.map +1 -1
- package/dist.node/resources.node.js +15 -12
- package/dist.node/resources.node.js.map +1 -1
- package/dist.node/serialize/json/normalize.js +6 -3
- package/dist.node/serialize/json/normalize.js.map +1 -1
- package/dist.node/serialize/json/types.js +1 -1
- package/dist.node/serialize/json/types.js.map +1 -1
- package/dist.node/serialize/xml/normalize.js +18 -4
- package/dist.node/serialize/xml/normalize.js.map +1 -1
- package/dist.node/serialize/xml/types.js +1 -1
- package/dist.node/serialize/xml/types.js.map +1 -1
- package/dist.node/spec.js +106 -15
- package/dist.node/spec.js.map +1 -1
- package/dist.web/lib.dev.js +264 -37
- package/dist.web/lib.dev.js.map +1 -1
- package/dist.web/lib.js +1 -1
- package/dist.web/lib.js.map +1 -1
- package/libs/universal-node-xml/stringifiers/xmlbuilder2.js +1 -1
- package/package.json +9 -9
- package/res/schema/README.md +14 -11
- package/res/schema/bom-1.1.SNAPSHOT.xsd +8 -1
- package/res/schema/bom-1.2-strict.SNAPSHOT.schema.json +8 -5
- package/res/schema/bom-1.2.SNAPSHOT.schema.json +8 -4
- package/res/schema/bom-1.2.SNAPSHOT.xsd +10 -3
- package/res/schema/bom-1.3-strict.SNAPSHOT.schema.json +8 -4
- package/res/schema/bom-1.3.SNAPSHOT.schema.json +8 -4
- package/res/schema/bom-1.3.SNAPSHOT.xsd +14 -5
- package/res/schema/bom-1.4.SNAPSHOT.schema.json +2 -2
- package/res/schema/bom-1.4.SNAPSHOT.xsd +4 -2
- package/res/schema/bom-1.5.SNAPSHOT.schema.json +3799 -0
- package/res/schema/bom-1.5.SNAPSHOT.xsd +5464 -0
- package/res/schema/jsf-0.82.SNAPSHOT.schema.json +0 -4
- package/res/schema/spdx.SNAPSHOT.schema.json +569 -486
- package/res/schema/spdx.SNAPSHOT.xsd +1468 -1053
- package/src/enums/componentType.ts +4 -0
- package/src/enums/externalReferenceType.ts +23 -0
- package/src/enums/vulnerability/ratingMethod.ts +9 -4
- package/src/models/bomLink.ts +111 -0
- package/src/models/bomRef.ts +5 -2
- package/src/models/externalReference.ts +2 -1
- package/src/models/index.ts +1 -0
- package/src/models/vulnerability/affect.ts +3 -2
- package/src/resources.node.ts +20 -17
- package/src/serialize/json/normalize.ts +6 -3
- package/src/serialize/json/types.ts +10 -5
- package/src/serialize/xml/normalize.ts +17 -12
- package/src/spec.ts +121 -7
- package/src/types/integer.ts +2 -2
package/dist.web/lib.dev.js
CHANGED
|
@@ -79,7 +79,7 @@ var PackageUrlQualifierNames;
|
|
|
79
79
|
PackageUrlQualifierNames["DownloadURL"] = "download_url";
|
|
80
80
|
PackageUrlQualifierNames["VcsUrl"] = "vcs_url";
|
|
81
81
|
PackageUrlQualifierNames["Checksum"] = "checksum";
|
|
82
|
-
})(PackageUrlQualifierNames
|
|
82
|
+
})(PackageUrlQualifierNames || (exports.PackageUrlQualifierNames = PackageUrlQualifierNames = {}));
|
|
83
83
|
|
|
84
84
|
|
|
85
85
|
/***/ }),
|
|
@@ -219,7 +219,7 @@ exports.AttachmentEncoding = void 0;
|
|
|
219
219
|
var AttachmentEncoding;
|
|
220
220
|
(function (AttachmentEncoding) {
|
|
221
221
|
AttachmentEncoding["Base64"] = "base64";
|
|
222
|
-
})(AttachmentEncoding
|
|
222
|
+
})(AttachmentEncoding || (exports.AttachmentEncoding = AttachmentEncoding = {}));
|
|
223
223
|
|
|
224
224
|
|
|
225
225
|
/***/ }),
|
|
@@ -256,7 +256,7 @@ var ComponentScope;
|
|
|
256
256
|
ComponentScope["Required"] = "required";
|
|
257
257
|
ComponentScope["Optional"] = "optional";
|
|
258
258
|
ComponentScope["Excluded"] = "excluded";
|
|
259
|
-
})(ComponentScope
|
|
259
|
+
})(ComponentScope || (exports.ComponentScope = ComponentScope = {}));
|
|
260
260
|
|
|
261
261
|
|
|
262
262
|
/***/ }),
|
|
@@ -294,11 +294,15 @@ var ComponentType;
|
|
|
294
294
|
ComponentType["Framework"] = "framework";
|
|
295
295
|
ComponentType["Library"] = "library";
|
|
296
296
|
ComponentType["Container"] = "container";
|
|
297
|
+
ComponentType["Platform"] = "platform";
|
|
297
298
|
ComponentType["OperatingSystem"] = "operating-system";
|
|
298
299
|
ComponentType["Device"] = "device";
|
|
300
|
+
ComponentType["DeviceDriver"] = "device-driver";
|
|
299
301
|
ComponentType["Firmware"] = "firmware";
|
|
300
302
|
ComponentType["File"] = "file";
|
|
301
|
-
|
|
303
|
+
ComponentType["MachineLearningModel"] = "machine-learning-model";
|
|
304
|
+
ComponentType["Data"] = "data";
|
|
305
|
+
})(ComponentType || (exports.ComponentType = ComponentType = {}));
|
|
302
306
|
|
|
303
307
|
|
|
304
308
|
/***/ }),
|
|
@@ -343,12 +347,35 @@ var ExternalReferenceType;
|
|
|
343
347
|
ExternalReferenceType["Documentation"] = "documentation";
|
|
344
348
|
ExternalReferenceType["Support"] = "support";
|
|
345
349
|
ExternalReferenceType["Distribution"] = "distribution";
|
|
350
|
+
ExternalReferenceType["DistributionIntake"] = "distribution-intake";
|
|
346
351
|
ExternalReferenceType["License"] = "license";
|
|
347
352
|
ExternalReferenceType["BuildMeta"] = "build-meta";
|
|
348
353
|
ExternalReferenceType["BuildSystem"] = "build-system";
|
|
349
354
|
ExternalReferenceType["ReleaseNotes"] = "release-notes";
|
|
355
|
+
ExternalReferenceType["SecurityContact"] = "security-contact";
|
|
356
|
+
ExternalReferenceType["ModelCard"] = "model-card";
|
|
357
|
+
ExternalReferenceType["Log"] = "log";
|
|
358
|
+
ExternalReferenceType["Configuration"] = "configuration";
|
|
359
|
+
ExternalReferenceType["Evidence"] = "evidence";
|
|
360
|
+
ExternalReferenceType["Formulation"] = "formulation";
|
|
361
|
+
ExternalReferenceType["Attestation"] = "attestation";
|
|
362
|
+
ExternalReferenceType["ThreatModel"] = "threat-model";
|
|
363
|
+
ExternalReferenceType["AdversaryModel"] = "adversary-model";
|
|
364
|
+
ExternalReferenceType["RiskAssessment"] = "risk-assessment";
|
|
365
|
+
ExternalReferenceType["VulnerabilityAssertion"] = "vulnerability-assertion";
|
|
366
|
+
ExternalReferenceType["ExploitabilityStatement"] = "exploitability-statement";
|
|
367
|
+
ExternalReferenceType["PentestReport"] = "pentest-report";
|
|
368
|
+
ExternalReferenceType["StaticAnalysisReport"] = "static-analysis-report";
|
|
369
|
+
ExternalReferenceType["DynamicAnalysisReport"] = "dynamic-analysis-report";
|
|
370
|
+
ExternalReferenceType["RuntimeAnalysisReport"] = "runtime-analysis-report";
|
|
371
|
+
ExternalReferenceType["ComponentAnalysisReport"] = "component-analysis-report";
|
|
372
|
+
ExternalReferenceType["MaturityReport"] = "maturity-report";
|
|
373
|
+
ExternalReferenceType["CertificationReport"] = "certification-report";
|
|
374
|
+
ExternalReferenceType["CodifiedInfrastructure"] = "codified-infrastructure";
|
|
375
|
+
ExternalReferenceType["QualityMetrics"] = "quality-metrics";
|
|
376
|
+
ExternalReferenceType["POAM"] = "poam";
|
|
350
377
|
ExternalReferenceType["Other"] = "other";
|
|
351
|
-
})(ExternalReferenceType
|
|
378
|
+
})(ExternalReferenceType || (exports.ExternalReferenceType = ExternalReferenceType = {}));
|
|
352
379
|
|
|
353
380
|
|
|
354
381
|
/***/ }),
|
|
@@ -394,7 +421,7 @@ var HashAlgorithm;
|
|
|
394
421
|
HashAlgorithm["BLAKE2b-384"] = "BLAKE2b-384";
|
|
395
422
|
HashAlgorithm["BLAKE2b-512"] = "BLAKE2b-512";
|
|
396
423
|
HashAlgorithm["BLAKE3"] = "BLAKE3";
|
|
397
|
-
})(HashAlgorithm
|
|
424
|
+
})(HashAlgorithm || (exports.HashAlgorithm = HashAlgorithm = {}));
|
|
398
425
|
|
|
399
426
|
|
|
400
427
|
/***/ }),
|
|
@@ -482,7 +509,7 @@ var AffectStatus;
|
|
|
482
509
|
AffectStatus["Affected"] = "affected";
|
|
483
510
|
AffectStatus["Unaffected"] = "unaffected";
|
|
484
511
|
AffectStatus["Unknown"] = "unknown";
|
|
485
|
-
})(AffectStatus
|
|
512
|
+
})(AffectStatus || (exports.AffectStatus = AffectStatus = {}));
|
|
486
513
|
|
|
487
514
|
|
|
488
515
|
/***/ }),
|
|
@@ -525,7 +552,7 @@ var AnalysisJustification;
|
|
|
525
552
|
AnalysisJustification["ProtectedAtRuntime"] = "protected_at_runtime";
|
|
526
553
|
AnalysisJustification["ProtectedAtPerimeter"] = "protected_at_perimeter";
|
|
527
554
|
AnalysisJustification["ProtectedByMitigatingControl"] = "protected_by_mitigating_control";
|
|
528
|
-
})(AnalysisJustification
|
|
555
|
+
})(AnalysisJustification || (exports.AnalysisJustification = AnalysisJustification = {}));
|
|
529
556
|
|
|
530
557
|
|
|
531
558
|
/***/ }),
|
|
@@ -565,7 +592,7 @@ var AnalysisResponse;
|
|
|
565
592
|
AnalysisResponse["Update"] = "update";
|
|
566
593
|
AnalysisResponse["Rollback"] = "rollback";
|
|
567
594
|
AnalysisResponse["WorkaroundAvailable"] = "workaround_available";
|
|
568
|
-
})(AnalysisResponse
|
|
595
|
+
})(AnalysisResponse || (exports.AnalysisResponse = AnalysisResponse = {}));
|
|
569
596
|
class AnalysisResponseRepository extends sortable_1.SortableStringables {
|
|
570
597
|
}
|
|
571
598
|
exports.AnalysisResponseRepository = AnalysisResponseRepository;
|
|
@@ -608,7 +635,7 @@ var AnalysisState;
|
|
|
608
635
|
AnalysisState["InTriage"] = "in_triage";
|
|
609
636
|
AnalysisState["FalsePositive"] = "false_positive";
|
|
610
637
|
AnalysisState["NotAffected"] = "not_affected";
|
|
611
|
-
})(AnalysisState
|
|
638
|
+
})(AnalysisState || (exports.AnalysisState = AnalysisState = {}));
|
|
612
639
|
|
|
613
640
|
|
|
614
641
|
/***/ }),
|
|
@@ -695,9 +722,11 @@ var RatingMethod;
|
|
|
695
722
|
RatingMethod["CVSSv2"] = "CVSSv2";
|
|
696
723
|
RatingMethod["CVSSv3"] = "CVSSv3";
|
|
697
724
|
RatingMethod["CVSSv31"] = "CVSSv31";
|
|
725
|
+
RatingMethod["CVSSv4"] = "CVSSv4";
|
|
698
726
|
RatingMethod["OWASP"] = "OWASP";
|
|
727
|
+
RatingMethod["SSVC"] = "SSVC";
|
|
699
728
|
RatingMethod["Other"] = "other";
|
|
700
|
-
})(RatingMethod
|
|
729
|
+
})(RatingMethod || (exports.RatingMethod = RatingMethod = {}));
|
|
701
730
|
|
|
702
731
|
|
|
703
732
|
/***/ }),
|
|
@@ -738,7 +767,7 @@ var Severity;
|
|
|
738
767
|
Severity["Info"] = "info";
|
|
739
768
|
Severity["None"] = "none";
|
|
740
769
|
Severity["Unknown"] = "unknown";
|
|
741
|
-
})(Severity
|
|
770
|
+
})(Severity || (exports.Severity = Severity = {}));
|
|
742
771
|
|
|
743
772
|
|
|
744
773
|
/***/ }),
|
|
@@ -1198,6 +1227,95 @@ exports.Bom = Bom;
|
|
|
1198
1227
|
_Bom_version = new WeakMap(), _Bom_serialNumber = new WeakMap();
|
|
1199
1228
|
|
|
1200
1229
|
|
|
1230
|
+
/***/ }),
|
|
1231
|
+
|
|
1232
|
+
/***/ "./src/models/bomLink.ts":
|
|
1233
|
+
/*!*******************************!*\
|
|
1234
|
+
!*** ./src/models/bomLink.ts ***!
|
|
1235
|
+
\*******************************/
|
|
1236
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
1237
|
+
|
|
1238
|
+
|
|
1239
|
+
/*!
|
|
1240
|
+
This file is part of CycloneDX JavaScript Library.
|
|
1241
|
+
|
|
1242
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
1243
|
+
you may not use this file except in compliance with the License.
|
|
1244
|
+
You may obtain a copy of the License at
|
|
1245
|
+
|
|
1246
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
1247
|
+
|
|
1248
|
+
Unless required by applicable law or agreed to in writing, software
|
|
1249
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
1250
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1251
|
+
See the License for the specific language governing permissions and
|
|
1252
|
+
limitations under the License.
|
|
1253
|
+
|
|
1254
|
+
SPDX-License-Identifier: Apache-2.0
|
|
1255
|
+
Copyright (c) OWASP Foundation. All Rights Reserved.
|
|
1256
|
+
*/
|
|
1257
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
1258
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
1259
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
1260
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
1261
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
1262
|
+
};
|
|
1263
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
1264
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
1265
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
1266
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
1267
|
+
};
|
|
1268
|
+
var _BomLinkBase_value, _a, _BomLinkDocument_pattern, _b, _BomLinkElement_pattern;
|
|
1269
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1270
|
+
exports.BomLinkElement = exports.BomLinkDocument = void 0;
|
|
1271
|
+
class BomLinkBase {
|
|
1272
|
+
constructor(value) {
|
|
1273
|
+
_BomLinkBase_value.set(this, void 0);
|
|
1274
|
+
this.value = value;
|
|
1275
|
+
}
|
|
1276
|
+
set value(value) {
|
|
1277
|
+
if (!this._isValid(value)) {
|
|
1278
|
+
throw new RangeError('invalid value');
|
|
1279
|
+
}
|
|
1280
|
+
__classPrivateFieldSet(this, _BomLinkBase_value, value, "f");
|
|
1281
|
+
}
|
|
1282
|
+
get value() {
|
|
1283
|
+
return __classPrivateFieldGet(this, _BomLinkBase_value, "f");
|
|
1284
|
+
}
|
|
1285
|
+
compare(other) {
|
|
1286
|
+
return this.toString().localeCompare(other.toString());
|
|
1287
|
+
}
|
|
1288
|
+
toString() {
|
|
1289
|
+
return this.value;
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1292
|
+
_BomLinkBase_value = new WeakMap();
|
|
1293
|
+
class BomLinkDocument extends BomLinkBase {
|
|
1294
|
+
static isValid(value) {
|
|
1295
|
+
return typeof value === 'string' &&
|
|
1296
|
+
__classPrivateFieldGet(this, _a, "f", _BomLinkDocument_pattern).test(value);
|
|
1297
|
+
}
|
|
1298
|
+
_isValid(value) {
|
|
1299
|
+
return BomLinkDocument.isValid(value);
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
exports.BomLinkDocument = BomLinkDocument;
|
|
1303
|
+
_a = BomLinkDocument;
|
|
1304
|
+
_BomLinkDocument_pattern = { value: /^urn:cdx:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\/[1-9][0-9]*$/ };
|
|
1305
|
+
class BomLinkElement extends BomLinkBase {
|
|
1306
|
+
static isValid(value) {
|
|
1307
|
+
return typeof value === 'string' &&
|
|
1308
|
+
__classPrivateFieldGet(this, _b, "f", _BomLinkElement_pattern).test(value);
|
|
1309
|
+
}
|
|
1310
|
+
_isValid(value) {
|
|
1311
|
+
return BomLinkElement.isValid(value);
|
|
1312
|
+
}
|
|
1313
|
+
}
|
|
1314
|
+
exports.BomLinkElement = BomLinkElement;
|
|
1315
|
+
_b = BomLinkElement;
|
|
1316
|
+
_BomLinkElement_pattern = { value: /^urn:cdx:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\/[1-9][0-9]*#.+$/ };
|
|
1317
|
+
|
|
1318
|
+
|
|
1201
1319
|
/***/ }),
|
|
1202
1320
|
|
|
1203
1321
|
/***/ "./src/models/bomRef.ts":
|
|
@@ -1510,6 +1628,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
1510
1628
|
exports.Vulnerability = void 0;
|
|
1511
1629
|
__exportStar(__webpack_require__(/*! ./attachment */ "./src/models/attachment.ts"), exports);
|
|
1512
1630
|
__exportStar(__webpack_require__(/*! ./bom */ "./src/models/bom.ts"), exports);
|
|
1631
|
+
__exportStar(__webpack_require__(/*! ./bomLink */ "./src/models/bomLink.ts"), exports);
|
|
1513
1632
|
__exportStar(__webpack_require__(/*! ./bomRef */ "./src/models/bomRef.ts"), exports);
|
|
1514
1633
|
__exportStar(__webpack_require__(/*! ./component */ "./src/models/component.ts"), exports);
|
|
1515
1634
|
__exportStar(__webpack_require__(/*! ./externalReference */ "./src/models/externalReference.ts"), exports);
|
|
@@ -2856,9 +2975,10 @@ class Factory {
|
|
|
2856
2975
|
exports.Factory = Factory;
|
|
2857
2976
|
_Factory_spec = new WeakMap();
|
|
2858
2977
|
const schemaUrl = new Map([
|
|
2859
|
-
[spec_1.Version.
|
|
2978
|
+
[spec_1.Version.v1dot5, 'http://cyclonedx.org/schema/bom-1.5.schema.json'],
|
|
2979
|
+
[spec_1.Version.v1dot4, 'http://cyclonedx.org/schema/bom-1.4.schema.json'],
|
|
2860
2980
|
[spec_1.Version.v1dot3, 'http://cyclonedx.org/schema/bom-1.3a.schema.json'],
|
|
2861
|
-
[spec_1.Version.
|
|
2981
|
+
[spec_1.Version.v1dot2, 'http://cyclonedx.org/schema/bom-1.2b.schema.json']
|
|
2862
2982
|
]);
|
|
2863
2983
|
class BaseJsonNormalizer {
|
|
2864
2984
|
constructor(factory) {
|
|
@@ -3324,7 +3444,9 @@ class VulnerabilityRatingNormalizer extends BaseJsonNormalizer {
|
|
|
3324
3444
|
: this._factory.makeForVulnerabilitySource().normalize(data.source, options),
|
|
3325
3445
|
score: data.score,
|
|
3326
3446
|
severity: data.severity,
|
|
3327
|
-
method: data.method
|
|
3447
|
+
method: this._factory.spec.supportsVulnerabilityRatingMethod(data.method)
|
|
3448
|
+
? data.method
|
|
3449
|
+
: undefined,
|
|
3328
3450
|
vector: data.vector,
|
|
3329
3451
|
justification: data.justification
|
|
3330
3452
|
};
|
|
@@ -3485,7 +3607,7 @@ var JsonSchema;
|
|
|
3485
3607
|
value.length > 0;
|
|
3486
3608
|
}
|
|
3487
3609
|
JsonSchema.isIdnEmail = isIdnEmail;
|
|
3488
|
-
})(JsonSchema
|
|
3610
|
+
})(JsonSchema || (exports.JsonSchema = JsonSchema = {}));
|
|
3489
3611
|
|
|
3490
3612
|
|
|
3491
3613
|
/***/ }),
|
|
@@ -3658,7 +3780,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3658
3780
|
};
|
|
3659
3781
|
var _Factory_spec, _BomNormalizer_instances, _BomNormalizer_isEligibleSerialNumber, _LicenseNormalizer_instances, _LicenseNormalizer_normalizeNamedLicense, _LicenseNormalizer_normalizeSpdxLicense, _LicenseNormalizer_normalizeLicenseExpression, _DependencyGraphNormalizer_instances, _DependencyGraphNormalizer_normalizeDependency, _VulnerabilityAffectedVersionNormalizer_instances, _VulnerabilityAffectedVersionNormalizer_normalizeAffectedSingleVersion, _VulnerabilityAffectedVersionNormalizer_normalizeAffectedVersionRange;
|
|
3660
3782
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3661
|
-
exports.DependencyGraphNormalizer = exports.PropertyNormalizer = exports.AttachmentNormalizer = exports.ExternalReferenceNormalizer = exports.SWIDNormalizer = exports.LicenseNormalizer = exports.ComponentEvidenceNormalizer = exports.ComponentNormalizer = exports.OrganizationalEntityNormalizer = exports.OrganizationalContactNormalizer = exports.HashNormalizer = exports.ToolNormalizer = exports.MetadataNormalizer = exports.BomNormalizer = exports.Factory = void 0;
|
|
3783
|
+
exports.VulnerabilityAffectedVersionNormalizer = exports.VulnerabilityAffectNormalizer = exports.VulnerabilityAnalysisNormalizer = exports.VulnerabilityCreditsNormalizer = exports.VulnerabilityAdvisoryNormalizer = exports.VulnerabilityRatingNormalizer = exports.VulnerabilityReferenceNormalizer = exports.VulnerabilitySourceNormalizer = exports.VulnerabilityNormalizer = exports.DependencyGraphNormalizer = exports.PropertyNormalizer = exports.AttachmentNormalizer = exports.ExternalReferenceNormalizer = exports.SWIDNormalizer = exports.LicenseNormalizer = exports.ComponentEvidenceNormalizer = exports.ComponentNormalizer = exports.OrganizationalEntityNormalizer = exports.OrganizationalContactNormalizer = exports.HashNormalizer = exports.ToolNormalizer = exports.MetadataNormalizer = exports.BomNormalizer = exports.Factory = void 0;
|
|
3662
3784
|
const notUndefined_1 = __webpack_require__(/*! ../../_helpers/notUndefined */ "./src/_helpers/notUndefined.ts");
|
|
3663
3785
|
const tree_1 = __webpack_require__(/*! ../../_helpers/tree */ "./src/_helpers/tree.ts");
|
|
3664
3786
|
const Models = __webpack_require__(/*! ../../models */ "./src/models/index.ts");
|
|
@@ -3746,9 +3868,12 @@ class Factory {
|
|
|
3746
3868
|
exports.Factory = Factory;
|
|
3747
3869
|
_Factory_spec = new WeakMap();
|
|
3748
3870
|
const xmlNamespace = new Map([
|
|
3749
|
-
[spec_1.Version.
|
|
3871
|
+
[spec_1.Version.v1dot5, 'http://cyclonedx.org/schema/bom/1.5'],
|
|
3872
|
+
[spec_1.Version.v1dot4, 'http://cyclonedx.org/schema/bom/1.4'],
|
|
3750
3873
|
[spec_1.Version.v1dot3, 'http://cyclonedx.org/schema/bom/1.3'],
|
|
3751
|
-
[spec_1.Version.
|
|
3874
|
+
[spec_1.Version.v1dot2, 'http://cyclonedx.org/schema/bom/1.2'],
|
|
3875
|
+
[spec_1.Version.v1dot1, 'http://cyclonedx.org/schema/bom/1.1'],
|
|
3876
|
+
[spec_1.Version.v1dot0, 'http://cyclonedx.org/schema/bom/1.0']
|
|
3752
3877
|
]);
|
|
3753
3878
|
class BaseXmlNormalizer {
|
|
3754
3879
|
constructor(factory) {
|
|
@@ -4348,6 +4473,7 @@ class VulnerabilityNormalizer extends BaseXmlNormalizer {
|
|
|
4348
4473
|
: Array.from(data)).map(v => this.normalize(v, options, elementName));
|
|
4349
4474
|
}
|
|
4350
4475
|
}
|
|
4476
|
+
exports.VulnerabilityNormalizer = VulnerabilityNormalizer;
|
|
4351
4477
|
class VulnerabilitySourceNormalizer extends BaseXmlNormalizer {
|
|
4352
4478
|
normalize(data, options, elementName) {
|
|
4353
4479
|
const url = data.url?.toString();
|
|
@@ -4363,6 +4489,7 @@ class VulnerabilitySourceNormalizer extends BaseXmlNormalizer {
|
|
|
4363
4489
|
};
|
|
4364
4490
|
}
|
|
4365
4491
|
}
|
|
4492
|
+
exports.VulnerabilitySourceNormalizer = VulnerabilitySourceNormalizer;
|
|
4366
4493
|
class VulnerabilityReferenceNormalizer extends BaseXmlNormalizer {
|
|
4367
4494
|
normalize(data, options, elementName) {
|
|
4368
4495
|
return {
|
|
@@ -4380,6 +4507,7 @@ class VulnerabilityReferenceNormalizer extends BaseXmlNormalizer {
|
|
|
4380
4507
|
: Array.from(data)).map(r => this.normalize(r, options, elementName));
|
|
4381
4508
|
}
|
|
4382
4509
|
}
|
|
4510
|
+
exports.VulnerabilityReferenceNormalizer = VulnerabilityReferenceNormalizer;
|
|
4383
4511
|
class VulnerabilityRatingNormalizer extends BaseXmlNormalizer {
|
|
4384
4512
|
normalize(data, options, elementName) {
|
|
4385
4513
|
return {
|
|
@@ -4391,7 +4519,9 @@ class VulnerabilityRatingNormalizer extends BaseXmlNormalizer {
|
|
|
4391
4519
|
: this._factory.makeForVulnerabilitySource().normalize(data.source, options, 'source'),
|
|
4392
4520
|
makeOptionalTextElement(data.score, 'score'),
|
|
4393
4521
|
makeOptionalTextElement(data.severity, 'severity'),
|
|
4394
|
-
|
|
4522
|
+
this._factory.spec.supportsVulnerabilityRatingMethod(data.method)
|
|
4523
|
+
? makeOptionalTextElement(data.method, 'method')
|
|
4524
|
+
: undefined,
|
|
4395
4525
|
makeOptionalTextElement(data.vector, 'vector'),
|
|
4396
4526
|
makeOptionalTextElement(data.justification, 'justification')
|
|
4397
4527
|
].filter(notUndefined_1.isNotUndefined)
|
|
@@ -4403,6 +4533,7 @@ class VulnerabilityRatingNormalizer extends BaseXmlNormalizer {
|
|
|
4403
4533
|
: Array.from(data)).map(r => this.normalize(r, options, elementName));
|
|
4404
4534
|
}
|
|
4405
4535
|
}
|
|
4536
|
+
exports.VulnerabilityRatingNormalizer = VulnerabilityRatingNormalizer;
|
|
4406
4537
|
class VulnerabilityAdvisoryNormalizer extends BaseXmlNormalizer {
|
|
4407
4538
|
normalize(data, options, elementName) {
|
|
4408
4539
|
const url = data.url.toString();
|
|
@@ -4424,6 +4555,7 @@ class VulnerabilityAdvisoryNormalizer extends BaseXmlNormalizer {
|
|
|
4424
4555
|
: Array.from(data)).map(a => this.normalize(a, options, elementName)).filter(notUndefined_1.isNotUndefined);
|
|
4425
4556
|
}
|
|
4426
4557
|
}
|
|
4558
|
+
exports.VulnerabilityAdvisoryNormalizer = VulnerabilityAdvisoryNormalizer;
|
|
4427
4559
|
class VulnerabilityCreditsNormalizer extends BaseXmlNormalizer {
|
|
4428
4560
|
normalize(data, options, elementName) {
|
|
4429
4561
|
const organizations = data.organizations.size > 0
|
|
@@ -4450,6 +4582,7 @@ class VulnerabilityCreditsNormalizer extends BaseXmlNormalizer {
|
|
|
4450
4582
|
};
|
|
4451
4583
|
}
|
|
4452
4584
|
}
|
|
4585
|
+
exports.VulnerabilityCreditsNormalizer = VulnerabilityCreditsNormalizer;
|
|
4453
4586
|
class VulnerabilityAnalysisNormalizer extends BaseXmlNormalizer {
|
|
4454
4587
|
normalize(data, options, elementName) {
|
|
4455
4588
|
const responses = data.response.size > 0
|
|
@@ -4473,6 +4606,7 @@ class VulnerabilityAnalysisNormalizer extends BaseXmlNormalizer {
|
|
|
4473
4606
|
};
|
|
4474
4607
|
}
|
|
4475
4608
|
}
|
|
4609
|
+
exports.VulnerabilityAnalysisNormalizer = VulnerabilityAnalysisNormalizer;
|
|
4476
4610
|
class VulnerabilityAffectNormalizer extends BaseXmlNormalizer {
|
|
4477
4611
|
normalize(data, options, elementName) {
|
|
4478
4612
|
const versions = data.versions.size > 0
|
|
@@ -4497,6 +4631,7 @@ class VulnerabilityAffectNormalizer extends BaseXmlNormalizer {
|
|
|
4497
4631
|
: Array.from(data)).map(a => this.normalize(a, options, elementName));
|
|
4498
4632
|
}
|
|
4499
4633
|
}
|
|
4634
|
+
exports.VulnerabilityAffectNormalizer = VulnerabilityAffectNormalizer;
|
|
4500
4635
|
class VulnerabilityAffectedVersionNormalizer extends BaseXmlNormalizer {
|
|
4501
4636
|
constructor() {
|
|
4502
4637
|
super(...arguments);
|
|
@@ -4518,6 +4653,7 @@ class VulnerabilityAffectedVersionNormalizer extends BaseXmlNormalizer {
|
|
|
4518
4653
|
: Array.from(data)).map(av => this.normalize(av, options, elementName));
|
|
4519
4654
|
}
|
|
4520
4655
|
}
|
|
4656
|
+
exports.VulnerabilityAffectedVersionNormalizer = VulnerabilityAffectedVersionNormalizer;
|
|
4521
4657
|
_VulnerabilityAffectedVersionNormalizer_instances = new WeakSet(), _VulnerabilityAffectedVersionNormalizer_normalizeAffectedSingleVersion = function _VulnerabilityAffectedVersionNormalizer_normalizeAffectedSingleVersion(data, elementName) {
|
|
4522
4658
|
return {
|
|
4523
4659
|
type: 'element',
|
|
@@ -4624,7 +4760,7 @@ var XmlSchema;
|
|
|
4624
4760
|
return true;
|
|
4625
4761
|
}
|
|
4626
4762
|
XmlSchema.isAnyURI = isAnyURI;
|
|
4627
|
-
})(XmlSchema
|
|
4763
|
+
})(XmlSchema || (exports.XmlSchema = XmlSchema = {}));
|
|
4628
4764
|
|
|
4629
4765
|
|
|
4630
4766
|
/***/ }),
|
|
@@ -4875,34 +5011,36 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
4875
5011
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4876
5012
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
4877
5013
|
};
|
|
4878
|
-
var _Spec_version, _Spec_formats, _Spec_componentTypes, _Spec_hashAlgorithms, _Spec_hashValuePattern, _Spec_externalReferenceTypes, _Spec_supportsDependencyGraph, _Spec_supportsToolReferences, _Spec_requiresComponentVersion, _Spec_supportsProperties, _Spec_supportsVulnerabilities, _Spec_supportsComponentEvidence;
|
|
5014
|
+
var _Spec_version, _Spec_formats, _Spec_componentTypes, _Spec_hashAlgorithms, _Spec_hashValuePattern, _Spec_externalReferenceTypes, _Spec_vulnerabilityRatingMethods, _Spec_supportsDependencyGraph, _Spec_supportsToolReferences, _Spec_requiresComponentVersion, _Spec_supportsProperties, _Spec_supportsVulnerabilities, _Spec_supportsComponentEvidence;
|
|
4879
5015
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4880
|
-
exports.SpecVersionDict = exports.Spec1dot4 = exports.Spec1dot3 = exports.Spec1dot2 = exports.UnsupportedFormatError = exports.Format = exports.Version = void 0;
|
|
5016
|
+
exports.SpecVersionDict = exports.Spec1dot5 = exports.Spec1dot4 = exports.Spec1dot3 = exports.Spec1dot2 = exports.UnsupportedFormatError = exports.Format = exports.Version = void 0;
|
|
4881
5017
|
const enums_1 = __webpack_require__(/*! ./enums */ "./src/enums/index.ts");
|
|
4882
5018
|
var Version;
|
|
4883
5019
|
(function (Version) {
|
|
4884
|
-
Version["
|
|
4885
|
-
Version["v1dot1"] = "1.1";
|
|
4886
|
-
Version["v1dot2"] = "1.2";
|
|
4887
|
-
Version["v1dot3"] = "1.3";
|
|
5020
|
+
Version["v1dot5"] = "1.5";
|
|
4888
5021
|
Version["v1dot4"] = "1.4";
|
|
4889
|
-
|
|
5022
|
+
Version["v1dot3"] = "1.3";
|
|
5023
|
+
Version["v1dot2"] = "1.2";
|
|
5024
|
+
Version["v1dot1"] = "1.1";
|
|
5025
|
+
Version["v1dot0"] = "1.0";
|
|
5026
|
+
})(Version || (exports.Version = Version = {}));
|
|
4890
5027
|
var Format;
|
|
4891
5028
|
(function (Format) {
|
|
4892
5029
|
Format["XML"] = "xml";
|
|
4893
5030
|
Format["JSON"] = "json";
|
|
4894
|
-
})(Format
|
|
5031
|
+
})(Format || (exports.Format = Format = {}));
|
|
4895
5032
|
class UnsupportedFormatError extends Error {
|
|
4896
5033
|
}
|
|
4897
5034
|
exports.UnsupportedFormatError = UnsupportedFormatError;
|
|
4898
5035
|
class Spec {
|
|
4899
|
-
constructor(version, formats, componentTypes, hashAlgorithms, hashValuePattern, externalReferenceTypes, supportsDependencyGraph, supportsToolReferences, requiresComponentVersion, supportsProperties, supportsVulnerabilities, supportsComponentEvidence) {
|
|
5036
|
+
constructor(version, formats, componentTypes, hashAlgorithms, hashValuePattern, externalReferenceTypes, supportsDependencyGraph, supportsToolReferences, requiresComponentVersion, supportsProperties, supportsVulnerabilities, vulnerabilityRatingMethods, supportsComponentEvidence) {
|
|
4900
5037
|
_Spec_version.set(this, void 0);
|
|
4901
5038
|
_Spec_formats.set(this, void 0);
|
|
4902
5039
|
_Spec_componentTypes.set(this, void 0);
|
|
4903
5040
|
_Spec_hashAlgorithms.set(this, void 0);
|
|
4904
5041
|
_Spec_hashValuePattern.set(this, void 0);
|
|
4905
5042
|
_Spec_externalReferenceTypes.set(this, void 0);
|
|
5043
|
+
_Spec_vulnerabilityRatingMethods.set(this, void 0);
|
|
4906
5044
|
_Spec_supportsDependencyGraph.set(this, void 0);
|
|
4907
5045
|
_Spec_supportsToolReferences.set(this, void 0);
|
|
4908
5046
|
_Spec_requiresComponentVersion.set(this, void 0);
|
|
@@ -4920,6 +5058,7 @@ class Spec {
|
|
|
4920
5058
|
__classPrivateFieldSet(this, _Spec_requiresComponentVersion, requiresComponentVersion, "f");
|
|
4921
5059
|
__classPrivateFieldSet(this, _Spec_supportsProperties, supportsProperties, "f");
|
|
4922
5060
|
__classPrivateFieldSet(this, _Spec_supportsVulnerabilities, supportsVulnerabilities, "f");
|
|
5061
|
+
__classPrivateFieldSet(this, _Spec_vulnerabilityRatingMethods, new Set(vulnerabilityRatingMethods), "f");
|
|
4923
5062
|
__classPrivateFieldSet(this, _Spec_supportsComponentEvidence, supportsComponentEvidence, "f");
|
|
4924
5063
|
}
|
|
4925
5064
|
get version() {
|
|
@@ -4956,11 +5095,14 @@ class Spec {
|
|
|
4956
5095
|
get supportsVulnerabilities() {
|
|
4957
5096
|
return __classPrivateFieldGet(this, _Spec_supportsVulnerabilities, "f");
|
|
4958
5097
|
}
|
|
5098
|
+
supportsVulnerabilityRatingMethod(rm) {
|
|
5099
|
+
return __classPrivateFieldGet(this, _Spec_vulnerabilityRatingMethods, "f").has(rm);
|
|
5100
|
+
}
|
|
4959
5101
|
get supportsComponentEvidence() {
|
|
4960
5102
|
return __classPrivateFieldGet(this, _Spec_supportsComponentEvidence, "f");
|
|
4961
5103
|
}
|
|
4962
5104
|
}
|
|
4963
|
-
_Spec_version = new WeakMap(), _Spec_formats = new WeakMap(), _Spec_componentTypes = new WeakMap(), _Spec_hashAlgorithms = new WeakMap(), _Spec_hashValuePattern = new WeakMap(), _Spec_externalReferenceTypes = new WeakMap(), _Spec_supportsDependencyGraph = new WeakMap(), _Spec_supportsToolReferences = new WeakMap(), _Spec_requiresComponentVersion = new WeakMap(), _Spec_supportsProperties = new WeakMap(), _Spec_supportsVulnerabilities = new WeakMap(), _Spec_supportsComponentEvidence = new WeakMap();
|
|
5105
|
+
_Spec_version = new WeakMap(), _Spec_formats = new WeakMap(), _Spec_componentTypes = new WeakMap(), _Spec_hashAlgorithms = new WeakMap(), _Spec_hashValuePattern = new WeakMap(), _Spec_externalReferenceTypes = new WeakMap(), _Spec_vulnerabilityRatingMethods = new WeakMap(), _Spec_supportsDependencyGraph = new WeakMap(), _Spec_supportsToolReferences = new WeakMap(), _Spec_requiresComponentVersion = new WeakMap(), _Spec_supportsProperties = new WeakMap(), _Spec_supportsVulnerabilities = new WeakMap(), _Spec_supportsComponentEvidence = new WeakMap();
|
|
4964
5106
|
exports.Spec1dot2 = Object.freeze(new Spec(Version.v1dot2, [
|
|
4965
5107
|
Format.XML,
|
|
4966
5108
|
Format.JSON
|
|
@@ -5002,7 +5144,7 @@ exports.Spec1dot2 = Object.freeze(new Spec(Version.v1dot2, [
|
|
|
5002
5144
|
enums_1.ExternalReferenceType.BuildMeta,
|
|
5003
5145
|
enums_1.ExternalReferenceType.BuildSystem,
|
|
5004
5146
|
enums_1.ExternalReferenceType.Other
|
|
5005
|
-
], true, false, true, false, false, false));
|
|
5147
|
+
], true, false, true, false, false, [], false));
|
|
5006
5148
|
exports.Spec1dot3 = Object.freeze(new Spec(Version.v1dot3, [
|
|
5007
5149
|
Format.XML,
|
|
5008
5150
|
Format.JSON
|
|
@@ -5044,7 +5186,7 @@ exports.Spec1dot3 = Object.freeze(new Spec(Version.v1dot3, [
|
|
|
5044
5186
|
enums_1.ExternalReferenceType.BuildMeta,
|
|
5045
5187
|
enums_1.ExternalReferenceType.BuildSystem,
|
|
5046
5188
|
enums_1.ExternalReferenceType.Other
|
|
5047
|
-
], true, false, true, true, false, true));
|
|
5189
|
+
], true, false, true, true, false, [], true));
|
|
5048
5190
|
exports.Spec1dot4 = Object.freeze(new Spec(Version.v1dot4, [
|
|
5049
5191
|
Format.XML,
|
|
5050
5192
|
Format.JSON
|
|
@@ -5087,11 +5229,96 @@ exports.Spec1dot4 = Object.freeze(new Spec(Version.v1dot4, [
|
|
|
5087
5229
|
enums_1.ExternalReferenceType.BuildSystem,
|
|
5088
5230
|
enums_1.ExternalReferenceType.ReleaseNotes,
|
|
5089
5231
|
enums_1.ExternalReferenceType.Other
|
|
5090
|
-
], true, true, false, true, true,
|
|
5232
|
+
], true, true, false, true, true, [
|
|
5233
|
+
enums_1.Vulnerability.RatingMethod.CVSSv2,
|
|
5234
|
+
enums_1.Vulnerability.RatingMethod.CVSSv3,
|
|
5235
|
+
enums_1.Vulnerability.RatingMethod.CVSSv31,
|
|
5236
|
+
enums_1.Vulnerability.RatingMethod.OWASP,
|
|
5237
|
+
enums_1.Vulnerability.RatingMethod.Other
|
|
5238
|
+
], true));
|
|
5239
|
+
exports.Spec1dot5 = Object.freeze(new Spec(Version.v1dot5, [
|
|
5240
|
+
Format.XML,
|
|
5241
|
+
Format.JSON
|
|
5242
|
+
], [
|
|
5243
|
+
enums_1.ComponentType.Application,
|
|
5244
|
+
enums_1.ComponentType.Framework,
|
|
5245
|
+
enums_1.ComponentType.Library,
|
|
5246
|
+
enums_1.ComponentType.Container,
|
|
5247
|
+
enums_1.ComponentType.Platform,
|
|
5248
|
+
enums_1.ComponentType.OperatingSystem,
|
|
5249
|
+
enums_1.ComponentType.Device,
|
|
5250
|
+
enums_1.ComponentType.DeviceDriver,
|
|
5251
|
+
enums_1.ComponentType.Firmware,
|
|
5252
|
+
enums_1.ComponentType.File,
|
|
5253
|
+
enums_1.ComponentType.MachineLearningModel,
|
|
5254
|
+
enums_1.ComponentType.Data
|
|
5255
|
+
], [
|
|
5256
|
+
enums_1.HashAlgorithm.MD5,
|
|
5257
|
+
enums_1.HashAlgorithm['SHA-1'],
|
|
5258
|
+
enums_1.HashAlgorithm['SHA-256'],
|
|
5259
|
+
enums_1.HashAlgorithm['SHA-384'],
|
|
5260
|
+
enums_1.HashAlgorithm['SHA-512'],
|
|
5261
|
+
enums_1.HashAlgorithm['SHA3-256'],
|
|
5262
|
+
enums_1.HashAlgorithm['SHA3-384'],
|
|
5263
|
+
enums_1.HashAlgorithm['SHA3-512'],
|
|
5264
|
+
enums_1.HashAlgorithm['BLAKE2b-256'],
|
|
5265
|
+
enums_1.HashAlgorithm['BLAKE2b-384'],
|
|
5266
|
+
enums_1.HashAlgorithm['BLAKE2b-512'],
|
|
5267
|
+
enums_1.HashAlgorithm.BLAKE3
|
|
5268
|
+
], /^([a-fA-F0-9]{32})$|^([a-fA-F0-9]{40})$|^([a-fA-F0-9]{64})$|^([a-fA-F0-9]{96})$|^([a-fA-F0-9]{128})$/, [
|
|
5269
|
+
enums_1.ExternalReferenceType.VCS,
|
|
5270
|
+
enums_1.ExternalReferenceType.IssueTracker,
|
|
5271
|
+
enums_1.ExternalReferenceType.Website,
|
|
5272
|
+
enums_1.ExternalReferenceType.Advisories,
|
|
5273
|
+
enums_1.ExternalReferenceType.BOM,
|
|
5274
|
+
enums_1.ExternalReferenceType.MailingList,
|
|
5275
|
+
enums_1.ExternalReferenceType.Social,
|
|
5276
|
+
enums_1.ExternalReferenceType.Chat,
|
|
5277
|
+
enums_1.ExternalReferenceType.Documentation,
|
|
5278
|
+
enums_1.ExternalReferenceType.Support,
|
|
5279
|
+
enums_1.ExternalReferenceType.Distribution,
|
|
5280
|
+
enums_1.ExternalReferenceType.DistributionIntake,
|
|
5281
|
+
enums_1.ExternalReferenceType.License,
|
|
5282
|
+
enums_1.ExternalReferenceType.BuildMeta,
|
|
5283
|
+
enums_1.ExternalReferenceType.BuildSystem,
|
|
5284
|
+
enums_1.ExternalReferenceType.ReleaseNotes,
|
|
5285
|
+
enums_1.ExternalReferenceType.SecurityContact,
|
|
5286
|
+
enums_1.ExternalReferenceType.ModelCard,
|
|
5287
|
+
enums_1.ExternalReferenceType.Log,
|
|
5288
|
+
enums_1.ExternalReferenceType.Configuration,
|
|
5289
|
+
enums_1.ExternalReferenceType.Evidence,
|
|
5290
|
+
enums_1.ExternalReferenceType.Formulation,
|
|
5291
|
+
enums_1.ExternalReferenceType.Attestation,
|
|
5292
|
+
enums_1.ExternalReferenceType.ThreatModel,
|
|
5293
|
+
enums_1.ExternalReferenceType.AdversaryModel,
|
|
5294
|
+
enums_1.ExternalReferenceType.RiskAssessment,
|
|
5295
|
+
enums_1.ExternalReferenceType.VulnerabilityAssertion,
|
|
5296
|
+
enums_1.ExternalReferenceType.ExploitabilityStatement,
|
|
5297
|
+
enums_1.ExternalReferenceType.PentestReport,
|
|
5298
|
+
enums_1.ExternalReferenceType.StaticAnalysisReport,
|
|
5299
|
+
enums_1.ExternalReferenceType.DynamicAnalysisReport,
|
|
5300
|
+
enums_1.ExternalReferenceType.RuntimeAnalysisReport,
|
|
5301
|
+
enums_1.ExternalReferenceType.ComponentAnalysisReport,
|
|
5302
|
+
enums_1.ExternalReferenceType.MaturityReport,
|
|
5303
|
+
enums_1.ExternalReferenceType.CertificationReport,
|
|
5304
|
+
enums_1.ExternalReferenceType.CodifiedInfrastructure,
|
|
5305
|
+
enums_1.ExternalReferenceType.QualityMetrics,
|
|
5306
|
+
enums_1.ExternalReferenceType.POAM,
|
|
5307
|
+
enums_1.ExternalReferenceType.Other
|
|
5308
|
+
], true, true, false, true, true, [
|
|
5309
|
+
enums_1.Vulnerability.RatingMethod.CVSSv2,
|
|
5310
|
+
enums_1.Vulnerability.RatingMethod.CVSSv3,
|
|
5311
|
+
enums_1.Vulnerability.RatingMethod.CVSSv31,
|
|
5312
|
+
enums_1.Vulnerability.RatingMethod.CVSSv4,
|
|
5313
|
+
enums_1.Vulnerability.RatingMethod.OWASP,
|
|
5314
|
+
enums_1.Vulnerability.RatingMethod.SSVC,
|
|
5315
|
+
enums_1.Vulnerability.RatingMethod.Other
|
|
5316
|
+
], true));
|
|
5091
5317
|
exports.SpecVersionDict = Object.freeze({
|
|
5092
|
-
[Version.
|
|
5318
|
+
[Version.v1dot5]: exports.Spec1dot5,
|
|
5319
|
+
[Version.v1dot4]: exports.Spec1dot4,
|
|
5093
5320
|
[Version.v1dot3]: exports.Spec1dot3,
|
|
5094
|
-
[Version.
|
|
5321
|
+
[Version.v1dot2]: exports.Spec1dot2
|
|
5095
5322
|
});
|
|
5096
5323
|
|
|
5097
5324
|
|
|
@@ -5555,7 +5782,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_spdx_expression_parse__;
|
|
|
5555
5782
|
\**********************************************/
|
|
5556
5783
|
/***/ ((module) => {
|
|
5557
5784
|
|
|
5558
|
-
module.exports = JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://cyclonedx.org/schema/spdx.schema.json","$comment":"v1.0-3.
|
|
5785
|
+
module.exports = JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://cyclonedx.org/schema/spdx.schema.json","$comment":"v1.0-3.21","type":"string","enum":["0BSD","AAL","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Glyph","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","Afmparse","AGPL-1.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0","AGPL-3.0-only","AGPL-3.0-or-later","Aladdin","AMDPLPA","AML","AMPAS","ANTLR-PD","ANTLR-PD-fallback","Apache-1.0","Apache-1.1","Apache-2.0","APAFML","APL-1.0","App-s2p","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","Arphic-1999","Artistic-1.0","Artistic-1.0-cl8","Artistic-1.0-Perl","Artistic-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Baekmuk","Bahyph","Barr","Beerware","Bitstream-Charter","Bitstream-Vera","BitTorrent-1.0","BitTorrent-1.1","blessing","BlueOak-1.0.0","Boehm-GC","Borceux","Brian-Gladman-3-Clause","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Protection","BSD-Source-Code","BSL-1.0","BUSL-1.1","bzip2-1.0.5","bzip2-1.0.6","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","Caldera","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","checkmk","ClArtistic","Clips","CMU-Mach","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","Community-Spec-1.0","Condor-1.1","copyleft-next-0.3.0","copyleft-next-0.3.1","Cornell-Lossless-JPEG","CPAL-1.0","CPL-1.0","CPOL-1.02","Crossword","CrystalStacker","CUA-OPL-1.0","Cube","curl","D-FSL-1.0","diffmark","DL-DE-BY-2.0","DOC","Dotseqn","DRL-1.0","DSDP","dtoa","dvipdfm","ECL-1.0","ECL-2.0","eCos-2.0","EFL-1.0","EFL-2.0","eGenix","Elastic-2.0","Entessa","EPICS","EPL-1.0","EPL-2.0","ErlPL-1.1","etalab-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Eurosym","Fair","FDK-AAC","Frameworx-1.0","FreeBSD-DOC","FreeImage","FSFAP","FSFUL","FSFULLR","FSFULLRWD","FTL","GD","GFDL-1.1","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","Giftware","GL2PS","Glide","Glulxe","GLWTPL","gnuplot","GPL-1.0","GPL-1.0+","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0","GPL-2.0+","GPL-2.0-only","GPL-2.0-or-later","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-2.0-with-GCC-exception","GPL-3.0","GPL-3.0+","GPL-3.0-only","GPL-3.0-or-later","GPL-3.0-with-autoconf-exception","GPL-3.0-with-GCC-exception","Graphics-Gems","gSOAP-1.3b","HaskellReport","Hippocratic-2.1","HP-1986","HPND","HPND-export-US","HPND-Markus-Kuhn","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HTMLTIDY","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","ImageMagick","iMatix","Imlib2","Info-ZIP","Inner-Net-2.0","Intel","Intel-ACPI","Interbase-1.0","IPA","IPL-1.0","ISC","Jam","JasPer-2.0","JPL-image","JPNIC","JSON","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","Latex2e","Latex2e-translated-notice","Leptonica","LGPL-2.0","LGPL-2.0+","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1","LGPL-2.1+","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0","LGPL-3.0+","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","Libpng","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Linux-OpenIB","LOOP","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","MakeIndex","Martin-Birgmeier","metamail","Minpack","MirOS","MIT","MIT-0","MIT-advertising","MIT-CMU","MIT-enna","MIT-feh","MIT-Festival","MIT-Modern-Variant","MIT-open-group","MIT-Wu","MITNFA","Motosoto","mpi-permissive","mpich2","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","mplus","MS-LPL","MS-PL","MS-RL","MTLL","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","Naumen","NBPL-1.0","NCGL-UK-2.0","NCSA","Net-SNMP","NetCDF","Newsletr","NGPL","NICTA-1.0","NIST-PD","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","Nokia","NOSL","Noweb","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTP","NTP-0","Nunit","O-UDA-1.0","OCCT-PL","OCLC-2.0","ODbL-1.0","ODC-By-1.0","OFFIS","OFL-1.0","OFL-1.0-no-RFN","OFL-1.0-RFN","OFL-1.1","OFL-1.1-no-RFN","OFL-1.1-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OLFL-1.3","OML","OpenPBS-2.3","OpenSSL","OPL-1.0","OPL-UK-3.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","Parity-6.0.0","Parity-7.0.0","PDDL-1.0","PHP-3.0","PHP-3.01","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","PSF-2.0","psfrag","psutils","Python-2.0","Python-2.0.1","Qhull","QPL-1.0","QPL-1.0-INRIA-2004","Rdisc","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Ruby","SAX-PD","Saxpath","SCEA","SchemeReport","Sendmail","Sendmail-8.23","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGP4","SHL-0.5","SHL-0.51","SimPL-2.0","SISSL","SISSL-1.2","Sleepycat","SMLNJ","SMPPL","SNIA","snprintf","Spencer-86","Spencer-94","Spencer-99","SPL-1.0","SSH-OpenSSH","SSH-short","SSPL-1.0","StandardML-NJ","SugarCRM-1.1.3","SunPro","SWL","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TermReadKey","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TU-Berlin-1.0","TU-Berlin-2.0","UCAR","UCL-1.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","UPL-1.0","Vim","VOSTROM","VSL-1.0","W3C","W3C-19980720","W3C-20150513","w3m","Watcom-1.0","Widget-Workshop","Wsuipa","WTFPL","wxWindows","X11","X11-distribute-modifications-variant","Xdebug-1.03","Xerox","Xfig","XFree86-1.1","xinetd","xlock","Xnet","xpp","XSkat","YPL-1.0","YPL-1.1","Zed","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","zlib-acknowledgement","ZPL-1.1","ZPL-2.0","ZPL-2.1","389-exception","Asterisk-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Autoconf-exception-generic","Autoconf-exception-macro","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","cryptsetup-OpenSSL-exception","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-3.1","GNAT-exception","gnu-javamail-exception","GPL-3.0-interface-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","GStreamer-exception-2005","GStreamer-exception-2008","i2p-gpl-java-exception","KiCad-libraries-exception","LGPL-3.0-linking-exception","libpri-OpenH323-exception","Libtool-exception","Linux-syscall-note","LLGPL","LLVM-exception","LZMA-exception","mif-exception","Nokia-Qt-exception-1.1","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","QPL-1.0-INRIA-2004-exception","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","SHL-2.0","SHL-2.1","SWI-exception","Swift-exception","u-boot-exception-2.0","Universal-FOSS-exception-1.0","vsftpd-openssl-exception","WxWindows-exception-3.1","x11vnc-openssl-exception"]}');
|
|
5559
5786
|
|
|
5560
5787
|
/***/ })
|
|
5561
5788
|
|