@begin/data
Advanced tools
Comparing version 5.0.1 to 5.0.2
{ | ||
"name": "@begin/data", | ||
"version": "5.0.1", | ||
"version": "5.0.2", | ||
"description": "Begin Data is a durable and fast key/value document store built on top of DynamoDB", | ||
@@ -28,5 +28,5 @@ "main": "src/index.js", | ||
"dependencies": { | ||
"@aws-lite/client": "^0.16.1", | ||
"@aws-lite/dynamodb": "^0.3.3", | ||
"@aws-lite/ssm": "^0.2.2", | ||
"@aws-lite/client": "^0.17.1", | ||
"@aws-lite/dynamodb": "^0.3.4", | ||
"@aws-lite/ssm": "^0.2.3", | ||
"@begin/hashid": "^1.0.0", | ||
@@ -33,0 +33,0 @@ "run-parallel": "^1.2.0", |
@@ -18,6 +18,7 @@ let getPorts = require('./_get-ports') | ||
if (!local) { | ||
aws(function gotClient (err, client) { | ||
let plugins = [ import('@aws-lite/dynamodb') ] | ||
aws({ plugins }, function gotClient (err, client) { | ||
if (err) callback(err) | ||
else { | ||
db = client.dynamodb | ||
db = client.ddb | ||
callback(null, db) | ||
@@ -39,2 +40,3 @@ } | ||
port, | ||
plugins: [ import('@aws-lite/dynamodb') ], | ||
region: AWS_REGION || 'us-west-2' | ||
@@ -41,0 +43,0 @@ }, |
@@ -34,6 +34,9 @@ let toLogicalID = require('./_to-logical-id') | ||
let config = { | ||
endpoint: `http://localhost:2222/_arc/ssm`, | ||
plugins: [ import('@aws-lite/ssm') ], | ||
protocol: 'http', | ||
host: 'localhost', | ||
port: 2222, | ||
pathPrefix: '_arc/ssm', | ||
region: AWS_REGION || 'us-west-2', | ||
} | ||
aws(config, function gotClient (err, client) { | ||
@@ -40,0 +43,0 @@ if (err) callback(err) |
@@ -34,3 +34,6 @@ let util = require('util') | ||
else go({ | ||
endpoint: `http://localhost:${ports._arc}/_arc/ssm`, | ||
protocol: 'http', | ||
host: 'localhost', | ||
port: ports._arc, | ||
pathPrefix: '_arc/ssm', | ||
region: AWS_REGION || 'us-west-2', | ||
@@ -44,4 +47,5 @@ }) | ||
function go (config) { | ||
aws(config, function gotClient (err, client) { | ||
function go (config = {}) { | ||
let plugins = [ import('@aws-lite/ssm') ] | ||
aws({ plugins, ...config }, function gotClient (err, client) { | ||
if (err) callback(err) | ||
@@ -48,0 +52,0 @@ else { |
36335
1033
+ Added@aws-lite/client@0.17.3(transitive)
- Removed@aws-lite/client@0.16.1(transitive)
Updated@aws-lite/client@^0.17.1
Updated@aws-lite/dynamodb@^0.3.4
Updated@aws-lite/ssm@^0.2.3