|
|
@ -131,7 +131,9 @@ module DynamoModule { |
|
|
|
|
|
|
|
|
constructor(config: DynamoDBConfig) { |
|
|
constructor(config: DynamoDBConfig) { |
|
|
this.config = config |
|
|
this.config = config |
|
|
this.connect() |
|
|
if (!this.config.endpoint) { |
|
|
|
|
|
this.connect() |
|
|
|
|
|
} |
|
|
let options = { |
|
|
let options = { |
|
|
correctClockSkew: true, |
|
|
correctClockSkew: true, |
|
|
endpoint: config.endpoint ? config.endpoint : undefined, |
|
|
endpoint: config.endpoint ? config.endpoint : undefined, |
|
|
|