Socket
Socket
Sign inDemoInstall

keydb

Package Overview
Dependencies
Maintainers
3
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

keydb - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

11

lib/drivers/dynamo.js

@@ -10,2 +10,7 @@ var aws = require('aws-sdk');

var prefix = '';
var defaultRegion = aws.config.region;
if (!defaultRegion || defaultRegion === '') {
defaultRegion = 'us-east1';
}
var region = options.region || process.env.KEYDB_DRIVERS_DYNAMO_REGION || defaultRegion;

@@ -17,8 +22,10 @@ if (options.database) {

if (options.local || process.env.KEYDB_DRIVERS_DYNAMO_LOCAL) {
var port = options.port || process.env.KEYDB_DRIVERS_DYNAMO_PORT || 8000;
_db = new aws.DynamoDB({
credentials: new aws.Credentials({accessKeyId: 'dynamodblocal', secretAccessKey: 'xyz'}),
region: 'us-east1',
endpoint: new aws.Endpoint('http://localhost:' + (options.port || 8000))
region: region,
endpoint: new aws.Endpoint('http://localhost:' + port)
});
} else {
aws.config.region = region;
_db = new aws.DynamoDB();

@@ -25,0 +32,0 @@ }

5

package.json
{
"name": "keydb",
"version": "0.1.6",
"version": "0.1.7",
"description": "Key/value data/query API to use on the server and in the browser.",

@@ -34,4 +34,5 @@ "main": "index-server.js",

"chai-as-promised": "~4.1.0",
"dynamo-local": "0.0.2"
"dynamo-local": "0.0.2",
"portfinder": "~0.2.1"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc