2.2.4 • Published 8 days ago
@shelf/aws-ddb-with-xray v2.2.4
aws-ddb-with-xray
Adding X-Ray to DynamoDB Document Client requires a hack (see https://git.io/JeaSG). This package encapsulates that logic. Also, it imports only the DynamoDB client not the full aws-sdk for better performance
Install
$ yarn add @shelf/aws-ddb-with-xray
Usage
const {getDocumentClient} = require('@shelf/aws-ddb-with-xray');
const ddb = getDocumentClient({
ddbParams: {region: 'us-east-1', convertEmptyValues: true},
ddbClientParams: {region: 'us-east-1'},
});
await ddb
.get({
TableName: 'foo',
Key: {hash_key: 'bar'},
})
.promise();
Result
Publish
$ git checkout master
$ yarn version
$ yarn publish
$ git push origin master --tags
License
MIT © Shelf
2.3.0
9 days ago
2.3.2
9 days ago
2.3.1
9 days ago
2.2.4
8 days ago
2.2.3
2 months ago
2.2.2
2 months ago
2.2.1
2 months ago
2.0.3
9 months ago
2.2.0
8 months ago
2.0.2
9 months ago
2.0.4
9 months ago
2.1.0
9 months ago
2.0.1
10 months ago
2.0.0
10 months ago
1.2.0
10 months ago
1.1.0
10 months ago
1.2.3
10 months ago
1.2.2
10 months ago
1.2.1
10 months ago
1.0.0
2 years ago
0.1.1
4 years ago
0.0.2
4 years ago
0.0.1
4 years ago