@actual-app/api
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -63,2 +63,4 @@ let ipc = require('node-ipc'); | ||
async function _run(func) { | ||
let hasError = false; | ||
try { | ||
@@ -70,15 +72,12 @@ await init(); | ||
if (e.type === 'APIError') { | ||
console.log('*** APIError *** ', e.message, '\n\n'); | ||
console.log('[ERROR] APIError:', e.message); | ||
} else if (e.type === 'InternalError') { | ||
console.log('*** InternalError *** ', e.message, '\n\n'); | ||
console.log('[ERROR] InternalError:', e.message); | ||
} | ||
} | ||
await send('api/cleanup', { hasError: true }); | ||
disconnect(); | ||
throw e; | ||
hasError = true; | ||
} | ||
await send('api/cleanup'); | ||
await send('api/cleanup', { hasError }); | ||
disconnect(); | ||
@@ -85,0 +84,0 @@ } |
{ | ||
"name": "@actual-app/api", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
6
0
3
7990
286