From cd0fc02a447553553048b34ece4df33ddbec9c5f Mon Sep 17 00:00:00 2001 From: James Long Date: Wed, 9 Nov 2022 23:33:23 -0500 Subject: [PATCH] Always pull in API package from workspace (fixes #378) --- packages/import-ynab4/package.json | 2 +- packages/import-ynab5/package.json | 2 +- .../server/connection/index.electron.js | 1 + yarn.lock | 43 ++----------------- 4 files changed, 6 insertions(+), 42 deletions(-) diff --git a/packages/import-ynab4/package.json b/packages/import-ynab4/package.json index 138abc3..ed7371c 100644 --- a/packages/import-ynab4/package.json +++ b/packages/import-ynab4/package.json @@ -16,7 +16,7 @@ "bin": "./index.js", "homepage": "https://github.com/actualbudget/actual/tree/master/packages/import-ynab4#readme", "dependencies": { - "@actual-app/api": "^1.0.0", + "@actual-app/api": "*", "adm-zip": "^0.5.9", "date-fns": "2.0.0-alpha.27", "slash": "3.0.0", diff --git a/packages/import-ynab5/package.json b/packages/import-ynab5/package.json index a15fe5f..a8c2055 100644 --- a/packages/import-ynab5/package.json +++ b/packages/import-ynab5/package.json @@ -16,7 +16,7 @@ "bin": "./index.js", "homepage": "https://github.com/actualbudget/actual/tree/master/packages/import-ynab5#readme", "dependencies": { - "@actual-app/api": "^1.0.0", + "@actual-app/api": "*", "date-fns": "2.0.0-alpha.27", "uuid": "3.3.2" } diff --git a/packages/loot-core/src/platform/server/connection/index.electron.js b/packages/loot-core/src/platform/server/connection/index.electron.js index f31ab61..8bcfd0f 100644 --- a/packages/loot-core/src/platform/server/connection/index.electron.js +++ b/packages/loot-core/src/platform/server/connection/index.electron.js @@ -17,6 +17,7 @@ function init(socketName, handlers) { ipc.serve(() => { ipc.server.on('message', (data, socket) => { + console.log('[msg]', data) let msg = data; let { id, name, args, undoTag, catchErrors } = msg; diff --git a/yarn.lock b/yarn.lock index eaf4d66..1adb1f3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -22,21 +22,11 @@ __metadata: languageName: unknown linkType: soft -"@actual-app/api@npm:^1.0.0": - version: 1.1.3 - resolution: "@actual-app/api@npm:1.1.3" - dependencies: - node-ipc: 9.1.1 - uuid: 3.3.2 - checksum: e7fccff7583d64ac908eb7a7c93226200fd75af92b9fe9718b6e3fe0d004d92d79d87485e212b0d3d86cb685827e6733c939ece799156eea64db886bf1457a94 - languageName: node - linkType: hard - "@actual-app/import-ynab4@*, @actual-app/import-ynab4@workspace:packages/import-ynab4": version: 0.0.0-use.local resolution: "@actual-app/import-ynab4@workspace:packages/import-ynab4" dependencies: - "@actual-app/api": ^1.0.0 + "@actual-app/api": "*" adm-zip: ^0.5.9 date-fns: 2.0.0-alpha.27 slash: 3.0.0 @@ -50,7 +40,7 @@ __metadata: version: 0.0.0-use.local resolution: "@actual-app/import-ynab5@workspace:packages/import-ynab5" dependencies: - "@actual-app/api": ^1.0.0 + "@actual-app/api": "*" date-fns: 2.0.0-alpha.27 uuid: 3.3.2 bin: @@ -8844,7 +8834,7 @@ __metadata: languageName: node linkType: hard -"easy-stack@npm:^1.0.0, easy-stack@npm:^1.0.1": +"easy-stack@npm:^1.0.1": version: 1.0.1 resolution: "easy-stack@npm:1.0.1" checksum: 161a99e497b3857b0be4ec9e1ebbe90b241ea9d84702f9881b8e5b3f6822065b8c4e33436996935103e191bffba3607de70712a792f4d406a050def48c6bc381 @@ -13813,13 +13803,6 @@ jest-snapshot@test: languageName: node linkType: hard -"js-message@npm:1.0.5": - version: 1.0.5 - resolution: "js-message@npm:1.0.5" - checksum: fd2fc8837a88a115aa2fa859bf5c13d9b335fd7eeba8426c44da6eb006b04c52cfe6675b3c27d6b112ffc51dadb8bc51d58340c3a3aa5c555d7da6bdc72ce9c0 - languageName: node - linkType: hard - "js-message@npm:1.0.7": version: 1.0.7 resolution: "js-message@npm:1.0.7" @@ -13827,15 +13810,6 @@ jest-snapshot@test: languageName: node linkType: hard -"js-queue@npm:2.0.0": - version: 2.0.0 - resolution: "js-queue@npm:2.0.0" - dependencies: - easy-stack: ^1.0.0 - checksum: 8f8e589cc20fd3bc3067db73ecaac77b55411c3ac58fdd6882868924ee19ab4203d19e68d3ec680c5c8f5e8282e30dafa377014dbec05c3f2d33be4596f4fb65 - languageName: node - linkType: hard - "js-queue@npm:2.0.2": version: 2.0.2 resolution: "js-queue@npm:2.0.2" @@ -16222,17 +16196,6 @@ jest-snapshot@test: languageName: node linkType: hard -"node-ipc@npm:9.1.1": - version: 9.1.1 - resolution: "node-ipc@npm:9.1.1" - dependencies: - event-pubsub: 4.3.0 - js-message: 1.0.5 - js-queue: 2.0.0 - checksum: 2b66099d1976e4328d34ae7fec853d3969ca337b52b5aefb48ae1d19387c37d6716c2b98d4a4934ec24aa79f0441721961d6c1beb858c294ad6a7a97ddf5460d - languageName: node - linkType: hard - "node-ipc@npm:9.1.4": version: 9.1.4 resolution: "node-ipc@npm:9.1.4"