wirejs-deploy-amplify-basic 0.0.77-table-resource → 0.0.78-table-resource

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.
@@ -3,6 +3,6 @@
3
3
  "dependencies": {
4
4
  "jsdom": "^25.0.1",
5
5
  "wirejs-dom": "^1.0.38",
6
- "wirejs-resources": "^0.1.45-table-resource"
6
+ "wirejs-resources": "^0.1.46-table-resource"
7
7
  }
8
8
  }
@@ -13,23 +13,10 @@ function isFieldComparison(filter) {
13
13
  function buildFilterExpression(filter) {
14
14
  console.log('Building filter expression for filter:', filter);
15
15
  if (filter.and) {
16
- let pl = '(';
17
- let pr = ')';
18
- if (filter.and.length === 1) {
19
- pl = '';
20
- pr = '';
21
- }
22
- return `${pl}${filter.and.map(buildFilterExpression).join(' AND ')}${pr}`;
16
+ return `(${filter.and.map(buildFilterExpression).join(' AND ')})`;
23
17
  }
24
18
  if (filter.or) {
25
- let pl = '(';
26
- ;
27
- let pr = ')';
28
- if (filter.or.length === 1) {
29
- pl = '';
30
- pr = '';
31
- }
32
- return `${pl}${filter.or.map(buildFilterExpression).join(' OR ')}${pr}`;
19
+ return `(${filter.or.map(buildFilterExpression).join(' OR ')})`;
33
20
  }
34
21
  if (filter.not) {
35
22
  return `NOT ${buildFilterExpression(filter.not)}`;
@@ -260,10 +247,10 @@ export class DistributedTable extends Resource {
260
247
  ExpressionAttributeNames: expressionAttributeNames,
261
248
  ExclusiveStartKey: lastEvaluatedKey,
262
249
  });
263
- console.log('DynamoDB query command:', JSON.stringify(command, null, 2));
250
+ // console.log('DynamoDB query command:', JSON.stringify(command, null, 2));
264
251
  try {
265
252
  const result = await this.ddbClient.send(command);
266
- console.log('DDB Query result:', result);
253
+ // console.log('DDB Query result:', result);
267
254
  for (const item of result.Items || []) {
268
255
  if (!item)
269
256
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wirejs-deploy-amplify-basic",
3
- "version": "0.0.77-table-resource",
3
+ "version": "0.0.78-table-resource",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -32,7 +32,7 @@
32
32
  "recursive-copy": "^2.0.14",
33
33
  "rimraf": "^6.0.1",
34
34
  "wirejs-dom": "^1.0.38",
35
- "wirejs-resources": "^0.1.45-table-resource"
35
+ "wirejs-resources": "^0.1.46-table-resource"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@aws-amplify/backend": "^1.14.0",