Skip to content

Commit

Permalink
tools: fix simdjson updater
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Dec 5, 2023
1 parent 1e31a01 commit f20215f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/dep_updaters/update-simdjson.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ DEPS_DIR="$BASE_DIR/deps"
[ -z "$NODE" ] && NODE="$BASE_DIR/out/Release/node"
[ -x "$NODE" ] || NODE=$(command -v node)

# shellcheck disable=SC1091
. "$BASE_DIR/tools/dep_updaters/utils.sh"

NEW_VERSION="$("$NODE" --input-type=module <<'EOF'
const res = await fetch('https://api.github.com/repos/simdjson/simdjson/releases/latest');
if (!res.ok) throw new Error(`FetchError: ${res.status} ${res.statusText}`, { cause: res });
Expand Down

0 comments on commit f20215f

Please sign in to comment.