@cyclonedx/cyclonedx-library 6.3.2 → 6.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.
- package/dist.d/models/metadata.d.ts +6 -0
- package/dist.d/models/metadata.d.ts.map +1 -1
- package/dist.d/serialize/json/normalize.d.ts.map +1 -1
- package/dist.d/serialize/json/types.d.ts +1 -0
- package/dist.d/serialize/json/types.d.ts.map +1 -1
- package/dist.d/serialize/xml/normalize.d.ts.map +1 -1
- package/dist.d/spec/_protocol.d.ts +2 -0
- package/dist.d/spec/_protocol.d.ts.map +1 -1
- package/dist.d/spec/consts.d.ts.map +1 -1
- package/dist.node/models/metadata.js +4 -0
- package/dist.node/models/metadata.js.map +1 -1
- package/dist.node/serialize/json/normalize.js +7 -1
- package/dist.node/serialize/json/normalize.js.map +1 -1
- package/dist.node/serialize/xml/normalize.js +17 -1
- package/dist.node/serialize/xml/normalize.js.map +1 -1
- package/dist.node/spec/_protocol.js +13 -3
- package/dist.node/spec/_protocol.js.map +1 -1
- package/dist.node/spec/consts.js +4 -4
- package/dist.node/spec/consts.js.map +1 -1
- package/dist.web/lib.dev.js +45 -9
- 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/package.json +1 -1
- package/src/models/metadata.ts +8 -0
- package/src/serialize/json/normalize.ts +7 -1
- package/src/serialize/json/types.ts +1 -0
- package/src/serialize/xml/normalize.ts +17 -1
- package/src/spec/_protocol.ts +16 -0
- package/src/spec/consts.ts +8 -0
package/dist.node/spec/consts.js
CHANGED
|
@@ -63,7 +63,7 @@ exports.Spec1dot2 = Object.freeze(new _protocol_1._Spec(enums_2.Version.v1dot2,
|
|
|
63
63
|
enums_1.ExternalReferenceType.BuildMeta,
|
|
64
64
|
enums_1.ExternalReferenceType.BuildSystem,
|
|
65
65
|
enums_1.ExternalReferenceType.Other
|
|
66
|
-
], true, false, true, false, false, [], false, false, false));
|
|
66
|
+
], true, false, true, false, false, [], false, false, false, false, false));
|
|
67
67
|
exports.Spec1dot3 = Object.freeze(new _protocol_1._Spec(enums_2.Version.v1dot3, [
|
|
68
68
|
enums_2.Format.XML,
|
|
69
69
|
enums_2.Format.JSON
|
|
@@ -105,7 +105,7 @@ exports.Spec1dot3 = Object.freeze(new _protocol_1._Spec(enums_2.Version.v1dot3,
|
|
|
105
105
|
enums_1.ExternalReferenceType.BuildMeta,
|
|
106
106
|
enums_1.ExternalReferenceType.BuildSystem,
|
|
107
107
|
enums_1.ExternalReferenceType.Other
|
|
108
|
-
], true, false, true, true, false, [], true, false, true));
|
|
108
|
+
], true, false, true, true, false, [], true, false, true, true, true));
|
|
109
109
|
exports.Spec1dot4 = Object.freeze(new _protocol_1._Spec(enums_2.Version.v1dot4, [
|
|
110
110
|
enums_2.Format.XML,
|
|
111
111
|
enums_2.Format.JSON
|
|
@@ -154,7 +154,7 @@ exports.Spec1dot4 = Object.freeze(new _protocol_1._Spec(enums_2.Version.v1dot4,
|
|
|
154
154
|
enums_1.Vulnerability.RatingMethod.CVSSv31,
|
|
155
155
|
enums_1.Vulnerability.RatingMethod.OWASP,
|
|
156
156
|
enums_1.Vulnerability.RatingMethod.Other
|
|
157
|
-
], true, false, true));
|
|
157
|
+
], true, false, true, true, true));
|
|
158
158
|
exports.Spec1dot5 = Object.freeze(new _protocol_1._Spec(enums_2.Version.v1dot5, [
|
|
159
159
|
enums_2.Format.XML,
|
|
160
160
|
enums_2.Format.JSON
|
|
@@ -232,7 +232,7 @@ exports.Spec1dot5 = Object.freeze(new _protocol_1._Spec(enums_2.Version.v1dot5,
|
|
|
232
232
|
enums_1.Vulnerability.RatingMethod.OWASP,
|
|
233
233
|
enums_1.Vulnerability.RatingMethod.SSVC,
|
|
234
234
|
enums_1.Vulnerability.RatingMethod.Other
|
|
235
|
-
], true, true, true));
|
|
235
|
+
], true, true, true, true, true));
|
|
236
236
|
exports.SpecVersionDict = Object.freeze({
|
|
237
237
|
[enums_2.Version.v1dot5]: exports.Spec1dot5,
|
|
238
238
|
[enums_2.Version.v1dot4]: exports.Spec1dot4,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../../src/spec/consts.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;EAiBE;;;AAEF,oCAA6F;AAE7F,2CAAmC;AACnC,mCAAyC;AAG5B,QAAA,SAAS,GAA4B,MAAM,CAAC,MAAM,CAAC,IAAI,iBAAK,CACvE,eAAO,CAAC,MAAM,EACd;IACE,cAAM,CAAC,GAAG;IACV,cAAM,CAAC,IAAI;CACZ,EACD;IACE,qBAAa,CAAC,WAAW;IACzB,qBAAa,CAAC,SAAS;IACvB,qBAAa,CAAC,OAAO;IACrB,qBAAa,CAAC,SAAS;IACvB,qBAAa,CAAC,eAAe;IAC7B,qBAAa,CAAC,MAAM;IACpB,qBAAa,CAAC,QAAQ;IACtB,qBAAa,CAAC,IAAI;CACnB,EACD;IACE,qBAAa,CAAC,GAAG;IACjB,qBAAa,CAAC,OAAO,CAAC;IACtB,qBAAa,CAAC,SAAS,CAAC;IACxB,qBAAa,CAAC,SAAS,CAAC;IACxB,qBAAa,CAAC,SAAS,CAAC;IACxB,qBAAa,CAAC,UAAU,CAAC;IACzB,qBAAa,CAAC,UAAU,CAAC;IACzB,qBAAa,CAAC,UAAU,CAAC;IACzB,qBAAa,CAAC,aAAa,CAAC;IAC5B,qBAAa,CAAC,aAAa,CAAC;IAC5B,qBAAa,CAAC,aAAa,CAAC;IAC5B,qBAAa,CAAC,MAAM;CACrB,EACD,sGAAsG,EACtG;IACE,6BAAqB,CAAC,GAAG;IACzB,6BAAqB,CAAC,YAAY;IAClC,6BAAqB,CAAC,OAAO;IAC7B,6BAAqB,CAAC,UAAU;IAChC,6BAAqB,CAAC,GAAG;IACzB,6BAAqB,CAAC,WAAW;IACjC,6BAAqB,CAAC,MAAM;IAC5B,6BAAqB,CAAC,IAAI;IAC1B,6BAAq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,GAAgE,MAAM,CAAC,MAAM,CAAC;IACxG,CAAC,eAAO,CAAC,MAAM,CAAC,EAAE,iBAAS;IAC3B,CAAC,eAAO,CAAC,MAAM,CAAC,EAAE,iBAAS;IAC3B,CAAC,eAAO,CAAC,MAAM,CAAC,EAAE,iBAAS;IAC3B,CAAC,eAAO,CAAC,MAAM,CAAC,EAAE,iBAAS;CAE5B,CAAC,CAAA"}
|
package/dist.web/lib.dev.js
CHANGED
|
@@ -1946,8 +1946,10 @@ Copyright (c) OWASP Foundation. All Rights Reserved.
|
|
|
1946
1946
|
*/
|
|
1947
1947
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1948
1948
|
exports.Metadata = void 0;
|
|
1949
|
+
const license_1 = __webpack_require__(/*! ./license */ "./src/models/license.ts");
|
|
1949
1950
|
const lifecycle_1 = __webpack_require__(/*! ./lifecycle */ "./src/models/lifecycle.ts");
|
|
1950
1951
|
const organizationalContact_1 = __webpack_require__(/*! ./organizationalContact */ "./src/models/organizationalContact.ts");
|
|
1952
|
+
const property_1 = __webpack_require__(/*! ./property */ "./src/models/property.ts");
|
|
1951
1953
|
const tool_1 = __webpack_require__(/*! ./tool */ "./src/models/tool.ts");
|
|
1952
1954
|
class Metadata {
|
|
1953
1955
|
constructor(op = {}) {
|
|
@@ -1958,6 +1960,8 @@ class Metadata {
|
|
|
1958
1960
|
this.component = op.component;
|
|
1959
1961
|
this.manufacture = op.manufacture;
|
|
1960
1962
|
this.supplier = op.supplier;
|
|
1963
|
+
this.licenses = op.licenses ?? new license_1.LicenseRepository();
|
|
1964
|
+
this.properties = op.properties ?? new property_1.PropertyRepository();
|
|
1961
1965
|
}
|
|
1962
1966
|
}
|
|
1963
1967
|
exports.Metadata = Metadata;
|
|
@@ -3198,7 +3202,13 @@ class MetadataNormalizer extends BaseJsonNormalizer {
|
|
|
3198
3202
|
: orgEntityNormalizer.normalize(data.manufacture, options),
|
|
3199
3203
|
supplier: data.supplier === undefined
|
|
3200
3204
|
? undefined
|
|
3201
|
-
: orgEntityNormalizer.normalize(data.supplier, options)
|
|
3205
|
+
: orgEntityNormalizer.normalize(data.supplier, options),
|
|
3206
|
+
licenses: this._factory.spec.supportsMetadataLicenses && data.licenses.size > 0
|
|
3207
|
+
? this._factory.makeForLicense().normalizeIterable(data.licenses, options)
|
|
3208
|
+
: undefined,
|
|
3209
|
+
properties: this._factory.spec.supportsMetadataProperties && data.properties.size > 0
|
|
3210
|
+
? this._factory.makeForProperty().normalizeIterable(data.properties, options)
|
|
3211
|
+
: undefined
|
|
3202
3212
|
};
|
|
3203
3213
|
}
|
|
3204
3214
|
}
|
|
@@ -4132,6 +4142,20 @@ class MetadataNormalizer extends BaseXmlNormalizer {
|
|
|
4132
4142
|
children: this._factory.makeForOrganizationalContact().normalizeIterable(data.authors, options, 'author')
|
|
4133
4143
|
}
|
|
4134
4144
|
: undefined;
|
|
4145
|
+
const licenses = this._factory.spec.supportsMetadataLicenses && data.licenses.size > 0
|
|
4146
|
+
? {
|
|
4147
|
+
type: 'element',
|
|
4148
|
+
name: 'licenses',
|
|
4149
|
+
children: this._factory.makeForLicense().normalizeIterable(data.licenses, options)
|
|
4150
|
+
}
|
|
4151
|
+
: undefined;
|
|
4152
|
+
const properties = this._factory.spec.supportsMetadataProperties && data.properties.size > 0
|
|
4153
|
+
? {
|
|
4154
|
+
type: 'element',
|
|
4155
|
+
name: 'properties',
|
|
4156
|
+
children: this._factory.makeForProperty().normalizeIterable(data.properties, options, 'property')
|
|
4157
|
+
}
|
|
4158
|
+
: undefined;
|
|
4135
4159
|
return {
|
|
4136
4160
|
type: 'element',
|
|
4137
4161
|
name: elementName,
|
|
@@ -4148,7 +4172,9 @@ class MetadataNormalizer extends BaseXmlNormalizer {
|
|
|
4148
4172
|
: orgEntityNormalizer.normalize(data.manufacture, options, 'manufacture'),
|
|
4149
4173
|
data.supplier === undefined
|
|
4150
4174
|
? undefined
|
|
4151
|
-
: orgEntityNormalizer.normalize(data.supplier, options, 'supplier')
|
|
4175
|
+
: orgEntityNormalizer.normalize(data.supplier, options, 'supplier'),
|
|
4176
|
+
licenses,
|
|
4177
|
+
properties
|
|
4152
4178
|
].filter(notUndefined_1.isNotUndefined)
|
|
4153
4179
|
};
|
|
4154
4180
|
}
|
|
@@ -5232,11 +5258,11 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
5232
5258
|
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");
|
|
5233
5259
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5234
5260
|
};
|
|
5235
|
-
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, __Spec_supportsMetadataLifecycles, __Spec_supportsExternalReferenceHashes;
|
|
5261
|
+
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, __Spec_supportsMetadataLifecycles, __Spec_supportsMetadataLicenses, __Spec_supportsMetadataProperties, __Spec_supportsExternalReferenceHashes;
|
|
5236
5262
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5237
5263
|
exports._Spec = void 0;
|
|
5238
5264
|
class _Spec {
|
|
5239
|
-
constructor(version, formats, componentTypes, hashAlgorithms, hashValuePattern, externalReferenceTypes, supportsDependencyGraph, supportsToolReferences, requiresComponentVersion, supportsProperties, supportsVulnerabilities, vulnerabilityRatingMethods, supportsComponentEvidence, supportsMetadataLifecycles, supportsExternalReferenceHashes) {
|
|
5265
|
+
constructor(version, formats, componentTypes, hashAlgorithms, hashValuePattern, externalReferenceTypes, supportsDependencyGraph, supportsToolReferences, requiresComponentVersion, supportsProperties, supportsVulnerabilities, vulnerabilityRatingMethods, supportsComponentEvidence, supportsMetadataLifecycles, supportsMetadataLicenses, supportsMetadataProperties, supportsExternalReferenceHashes) {
|
|
5240
5266
|
__Spec_version.set(this, void 0);
|
|
5241
5267
|
__Spec_formats.set(this, void 0);
|
|
5242
5268
|
__Spec_componentTypes.set(this, void 0);
|
|
@@ -5251,6 +5277,8 @@ class _Spec {
|
|
|
5251
5277
|
__Spec_supportsVulnerabilities.set(this, void 0);
|
|
5252
5278
|
__Spec_supportsComponentEvidence.set(this, void 0);
|
|
5253
5279
|
__Spec_supportsMetadataLifecycles.set(this, void 0);
|
|
5280
|
+
__Spec_supportsMetadataLicenses.set(this, void 0);
|
|
5281
|
+
__Spec_supportsMetadataProperties.set(this, void 0);
|
|
5254
5282
|
__Spec_supportsExternalReferenceHashes.set(this, void 0);
|
|
5255
5283
|
__classPrivateFieldSet(this, __Spec_version, version, "f");
|
|
5256
5284
|
__classPrivateFieldSet(this, __Spec_formats, new Set(formats), "f");
|
|
@@ -5266,6 +5294,8 @@ class _Spec {
|
|
|
5266
5294
|
__classPrivateFieldSet(this, __Spec_vulnerabilityRatingMethods, new Set(vulnerabilityRatingMethods), "f");
|
|
5267
5295
|
__classPrivateFieldSet(this, __Spec_supportsComponentEvidence, supportsComponentEvidence, "f");
|
|
5268
5296
|
__classPrivateFieldSet(this, __Spec_supportsMetadataLifecycles, supportsMetadataLifecycles, "f");
|
|
5297
|
+
__classPrivateFieldSet(this, __Spec_supportsMetadataLicenses, supportsMetadataLicenses, "f");
|
|
5298
|
+
__classPrivateFieldSet(this, __Spec_supportsMetadataProperties, supportsMetadataProperties, "f");
|
|
5269
5299
|
__classPrivateFieldSet(this, __Spec_supportsExternalReferenceHashes, supportsExternalReferenceHashes, "f");
|
|
5270
5300
|
}
|
|
5271
5301
|
get version() {
|
|
@@ -5311,12 +5341,18 @@ class _Spec {
|
|
|
5311
5341
|
get supportsMetadataLifecycles() {
|
|
5312
5342
|
return __classPrivateFieldGet(this, __Spec_supportsMetadataLifecycles, "f");
|
|
5313
5343
|
}
|
|
5344
|
+
get supportsMetadataLicenses() {
|
|
5345
|
+
return __classPrivateFieldGet(this, __Spec_supportsMetadataLicenses, "f");
|
|
5346
|
+
}
|
|
5347
|
+
get supportsMetadataProperties() {
|
|
5348
|
+
return __classPrivateFieldGet(this, __Spec_supportsMetadataProperties, "f");
|
|
5349
|
+
}
|
|
5314
5350
|
get supportsExternalReferenceHashes() {
|
|
5315
5351
|
return __classPrivateFieldGet(this, __Spec_supportsExternalReferenceHashes, "f");
|
|
5316
5352
|
}
|
|
5317
5353
|
}
|
|
5318
5354
|
exports._Spec = _Spec;
|
|
5319
|
-
__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(), __Spec_supportsMetadataLifecycles = new WeakMap(), __Spec_supportsExternalReferenceHashes = new WeakMap();
|
|
5355
|
+
__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(), __Spec_supportsMetadataLifecycles = new WeakMap(), __Spec_supportsMetadataLicenses = new WeakMap(), __Spec_supportsMetadataProperties = new WeakMap(), __Spec_supportsExternalReferenceHashes = new WeakMap();
|
|
5320
5356
|
|
|
5321
5357
|
|
|
5322
5358
|
/***/ }),
|
|
@@ -5392,7 +5428,7 @@ exports.Spec1dot2 = Object.freeze(new _protocol_1._Spec(enums_2.Version.v1dot2,
|
|
|
5392
5428
|
enums_1.ExternalReferenceType.BuildMeta,
|
|
5393
5429
|
enums_1.ExternalReferenceType.BuildSystem,
|
|
5394
5430
|
enums_1.ExternalReferenceType.Other
|
|
5395
|
-
], true, false, true, false, false, [], false, false, false));
|
|
5431
|
+
], true, false, true, false, false, [], false, false, false, false, false));
|
|
5396
5432
|
exports.Spec1dot3 = Object.freeze(new _protocol_1._Spec(enums_2.Version.v1dot3, [
|
|
5397
5433
|
enums_2.Format.XML,
|
|
5398
5434
|
enums_2.Format.JSON
|
|
@@ -5434,7 +5470,7 @@ exports.Spec1dot3 = Object.freeze(new _protocol_1._Spec(enums_2.Version.v1dot3,
|
|
|
5434
5470
|
enums_1.ExternalReferenceType.BuildMeta,
|
|
5435
5471
|
enums_1.ExternalReferenceType.BuildSystem,
|
|
5436
5472
|
enums_1.ExternalReferenceType.Other
|
|
5437
|
-
], true, false, true, true, false, [], true, false, true));
|
|
5473
|
+
], true, false, true, true, false, [], true, false, true, true, true));
|
|
5438
5474
|
exports.Spec1dot4 = Object.freeze(new _protocol_1._Spec(enums_2.Version.v1dot4, [
|
|
5439
5475
|
enums_2.Format.XML,
|
|
5440
5476
|
enums_2.Format.JSON
|
|
@@ -5483,7 +5519,7 @@ exports.Spec1dot4 = Object.freeze(new _protocol_1._Spec(enums_2.Version.v1dot4,
|
|
|
5483
5519
|
enums_1.Vulnerability.RatingMethod.CVSSv31,
|
|
5484
5520
|
enums_1.Vulnerability.RatingMethod.OWASP,
|
|
5485
5521
|
enums_1.Vulnerability.RatingMethod.Other
|
|
5486
|
-
], true, false, true));
|
|
5522
|
+
], true, false, true, true, true));
|
|
5487
5523
|
exports.Spec1dot5 = Object.freeze(new _protocol_1._Spec(enums_2.Version.v1dot5, [
|
|
5488
5524
|
enums_2.Format.XML,
|
|
5489
5525
|
enums_2.Format.JSON
|
|
@@ -5561,7 +5597,7 @@ exports.Spec1dot5 = Object.freeze(new _protocol_1._Spec(enums_2.Version.v1dot5,
|
|
|
5561
5597
|
enums_1.Vulnerability.RatingMethod.OWASP,
|
|
5562
5598
|
enums_1.Vulnerability.RatingMethod.SSVC,
|
|
5563
5599
|
enums_1.Vulnerability.RatingMethod.Other
|
|
5564
|
-
], true, true, true));
|
|
5600
|
+
], true, true, true, true, true));
|
|
5565
5601
|
exports.SpecVersionDict = Object.freeze({
|
|
5566
5602
|
[enums_2.Version.v1dot5]: exports.Spec1dot5,
|
|
5567
5603
|
[enums_2.Version.v1dot4]: exports.Spec1dot4,
|