electrodb 3.5.1 → 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 +6 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electrodb",
3
- "version": "3.5.1",
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
@@ -2139,7 +2139,10 @@ class Entity {
2139
2139
 
2140
2140
  _batchGetParams(state, config = {}) {
2141
2141
  let table = config.table || this.getTableName();
2142
- let userDefinedParams = config.params || {};
2142
+ let userDefinedParams = this._applyProjectionExpressions({
2143
+ parameters: config.params || {},
2144
+ config,
2145
+ });
2143
2146
 
2144
2147
  // TableName is added when the config provided includes "table"
2145
2148
  // this is evaluated upstream so we remove it to avoid forming
@@ -3785,9 +3788,9 @@ class Entity {
3785
3788
  this.model.facets.labels[index] &&
3786
3789
  Array.isArray(this.model.facets.labels[index].sk);
3787
3790
  let labels = hasLabels ? this.model.facets.labels[index].sk : [];
3788
- const hasFacets = Object.keys(skFacet).length > 0;
3791
+ // const hasFacets = Object.keys(skFacet).length > 0;
3789
3792
  let sortKey = this._makeKey(prefixes.sk, facets.sk, skFacet, labels, {
3790
- excludeLabelTail: hasFacets,
3793
+ excludeLabelTail: true,
3791
3794
  excludePostfix,
3792
3795
  transform,
3793
3796
  });