Skip to content

Commit

Permalink
Fix decoding of package versions, the elm package site switched to ha…
Browse files Browse the repository at this point in the history
…ving only the latest versions in a 'version' param (#130)
  • Loading branch information
antew authored Apr 12, 2020
1 parent 45e789d commit 045212b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/elm/platform/parser.ex
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ defmodule Elm.Platform.Parser do
Decode.succeed(Function.curry(&%Searchable{name: &1, summary: &2, versions: &3}))
|> Decode.and_map(Decode.field("name", name))
|> Decode.and_map(Decode.field("summary", Decode.string()))
|> Decode.and_map(Decode.field("versions", Decode.list(version)))
|> Decode.and_map(Decode.map(Decode.field("version", version), fn val -> [val] end))

Decode.list(searchable)
end
Expand Down

0 comments on commit 045212b

Please sign in to comment.