Comparing version 0.2.9 to 0.3.0
@@ -245,4 +245,10 @@ var Q = require('kew') | ||
if (!Array.isArray(item[field])) throw new Error('Trying to append to a non-array') | ||
item[field].push(attribute.value) | ||
for (var i = 0; i < attribute.value.length; i++) { | ||
var valueToAdd = attribute.value[i] | ||
if (item[field].indexOf(valueToAdd) == -1) { | ||
item[field].push(valueToAdd) | ||
} | ||
} | ||
} else if (attribute.type == 'N') { | ||
@@ -249,0 +255,0 @@ // increment a number |
{ | ||
"name": "dynamite" | ||
, "description": "promise-based DynamoDB client" | ||
, "version": "0.2.9" | ||
, "version": "0.3.0" | ||
, "homepage": "https://github.com/Obvious/dynamite" | ||
@@ -6,0 +6,0 @@ , "authors": [ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
139736
3590
1