electrodb 3.6.0 → 3.6.1
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 +1 -1
- package/src/entity.js +1 -1
- package/src/service.js +1 -1
package/package.json
CHANGED
package/src/entity.js
CHANGED
|
@@ -2085,7 +2085,7 @@ class Entity {
|
|
|
2085
2085
|
|
|
2086
2086
|
// Convert all attribute names to their respective "field" names
|
|
2087
2087
|
let hasTableIndexPk = false;
|
|
2088
|
-
let hasTableIndexSk = this.model.translations.keys[TableIndex].sk
|
|
2088
|
+
let hasTableIndexSk = !this.model.translations.keys[TableIndex].sk;
|
|
2089
2089
|
const attributeFields = new Map();
|
|
2090
2090
|
for (let [key, name] of Object.entries(parameters.ExpressionAttributeNames || {})) {
|
|
2091
2091
|
if (key.startsWith("#")) {
|
package/src/service.js
CHANGED
|
@@ -706,7 +706,7 @@ class Service {
|
|
|
706
706
|
|
|
707
707
|
if (!matchingProjection) {
|
|
708
708
|
collectionDifferences.push(
|
|
709
|
-
`The provided projection definition ${u.commaSeparatedString(providedIndex.projection
|
|
709
|
+
`The provided projection definition ${u.commaSeparatedString(providedIndex.projection !== undefined && providedIndex.projection !== null ? providedIndex.projection : '<undefined>')} does not match the established projection definition ${u.commaSeparatedString(definition.projection)} on index ${providedIndexName}. Index projection definitions must match across all entities participating in a collection`
|
|
710
710
|
);
|
|
711
711
|
}
|
|
712
712
|
|