import { CDF_VERSION } from "../../constants"; import HttpClientWithIntercept from "../httpClientWithIntercept"; export class ExperimentalAPI { private httpClient: HttpClientWithIntercept; constructor(httpClient: HttpClientWithIntercept) { this.httpClient = httpClient; } public enable() { console.error("WARNING, YOU ARE NOW USING EXPERIMENTAL FEATURES"); this.httpClient.setDefaultHeader("cdf-version", "20221206-alpha"); } public disable() { this.httpClient.setDefaultHeader("cdf-version", CDF_VERSION); } }