dynamodb-admin
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -431,2 +431,4 @@ const express = require('express') | ||
// Create a variable to uniquely identify each expression attribute | ||
let i = 0 | ||
for (const key in filters) { | ||
@@ -436,13 +438,15 @@ if (filters[key].type === 'N') { | ||
} | ||
ExpressionAttributeNames[`#${key}`] = key | ||
ExpressionAttributeValues[`:${key}`] = filters[key].value | ||
ExpressionAttributeNames[`#key${i}`] = key | ||
ExpressionAttributeValues[`:key${i}`] = filters[key].value | ||
if (indexBeingUsed && indexBeingUsed.KeySchema.find( | ||
(keySchemaItem) => keySchemaItem.AttributeName === key) | ||
) { | ||
KeyConditionExpression.push(`#${key} ${filters[key].operator} :${key}`) | ||
KeyConditionExpression.push(`#key${i} ${filters[key].operator} :key${i}`) | ||
} else { | ||
ExpressionAttributeNames[`#${key}`] = key | ||
ExpressionAttributeValues[`:${key}`] = filters[key].value | ||
FilterExpressions.push(`#${key} ${filters[key].operator} :${key}`) | ||
ExpressionAttributeNames[`#key${i}`] = key | ||
ExpressionAttributeValues[`:key${i}`] = filters[key].value | ||
FilterExpressions.push(`#key${i} ${filters[key].operator} :key${i}`) | ||
} | ||
// Increment the unique ID variable | ||
i = i + 1 | ||
} | ||
@@ -449,0 +453,0 @@ |
{ | ||
"name": "dynamodb-admin", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "GUI for DynamoDB. Useful for local development.", | ||
@@ -35,19 +35,19 @@ "main": "lib/backend.js", | ||
"argparse": "^1.0.10", | ||
"aws-sdk": "^2.614.0", | ||
"aws-sdk": "^2.851.0", | ||
"body-parser": "^1.19.0", | ||
"cli-color": "^2.0.0", | ||
"ejs": "^3.0.1", | ||
"ejs": "^3.1.6", | ||
"errorhandler": "^1.5.1", | ||
"express": "^4.17.1", | ||
"lodash.pickby": "^4.6.0", | ||
"open": "^7.0.2" | ||
"open": "^7.4.2" | ||
}, | ||
"devDependencies": { | ||
"ejs-lint": "^1.0.1", | ||
"eslint": "^6.8.0", | ||
"eslint-plugin-jest": "^23.7.0", | ||
"husky": "^4.2.1", | ||
"jest-cli": "^25.1.0", | ||
"nodemon": "^2.0.2" | ||
"ejs-lint": "^1.1.0", | ||
"eslint": "^7.20.0", | ||
"eslint-plugin-jest": "^24.1.5", | ||
"husky": "^4.3.8", | ||
"jest": "^26.6.3", | ||
"nodemon": "^2.0.7" | ||
} | ||
} |
@@ -5,3 +5,3 @@ # dynamodb-admin | ||
[![CircleCI](https://circleci.com/gh/aaronshaf/dynamodb-admin/tree/master.svg?style=svg)](https://circleci.com/gh/aaronshaf/dynamodb-admin/tree/master) | ||
> GUI for [DynamoDB Local](https://aws.amazon.com/blogs/aws/dynamodb-local-for-desktop-development/) or [dynalite](https://github.com/mhart/dynalite). | ||
> GUI for [DynamoDB Local](https://aws.amazon.com/blogs/aws/dynamodb-local-for-desktop-development/), [dynalite](https://github.com/mhart/dynalite), [localstack](https://github.com/localstack/localstack) etc. | ||
@@ -16,3 +16,3 @@ ## Usage | ||
# For Windows: | ||
export DYNAMO_ENDPOINT=http://localhost:8000 | ||
set DYNAMO_ENDPOINT=http://localhost:8000 | ||
dynamodb-admin | ||
@@ -19,0 +19,0 @@ |
Sorry, the diff of this file is not supported yet
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
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
4022
816184
Updatedaws-sdk@^2.851.0
Updatedejs@^3.1.6
Updatedopen@^7.4.2