chore: update jq to v0.2.0
This commit is contained in:
parent
c7826db3f7
commit
82da4d82be
|
@ -787,7 +787,7 @@ find_s(S, P, Dir) ->
|
||||||
jq(FilterProgram, JSONBin) when
|
jq(FilterProgram, JSONBin) when
|
||||||
is_binary(FilterProgram), is_binary(JSONBin)
|
is_binary(FilterProgram), is_binary(JSONBin)
|
||||||
->
|
->
|
||||||
case jq:parse(FilterProgram, JSONBin) of
|
case jq:process_json(FilterProgram, JSONBin) of
|
||||||
{ok, Result} ->
|
{ok, Result} ->
|
||||||
[json_decode(JSONString) || JSONString <- Result];
|
[json_decode(JSONString) || JSONString <- Result];
|
||||||
{error, ErrorReason} ->
|
{error, ErrorReason} ->
|
||||||
|
|
2
mix.exs
2
mix.exs
|
@ -611,7 +611,7 @@ defmodule EMQXUmbrella.MixProject do
|
||||||
|
|
||||||
defp jq_dep() do
|
defp jq_dep() do
|
||||||
if enable_jq?(),
|
if enable_jq?(),
|
||||||
do: [{:jq, github: "emqx/jq", tag: "v0.1.0", override: true}],
|
do: [{:jq, github: "emqx/jq", tag: "v0.2.0", override: true}],
|
||||||
else: []
|
else: []
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,7 @@ quicer() ->
|
||||||
{quicer, {git, "https://github.com/emqx/quic.git", {tag, "0.0.9"}}}.
|
{quicer, {git, "https://github.com/emqx/quic.git", {tag, "0.0.9"}}}.
|
||||||
|
|
||||||
jq() ->
|
jq() ->
|
||||||
{jq, {git, "https://github.com/emqx/jq", {tag, "v0.1.0"}}}.
|
{jq, {git, "https://github.com/emqx/jq", {tag, "v0.2.0"}}}.
|
||||||
|
|
||||||
deps(Config) ->
|
deps(Config) ->
|
||||||
{deps, OldDeps} = lists:keyfind(deps, 1, Config),
|
{deps, OldDeps} = lists:keyfind(deps, 1, Config),
|
||||||
|
|
Loading…
Reference in New Issue