@onivoro/server-aws-redshift 22.0.9 → 22.11.0

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.
@@ -172,10 +172,10 @@ let RedshiftDataService = class RedshiftDataService {
172
172
  let status = "";
173
173
  do {
174
174
  const describeCommand = new client_redshift_data_1.DescribeStatementCommand({ Id });
175
- const { Status, } = await this.redshiftDataClient.send(describeCommand);
175
+ const { Status, Error: err } = await this.redshiftDataClient.send(describeCommand);
176
176
  status = Status || "";
177
177
  if (status === "FAILED") {
178
- throw new Error("Query execution failed");
178
+ throw new Error(err);
179
179
  }
180
180
  if (status !== "FINISHED") {
181
181
  await new Promise(resolve => setTimeout(resolve, 1000));
@@ -172,10 +172,10 @@ let RedshiftDataService = class RedshiftDataService {
172
172
  let status = "";
173
173
  do {
174
174
  const describeCommand = new client_redshift_data_1.DescribeStatementCommand({ Id });
175
- const { Status, } = await this.redshiftDataClient.send(describeCommand);
175
+ const { Status, Error: err } = await this.redshiftDataClient.send(describeCommand);
176
176
  status = Status || "";
177
177
  if (status === "FAILED") {
178
- throw new Error("Query execution failed");
178
+ throw new Error(err);
179
179
  }
180
180
  if (status !== "FINISHED") {
181
181
  await new Promise(resolve => setTimeout(resolve, 1000));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onivoro/server-aws-redshift",
3
- "version": "22.0.9",
3
+ "version": "22.11.0",
4
4
  "repository": {
5
5
  "url": "git+https://github.com/onivoro/server-aws-redshift.git"
6
6
  },
@@ -32,7 +32,7 @@
32
32
  "devDependencies": {
33
33
  "@onivoro/cli": "^22.0.8",
34
34
  "@types/jest": "*",
35
- "@types/node": "22.8.1",
35
+ "@types/node": "22.10.7",
36
36
  "typescript": "*"
37
37
  },
38
38
  "engines": {
@@ -40,10 +40,10 @@
40
40
  "npm": "10.9.0"
41
41
  },
42
42
  "dependencies": {
43
- "@aws-sdk/client-redshift": "^3.699.0",
44
- "@aws-sdk/client-redshift-data": "^3.709.0",
45
- "@aws-sdk/client-redshift-serverless": "^3.709.0",
46
- "@nestjs/common": "^10.4.6",
47
- "@onivoro/server-common": "^22.0.3"
43
+ "@aws-sdk/client-redshift": "^3.731.1",
44
+ "@aws-sdk/client-redshift-data": "^3.731.1",
45
+ "@aws-sdk/client-redshift-serverless": "^3.731.1",
46
+ "@nestjs/common": "^11.0.1",
47
+ "@onivoro/server-common": "^22.11.0"
48
48
  }
49
49
  }