@bhoos/dynamodb
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -48,3 +48,3 @@ 'use strict'; | ||
region: process.env.AWS_REGION, | ||
endpoint: process.env.DYNAMODB_ENDPOINT | ||
endpoint: process.env.DYNAMODB_LOCAL_PORT ? `http://localhost:${process.env.DYNAMODB_LOCAL_PORT}` : undefined | ||
}; | ||
@@ -99,3 +99,3 @@ | ||
return _extends({}, collection, procs({ db: _dynamodb2.default, self: collection })); | ||
return _extends({}, collection, procs({ db, doc, self: collection })); | ||
} |
{ | ||
"name": "@bhoos/dynamodb", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Node DyanmoDB Library", | ||
@@ -10,3 +10,3 @@ "main": "cjs/index.js", | ||
"scripts": { | ||
"test": "AWS_REGION='ap-south-1' DYNAMODB_ENDPOINT='http://localhost:8000' jest", | ||
"test": "AWS_REGION='ap-south-1' DYNAMODB_LOCAL_PORT=8000 jest", | ||
"lint": "eslint src", | ||
@@ -13,0 +13,0 @@ "build": "babel src -d cjs", |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
14079
4