wirejs-deploy-amplify-basic 0.0.67-table-resource → 0.0.68-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.35-table-resource"
6
+ "wirejs-resources": "^0.1.36-table-resource"
7
7
  }
8
8
  }
@@ -27,7 +27,7 @@ export declare class DistributedTable<const P extends Parser<any>, const T exten
27
27
  };
28
28
  });
29
29
  get partitionKeyName(): PK['field'];
30
- get sortKeyName(): 'field' extends (string & keyof SK) ? SK['field'] : undefined;
30
+ get sortKeyName(): 'field' extends (keyof SK) ? SK['field'] : undefined;
31
31
  save(item: T): Promise<void>;
32
32
  saveMany(items: T[]): Promise<void>;
33
33
  delete(item: RecordKey<T, PK, SK>): Promise<void>;
@@ -112,12 +112,10 @@ export class DistributedTable extends Resource {
112
112
  });
113
113
  }
114
114
  get partitionKeyName() {
115
- const [pkField] = Object.keys(this.partitionKey);
116
- return pkField;
115
+ return this.partitionKey.field;
117
116
  }
118
117
  get sortKeyName() {
119
- const [skField] = Object.keys(this.sort ?? {});
120
- return skField;
118
+ return this.sort?.field;
121
119
  }
122
120
  #getDDBKey(key) {
123
121
  const ddbKey = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wirejs-deploy-amplify-basic",
3
- "version": "0.0.67-table-resource",
3
+ "version": "0.0.68-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.35-table-resource"
35
+ "wirejs-resources": "^0.1.36-table-resource"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@aws-amplify/backend": "^1.14.0",