From c1fd4bf64d474e601e02f98b789e72ee1de98b51 Mon Sep 17 00:00:00 2001 From: Paul Horton Date: Tue, 27 Aug 2024 09:38:28 +0100 Subject: [PATCH 1/4] chore: updated test data Signed-off-by: Paul Horton --- .../testdata/CentralSonatypeCom.html | 8 +- .../PageParsing/testdata/MVNRepository.html | 2 +- .../testdata/central-s-c-android.html | 8 +- .../testdata/central-s-c-commons-io.html | 10 +- .../testdata/central-s-c-cool-jconon.html | 8 +- ...al-s-c-custom-properties-maven-plugin.html | 8 +- .../testdata/central-s-c-jakarta-ivt.html | 8 +- .../testdata/central-s-c-log4j-parent.html | 8 +- .../central-s-c-scalacheck-bundle.html | 8 +- .../testdata/conanio-libxft-2.3.6.html | 22 +- .../testdata/conanio-libxft-2.3.8.html | 22 +- .../testdata/conanio-proj-8.2.1.html | 41 +- src/utils/PageParsing/testdata/cran.html | 6 +- .../PageParsing/testdata/npm-deprecated.html | 12 +- src/utils/PageParsing/testdata/npm.html | 10 +- src/utils/PageParsing/testdata/npm2.html | 10 +- .../nuget-Newtonsoft.JSON-v13.0.1.html | 1456 ++++++++++------ .../nuget-Newtonsoft.JSON-v13.0.3.html | 1464 +++++++++++------ .../packagist-laravel-its-lte-4.22.html | 117 +- .../packagist-laravel-its-lte-4.23.0.html | 117 +- .../testdata/pypi-Django-4.2.1.html | 418 +++-- .../testdata/pypi-Twisted-19.2.0.html | 142 +- .../testdata/pypi-numpy-1.14.0.html | 206 ++- .../testdata/rubygems-chelsea-0.0.32.html | 99 +- .../testdata/rubygems-chelsea-0.0.35.html | 105 +- ...ubygems-logstash-input-tcp-6.0.9-java.html | 77 +- 26 files changed, 2916 insertions(+), 1476 deletions(-) diff --git a/src/utils/PageParsing/testdata/CentralSonatypeCom.html b/src/utils/PageParsing/testdata/CentralSonatypeCom.html index b7fa3e2..adc1a47 100644 --- a/src/utils/PageParsing/testdata/CentralSonatypeCom.html +++ b/src/utils/PageParsing/testdata/CentralSonatypeCom.html @@ -1,16 +1,16 @@ -Maven Central: org.cyclonedx:cyclonedx-core-java:7.3.2
Maven Central Repository

cyclonedx-core-java

Used in
Loading...
components
Loading...
Loading...
Loading...
\ No newline at end of file + \ No newline at end of file diff --git a/src/utils/PageParsing/testdata/MVNRepository.html b/src/utils/PageParsing/testdata/MVNRepository.html index 65b82a8..d3b7b17 100644 --- a/src/utils/PageParsing/testdata/MVNRepository.html +++ b/src/utils/PageParsing/testdata/MVNRepository.html @@ -1 +1 @@ -Just a moment...
\ No newline at end of file +Just a moment...
\ No newline at end of file diff --git a/src/utils/PageParsing/testdata/central-s-c-android.html b/src/utils/PageParsing/testdata/central-s-c-android.html index 6a8edd7..20e4c1b 100644 --- a/src/utils/PageParsing/testdata/central-s-c-android.html +++ b/src/utils/PageParsing/testdata/central-s-c-android.html @@ -1,16 +1,16 @@ -Maven Central: com.fpliu.ndk.pkg.prefab.android.21:curl:7.82.0
Maven Central Repository

curl

Used in
Loading...
components
Loading...
Loading...
Loading...
\ No newline at end of file + \ No newline at end of file diff --git a/src/utils/PageParsing/testdata/central-s-c-commons-io.html b/src/utils/PageParsing/testdata/central-s-c-commons-io.html index e9b2fe5..bd5fdb1 100644 --- a/src/utils/PageParsing/testdata/central-s-c-commons-io.html +++ b/src/utils/PageParsing/testdata/central-s-c-commons-io.html @@ -1,17 +1,17 @@ -Maven Central: commons-io:commons-io:2.15.1
Maven Central Repository

commons-io

Used in
Loading...
components
Loading...
Loading...
Loading...
\ No newline at end of file + \ No newline at end of file diff --git a/src/utils/PageParsing/testdata/central-s-c-cool-jconon.html b/src/utils/PageParsing/testdata/central-s-c-cool-jconon.html index 139a45e..fbeb854 100644 --- a/src/utils/PageParsing/testdata/central-s-c-cool-jconon.html +++ b/src/utils/PageParsing/testdata/central-s-c-cool-jconon.html @@ -1,16 +1,16 @@ -Maven Central: it.cnr.si.cool.jconon:cool-jconon:5.2.44
Maven Central Repository

