dynamodb-admin
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -5,2 +5,3 @@ const express = require('express') | ||
const path = require('path') | ||
const fs = require('fs') | ||
const errorhandler = require('errorhandler') | ||
@@ -58,6 +59,10 @@ const { extractKey, extractKeysForItems, parseKey } = require('./util') | ||
if (AWS.config) { | ||
dynamoConfig.region = AWS.config.region | ||
if (AWS.config.region !== undefined) { | ||
dynamoConfig.region = AWS.config.region | ||
} | ||
if (AWS.config.credentials) { | ||
dynamoConfig.accessKeyId = AWS.config.credentials.accessKeyId | ||
if (AWS.config.credentials.accessKeyId !== undefined) { | ||
dynamoConfig.accessKeyId = AWS.config.credentials.accessKeyId | ||
} | ||
} | ||
@@ -95,3 +100,7 @@ } | ||
if (!dynamodb || !docClient) { | ||
process.env.AWS_SDK_LOAD_CONFIG=1 | ||
if (fs.existsSync(path.join(process.env.HOME, '.aws', 'credentials')) && | ||
fs.existsSync(path.join(process.env.HOME, '.aws', 'config'))) { | ||
process.env.AWS_SDK_LOAD_CONFIG = 1 | ||
} | ||
const AWS = require('aws-sdk') | ||
@@ -98,0 +107,0 @@ |
{ | ||
"name": "dynamodb-admin", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "GUI for DynamoDB. Useful for local development.", | ||
@@ -5,0 +5,0 @@ "main": "lib/backend.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
790134
3822
8