From b41ee56c8156496c5d44733ad5ceaf38782b3f01 Mon Sep 17 00:00:00 2001 From: Tom French Date: Sat, 7 May 2022 01:49:15 +0100 Subject: [PATCH] chore: fix broken builds --- packages/import-ynab4/importer.js | 4 ++-- packages/import-ynab5/importer.js | 3 +-- packages/loot-core/webpack/webpack.browser.config.js | 7 ++++++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/packages/import-ynab4/importer.js b/packages/import-ynab4/importer.js index 68e0891..ee77397 100644 --- a/packages/import-ynab4/importer.js +++ b/packages/import-ynab4/importer.js @@ -2,8 +2,8 @@ const d = require('date-fns'); const normalizePathSep = require('slash'); const uuid = require('uuid'); const AdmZip = require('adm-zip'); -const actual = require('@actual-app/api/methods'); -const { amountToInteger } = require('@actual-app/api/utils'); +const actual = require('@actual-app/api'); +const amountToInteger = actual.utils.amountToInteger; // Utils diff --git a/packages/import-ynab5/importer.js b/packages/import-ynab5/importer.js index 3cb5848..a1966cf 100644 --- a/packages/import-ynab5/importer.js +++ b/packages/import-ynab5/importer.js @@ -1,7 +1,6 @@ const d = require('date-fns'); const uuid = require('uuid'); -const actual = require('@actual-app/api/methods'); -const { amountToInteger } = require('@actual-app/api/utils'); +const actual = require('@actual-app/api'); function amountFromYnab(amount) { // ynabs multiplies amount by 1000 and actual by 100 diff --git a/packages/loot-core/webpack/webpack.browser.config.js b/packages/loot-core/webpack/webpack.browser.config.js index 325a21b..cf21287 100644 --- a/packages/loot-core/webpack/webpack.browser.config.js +++ b/packages/loot-core/webpack/webpack.browser.config.js @@ -58,5 +58,10 @@ module.exports = { new webpack.IgnorePlugin({ resourceRegExp: /worker_threads|original-fs/ }) - ] + ], + node: { + dgram: "empty", + net: 'empty', + tls: 'empty', + }, };