@airplane/views
Version:
A React library for building Airplane views. Views components are optimized in style and functionality to produce internal apps that are easy to build and maintain.
28 lines (27 loc) • 833 B
JavaScript
import { Fetcher as Fetcher$1 } from "@airplane/lib";
import { AIRPLANE_API_HEADERS, AIRPLANE_API_HOST, AIRPLANE_TOKEN, AIRPLANE_API_KEY, AIRPLANE_TUNNEL_TOKEN, AIRPLANE_SANDBOX_TOKEN, AIRPLANE_ENV_SLUG } from "./env.js";
import { getNPMPackageVersion } from "../getNPMPackageVersion.js";
class Fetcher extends Fetcher$1 {
constructor() {
let headers = void 0;
try {
headers = JSON.parse(AIRPLANE_API_HEADERS);
} catch (e) {
}
super({
host: AIRPLANE_API_HOST,
token: AIRPLANE_TOKEN,
apiKey: AIRPLANE_API_KEY,
tunnelToken: AIRPLANE_TUNNEL_TOKEN,
sandboxToken: AIRPLANE_SANDBOX_TOKEN,
envSlug: AIRPLANE_ENV_SLUG,
headers,
clientKind: "views",
clientVersion: getNPMPackageVersion()
});
}
}
export {
Fetcher
};
//# sourceMappingURL=fetcher.js.map