0.0.2 • Published 4 years ago

@flywire/flywire-fetch v0.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

flywire-fetch

Flywire's fetch wrapper

Installation

Add the dependency to your package.json:

npm i @flywire/flywire-fetch

Usage

import fetchJson from '@flywire/flywire-fetch';

async function fetchCountries() {
  const url = `https://api.flywire.lol/v3/countries`;
  const response = await fetchJson(url);

  return response;
}

const countries = fetchCountries();

Config

KeyDescription
urlBase url. Default = null
optionsFetch options. Default = {}

Create a new release

To create a new release, make all the changes that you need and commit them, then execute:

npm version [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease | from-git]

For example:

npm version patch

This will bump the package.json version, build a new bundle, commit, push the changes tagging them to a new release and update the documentation.

Then create a PR and request the review from other project commiters. Once accepted and merged to master, execute npm publish from master branch.

0.0.2

4 years ago

0.0.2-9

4 years ago

0.0.2-8

4 years ago

0.0.2-7

4 years ago

0.0.2-6

4 years ago

0.0.2-5

4 years ago

0.0.2-4

4 years ago

0.0.2-2

4 years ago

0.0.2-1

4 years ago

0.0.2-3

4 years ago

0.0.3-0

4 years ago

0.0.1

4 years ago