Skip to content

Commit

Permalink
feat: update page parsing due to npmjs.com HTML changes (#95)
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Horton <phorton@sonatype.com>
  • Loading branch information
madpah committed Sep 29, 2023
1 parent 01a5b30 commit 7ec5a10
Show file tree
Hide file tree
Showing 24 changed files with 10,526 additions and 72,851 deletions.
2 changes: 1 addition & 1 deletion src/utils/Constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export const REPO_TYPES: RepoType[] = [
appendVersionPath: '/v/{versionNumber}',
pathRegex:
/^((?<groupId>@[^/]*)\/)?(?<artifactId>[^/?#]*)(\/v\/(?<version>[^?#]*))?(\?(?<query>([^#]*)))?(#(?<fragment>(.*)))?$/,
versionDomPath: 'h2 + span',
versionDomPath: '#top > div > span',
},
{
url: 'https://www.nuget.org/packages/',
Expand Down
785 changes: 15 additions & 770 deletions src/utils/PageParsing/testdata/CentralSonatypeCom.html

Large diffs are not rendered by default.

2,642 changes: 2 additions & 2,640 deletions src/utils/PageParsing/testdata/MVNRepository.html

Large diffs are not rendered by default.

0 comments on commit 7ec5a10

Please sign in to comment.