Skip to content

Commit

Permalink
feat: add more validators and make validation and normalization more …
Browse files Browse the repository at this point in the history
…consistent
  • Loading branch information
jdalton committed Aug 12, 2024
1 parent 75099e5 commit 4fad311
Show file tree
Hide file tree
Showing 2 changed files with 167 additions and 114 deletions.
13 changes: 0 additions & 13 deletions src/package-url.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,19 +168,6 @@ declare module "packageurl-js" {
* @param purlStr string to parse
*/
static fromString(purlStr: string): PackageURL

/**
* Parses a purl string a PackageURL arguments array.
* @param purlStr string to parse
*/
static parseString(purlStr: string): [
type: string,
namespace: string | undefined,
name: string,
version: string | undefined,
qualifiers: PurlQualifiers | undefined,
subpath: string | undefined
]
}

export const PurlComponent = <PurlComponent>{}
Expand Down
Loading

0 comments on commit 4fad311

Please sign in to comment.