Skip to content

Commit

Permalink
Merge pull request mvnpm#5121 from phillip-kruger/main
Browse files Browse the repository at this point in the history
Add search screen
  • Loading branch information
phillip-kruger authored Mar 6, 2024
2 parents 1879ec3 + 8bcf24b commit 852a7d6
Show file tree
Hide file tree
Showing 6 changed files with 203 additions and 42 deletions.
2 changes: 1 addition & 1 deletion .locker/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>io.mvnpm</groupId>
<version>3.0.25-SNAPSHOT</version>
<version>3.0.26-SNAPSHOT</version>
<artifactId>mvnpm-locker</artifactId>
<packaging>pom</packaging>

Expand Down
23 changes: 22 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.mvnpm</groupId>
<artifactId>mvnpm</artifactId>
<version>3.0.25-SNAPSHOT</version>
<version>3.0.26-SNAPSHOT</version>
<name>mvnpm</name>
<description>Maven on NPM</description>
<url>https://mvnpm.org/</url>
Expand Down Expand Up @@ -184,6 +184,27 @@
<artifactId>codeblock</artifactId>
<version>1.0.6</version>
</dependency>
<!-- To render Markdown -->
<dependency>
<groupId>org.mvnpm</groupId>
<artifactId>marked</artifactId>
<version>12.0.0</version>
<scope>runtime</scope>
</dependency>
<!-- Cards for display -->
<dependency>
<groupId>org.mvnpm.at.quarkus-webcomponents</groupId>
<artifactId>card</artifactId>
<version>1.0.0</version>
<scope>runtime</scope>
</dependency>
<!-- Badges for display -->
<dependency>
<groupId>org.mvnpm.at.quarkus-webcomponents</groupId>
<artifactId>badge</artifactId>
<version>1.0.0</version>
<scope>runtime</scope>
</dependency>
<!-- Testing -->
<dependency>
<groupId>io.quarkus</groupId>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/mvnpm/file/FileUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public static boolean createAsc(Path localFilePath, boolean force) {
try {
Process process = Runtime.getRuntime().exec(GPG_COMMAND + localFilePath.toString());
// Set a timeout of 10 seconds
long timeout = 10;
long timeout = 20;
boolean processFinished = process.waitFor(timeout, TimeUnit.SECONDS);

if (!processFinished) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/mvnpm/npm/NpmRegistryFacade.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public io.mvnpm.npm.model.Package getPackage(String project, String version) {
public SearchResults search(String term, int page) {
if (page < 0)
page = 1;
Response response = npmRegistryClient.search(term, ITEMS_PER_PAGE, page - 1, 1.0, 0.0, 0.0);
Response response = npmRegistryClient.search(term, ITEMS_PER_PAGE, page - 1, 0.0, 0.0, 1.0);
if (response.getStatus() < 300) {
return response.readEntity(SearchResults.class);
} else {
Expand Down
Loading

0 comments on commit 852a7d6

Please sign in to comment.