fix: generate correct registry URL#413
fix: generate correct registry URL#413juanpicado merged 2 commits intoverdaccio:masterfrom DanielRuf:fix/registry-url
Conversation
|
Kudos, SonarCloud Quality Gate passed!
|
Codecov Report
@@ Coverage Diff @@
## master #413 +/- ##
=======================================
Coverage 88.38% 88.38%
=======================================
Files 137 137
Lines 956 956
Branches 211 197 -14
=======================================
Hits 845 845
- Misses 98 99 +1
+ Partials 13 12 -1
|
|
Please run |
| test('getRegistryURL() - should not change when location change', () => { | ||
| expect(getRegistryURL()).toBe('http://localhost'); | ||
| history.pushState({}, 'page title', '/-/web/detail'); | ||
| expect(getRegistryURL()).toBe('http://localhost/-/web/detail'); |
juanpicado
left a comment
There was a problem hiding this comment.
Thanks @DanielRuf now looks much better.
|
@juanpicado keep in mind that we might need the fix from verdaccio itself too (regarding verdaccio/verdaccio#1647) |
|
@DanielRuf do you mean update here the verdaccio dep right? |
|
Exactly. But I see now that this is not released. It's just covering specific use cases. https://github.com/verdaccio/verdaccio/commits/master So I guess it is safe to ship the current changes without updating the deps. |
|
It will be on Friday. I just need to close one PR and we are done :) |
Type:
bug
The following has been addressed in the PR:
Description:
This PR correctly transforms
/in the devmode to a full URL like in production and generates the correct registry URL.Important: update
combineBaseUrlinnode_modules/verdaccio/build/lib/utils.jsto the result of verdaccio/verdaccio#1647Resolves verdaccio/verdaccio#1648