Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dynamodb-admin

Package Overview
Dependencies
Maintainers
4
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dynamodb-admin - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

23

lib/backend.js

@@ -6,2 +6,3 @@ const express = require('express')

const fs = require('fs')
const os = require('os')
const errorhandler = require('errorhandler')

@@ -92,2 +93,18 @@ const { extractKey, extractKeysForItems, parseKey } = require('./util')

function getHomeDir() {
const env = process.env
const home = env.HOME || env.USERPROFILE
|| (env.HOMEPATH ? ((env.HOMEDRIVE || 'C:/') + env.HOMEPATH) : null)
if (home) {
return home
}
if (typeof os.homedir === 'function') {
return os.homedir()
}
return null
}
exports.createServer = (dynamodb, docClient) => {

@@ -100,4 +117,6 @@ const app = express()

if (!dynamodb || !docClient) {
if (fs.existsSync(path.join(process.env.HOME, '.aws', 'credentials')) &&
fs.existsSync(path.join(process.env.HOME, '.aws', 'config'))) {
const homeDir = getHomeDir()
if (homeDir && fs.existsSync(path.join(homeDir, '.aws', 'credentials')) &&
fs.existsSync(path.join(homeDir, '.aws', 'config'))) {
process.env.AWS_SDK_LOAD_CONFIG = 1

@@ -104,0 +123,0 @@ }

2

package.json
{
"name": "dynamodb-admin",
"version": "3.0.1",
"version": "3.0.2",
"description": "GUI for DynamoDB. Useful for local development.",

@@ -5,0 +5,0 @@ "main": "lib/backend.js",

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