1.6.5 • Published 3 years ago

@booli/fetch-json v1.6.5

Weekly downloads
69
License
MIT
Repository
-
Last release
3 years ago

Fetch Json

Wrapper around fetch to request json and geo json resources, including some general error handling.

Note that 204 responses will return an empty object {} instead of a body with no content, so subsequent json parsing does not fail.

Required polyfills

  • fetch
  • Object.assign
  • Promise (indirectly needed as fetch polyfills require it)

Motivation

Most fetch requests expect json response and setting up request headers,checking response headers and handling http errors involve some boilerplate, which is abstracted away by this package. Note that unlike native fetch this wrapper will reject the returned promise if the response has an error status code.

1.6.5

3 years ago

1.6.4

3 years ago

1.6.3

4 years ago

1.6.2

4 years ago

1.6.1

4 years ago

1.6.0

4 years ago

1.5.2

4 years ago

1.4.1

5 years ago

1.3.4

5 years ago

1.3.3

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago