dynamodb-enhanced
Advanced tools
Comparing version 0.4.0-k to 0.4.0-l
@@ -573,7 +573,14 @@ // Copyright Teleportd Ltd. and other Contributors | ||
*/ | ||
query = function(table, hash, options, cb) { | ||
query = function(table, hash, operator, options, cb) { | ||
var data = {}; | ||
try { | ||
for(var i in hash) { | ||
if(hash.hasOwnProperty(i)) { | ||
hash[i] = {ComparisonOperator: operator, AttributeValueList: [scToDDB(hash[i])]} | ||
} | ||
} | ||
data.TableName = table; | ||
data.HashKeyValue = scToDDB(hash) | ||
data.KeyConditions = hash; | ||
if(options.attributesToGet) { | ||
@@ -580,0 +587,0 @@ data.AttributesToGet = options.attributesToGet; |
{ | ||
"name": "dynamodb-enhanced", | ||
"version": "0.4.0k", | ||
"version": "0.4.0l", | ||
"description": "Simple DynamoDB Library for Node.js. enhanced version of dynamodb by Stanislas Polu", | ||
@@ -5,0 +5,0 @@ "keywords": ["dynamo", "node", "db", "aws", "amazon"], |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
81734
1881