Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

chore(dependencies): use omni-fetch for builtin proxy support #1

Merged
merged 2 commits into from
Mar 13, 2016
Merged

chore(dependencies): use omni-fetch for builtin proxy support #1

merged 2 commits into from
Mar 13, 2016

Conversation

marionebl
Copy link
Contributor

  • Add omni-fetch as dependency
  • Add stub typings for omni-fetch
  • Use default export of omni-fetch instead of magic global
  • Adds support for HTTP_PROXY, HTTPS_PROXY env variables

@KnisterPeter
Copy link
Owner

@marionebl For some reason the test fails stating a missing default export in omni-fetch

*   Add omni-fetch as dependency
*   Add stub typings for omni-fetch
*   Use default export of omni-fetch instead of magic global
*   Adds support for HTTP_PROXY, HTTPS_PROXY env variables
@marionebl
Copy link
Contributor Author

@KnisterPeter woops, my bad. See marionebl/omni-fetch@c24cb7b for reference

@@ -0,0 +1,3 @@
declare module 'omni-fetch' {
export default fetch;
Copy link
Owner

Choose a reason for hiding this comment

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

Please add the fetch method signature here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That boils down to moving the contents of isomorphic-fetch, right? do you want to keep the isomorphic-fetch typings as they are or should I delete them?

Copy link
Owner

Choose a reason for hiding this comment

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

Since pretend isn't using isomorphic fetch directly anymore with this PR please remove isomorphic fetch and add typings for omni-fetch.

KnisterPeter added a commit that referenced this pull request Mar 13, 2016
chore(dependencies): use omni-fetch for builtin proxy support
@KnisterPeter KnisterPeter merged commit 4693d06 into KnisterPeter:master Mar 13, 2016
@marionebl marionebl deleted the chore/use-omni-fetch branch March 13, 2016 22:42
@marionebl marionebl restored the chore/use-omni-fetch branch March 13, 2016 22:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants