   (first
     (filter
       (fn [res]
-        (re-find #"(\/google-closure-library-0.0*|\/google-closure-library\/)" (.getPath res)))
+        (re-find #"(\/google-closure-library-0.0*|\/google-closure-library\/)" (.getPath ^URL res)))
       (enumeration-seq (.getResources (.getContextClassLoader (Thread/currentThread)) path)))))
 
 (defn goog-dependencies*

If no ClassLoader is provided, RT/baseLoader is assumed."
  ([] (all-classpath-urls (clojure.lang.RT/baseLoader)))
  ([cl]
     (->> (iterate #(.getParent %) cl)
       (take-while identity)
       reverse
       (filter (partial instance? java.net.URLClassLoader))
       (mapcat #(.getURLs %))
       distinct)))

(defn jar-entry-names* [jar-path]
  (with-open [z (java.util.zip.ZipFile. jar-path)]
    (doall (map #(.getName %) (enumeration-seq (.entries z))))))

(def jar-entry-names (memoize jar-entry-names*))


(ns cljs.js-deps
  (:require [clojure.java.io :as io]
            [clojure.string :as string])
  (:import java.io.File
           java.net.URL
           java.net.URLClassLoader
           java.util.zip.ZipFile
           java.util.zip.ZipEntry))

; taken from pomegranate/dynapath
; https://github.com/tobias/dynapath/blob/master/src/dynapath/util.clj
