Skip to content

Commit

Permalink
Merge pull request #17 from rafaeldelboni/bump/upgrade-bouncy-castle
Browse files Browse the repository at this point in the history
bump: bouncycastle/bcprov-jdk18on
  • Loading branch information
rafaeldelboni authored Jan 20, 2024
2 parents b12ebd2 + 05c7f1b commit 4ce9dcb
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .clj-kondo/com.github.seancorfield/next.jdbc/config.edn
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{:hooks
{:analyze-call
{next.jdbc/with-transaction
hooks.com.github.seancorfield.next-jdbc/with-transaction}}
:lint-as {next.jdbc/on-connection clojure.core/with-open}}
hooks.com.github.seancorfield.next-jdbc/with-transaction
next.jdbc/with-transaction+options
hooks.com.github.seancorfield.next-jdbc/with-transaction+options}}
:lint-as {next.jdbc/on-connection clojure.core/with-open
next.jdbc/on-connection+options clojure.core/with-open}}
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,19 @@
opts
body))]
{:node new-node})))

(defn with-transaction+options
"Expands (with-transaction+options [tx expr opts] body)
to (let [tx expr] opts body) per clj-kondo examples."
[{:keys [:node]}]
(let [[binding-vec & body] (rest (:children node))
[sym val opts] (:children binding-vec)]
(when-not (and sym val)
(throw (ex-info "No sym and val provided" {})))
(let [new-node (api/list-node
(list*
(api/token-node 'let)
(api/vector-node [sym val])
opts
body))]
{:node new-node})))
2 changes: 1 addition & 1 deletion deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
metosin/reitit-pedestal {:mvn/version "0.6.0"}
metosin/reitit-swagger {:mvn/version "0.6.0"}
metosin/reitit-swagger-ui {:mvn/version "0.6.0"}
org.bouncycastle/bcprov-jdk15on {:mvn/version "1.70"}
org.bouncycastle/bcprov-jdk18on {:mvn/version "1.77"}
org.postgresql/postgresql {:mvn/version "42.7.1"}
prismatic/schema-generators {:mvn/version "0.1.5"}
selmer/selmer {:mvn/version "1.12.59"}}
Expand Down

0 comments on commit 4ce9dcb

Please sign in to comment.