israeli-banks-actual-budget-importer 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/src/index.ts +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [1.3.1](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/compare/v1.3.0...v1.3.1) (2025-05-23)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* ensure graceful shutdown with timeout in scheduled run ([49bc74f](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/49bc74f0e631da2f4407bdd0aae9b105f165b134))
|
|
7
|
+
* ensure graceful shutdown with timeout in scheduled run ([ccd946c](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/ccd946c52181a939abd044ce443acafc18319b82))
|
|
8
|
+
|
|
1
9
|
# [1.3.0](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/compare/v1.2.5...v1.3.0) (2025-05-23)
|
|
2
10
|
|
|
3
11
|
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/* eslint-disable unicorn/no-process-exit */
|
|
2
|
+
|
|
2
3
|
/* eslint-disable no-await-in-loop */
|
|
3
4
|
/* eslint-disable n/file-extension-in-import */
|
|
4
5
|
|
|
@@ -35,8 +36,6 @@ async function run() {
|
|
|
35
36
|
await actual.shutdown();
|
|
36
37
|
|
|
37
38
|
console.log('Done');
|
|
38
|
-
|
|
39
|
-
setTimeout(() => process.exit(0), moment.duration(5, 'seconds').asMilliseconds());
|
|
40
39
|
}
|
|
41
40
|
|
|
42
41
|
async function safeRun() {
|
|
@@ -66,5 +65,7 @@ if (process.env?.SCHEDULE) {
|
|
|
66
65
|
|
|
67
66
|
printNextRunTime();
|
|
68
67
|
} else {
|
|
69
|
-
await safeRun()
|
|
68
|
+
await safeRun().finally(() => {
|
|
69
|
+
setTimeout(() => process.exit(0), moment.duration(5, 'seconds').asMilliseconds());
|
|
70
|
+
});
|
|
70
71
|
}
|