cool-jconon

Used in
Loading...
components
Loading...
Loading...
Loading...
\ No newline at end of file + \ No newline at end of file diff --git a/src/utils/PageParsing/testdata/central-s-c-custom-properties-maven-plugin.html b/src/utils/PageParsing/testdata/central-s-c-custom-properties-maven-plugin.html index d704943..9c63115 100644 --- a/src/utils/PageParsing/testdata/central-s-c-custom-properties-maven-plugin.html +++ b/src/utils/PageParsing/testdata/central-s-c-custom-properties-maven-plugin.html @@ -1,16 +1,16 @@ -Maven Central: net.sf.czsem:custom-properties-maven-plugin:4.0.3
Maven Central Repository

custom-properties-maven-plugin

Used in
Loading...
components
Loading...
Loading...
Loading...
\ No newline at end of file + \ No newline at end of file diff --git a/src/utils/PageParsing/testdata/central-s-c-jakarta-ivt.html b/src/utils/PageParsing/testdata/central-s-c-jakarta-ivt.html index 335bac1..267aa59 100644 --- a/src/utils/PageParsing/testdata/central-s-c-jakarta-ivt.html +++ b/src/utils/PageParsing/testdata/central-s-c-jakarta-ivt.html @@ -1,16 +1,16 @@ -Maven Central: com.ibm.mq:wmq.jakarta.jmsra.ivt:9.3.3.1
Maven Central Repository

wmq.jakarta.jmsra.ivt

Used in
Loading...
components
Loading...
Loading...
Loading...
\ No newline at end of file + \ No newline at end of file diff --git a/src/utils/PageParsing/testdata/central-s-c-log4j-parent.html b/src/utils/PageParsing/testdata/central-s-c-log4j-parent.html index 48deaa2..8024eba 100644 --- a/src/utils/PageParsing/testdata/central-s-c-log4j-parent.html +++ b/src/utils/PageParsing/testdata/central-s-c-log4j-parent.html @@ -1,16 +1,16 @@ -Maven Central: org.apache.logging.log4j:log4j:3.0.0-alpha1
Maven Central Repository

log4j

Used in
Loading...
components
Loading...
Loading...
Loading...
\ No newline at end of file + \ No newline at end of file diff --git a/src/utils/PageParsing/testdata/central-s-c-scalacheck-bundle.html b/src/utils/PageParsing/testdata/central-s-c-scalacheck-bundle.html index f64ea24..d7f8ecb 100644 --- a/src/utils/PageParsing/testdata/central-s-c-scalacheck-bundle.html +++ b/src/utils/PageParsing/testdata/central-s-c-scalacheck-bundle.html @@ -1,16 +1,16 @@ -Maven Central: org.scalatestplus:scalacheck-1-17_sjs1_3:3.2.17.0
Maven Central Repository

scalacheck-1-17_sjs1_3

Used in
Loading...
components
Loading...
Loading...
Loading...
\ No newline at end of file +</project> \ No newline at end of file diff --git a/src/utils/PageParsing/testdata/conanio-libxft-2.3.6.html b/src/utils/PageParsing/testdata/conanio-libxft-2.3.6.html index 2de52bc..6c1e65d 100644 --- a/src/utils/PageParsing/testdata/conanio-libxft-2.3.6.html +++ b/src/utils/PageParsing/testdata/conanio-libxft-2.3.6.html @@ -1,20 +1,2 @@ -libxft - Conan 2.0: C and C++ Open Source Package Manager

libxft/2.3.6

X FreeType library
Recipe info
X11
2024-01-17

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
-libxft/2.3.6

Using libxft

Note

If you are a new Conan user, we recommend reading the how to consume packages tutorial.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
-libxft/2.3.6
-[generators]
-CMakeDeps
-CMakeToolchain
-[layout]
-cmake_layout
from conan import ConanFile
-from conan.tools.cmake import cmake_layout
-
-
-class ExampleRecipe(ConanFile):
-    settings = "os", "compiler", "build_type", "arch"
-    generators = "CMakeDeps", "CMakeToolchain"
-
-    def requirements(self):
-        self.requires("libxft/2.3.6")
-
-    def layout(self):
-        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing


\ No newline at end of file +libxft - Conan 2.0: C and C++ Open Source Package Manager

libxft/2.3.6

X FreeType library
Recipe info
X11
2024-01-17

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
+libxft/2.3.6

Using libxft

Loading ...
Loading...

