From 706e3067a66bfba0bf45b0b1afb05a2aaf855dd8 Mon Sep 17 00:00:00 2001 From: Seray Uzgur Date: Mon, 16 Mar 2020 17:39:07 +0300 Subject: [PATCH] inkwell: "No versions found" #73 --- sample/Cargo.toml | 3 ++- src/toml/listener.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sample/Cargo.toml b/sample/Cargo.toml index 17929e3..e62ee2d 100644 --- a/sample/Cargo.toml +++ b/sample/Cargo.toml @@ -25,7 +25,8 @@ log = "0.4" clippy = { version = "0.0.302", optional = true} cookie_rs = {package = "cookie", version = "0.10.1"} emoji-clock = { version= "0.1.0", path = "../lib"} - +pin-utils = "0.1.0-alpha.4" +inkwell="0.0.0" [dependencies.clap] version = "3.0.0" diff --git a/src/toml/listener.ts b/src/toml/listener.ts index b247063..1438230 100644 --- a/src/toml/listener.ts +++ b/src/toml/listener.ts @@ -38,7 +38,7 @@ function fetchCrateVersions(dependencies: Item[], shouldListPreRels: boolean, gi versions: json.versions .reduce((result: any[], item: any) => { const isPreRelease = !shouldListPreRels && item.num.indexOf("-") !== -1; - if (!item.yanked && !isPreRelease && item.num !== "0.0.0") { + if (!item.yanked && !isPreRelease ) { result.push(item.num); } return result;