From 73748f57e75d6bcc0719d5586c7a51df37eb0b53 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 23 Aug 2023 21:41:09 +0000 Subject: [PATCH 1/2] Bump b58 from 0.1.1 to 1.0.3 Bumps [b58](https://github.com/dwyl/base58) from 0.1.1 to 1.0.3. - [Commits](https://github.com/dwyl/base58/compare/0.1.1...v1.0.3) --- updated-dependencies: - dependency-name: b58 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- mix.exs | 2 +- mix.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mix.exs b/mix.exs index 1dc1ac7..a836e78 100644 --- a/mix.exs +++ b/mix.exs @@ -32,7 +32,7 @@ defmodule Cid.MixProject do [ {:ex_multihash, "~> 2.0"}, {:jason, "~> 1.1"}, - {:b58, "~> 0.1.1"}, + {:b58, "~> 1.0.3"}, {:excoveralls, "~> 0.10", only: :test}, {:stream_data, "~> 0.6.0", only: :test}, {:ex_doc, "~> 0.30.3", only: :dev} diff --git a/mix.lock b/mix.lock index d251a01..5252d78 100644 --- a/mix.lock +++ b/mix.lock @@ -1,5 +1,5 @@ %{ - "b58": {:hex, :b58, "0.1.1", "950563b90ad95be214143aa807d16c98d2ac7bab915097cb1461c936128c6b90", [:mix], [], "hexpm", "73336019a6a9512cd53f01fcef69d1c71428b546eb66bbd062f4fcc11b23cd9d"}, + "b58": {:hex, :b58, "1.0.3", "d300d6ae5a3de956a54b9e8220e924e4fee1a349de983df2340fe61e0e464202", [:mix], [], "hexpm", "af62a98a8661fd89978cf3a3a4b5b2ebe82209de6ac6164f0b112e36af72fc59"}, "earmark": {:hex, :earmark, "1.4.39", "acdb2f02c536471029dbcc509fbd6b94b89f40ad7729fb3f68f4b6944843f01d", [:mix], [{:earmark_parser, "~> 1.4.33", [hex: :earmark_parser, repo: "hexpm", optional: false]}], "hexpm", "156c9d8ec3cbeccdbf26216d8247bdeeacc8c76b4d9eee7554be2f1b623ea440"}, "earmark_parser": {:hex, :earmark_parser, "1.4.33", "3c3fd9673bb5dcc9edc28dd90f50c87ce506d1f71b70e3de69aa8154bc695d44", [:mix], [], "hexpm", "2d526833729b59b9fdb85785078697c72ac5e5066350663e5be6a1182da61b8f"}, "ex_doc": {:hex, :ex_doc, "0.30.5", "aa6da96a5c23389d7dc7c381eba862710e108cee9cfdc629b7ec021313900e9e", [:mix], [{:earmark_parser, "~> 1.4.31", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1", [hex: :makeup_erlang, repo: "hexpm", optional: false]}], "hexpm", "88a1e115dcb91cefeef7e22df4a6ebbe4634fbf98b38adcbc25c9607d6d9d8e6"}, From 7c3e41bc9750ffbc31ae6b64f3f50ccfa6af928c Mon Sep 17 00:00:00 2001 From: nelsonic Date: Wed, 23 Aug 2023 22:48:50 +0100 Subject: [PATCH 2/2] udpdate invocation of Base58.encode #36 --- lib/cid.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cid.ex b/lib/cid.ex index ed7625d..d17263f 100644 --- a/lib/cid.ex +++ b/lib/cid.ex @@ -123,7 +123,7 @@ defmodule Cid do # Takes a binary, a base and return the encoded binary in the base. defp encode_with_base(binary, base) do case base do - :base58 -> {:ok, Base58Encode.encode(binary)} + :base58 -> {:ok, Base58.encode(binary)} :base32 -> {:ok, Base.encode32(binary, case: :lower, padding: false)}