electrodb
Advanced tools
Comparing version 0.11.0 to 0.11.1
{ | ||
"name": "electrodb", | ||
"version": "0.11.0", | ||
"version": "0.11.1", | ||
"description": "A library to more easily create and interact with multiple entities and heretical relationships in dynamodb", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -915,2 +915,3 @@ "use strict"; | ||
let translatedFields = this.model.schema.translateToFields(setAttributes); | ||
let translatedPrimaryKeys = this.model.schema.translateToFields({...pk, ...sk}); | ||
@@ -920,2 +921,3 @@ let item = { | ||
...updatedKeys, | ||
...translatedPrimaryKeys, | ||
}; | ||
@@ -927,3 +929,3 @@ | ||
ExpressionAttributeValues, | ||
} = this._updateExpressionBuilder(item); | ||
} = this._updateExpressionBuilder(item, Object.keys(translatedPrimaryKeys)); | ||
@@ -955,3 +957,3 @@ return { | ||
_updateExpressionBuilder(data) { | ||
_updateExpressionBuilder(data, overrideSkip = []) { | ||
let accessPattern = this.model.translations.indexes.fromIndexToAccessPattern[""] | ||
@@ -963,6 +965,8 @@ let skip = [ | ||
this.model.indexes[accessPattern].sk.field | ||
]; | ||
].filter(name => !overrideSkip.includes(name)); | ||
return this._expressionAttributeBuilder(data, { skip }); | ||
} | ||
_getPrimaryKeyFacets | ||
_queryKeyExpressionAttributeBuilder(index, pk, ...sks) { | ||
@@ -969,0 +973,0 @@ let translate = { ...this.model.translations.keys[index] }; |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
733309
30
16089
4