@aloma.io/integration-sdk 3.7.28 → 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.
@@ -1,5 +1,5 @@
1
1
  import RuntimeContext from "./runtime-context.mjs";
2
- import 'dotenv/config';
2
+ import "dotenv/config";
3
3
  export declare const TARGET_DIR: string;
4
4
  export declare class Builder {
5
5
  private data;
@@ -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 'dotenv/config';
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aloma.io/integration-sdk",
3
- "version": "3.7.28",
3
+ "version": "3.7.30",
4
4
  "description": "",
5
5
  "author": "aloma.io",
6
6
  "license": "Apache-2.0",
@@ -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 'dotenv/config'
6
+ import "dotenv/config";
7
7
 
8
8
  const DIR_OFFSET = "/../../../../../";
9
9
 
@@ -77,7 +77,7 @@ export default class RuntimeContext {
77
77
  getBlob,
78
78
  getBlobContent,
79
79
  createBlob,
80
- healthCheck
80
+ healthCheck,
81
81
  }) => {
82
82
  try {
83
83
  clearInterval(healthInterval);
@@ -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
- await controller.__healthCheck()
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
  }