(TK-464) Update to bidi 2.1.3
This commit updates bidi to 2.1.3. Due to a schema change in bidi that
no longer allows empty lists, this commit also updates the recursion in
`update-route-info` to no longer recurse when the processing the last
element in the list.
Maggie Dreyer
5 years ago
5 | 5 |
|
6 | 6 |
:min-lein-version "2.7.1"
|
7 | 7 |
|
8 | |
:parent-project {:coords [puppetlabs/clj-parent "0.4.3"]
|
|
8 |
:parent-project {:coords [puppetlabs/clj-parent "1.6.0"]
|
9 | 9 |
:inherit [:managed-dependencies]}
|
10 | 10 |
|
11 | 11 |
:dependencies [[org.clojure/clojure]
|
12 | 12 |
|
13 | |
[bidi "2.0.12"]
|
|
13 |
[bidi "2.1.3"]
|
14 | 14 |
[compojure]
|
15 | 15 |
[prismatic/schema]
|
16 | 16 |
[puppetlabs/kitchensink]]
|
166 | 166 |
(update-in route-info [:path] conj "!")
|
167 | 167 |
|
168 | 168 |
(sequential? pattern)
|
169 | |
(if-let [next (first pattern)]
|
170 | |
(update-route-info*
|
171 | |
(update-in route-info [:path] conj next)
|
172 | |
(rest pattern))
|
173 | |
route-info)
|
|
169 |
(update-in route-info [:path] into pattern)
|
174 | 170 |
|
175 | 171 |
:else
|
176 | 172 |
(update-in route-info [:path] conj pattern)))
|