Newer
Older
// eslint-disable-next-line import/extensions
import * as bundle from './app/bundle.api.js';
Stefan Hall
committed
import { validateNodeVersion } from './validateNodeVersion';
// DEPRECATED: remove the next line in @actual-app/api v7
export * from './methods';
export * as utils from './utils';
export async function init(config = {}) {
Stefan Hall
committed
validateNodeVersion();
global.fetch = (...args) =>
import('node-fetch').then(({ default: fetch }) => fetch(...args));
await actualApp.send('close-budget');
actualApp = null;
}
}