Closed agius closed 6 years ago
@agius Thanks for spinning this PR up! The tests look 👍 , and I just added a couple clarifying comments.
@GretaCB thanks for the review! I've incorporated y'all's feedback. QQ: should I bump the package version in this PR, or merge and make a separate bump PR? Nothing backwards-breaking, so this'd prob be a patch or minor release?
@GretaCB / @flippmoke - ping for re-review? also, per above, should I bump package version here, or separate PR? Thanks!
Based on semver docs, I'd say minor bump since this PR is adding functionality. I'm also trying to figure out exactly which repos use this as a dep, just so we can do a bit more upstream testing. ...I'll be back
I installed this branch into tilelive-overlay
, and ran the tests successfully 👍 .
@GretaCB thanks for the follow-up! Bumped the version - good to merge & release?
Currently, there is no way to customize the options used for fetching url-based image markers. This can be a problem if a parent library or application wants to set a longer or shorter timeout, specify a proxy server, or other special use cases. This PR allows setting a custom
request()
client, where these options can be specified usingrequest.defaults()
.Also noticed that tests were hitting Flickr urls which could disappear at some point - fixed that by mocking those requests with nock