Skip to content

Commit 521d310

Browse files
committed
update based on new firebase api
1 parent b172a16 commit 521d310

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

project.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
(defproject alekcz/fire "0.5.1-SNAPSHOT"
1+
(defproject alekcz/fire "0.6.0-SNAPSHOT"
22
:description "Firebase from Clojure. Basically Charmander 2.0"
33
:url "https://github.com/alekcz/fire"
44
:license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
55
:url "https://www.eclipse.org/legal/epl-2.0/"}
66
:dependencies [ [org.clojure/clojure "1.11.3"]
77
[org.clojure/core.async "1.6.681"]
8-
[http-kit "2.8.0"]
8+
[http-kit "2.7.0"]
99
[cheshire "5.13.0"]
1010
[environ "1.2.0"]
1111
[stylefruits/gniazdo "1.2.1"]

src/fire/storage.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
(if (< (utils/now) (:expiry auth))
2525
(:token auth)
2626
(-> auth :env auth/create-token :token)))
27-
bucket (str (or (:project-id options) (:project-id auth)) ".appspot.com")
27+
bucket (or (:bucket options)
28+
(str (or (:project-id options) (:project-id auth)) ".firebasestorage.app"))
2829
url (str domain "/" bucket url')
2930
request-options (reduce utils/recursive-merge
3031
[{:method method}

0 commit comments

Comments
 (0)