\ No newline at end of file diff --git a/src/utils/PageParsing/testdata/conanio-libxft-2.3.8.html b/src/utils/PageParsing/testdata/conanio-libxft-2.3.8.html index 60e2638..cefcaac 100644 --- a/src/utils/PageParsing/testdata/conanio-libxft-2.3.8.html +++ b/src/utils/PageParsing/testdata/conanio-libxft-2.3.8.html @@ -1,20 +1,2 @@ -libxft - Conan 2.0: C and C++ Open Source Package Manager

libxft/2.3.8

X FreeType library
Recipe info
X11
2024-01-17

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
-libxft/2.3.8

Using libxft

Note

If you are a new Conan user, we recommend reading the how to consume packages tutorial.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
-libxft/2.3.8
-[generators]
-CMakeDeps
-CMakeToolchain
-[layout]
-cmake_layout
from conan import ConanFile
-from conan.tools.cmake import cmake_layout
-
-
-class ExampleRecipe(ConanFile):
-    settings = "os", "compiler", "build_type", "arch"
-    generators = "CMakeDeps", "CMakeToolchain"
-
-    def requirements(self):
-        self.requires("libxft/2.3.8")
-
-    def layout(self):
-        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing


\ No newline at end of file +libxft - Conan 2.0: C and C++ Open Source Package Manager

libxft/2.3.8

X FreeType library
Recipe info
X11
2024-01-17

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
+libxft/2.3.8

Using libxft

Loading ...
Loading...

\ No newline at end of file diff --git a/src/utils/PageParsing/testdata/conanio-proj-8.2.1.html b/src/utils/PageParsing/testdata/conanio-proj-8.2.1.html index 5ab53ff..ac33bcc 100644 --- a/src/utils/PageParsing/testdata/conanio-proj-8.2.1.html +++ b/src/utils/PageParsing/testdata/conanio-proj-8.2.1.html @@ -1,39 +1,2 @@ -proj - Conan 2.0: C and C++ Open Source Package Manager

proj/8.2.1

Cartographic Projections and Coordinate Transformations Library.
Recipe info
2023-12-04

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
-proj/8.2.1

Using proj

Note

If you are a new Conan user, we recommend reading the how to consume packages tutorial.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
-proj/8.2.1
-[generators]
-CMakeDeps
-CMakeToolchain
-[layout]
-cmake_layout
from conan import ConanFile
-from conan.tools.cmake import cmake_layout
-
-
-class ExampleRecipe(ConanFile):
-    settings = "os", "compiler", "build_type", "arch"
-    generators = "CMakeDeps", "CMakeToolchain"
-
-    def requirements(self):
-        self.requires("proj/8.2.1")
-
-    def layout(self):
-        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): proj
  • CMake target name(s): PROJ::proj
  • projlib => PROJ::proj
    -
  • pkg-config file name(s): proj.pc
  • projlib => proj.pc
    -

A simple use case using the CMake file name and the global target:

# ...
-find_package(proj REQUIRED)
-# ...
-target_link_libraries(YOUR_TARGET PROJ::proj)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the proj homepage listed above:

#include "geodesic.h"
-#include "proj.h"
-#include "proj/common.hpp"
-#include "proj/coordinateoperation.hpp"
-#include "proj/coordinatesystem.hpp"
-#include "proj/crs.hpp"
-#include "proj/datum.hpp"
-#include "proj/io.hpp"
-#include "proj/metadata.hpp"
-#include "proj/nn.hpp"
-#include "proj/util.hpp"
-#include "proj_constants.h"
-#include "proj_experimental.h"
-#include "proj_symbol_rename.h"
-


\ No newline at end of file +proj - Conan 2.0: C and C++ Open Source Package Manager

proj/8.2.1

Cartographic Projections and Coordinate Transformations Library.
Recipe info
2024-04-18

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
+proj/8.2.1

Using proj

Loading ...
Loading...

\ No newline at end of file diff --git a/src/utils/PageParsing/testdata/cran.html b/src/utils/PageParsing/testdata/cran.html index 6a93845..95f98e7 100644 --- a/src/utils/PageParsing/testdata/cran.html +++ b/src/utils/PageParsing/testdata/cran.html @@ -1,7 +1,7 @@ -CRAN - Package oysteR +CRAN: Package oysteR @@ -54,6 +54,10 @@

oysteR: Scans R Projects for Vulnerable Third Party Dependencies

2021-01-10 +DOI: +10.32614/CRAN.package.oysteR + + Author: Jeffry Hesse [aut], Brittany Belle [aut], diff --git a/src/utils/PageParsing/testdata/npm-deprecated.html b/src/utils/PageParsing/testdata/npm-deprecated.html index 202dff0..c9387f4 100644 --- a/src/utils/PageParsing/testdata/npm-deprecated.html +++ b/src/utils/PageParsing/testdata/npm-deprecated.html @@ -3,16 +3,16 @@ - + path-is-absolute - npm - + -

