New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dynamodb-service

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dynamodb-service - npm Package Compare versions

Comparing version

to
1.6.0

2

package.json
{
"name": "dynamodb-service",
"version": "1.5.0",
"version": "1.6.0",
"description": "Managing records saved in Dynamodb",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -22,12 +22,12 @@ /**

constructor(tableName, primaryKeyName, profile, extra) {
profile = profile || 'default';
extra = extra || { region: 'us-east-1' };
if(profile) {
let credentials = new AWS.SharedIniFileCredentials({profile});
AWS.config.credentials = credentials;
}
AWS.config.region = extra.region;
this.tableName = tableName;
this.keyName = primaryKeyName;
let credentials = new AWS.SharedIniFileCredentials({profile});
AWS.config.credentials = credentials;
AWS.config.region = extra.region;
this.dynamoDb = new AWS.DynamoDB.DocumentClient();

@@ -34,0 +34,0 @@

@@ -15,5 +15,5 @@ /**

let id = '10';
let id = '1';
dynamodbService.read(id) // => @return Promise
.then(createdRecord => console.log(createdRecord))
.catch(e => console.error(e.message || 'error', e));