This repository has been archived by the owner on Jun 15, 2022. It is now read-only.
Releases: debitoor/fetcher
Releases · debitoor/fetcher
v3.3.3
v3.3.2
v3.3.1
Updates Dependencies
Resolves some cases where the debug
dependency would show up as missing.
Fix bug with required redirect prop
- Optional prop
redirect
was mistakenly set to required in d.ts. file.
Allow optional redirect option
It is now possible to supply an optional redirect
property as also described in the node-fetch
documentation.
Readme update, add debugger
- Updated readme with explanation of url merger and example of how to keep path baseUrl.
- Added
debug
module.
Refactoring, updates
- Refactor source code from root -->
lib/
- Make module export a default
Fetcher
, so it can be required likeconst Fetcher = require('@debitoor/fetcher')
- Update types to changes and improve them.
fix d.ts file, dependency issues
- Fix bug with wrong order of
.fetcher()
arguments ind.ts
file. - Fix security warnings with dependencies.
Refactoring and optimisation
- It is no longer possible to provide an optional Error handler in options.
- You can now overwrite the
baseUrl
that was given when initialising thenew Fetcher
class or skip it entirely, by providing it in thefetcher.fetch()
call. fetch()
can now take an object of options or be provided as direct calls. Please see readme or type definitions file.