Add text ranges support in plugins

This commit is contained in:
alonso.torres 2024-06-13 12:29:17 +02:00
parent 018464aedf
commit 2da5dcb619
5 changed files with 285 additions and 14 deletions

View file

@ -177,9 +177,11 @@
(defn array-to-js
[value]
(.freeze
js/Object
(apply array (->> value (map to-js)))))
(if (coll? value)
(.freeze
js/Object
(apply array (->> value (map to-js))))
value))
(defn result-p
"Creates a pair of atom+promise. The promise will be resolved when the atom gets a value.