This package has been deprecated

Author message:

This package is no longer relevant as Node.js 0.12 is unmaintained.

path-is-absolute
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/path-is-absolute package

2.0.0 • Public • Published

Deprecated

+

This package has been deprecated

Author message:

This package is no longer relevant as Node.js 0.12 is unmaintained.

path-is-absolute
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/path-is-absolute package

2.0.0 • Public • Published

Deprecated

This package is no longer relevant as Node.js 0.12 is unmaintained.


path-is-absolute Build Status

@@ -32,8 +32,8 @@

License

MIT © Sindre Sorhus

-

Package Sidebar

Install

npm i path-is-absolute

Weekly Downloads

44,463,193

Version

2.0.0

License

MIT

Unpacked Size

3.7 kB

Total Files

4

Last publish

Collaborators

  • sindresorhus
- - +

Package Sidebar

Install

npm i path-is-absolute

Weekly Downloads

43,656,229

Version

2.0.0

License

MIT

Unpacked Size

3.7 kB

Total Files

4

Last publish

Collaborators

  • sindresorhus
+ + diff --git a/src/utils/PageParsing/testdata/npm.html b/src/utils/PageParsing/testdata/npm.html index 690d98d..8ac9d95 100644 --- a/src/utils/PageParsing/testdata/npm.html +++ b/src/utils/PageParsing/testdata/npm.html @@ -3,17 +3,17 @@ - + @sonatype/react-shared-components - npm - + -

@sonatype/react-shared-components
TypeScript icon, indicating that this package has built-in type declarations

6.0.1 • Public • Published
This package does not have a README. Add a README to your package so that users know how to get started.

Readme

Keywords

none

Package Sidebar

Install

npm i @sonatype/react-shared-components@6.0.1

Version

6.0.1

License

EPL-2.0

Unpacked Size

1.31 MB

Total Files

705

Last publish

Collaborators

  • sonatype-expedition-team
  • sonatype-admin
  • rpokorny
  • acockrell37
  • ossindex
- - +

@sonatype/react-shared-components
TypeScript icon, indicating that this package has built-in type declarations

6.0.1 • Public • Published
This package does not have a README. Add a README to your package so that users know how to get started.

Readme

Keywords

none

Package Sidebar

Install

npm i @sonatype/react-shared-components@6.0.1

Version

6.0.1

License

EPL-2.0

Unpacked Size

1.31 MB

Total Files

705

Last publish

Collaborators

  • sonatype-expedition-team
  • sonatype-admin
  • rpokorny
  • acockrell37
+ + diff --git a/src/utils/PageParsing/testdata/npm2.html b/src/utils/PageParsing/testdata/npm2.html index c28af9a..64b7153 100644 --- a/src/utils/PageParsing/testdata/npm2.html +++ b/src/utils/PageParsing/testdata/npm2.html @@ -3,7 +3,7 @@ - + @sonatype/policy-demo - npm @@ -12,10 +12,10 @@ -

@sonatype/policy-demo

2.3.0 • Public • Published

NPM Policy Demo

+

@sonatype/policy-demo

2.3.0 • Public • Published

NPM Policy Demo

A simple demo project that Sonatype employees can use to demo policy (and possibly other) features for NPM. It does not do anything of use and should not be used in production by anyone ever.

-

Readme

Keywords

Package Sidebar

Install

npm i @sonatype/policy-demo

Weekly Downloads

36

Version

2.3.0

License

EPL-2.0

Unpacked Size

1.51 kB

Total Files

4

Last publish

Collaborators

  • acockrell37
  • ossindex
  • rpokorny
  • sonatype-admin
  • sonatype-expedition-team
- - +

Readme

Keywords

Package Sidebar

Install

npm i @sonatype/policy-demo

Weekly Downloads

38

Version

2.3.0

License

EPL-2.0

Unpacked Size

1.51 kB

Total Files

4

Last publish

Collaborators

  • sonatype-expedition-team
  • sonatype-admin
  • rpokorny
  • acockrell37
+ + diff --git a/src/utils/PageParsing/testdata/nuget-Newtonsoft.JSON-v13.0.1.html b/src/utils/PageParsing/testdata/nuget-Newtonsoft.JSON-v13.0.1.html index 3684e49..0c9275c 100644 --- a/src/utils/PageParsing/testdata/nuget-Newtonsoft.JSON-v13.0.1.html +++ b/src/utils/PageParsing/testdata/nuget-Newtonsoft.JSON-v13.0.1.html @@ -31,8 +31,29 @@ - + + + + + @@ -47,7 +68,7 @@ - + @@ -71,11 +92,9 @@ - - + +