1.2.2 • Published 11 months ago

@mondopower/fetch v1.2.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
11 months ago

This package represents an http client library to perform http requests with interceptors, redaction etc.

Usage

const client = new FetchClient({authorizationToken, baseUrl}) const result = await client.get('urlpath')

If an error occurred the result will contain an isErrored = true and an error property including a type and a message if (result.isErrored) console.log(result.error.errorType, result.error.message)

otherwise the result will contain the data property

console.log(result.data)

1.2.2

11 months ago

1.2.1

12 months ago

1.2.0

2 years ago

1.1.551

2 years ago