Skip to content

Commit

Permalink
chore(deps): remove dep packageurl-js
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Kowalleck <[email protected]>
  • Loading branch information
jkowalleck committed Nov 20, 2024
1 parent fe671bb commit 9160a91
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
"clipanion": "^4.0.0-rc.3",
"hosted-git-info": "7.0.2",
"normalize-package-data": "6.0.2",
"packageurl-js": "1.2.1",
"typanion": "^3.14.0",
"xmlbuilder2": "3.1.1"
},
Expand Down
3 changes: 1 addition & 2 deletions src/builders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import { Cache, type FetchOptions, type Locator, type LocatorHash, type Package,
import { ppath } from '@yarnpkg/fslib'
import { gitUtils as YarnPluginGitUtils } from '@yarnpkg/plugin-git'
import normalizePackageData from 'normalize-package-data'
import type { PackageURL } from 'packageurl-js'

import { getBuildtimeInfo } from './_buildtimeInfo'
import { isString, tryRemoveSecretsFromUrl, trySanitizeGitUrl } from './_helpers'
Expand Down Expand Up @@ -256,7 +255,7 @@ export class BomBuilder {
return component
}

private makePurl (component: Component): PackageURL | undefined {
private makePurl (component: Component): ReturnType<BomBuilder['purlFactory']['makeFromComponent']> {
const purl = this.purlFactory.makeFromComponent(component, this.reproducible)
if (purl === undefined) {
return undefined
Expand Down

0 comments on commit 9160a91

Please sign in to comment.