UNPKG

875 BJavaScriptView Raw
1import { setup as internalSetup } from "./setup/internal.js";
2/**
3 * Toggle debug mode.
4 *
5 * Only adds a few `console.log`s at this moment.
6 */
7export function debug({ enabled }) {
8 internalSetup.debug = enabled;
9 return internalSetup.debug;
10}
11/**
12 * Override endpoints.
13 *
14 * You can override each of these,
15 * no need to provide them all here.
16 *
17 * `api` Location of the Fission API
18 * (default `https://runfission.com`)
19 * `lobby` Location of the authentication lobby.
20 * (default `https://auth.fission.codes`)
21 * `user` User's domain to use, will be prefixed by username.
22 * (default `fission.name`)
23 */
24export function endpoints(e) {
25 internalSetup.endpoints = { ...internalSetup.endpoints, ...e };
26 return { ...internalSetup.endpoints };
27}
28export { setDependencies } from "./setup/dependencies.js";
29//# sourceMappingURL=setup.js.map
\No newline at end of file