Module: utils

utils

Methods

module:utils.customFetch (parameters)object static

Wrapper over fetch (browser), for more details, checkout Using Fetch | MDN.
Name Type Description
parameters object url, method, and other request parameters as mentioned in Supplying request options to fetch
Returns:
Type Description
object { send: () => {}, abort: () => {} }

module:utils.customFetch (parameters)object static

Wrapper over fetch (node), for more details, checkout Node-fetch docs.
Name Type Description
parameters object url, method, and other request parameters as mentioned in Supplying request options to fetch
Returns:
Type Description
object { send: () => {}, abort: () => {} }

module:utils.getUrlFromPath (path)string static

Get url from a string containing path and other params.
Name Type Description
path string
Throws:
Will throw error if baseUrl is not specified or is not valid.
Returns:
Type Description
string complete url.