triangle-utils 1.4.158 → 1.4.159

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.
@@ -11,7 +11,7 @@ export declare class UtilsRDS {
11
11
  disconnect(): Promise<void>;
12
12
  query(sql: string, options?: {
13
13
  is_verbose?: boolean;
14
- }): Promise<any[] | undefined>;
14
+ }): Promise<any[]>;
15
15
  exec(sql: string, options?: {
16
16
  is_verbose?: boolean;
17
17
  is_forced?: boolean;
@@ -96,7 +96,7 @@ export class UtilsRDS {
96
96
  }
97
97
  if (this.postgres === undefined) {
98
98
  console.log("Failed to connect to Postgres.");
99
- return;
99
+ return [];
100
100
  }
101
101
  const response = await this.postgres.query(sql);
102
102
  await this.disconnect();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-utils",
3
- "version": "1.4.158",
3
+ "version": "1.4.159",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
package/src/UtilsRDS.ts CHANGED
@@ -106,7 +106,7 @@ export class UtilsRDS {
106
106
  }
107
107
  if (this.postgres === undefined) {
108
108
  console.log("Failed to connect to Postgres.")
109
- return
109
+ return []
110
110
  }
111
111
  const response = await this.postgres.query(sql)
112
112
  await this.disconnect()