posthog-node
Version:
PostHog Node.js integration
12 lines (11 loc) • 483 B
TypeScript
/**
* Fetch wrapper
*
* We want to polyfill fetch when not available with axios but use it when it is.
* NOTE: The current version of Axios has an issue when in non-node environments like Clouflare Workers.
* This is currently solved by using the global fetch if available instead.
* See https://github.com/PostHog/posthog-js-lite/issues/127 for more info
*/
import { FetchLike } from 'posthog-core/src';
declare const _default: FetchLike;
export default _default;