Open gildas opened 7 years ago
Thanks for writing this up! I can't make any promises, but I'll send this feature request along to the team.
Thanks @greg-db If you want I am happy to work on a PR.
We always appreciate pull requests! Thanks!
Ok, I'll see what I can do within the next few days.
Here you go @greg-db, PR #151.
Thanks Gildas!
No problem. Though, it seems like the travis ci job keeps failing.
> eslint src --ignore-path src/types.js
/home/travis/build/dropbox/dropbox-sdk-js/node_modules/superagent-proxy/node_modules/proxy-agent/node_modules/pac-proxy-agent/node_modules/socks-proxy-agent/node_modules/agent-base/index.js:8
const inherits = require('util').inherits;
^^^^^
SyntaxError: Use of const in strict mode.
I am afraid the eslint config is too strict for the external superagent-proxy module.
Thanks, we'll take a look.
thanks a lot!
I should be around for an hour more or so (I am in Japan, so it is late here)
Hey @gildas we should be able to close this when I make a new release in a few hours. Let me know if you disagree.
I would be interested in this feature. Just not sure what about the PR broke things.
@kevindice a possible reason is that we moved form using superagent to fetch. Can you try https://www.npmjs.com/package/fetch-with-proxy and let me know if that works for your usecase? If so, I'll add a section about proxies in the docs.
Since you guys use superagent for your http requests, why not adding proxy support?
I have customers that allow outbound traffic only through their proxy. Which means, they cannot use Dropbox with my code at the moment.
Basically, just use superagent-proxy like this:
The
proxy
parameter should be configured in the Dropbox constructor.Thoughts?