Skip to content

Commit

Permalink
[nop] Prefer ajax-call to ajax-lite
Browse files Browse the repository at this point in the history
  • Loading branch information
ptaoussanis committed Oct 21, 2024
1 parent f325540 commit 44d223f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/taoensso/sente.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@

;;;; Client API

#?(:cljs (def ajax-lite "Alias of `taoensso.encore/ajax-lite`" enc/ajax-lite))
#?(:cljs (def ajax-call "Alias of `taoensso.encore/ajax-call`" enc/ajax-call))

(defprotocol IChSocket
(-chsk-connect! [chsk])
Expand Down Expand Up @@ -1676,7 +1676,7 @@

;; TODO Buffer before sending (but honor `:flush?`)
(let [csrf-token-str (get-client-csrf-token-str :dynamic (:csrf-token @state_))]
(ajax-lite url
(ajax-call url
(merge ajax-opts
{:method :post
:timeout-ms (or ?timeout-ms (:timeout-ms ajax-opts)
Expand Down Expand Up @@ -1739,7 +1739,7 @@
(do retry-count*)))))]

(reset! curr-xhr_
(ajax-lite url
(ajax-call url
(merge ajax-opts
{:method :get ; :timeout-ms timeout-ms
:timeout-ms (or (:timeout-ms ajax-opts)
Expand Down Expand Up @@ -1907,7 +1907,7 @@
:headers ; Map of additional headers to include in the initiating request
; (currently only for Java clients).
:packer ; :edn (default), or an IPacker implementation.
:ajax-opts ; Base opts map provided to `taoensso.encore/ajax-lite`, see
:ajax-opts ; Base opts map provided to `taoensso.encore/ajax-call`, see
; relevant docstring for more info.
:wrap-recv-evs? ; Should events from server be wrapped in [:chsk/recv _]?
; Default false for Sente >= v1.18, true otherwise.
Expand Down Expand Up @@ -2178,7 +2178,7 @@

(def ^:deprecated set-logging-level! "DEPRECATED. Please use `timbre/set-level!` instead" timbre/set-level!)

#?(:cljs (def ^:deprecated ajax-call "DEPRECATED: Please use `ajax-lite` instead" enc/ajax-lite))
#?(:cljs (def ^:deprecated ajax-lite "DEPRECATED: Please use `ajax-call` instead" enc/ajax-call))
#?(:cljs
(def ^:deprecated default-chsk-url-fn "DEPRECATED"
(fn [path {:as location :keys [protocol host pathname]} websocket?]
Expand Down

0 comments on commit 44d223f

Please sign in to comment.