electrodb 3.4.6 → 3.4.7

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/clauses.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electrodb",
3
- "version": "3.4.6",
3
+ "version": "3.4.7",
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/clauses.js CHANGED
@@ -15,7 +15,6 @@ const {
15
15
  AttributeOperationProxy,
16
16
  UpdateOperations,
17
17
  FilterOperationNames,
18
- UpdateOperationNames,
19
18
  } = require("./operations");
20
19
  const { UpdateExpression } = require("./update");
21
20
  const { FilterExpression } = require("./where");
@@ -472,6 +471,8 @@ let clauses = {
472
471
  const value = updatedKeys[key];
473
472
  if (indexKey[key] === undefined) {
474
473
  setFields[key] = value;
474
+ } else {
475
+ delete setFields[key];
475
476
  }
476
477
  }
477
478