@actual-app/api
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -5,2 +5,3 @@ const { | ||
disconnect, | ||
loadBudget, | ||
runWithBudget, | ||
@@ -159,2 +160,3 @@ runImport | ||
disconnect, | ||
loadBudget, | ||
runWithBudget, | ||
@@ -161,0 +163,0 @@ runImport, |
@@ -73,2 +73,6 @@ let ipc = require('node-ipc'); | ||
async function loadBudget(id) { | ||
await send('api/load-budget', { id }); | ||
} | ||
async function _run(func) { | ||
@@ -104,3 +108,3 @@ let hasError = false; | ||
return _run(async () => { | ||
await send('api/load-budget', { id }); | ||
await loadBudget(id); | ||
return func(); | ||
@@ -118,2 +122,9 @@ }); | ||
module.exports = { init, send, disconnect, runWithBudget, runImport }; | ||
module.exports = { | ||
init, | ||
send, | ||
disconnect, | ||
loadBudget, | ||
runWithBudget, | ||
runImport | ||
}; |
{ | ||
"name": "@actual-app/api", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "An API for Actual", | ||
@@ -5,0 +5,0 @@ "main": "api.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8482
310