Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ for details.
- `options.accessKeyId` **[string]** credentials for the client to utilize
- `options.secretAccessKey` **[string]** credentials for the client to utilize
- `options.sessionToken` **[string]** credentials for the client to utilize
- `options.credentials` **[AWS.Credentials]** [AWS.Credentials](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/Credentials.html) object for the client to utilize
- `options.logger` **[object]** a writable stream for detailed logging from the aws-sdk. See [constructor docs for details](http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/DynamoDB.html#constructor-property).
- `options.maxRetries` **[number]** number of times to retry on retryable errors. See [constructor docs for details](http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/DynamoDB.html#constructor-property).

Expand Down
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ module.exports = Dyno;
* @param {string} [options.accessKeyId] - credentials for the client to utilize
* @param {string} [options.secretAccessKey] - credentials for the client to utilize
* @param {string} [options.sessionToken] - credentials for the client to utilize
* @param {AWS.Credentials} [options.credentials] - an AWS.Credentials object for the client to utilize
* @param {object} [options.logger] - a writable stream for detailed logging from the aws-sdk. See [constructor docs for details](http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/DynamoDB.html#constructor-property).
* @param {number} [options.maxRetries] - number of times to retry on retryable errors. See [constructor docs for details](http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/DynamoDB.html#constructor-property).
* @returns {client} a dyno client
Expand Down Expand Up @@ -70,6 +71,7 @@ function Dyno(options) {
accessKeyId: options.accessKeyId,
secretAccessKey: options.secretAccessKey,
sessionToken: options.sessionToken,
credentials: options.credentials,
logger: options.logger,
maxRetries: options.maxRetries
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mapbox/dyno",
"version": "1.4.1",
"version": "1.5.0",
"description": "Simple DynamoDB client",
"main": "index.js",
"scripts": {
Expand Down