wirejs-deploy-amplify-basic 0.0.82-table-resource → 0.0.83-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.
@@ -4,6 +4,7 @@ import * as lambda from 'aws-cdk-lib/aws-lambda';
4
4
  import * as cr from 'aws-cdk-lib/custom-resources';
5
5
  import { GlobalSecondaryIndexProps } from 'aws-cdk-lib/aws-dynamodb';
6
6
  import { Construct } from 'constructs';
7
+ import { NodejsFunction } from 'aws-cdk-lib/aws-lambda-nodejs';
7
8
 
8
9
  const __filename = import.meta.url.replace(/^file:/, '');
9
10
  const __dirname = path.dirname(__filename);
@@ -17,10 +18,10 @@ export class TableIndexes extends Construct {
17
18
  constructor(scope: Construct, id: string, props: TableIndexesProps) {
18
19
  super(scope, id);
19
20
 
20
- const onEvent = new lambda.Function(this, 'TableIndexesHandler', {
21
+ const onEvent = new NodejsFunction(this, 'TableIndexesHandler', {
21
22
  runtime: lambda.Runtime.NODEJS_22_X,
22
- handler: 'index.handler',
23
- code: lambda.Code.fromAsset(path.join(__dirname, 'handler')),
23
+ handler: 'handler',
24
+ entry: path.join(__dirname, 'handler-lambda.ts'),
24
25
  timeout: Duration.minutes(15),
25
26
  });
26
27
 
@@ -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.50-table-resource"
6
+ "wirejs-resources": "^0.1.51-table-resource"
7
7
  }
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wirejs-deploy-amplify-basic",
3
- "version": "0.0.82-table-resource",
3
+ "version": "0.0.83-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.50-table-resource"
35
+ "wirejs-resources": "^0.1.51-table-resource"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@aws-amplify/backend": "^1.14.0",