@jupiterone/dynamodb-dao
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -39,3 +39,3 @@ "use strict"; | ||
const name = keys[i]; | ||
const valueName = `:${name}`; | ||
const valueName = `:a${i}`; | ||
const attributeName = `#a${i}`; | ||
@@ -162,4 +162,3 @@ const value = data[name]; | ||
async update(key, data, updateOptions) { | ||
const { Attributes: attributes } = await this.documentClient | ||
.update(generateUpdateParams({ | ||
const params = generateUpdateParams({ | ||
tableName: this.tableName, | ||
@@ -169,3 +168,5 @@ key, | ||
...updateOptions, | ||
})) | ||
}); | ||
const { Attributes: attributes } = await this.documentClient | ||
.update(params) | ||
.promise(); | ||
@@ -172,0 +173,0 @@ return attributes; |
{ | ||
"name": "@jupiterone/dynamodb-dao", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "DynamoDB Data Access Object (DAO) helper library", | ||
@@ -49,2 +49,3 @@ "main": "index.js", | ||
"lodash.partition": "^4.6.0", | ||
"nodemon": "^2.0.7", | ||
"prettier": "^2.0.4", | ||
@@ -51,0 +52,0 @@ "ts-jest": "^25.3.1", |
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
26345
557
21