Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert output of http using CLJS Bean #989

Merged
merged 1 commit into from
Jul 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ All notable changes to this project will be documented in this file. This change
- Optimize `planck.io/copy` for input stream to writer case
- Promote `planck.socket.alpha` to `planck.socket` ([#956](https://github.com/planck-repl/planck/issues/956))
- Syntax-highlight `#inst` and `#uuid` ([#975](https://github.com/planck-repl/planck/issues/975))
- Use CLJS Bean to convert output of http ([#988](https://github.com/planck-repl/planck/issues/988))

### Deprecated
- Deprecate `planck.socket.alpha` namespace ([#956](https://github.com/planck-repl/planck/issues/956))
Expand Down
3 changes: 2 additions & 1 deletion planck-cljs/src/planck/http.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
(:require
[cljs.spec.alpha :as s]
[clojure.string :as string]
[planck.from.cljs-bean.core :refer [->clj]]
[planck.repl :as repl]))

(def ^:private content-types {:json "application/json"
Expand Down Expand Up @@ -153,7 +154,7 @@
(-> request
clj->js
client
(js->clj :keywordize-keys true))))
->clj)))

(defn- do-request [client]
(fn [opts]
Expand Down