Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get service url middleware #43

Merged
merged 3 commits into from Jan 2, 2018
Merged

Get service url middleware #43

merged 3 commits into from Jan 2, 2018

Conversation

blittle
Copy link
Contributor

@blittle blittle commented Jan 2, 2018

Change getServiceUrl to respect middleware

src/hooks.js Outdated
@@ -49,6 +49,7 @@ export function locate(load) {
stepMiddleware(newMiddleware, url, function(newUrl, newMiddleware) {
middlewareMap[id] = newMiddleware;
middlewareTracker = id;
serviceMap[service] = newUrl;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This happens in the resolve function, which every spot down below calls

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The resolve function is asynchronous and executed after middleware

Copy link
Contributor

@joeldenning joeldenning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚶 thanks!

@codecov-io
Copy link

codecov-io commented Jan 2, 2018

Codecov Report

Merging #43 into master will decrease coverage by 0.02%.
The diff coverage is 97.01%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #43      +/-   ##
==========================================
- Coverage      98%   97.97%   -0.03%     
==========================================
  Files           6        6              
  Lines         300      297       -3     
  Branches       56       56              
==========================================
- Hits          294      291       -3     
  Misses          6        6
Impacted Files Coverage Δ
src/hooks.js 100% <100%> (ø) ⬆️
src/utils.js 100% <100%> (ø) ⬆️
src/sofe.js 100% <100%> (ø) ⬆️
src/middleware.js 100% <100%> (ø) ⬆️
src/registries.js 84.37% <80%> (ø) ⬆️
src/manifest.js 98.59% <98.3%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5b898ca...2a2b345. Read the comment docs.

@blittle blittle merged commit d73c932 into master Jan 2, 2018
@blittle blittle deleted the getServiceUrlMiddleware branch January 2, 2018 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants