Skip to content

Commit cb429b5

Browse files
authored
chore(deps): no longer depend on dependency packageurl-js (#1237)
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 2593612 commit cb429b5

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

HISTORY.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,14 @@ All notable changes to this project will be documented in this file.
66

77
<!-- unreleased changes go here -->
88

9+
* Dependencies
10+
* No longer depend on `packageurlk-js` (via [#1237])
911
* Build
1012
* Use _TypeScript_ `v5.6.2` now, was `v5.5.3` (via [#1209], [#1218])
1113

1214
[#1209]: https://github.com/CycloneDX/cyclonedx-node-npm/pull/1209
1315
[#1218]: https://github.com/CycloneDX/cyclonedx-node-npm/pull/1218
16+
[#1237]: https://github.com/CycloneDX/cyclonedx-node-npm/pull/1237
1417

1518
## 1.19.3 -- 2024-07-15
1619

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
"@cyclonedx/cyclonedx-library": "^6.11.0",
5151
"commander": "^10.0.0",
5252
"normalize-package-data": "^3||^4||^5||^6",
53-
"packageurl-js": "^1.2.1",
5453
"xmlbuilder2": "^3.0.2"
5554
},
5655
"devDependencies": {

src/builders.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ Copyright (c) OWASP Foundation. All Rights Reserved.
2020
import { type Builders, Enums, type Factories, Models, Utils } from '@cyclonedx/cyclonedx-library'
2121
import { existsSync } from 'fs'
2222
import * as normalizePackageData from 'normalize-package-data'
23-
import { type PackageURL } from 'packageurl-js'
2423
import * as path from 'path'
2524

2625
import { isString, loadJsonFile, tryRemoveSecretsFromUrl } from './_helpers'
@@ -544,7 +543,7 @@ export class BomBuilder {
544543
return component
545544
}
546545

547-
private makePurl (component: Models.Component): PackageURL | undefined {
546+
private makePurl (component: Models.Component): ReturnType<BomBuilder['purlFactory']['makeFromComponent']> {
548547
const purl = this.purlFactory.makeFromComponent(component, this.reproducible)
549548
if (purl === undefined) {
550549
return undefined

0 commit comments

Comments
 (0)