⬆️ Upgrade to beicon2 (part1)

This commit is contained in:
Andrey Antukh 2023-12-21 20:02:49 +01:00 committed by Alonso Torres
parent ecee15af5b
commit 96f5a33f5f
151 changed files with 482 additions and 433 deletions

View file

@ -9,7 +9,7 @@
(:require
["jszip" :as zip]
[app.util.http :as http]
[beicon.core :as rx]
[beicon.v2.core :as rx]
[promesa.core :as p]))
(defn compress-files
@ -29,7 +29,7 @@
:response-type :blob
:method :get})
(rx/map :body)
(rx/flat-map zip/loadAsync)))
(rx/merge-map zip/loadAsync)))
(defn- process-file
[entry path type]
@ -65,4 +65,4 @@
(.forEach zip get-file)
(->> (rx/from (p/all @promises))
(rx/flat-map identity))))
(rx/merge-map identity))))