packages feed

tesla 0.5.2.0 → 0.5.2.1

raw patch · 2 files changed

+4/−5 lines, 2 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Tesla.Car: _Closed :: forall a_avrn. Prism' (OpenState a_avrn) a_avrn
+ Tesla.Car: _Closed :: forall a_avpY. Prism' (OpenState a_avpY) a_avpY
- Tesla.Car: _Open :: forall a_avrn. Prism' (OpenState a_avrn) a_avrn
+ Tesla.Car: _Open :: forall a_avpY. Prism' (OpenState a_avpY) a_avpY

Files

src/Tesla.hs view
@@ -151,14 +151,13 @@  -- | Refresh authentication credentials using a refresh token. refreshAuth :: AuthInfo -> AuthResponse -> IO AuthResponse-refreshAuth ai AuthResponse{..} = do-  ar <- jpostWith jOpts authRefreshURL (encode $ Object (mempty+refreshAuth _ AuthResponse{..} = do+  jpostWith jOpts authRefreshURL (encode $ Object (mempty                                                          & at "grant_type" ?~ "refresh_token"                                                          & at "client_id" ?~ "ownerapi"                                                          & at "refresh_token" ?~ String (T.pack _refresh_token)                                                          & at "scope" ?~ "openid email offline_access"                                                         ))-  translateCreds ai ar  jOpts :: Options jOpts = aOpts & header "content-type" .~ ["application/json"]
tesla.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: 070dd37ca0154e649c325dc8c76ca9eb8cbd4d584a8d67acdf7fa1e38937a2f2+-- hash: 2bd36802a7822687aeb0c3da485dcc9474c7d806ea6e6eeeca899b09bad7af39  name:           tesla-version:        0.5.2.0+version:        0.5.2.1 synopsis:       Tesla API client. description:    Please see the README on GitHub at <https://github.com/dustin/tesla#readme> category:       Web