UNPKG

@gentrace/core

Version:
21 lines (17 loc) 493 B
'use strict'; var globalAxios = require('axios'); var fetch = require('./adapters/fetch.js'); let axiosWithOptionalFetch; // detect CF worker environment if (typeof process === "undefined") { axiosWithOptionalFetch = globalAxios.create({ // @ts-ignore adapter: fetch, }); } else { axiosWithOptionalFetch = globalAxios; } var axiosWithOptionalFetch$1 = axiosWithOptionalFetch; module.exports = axiosWithOptionalFetch$1; //# sourceMappingURL=axios-instance.js.map