UNPKG

ofexios

Version:

unjs/ofetch based HTTP client with similar API to axios for browser and Node.js

1 lines 766 B
{"version":3,"file":"browser.cjs","sources":["../src/browser.ts"],"sourcesContent":["import fexios from './index';\nimport type { Fexios } from './index';\n\nexport * from './index';\nexport { default } from './index';\n\n// Set global fexios instance for browser\ndeclare global {\n\tinterface globalThis {\n\t\tfexios: Fexios;\n\t}\n\tinterface Window {\n\t\tfexios: Fexios;\n\t}\n\t// biome-ignore lint/suspicious/noRedeclare:\n\tvar fexios: Fexios;\n}\nif (typeof globalThis !== 'undefined') {\n\tglobalThis.fexios = fexios;\n\t/* v8 ignore next 3 */\n} else if (typeof window !== 'undefined') {\n\twindow.fexios = fexios;\n}\n"],"names":["globalThis","fexios","window"],"mappings":"kMAiBI,OAAOA,WAAe,IACzBA,WAAWC,OAASA,MAAAA,OAEV,OAAOC,OAAW,MAC5BA,OAAOD,OAASA"}