wirejs-deploy-amplify-basic 0.0.79-table-resource → 0.0.80-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.
@@ -12,6 +12,7 @@ import { TableIndexes } from './constructs/table-indexes';
12
12
 
13
13
  // @ts-ignore
14
14
  import generated from './generated-resources';
15
+ import { Key } from 'aws-cdk-lib/aws-kms';
15
16
 
16
17
  const APP_ID = process.env.AWS_APP_ID ?? process.env.PWD?.replace(/[^a-zA-Z0-9-_]/g, '_');
17
18
  const BRANCH_ID = process.env.AWS_BRANCH ?? process.env.USER ?? 'anonymous';
@@ -94,14 +95,14 @@ for (const resource of generated) {
94
95
  {
95
96
  tableName,
96
97
  indexes: (resource.options.indexes ?? []).map((index) => ({
97
- indexName: indexName(index),
98
+ indexName: indexName(index as any),
98
99
  partitionKey: {
99
100
  name: index.partition.field,
100
- type: PKFieldTypes[index.partition.type],
101
+ type: PKFieldTypes[index.partition.type as keyof typeof PKFieldTypes],
101
102
  },
102
103
  sortKey: index.sort ? {
103
104
  name: index.sort.field,
104
- type: PKFieldTypes[index.sort.type],
105
+ type: PKFieldTypes[index.sort.type as keyof typeof PKFieldTypes],
105
106
  } : undefined,
106
107
  }))
107
108
  }
@@ -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.47-table-resource"
6
+ "wirejs-resources": "^0.1.48-table-resource"
7
7
  }
8
8
  }
package/build.js CHANGED
@@ -55,6 +55,7 @@ async function installDeps() {
55
55
  ...{
56
56
  '@aws-amplify/backend': '^1.14.0',
57
57
  '@aws-amplify/backend-cli': '^1.4.8',
58
+ "@aws-sdk/client-dynamodb": "^3.799.0",
58
59
  'aws-cdk': '^2.177.0',
59
60
  'aws-cdk-lib': '^2.177.0',
60
61
  'constructs': '^10.4.2',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wirejs-deploy-amplify-basic",
3
- "version": "0.0.79-table-resource",
3
+ "version": "0.0.80-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.47-table-resource"
35
+ "wirejs-resources": "^0.1.48-table-resource"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@aws-amplify/backend": "^1.14.0",