@aloma.io/integration-sdk 3.7.29 → 3.7.30
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/build/builder/index.mjs
CHANGED
@@ -3,7 +3,7 @@ import path from "node:path";
|
|
3
3
|
import { fileURLToPath } from "node:url";
|
4
4
|
import { notEmpty } from "../internal/util/index.mjs";
|
5
5
|
import RuntimeContext from "./runtime-context.mjs";
|
6
|
-
import
|
6
|
+
import "dotenv/config";
|
7
7
|
const DIR_OFFSET = "/../../../../../";
|
8
8
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
9
9
|
export const TARGET_DIR = `${__dirname}${DIR_OFFSET}`;
|
@@ -52,7 +52,7 @@ export default class RuntimeContext {
|
|
52
52
|
configuration.oauth(data.auth?.oauth);
|
53
53
|
}
|
54
54
|
let healthInterval;
|
55
|
-
configuration.main(async ({ newTask, updateTask, config, oauth, getClient, getBlob, getBlobContent, createBlob, healthCheck }) => {
|
55
|
+
configuration.main(async ({ newTask, updateTask, config, oauth, getClient, getBlob, getBlobContent, createBlob, healthCheck, }) => {
|
56
56
|
try {
|
57
57
|
clearInterval(healthInterval);
|
58
58
|
await controller._doStop();
|
package/package.json
CHANGED
package/src/builder/index.mts
CHANGED
@@ -3,7 +3,7 @@ import path from "node:path";
|
|
3
3
|
import { fileURLToPath } from "node:url";
|
4
4
|
import { notEmpty } from "../internal/util/index.mjs";
|
5
5
|
import RuntimeContext from "./runtime-context.mjs";
|
6
|
-
import
|
6
|
+
import "dotenv/config";
|
7
7
|
|
8
8
|
const DIR_OFFSET = "/../../../../../";
|
9
9
|
|
package/src/internal/index.mts
CHANGED
@@ -433,12 +433,11 @@ ${text}
|
|
433
433
|
getBlobContent,
|
434
434
|
createBlob,
|
435
435
|
healthCheck: async (controller) => {
|
436
|
-
let result: any = {ok: true};
|
436
|
+
let result: any = { ok: true };
|
437
437
|
|
438
|
-
try
|
439
|
-
|
440
|
-
|
441
|
-
} catch(e: any) {
|
438
|
+
try {
|
439
|
+
await controller.__healthCheck();
|
440
|
+
} catch (e: any) {
|
442
441
|
result.ok = false;
|
443
442
|
result.error = e.message;
|
444
443
|
}
|