@lafken/dynamo 0.12.9 → 0.12.10

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.
@@ -69,6 +69,9 @@ class QueryBuilderBase {
69
69
  const filterExpression = [];
70
70
  let index = 0;
71
71
  for (const key in filter) {
72
+ if (filter[key] === undefined) {
73
+ continue;
74
+ }
72
75
  switch (key) {
73
76
  case 'OR': {
74
77
  const orFilter = filter;
@@ -40,7 +40,7 @@ class UpdateBuilder extends base_1.QueryBuilderBase {
40
40
  setExpression = this.setValues(setValues, true, [], this.expressionGroupCounter++);
41
41
  }
42
42
  if (Object.keys(replaceValues).length > 0) {
43
- setExpression += ` ${this.setValues(replaceValues, false, [], this.expressionGroupCounter++)}`;
43
+ setExpression += `${setExpression ? ',' : ''} ${this.setValues(replaceValues, false, [], this.expressionGroupCounter++)}`;
44
44
  }
45
45
  const removeExpression = this.removeValues(removeValues);
46
46
  const keyCondition = this.queryOptions.inputProps.keyCondition;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lafken/dynamo",
3
- "version": "0.12.9",
3
+ "version": "0.12.10",
4
4
  "private": false,
5
5
  "description": "Define DynamoDB tables using TypeScript decorators - type-safe, declarative infrastructure with Lafken",
6
6
  "keywords": [
@@ -60,7 +60,7 @@
60
60
  "@aws-sdk/util-dynamodb": "^3.996.2",
61
61
  "aws-xray-sdk": "^3.12.0",
62
62
  "reflect-metadata": "^0.2.2",
63
- "@lafken/resolver": "0.12.9"
63
+ "@lafken/resolver": "0.12.10"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@cdktn/provider-aws": "^24.0.0",
@@ -74,13 +74,13 @@
74
74
  "typescript": "6.0.3",
75
75
  "unplugin-swc": "^1.5.9",
76
76
  "vitest": "^4.1.5",
77
- "@lafken/common": "0.12.9"
77
+ "@lafken/common": "0.12.10"
78
78
  },
79
79
  "peerDependencies": {
80
80
  "@cdktn/provider-aws": ">=23.0.0",
81
81
  "cdktn": ">=0.22.0",
82
82
  "constructs": "^10.4.5",
83
- "@lafken/common": "0.12.9"
83
+ "@lafken/common": "0.12.10"
84
84
  },
85
85
  "engines": {
86
86
  "node": ">=20.19"