Skip to content

Commit 7c1aa00

Browse files
chore(deps-dev): bump the typescript group with 2 updates (#990)
* chore(deps-dev): bump the typescript group with 2 updates Bumps the typescript group with 2 updates: [ts-loader](https://github.com/TypeStrong/ts-loader) and [typescript](https://github.com/Microsoft/TypeScript). Updates `ts-loader` from 9.5.0 to 9.5.1 - [Release notes](https://github.com/TypeStrong/ts-loader/releases) - [Changelog](https://github.com/TypeStrong/ts-loader/blob/main/CHANGELOG.md) - [Commits](TypeStrong/ts-loader@v9.5.0...v9.5.1) Updates `typescript` from 5.2.2 to 5.3.2 - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](microsoft/TypeScript@v5.2.2...v5.3.2) --- updated-dependencies: - dependency-name: ts-loader dependency-type: direct:development update-type: version-update:semver-patch dependency-group: typescript - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-minor dependency-group: typescript ... Signed-off-by: dependabot[bot] <[email protected]> * Update package.json - [ ] dont forget to bump `@types/node` Signed-off-by: Jan Kowalleck <[email protected]> * docs: histry Signed-off-by: Jan Kowalleck <[email protected]> * migrate to TS5.3 Signed-off-by: Jan Kowalleck <[email protected]> * migrate to TS5.3 Signed-off-by: Jan Kowalleck <[email protected]> * docs Signed-off-by: Jan Kowalleck <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Jan Kowalleck <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jan Kowalleck <[email protected]>
1 parent 99f62eb commit 7c1aa00

File tree

4 files changed

+24
-20
lines changed

4 files changed

+24
-20
lines changed

HISTORY.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@ All notable changes to this project will be documented in this file.
55
## unreleased
66

77
* Style
8-
* Apply latest code style guide (via [#988])
8+
* Apply latest code style guide (via [#988], [#990])
9+
* Build
10+
* Use _TypeScript_ `v5.3.2` now, was `v5.2.2` (via [#990])
11+
* Use _ts-loader_ `v9.5.1` now, was `v9.5.0` (via [#990])
912

1013
[#988]: https://github.com/CycloneDX/cyclonedx-javascript-library/pull/988
14+
[#990]: https://github.com/CycloneDX/cyclonedx-javascript-library/pull/990
1115

1216
## 6.1.0 -- 2023-11-05
1317

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
},
7979
"devDependencies": {
8080
"@types/mocha": "^10",
81-
"@types/node": "ts5.2",
81+
"@types/node": "ts5.3",
8282
"@types/spdx-expression-parse": "^3",
8383
"c8": "8.0.1",
8484
"deepmerge": "^4.2.2",
@@ -92,10 +92,10 @@
9292
"fast-glob": "^3.3.1",
9393
"mocha": "10.2.0",
9494
"npm-run-all": "^4.1.5",
95-
"ts-loader": "9.5.0",
95+
"ts-loader": "9.5.1",
9696
"typedoc": "^0.25.0",
9797
"typedoc-plugin-missing-exports": "^2.0.1",
98-
"typescript": "5.2.2",
98+
"typescript": "5.3.2",
9999
"webpack": "5.89.0",
100100
"webpack-cli": "5.1.4",
101101
"webpack-node-externals": "3.0.0"

src/serialize/json/normalize.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -418,17 +418,17 @@ export class LicenseNormalizer extends BaseJsonNormalizer<Models.License> {
418418
normalize (data: Models.License, options: NormalizerOptions): Normalized.License {
419419
switch (true) {
420420
case data instanceof Models.NamedLicense:
421-
return this.#normalizeNamedLicense(data as Models.NamedLicense, options)
421+
return this.#normalizeNamedLicense(data, options)
422422
case data instanceof Models.SpdxLicense:
423-
return isSupportedSpdxId((data as Models.SpdxLicense).id)
424-
? this.#normalizeSpdxLicense(data as Models.SpdxLicense, options)
423+
return isSupportedSpdxId(data.id)
424+
? this.#normalizeSpdxLicense(data, options)
425425
: this.#normalizeNamedLicense(new Models.NamedLicense(
426426
// prevent information loss -> convert to broader type
427-
(data as Models.SpdxLicense).id,
428-
{ url: (data as Models.SpdxLicense).url }
427+
data.id,
428+
{ url: data.url }
429429
), options)
430430
case data instanceof Models.LicenseExpression:
431-
return this.#normalizeLicenseExpression(data as Models.LicenseExpression)
431+
return this.#normalizeLicenseExpression(data)
432432
/* c8 ignore start */
433433
default:
434434
// this case is expected to never happen - and therefore is undocumented
@@ -784,9 +784,9 @@ export class VulnerabilityAffectedVersionNormalizer extends BaseJsonNormalizer<M
784784
normalize (data: Models.Vulnerability.AffectedVersion, options: NormalizerOptions): Normalized.Vulnerability.AffectedVersion | undefined {
785785
switch (true) {
786786
case data instanceof Models.Vulnerability.AffectedSingleVersion:
787-
return this.#normalizeAffectedSingleVersion(data as Models.Vulnerability.AffectedSingleVersion)
787+
return this.#normalizeAffectedSingleVersion(data)
788788
case data instanceof Models.Vulnerability.AffectedVersionRange:
789-
return this.#normalizeAffectedVersionRange(data as Models.Vulnerability.AffectedVersionRange)
789+
return this.#normalizeAffectedVersionRange(data)
790790
/* c8 ignore start */
791791
default:
792792
// this case is expected to never happen - and therefore is undocumented

src/serialize/xml/normalize.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -534,17 +534,17 @@ export class LicenseNormalizer extends BaseXmlNormalizer<Models.License> {
534534
normalize (data: Models.License, options: NormalizerOptions): SimpleXml.Element {
535535
switch (true) {
536536
case data instanceof Models.NamedLicense:
537-
return this.#normalizeNamedLicense(data as Models.NamedLicense, options)
537+
return this.#normalizeNamedLicense(data, options)
538538
case data instanceof Models.SpdxLicense:
539-
return isSupportedSpdxId((data as Models.SpdxLicense).id)
540-
? this.#normalizeSpdxLicense(data as Models.SpdxLicense, options)
539+
return isSupportedSpdxId(data.id)
540+
? this.#normalizeSpdxLicense(data, options)
541541
: this.#normalizeNamedLicense(new Models.NamedLicense(
542542
// prevent information loss -> convert to broader type
543-
(data as Models.SpdxLicense).id,
544-
{ url: (data as Models.SpdxLicense).url }
543+
data.id,
544+
{ url: data.url }
545545
), options)
546546
case data instanceof Models.LicenseExpression:
547-
return this.#normalizeLicenseExpression(data as Models.LicenseExpression)
547+
return this.#normalizeLicenseExpression(data)
548548
/* c8 ignore start */
549549
default:
550550
// this case is expected to never happen - and therefore is undocumented
@@ -1051,9 +1051,9 @@ export class VulnerabilityAffectedVersionNormalizer extends BaseXmlNormalizer<Mo
10511051
normalize (data: Models.Vulnerability.AffectedVersion, options: NormalizerOptions, elementName: string): SimpleXml.Element {
10521052
switch (true) {
10531053
case data instanceof Models.Vulnerability.AffectedSingleVersion:
1054-
return this.#normalizeAffectedSingleVersion(data as Models.Vulnerability.AffectedSingleVersion, elementName)
1054+
return this.#normalizeAffectedSingleVersion(data, elementName)
10551055
case data instanceof Models.Vulnerability.AffectedVersionRange:
1056-
return this.#normalizeAffectedVersionRange(data as Models.Vulnerability.AffectedVersionRange, elementName)
1056+
return this.#normalizeAffectedVersionRange(data, elementName)
10571057
/* c8 ignore start */
10581058
default:
10591059
// this case is expected to never happen - and therefore is undocumented

0 commit comments

Comments
 (0)