Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/graphql / dist / bootstrapper / api / axios.js
Size: Mime:
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const chain_able_boost_1 = require("chain-able-boost");
const asyncWrap_1 = require("chain-able-lego/dist/wrap/asyncWrap");
exports.asyncWrap = asyncWrap_1.asyncWrap;
const ENV_1 = require("./ENV");
exports.axios = ENV_1.axiosInstance;
// wrapper around axios for handling errors in a sane way
// without rejected promises that are hard to track
const GET = asyncWrap_1.asyncWrap(ENV_1.axiosInstance.get);
exports.GET = GET;
const POST = asyncWrap_1.asyncWrap(ENV_1.axiosInstance.post);
exports.POST = POST;
const AXIOSER = asyncWrap_1.asyncWrap(ENV_1.axiosInstance);
exports.AXIOSER = AXIOSER;
const FETCHREQUEST = asyncWrap_1.asyncWrap(ENV_1.axiosInstance.request);
exports.FETCHREQUEST = FETCHREQUEST;
chain_able_boost_1.defineFinal(GET, 'methodName', 'GET');
chain_able_boost_1.defineFinal(POST, 'methodName', 'POST');
chain_able_boost_1.defineFinal(AXIOSER, 'methodName', 'AXIOSER');
chain_able_boost_1.defineFinal(FETCHREQUEST, 'methodName', 'REQUEST');
// fetch specific settings - unused currently because we are using axios
// these will be used for when we use webworkers
//
// getInit = {
//   method: 'GET',
//   mode: 'no-cors',
// }
//# sourceMappingURL=axios.js.map