Repository navigation
Commit b81e92c
authored
fix: strip trailing slashes from COREPACK_NPM_REGISTRY (#871)
A `COREPACK_NPM_REGISTRY` value with a trailing slash produced request
URLs with a double slash (e.g. `https://registry.npmjs.org//pnpm`).
registry.npmjs.org tolerates this, but some registries such as
registry.npmmirror.com reject it with a 404. Normalize the registry URL
by removing trailing slashes before building request URLs.
Fixes: #711
Signed-off-by: Paul Bouchon <mail@bitpshr.net>1 parent f0f4ee1 commit b81e92c
2 files changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
38 | 47 | | |
39 | 48 | | |
40 | 49 | | |
| |||
0 commit comments