@onivoro/server-aws-redshift 22.0.2 → 22.0.3

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.
@@ -16,7 +16,7 @@ export declare class RedshiftDataService {
16
16
  database: string;
17
17
  workgroupName: string;
18
18
  user: string;
19
- }): Promise<boolean>;
19
+ }): Promise<string>;
20
20
  grantUsageOnSchema(_: {
21
21
  database: string;
22
22
  workgroupName: string;
@@ -81,15 +81,16 @@ let RedshiftDataService = class RedshiftDataService {
81
81
  const createResult = await this.redshiftDataClient.send(createUserCommand);
82
82
  await this.waitForStatement(createResult.Id);
83
83
  console.log(`Created user: ${_.user}`);
84
+ return placeholderPassword;
84
85
  }
85
86
  else {
86
87
  console.log(`User "${_.user} already exists`);
88
+ return '';
87
89
  }
88
- return true;
89
90
  }
90
91
  catch (error) {
91
92
  console.warn({ detail: `Warning creating user ${_.user}`, error });
92
- return false;
93
+ throw error;
93
94
  }
94
95
  }
95
96
  async grantUsageOnSchema(_) {
@@ -16,7 +16,7 @@ export declare class RedshiftDataService {
16
16
  database: string;
17
17
  workgroupName: string;
18
18
  user: string;
19
- }): Promise<boolean>;
19
+ }): Promise<string>;
20
20
  grantUsageOnSchema(_: {
21
21
  database: string;
22
22
  workgroupName: string;
@@ -81,15 +81,16 @@ let RedshiftDataService = class RedshiftDataService {
81
81
  const createResult = await this.redshiftDataClient.send(createUserCommand);
82
82
  await this.waitForStatement(createResult.Id);
83
83
  console.log(`Created user: ${_.user}`);
84
+ return placeholderPassword;
84
85
  }
85
86
  else {
86
87
  console.log(`User "${_.user} already exists`);
88
+ return '';
87
89
  }
88
- return true;
89
90
  }
90
91
  catch (error) {
91
92
  console.warn({ detail: `Warning creating user ${_.user}`, error });
92
- return false;
93
+ throw error;
93
94
  }
94
95
  }
95
96
  async grantUsageOnSchema(_) {
@@ -16,7 +16,7 @@ export declare class RedshiftDataService {
16
16
  database: string;
17
17
  workgroupName: string;
18
18
  user: string;
19
- }): Promise<boolean>;
19
+ }): Promise<string>;
20
20
  grantUsageOnSchema(_: {
21
21
  database: string;
22
22
  workgroupName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onivoro/server-aws-redshift",
3
- "version": "22.0.2",
3
+ "version": "22.0.3",
4
4
  "repository": {
5
5
  "url": "git+https://github.com/onivoro/server-aws-redshift.git"
6
6
  },