electrodb 3.5.2 → 3.5.3

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/entity.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electrodb",
3
- "version": "3.5.2",
3
+ "version": "3.5.3",
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": {
package/src/entity.js CHANGED
@@ -3788,9 +3788,9 @@ class Entity {
3788
3788
  this.model.facets.labels[index] &&
3789
3789
  Array.isArray(this.model.facets.labels[index].sk);
3790
3790
  let labels = hasLabels ? this.model.facets.labels[index].sk : [];
3791
- const hasFacets = Object.keys(skFacet).length > 0;
3791
+ // const hasFacets = Object.keys(skFacet).length > 0;
3792
3792
  let sortKey = this._makeKey(prefixes.sk, facets.sk, skFacet, labels, {
3793
- excludeLabelTail: hasFacets,
3793
+ excludeLabelTail: true,
3794
3794
  excludePostfix,
3795
3795
  transform,
3796
3796
  });