electrodb 2.14.0 → 2.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/entity.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "electrodb",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.2",
|
|
4
4
|
"description": "A library to more easily create and interact with multiple entities and heretical relationships in dynamodb",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"directory": "test"
|
|
89
89
|
},
|
|
90
90
|
"dependencies": {
|
|
91
|
-
"@aws-sdk/lib-dynamodb": "
|
|
91
|
+
"@aws-sdk/lib-dynamodb": "3.395.0",
|
|
92
92
|
"jsonschema": "1.2.7"
|
|
93
93
|
}
|
|
94
94
|
}
|
package/src/entity.js
CHANGED
|
@@ -3282,7 +3282,7 @@ class Entity {
|
|
|
3282
3282
|
// the `missing` array will contain indexes that are partially provided, but that leaves cases where the pk or
|
|
3283
3283
|
// sk of an index is complete but not both. Both cases are invalid if `indexConditionIsDefined=true`
|
|
3284
3284
|
const missingAttributes = definition.all
|
|
3285
|
-
.filter(({name}) =>
|
|
3285
|
+
.filter(({name}) => attributes[name] === undefined && included[name] === undefined || missing.includes(name))
|
|
3286
3286
|
.map(({name}) => name)
|
|
3287
3287
|
|
|
3288
3288
|
if (missingAttributes.length) {
|