Since monkey punching `nano` is impossible, allow user to provide a custom `request` option for failovers and similar.
As the att_name is used in constructing the url to send the DELETE call to, using something like false or an empty string results in deleting the whole document. This should not happen…
The documentation says that `params` argument of the db.view() and db.view_with_list() functions is optional. If omitting the parameter instead of passing an empty object, it complains about a "TypeError: Cannot read property `keys` of undefined". With this change, it is possible to omit the `params` argument without the exception. Signed-off-by: Nuno Job <firstname.lastname@example.org>
A db_name may contain slashes, but these need to be escaped as %2F in URLs. The other parts of the nano API deal with this, only with the follow API I ran into this issue, since we use a hierarchical structure like rbuilder/client_A/agreements/agreement_1 rbuilder/client_A/agreements/agreement_2 rbuilder/client_B/agreements/agreement_1 by email by Gerrit Renker