-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into matiss/strict-ts
- Loading branch information
Showing
155 changed files
with
1,592 additions
and
643 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
packages/api/app/bundle.api.js | ||
packages/api/dist | ||
packages/api/@types | ||
packages/api/migrations | ||
|
||
packages/crdt/dist | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Support | ||
url: https://discord.gg/pRYNYr4W5A | ||
about: Need help with something? Perhaps having issues setting up bank-sync with GoCardless or SimpleFin? Reach out to the community on Discord. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import type { | ||
RequestInfo as FetchInfo, | ||
RequestInit as FetchInit, | ||
// @ts-ignore: false-positive commonjs module error on build until typescript 5.3 | ||
} from 'node-fetch'; // with { 'resolution-mode': 'import' }; | ||
|
||
// loot-core types | ||
import type { InitConfig } from 'loot-core/server/main'; | ||
|
||
// @ts-ignore: bundle not available until we build it | ||
// eslint-disable-next-line import/extensions | ||
import * as bundle from './app/bundle.api.js'; | ||
import * as injected from './injected'; | ||
import { validateNodeVersion } from './validateNodeVersion'; | ||
|
||
let actualApp: null | typeof bundle.lib; | ||
export const internal = bundle.lib; | ||
|
||
// DEPRECATED: remove the next line in @actual-app/api v7 | ||
export * as methods from './methods'; | ||
|
||
export * from './methods'; | ||
export * as utils from './utils'; | ||
|
||
export async function init(config: InitConfig = {}) { | ||
if (actualApp) { | ||
return; | ||
} | ||
|
||
validateNodeVersion(); | ||
|
||
if (!globalThis.fetch) { | ||
globalThis.fetch = (url: URL | RequestInfo, init?: RequestInit) => { | ||
return import('node-fetch').then(({ default: fetch }) => | ||
fetch(url as unknown as FetchInfo, init as unknown as FetchInit), | ||
) as unknown as Promise<Response>; | ||
}; | ||
} | ||
|
||
await bundle.init(config); | ||
actualApp = bundle.lib; | ||
|
||
injected.override(bundle.lib.send); | ||
return bundle.lib; | ||
} | ||
|
||
export async function shutdown() { | ||
if (actualApp) { | ||
await actualApp.send('sync'); | ||
await actualApp.send('close-budget'); | ||
actualApp = null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+3.59 KB
(100%)
...snapshots/Reports-loads-cash-flow-graph-and-checks-visuals-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3.2 KB
(100%)
...snapshots/Reports-loads-cash-flow-graph-and-checks-visuals-2-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-134 Bytes
(100%)
...js-snapshots/Reports-loads-net-worth-and-cash-flow-reports-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-143 Bytes
(100%)
...js-snapshots/Reports-loads-net-worth-and-cash-flow-reports-2-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.