Skip to content

Commit

Permalink
Rds configurationoptions support (#31)
Browse files Browse the repository at this point in the history
* build(deps): bump acorn from 5.7.3 to 5.7.4

Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](acornjs/acorn@5.7.3...5.7.4)

Signed-off-by: dependabot[bot] <support@github.com>

* Support for passing AWS.ConfigurationOptions towards data-api-client

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
cklam2 and dependabot[bot] authored Mar 23, 2020
1 parent d1e3e3d commit 56da11e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions src/typeorm-aurora-data-api-driver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,20 @@ export default class DataApiDriver {
private readonly resourceArn: string,
private readonly database: string,
private readonly loggerFn: (query: string, parameters?: any[]) => void = () => undefined,
private readonly serviceConfigOptions?: ConfigurationOptions,
) {
this.region = region
this.secretArn = secretArn
this.resourceArn = resourceArn
this.database = database
this.loggerFn = loggerFn
this.serviceConfigOptions = serviceConfigOptions || {}
this.serviceConfigOptions.region = region
this.client = createDataApiClient({
secretArn,
resourceArn,
database,
options: {
region,
},
options: serviceConfigOptions,
})
}

Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -436,9 +436,9 @@ acorn-walk@^6.0.1:
integrity sha512-7evsyfH1cLOCdAzZAd43Cic04yKydNx0cF+7tiA19p1XnLLPU4dpCQOqpjqwokFe//vS0QqfqqjCS2JkiIs0cA==

acorn@^5.5.3:
version "5.7.3"
resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.7.3.tgz#67aa231bf8812974b85235a96771eb6bd07ea279"
integrity sha512-T/zvzYRfbVojPWahDsE5evJdHb3oJoQfFbsrKM7w5Zcs++Tr257tia3BmMP8XYVjp1S9RZXQMh7gao96BlqZOw==
version "5.7.4"
resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.7.4.tgz#3e8d8a9947d0599a1796d10225d7432f4a4acf5e"
integrity sha512-1D++VG7BhrtvQpNbBzovKNc1FLGGEE/oGe7b9xJm/RFHMBeUaUGpluV9RLjZa47YFdPcDAenEYuq9pQPcMdLJg==

acorn@^6.0.1:
version "6.3.0"
Expand Down

0 comments on commit 56da11e

Please sign in to comment.