Commit 47dd3d6
authored
[engsys] Fix min-max version script error due to npm breaking change (Azure#21948)
Previously `npm view <packageName> versions --json` returns an array even when
the result only contains one version. In latest NPM version in NodeJS v16 the
result is now a string, which isn't expected by `semver` APIs.
This PR wraps the single string result with an array.1 parent 83e13d8 commit 47dd3d6
1 file changed
+8
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
189 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
190 | 194 | | |
191 | 195 | | |
192 | 196 | | |
193 | | - | |
| 197 | + | |
194 | 198 | | |
195 | 199 | | |
196 | 200 | | |
| |||
207 | 211 | | |
208 | 212 | | |
209 | 213 | | |
210 | | - | |
| 214 | + | |
211 | 215 | | |
212 | 216 | | |
213 | 217 | | |
| |||
0 commit comments