@bifravst/aws-cdk-lambda-helpers 3.3.73 → 3.3.75

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.
@@ -2,6 +2,6 @@ import { aws_lambda as Lambda } from 'aws-cdk-lib';
2
2
  import { Construct } from 'constructs';
3
3
  import type { PackedLambda } from './packLambda.ts';
4
4
  export declare class LambdaSource extends Construct {
5
- readonly code: Lambda.S3Code;
5
+ readonly code: Lambda.AssetCode;
6
6
  constructor(parent: Construct, packedLambda: Pick<PackedLambda, 'zipFilePath' | 'id' | 'hash'>);
7
7
  }
@@ -1,15 +1,12 @@
1
- import { AssetHashType, aws_lambda as Lambda, aws_s3 as S3, aws_s3_assets as S3Assets } from 'aws-cdk-lib';
1
+ import { AssetHashType, aws_lambda as Lambda } from 'aws-cdk-lib';
2
2
  import { Construct } from 'constructs';
3
3
  export class LambdaSource extends Construct {
4
4
  code;
5
5
  constructor(parent, packedLambda){
6
6
  super(parent, `${packedLambda.id}Source`);
7
- const asset = new S3Assets.Asset(this, 'asset', {
8
- path: packedLambda.zipFilePath,
7
+ this.code = Lambda.Code.fromAsset(packedLambda.zipFilePath, {
9
8
  assetHash: packedLambda.hash,
10
9
  assetHashType: AssetHashType.CUSTOM
11
10
  });
12
- const sourceCodeBucket = S3.Bucket.fromBucketName(this, 'bucket', asset.s3BucketName);
13
- this.code = Lambda.Code.fromBucket(sourceCodeBucket, asset.s3ObjectKey);
14
11
  }
15
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bifravst/aws-cdk-lambda-helpers",
3
- "version": "3.3.73",
3
+ "version": "3.3.75",
4
4
  "description": "Helper functions which simplify working with TypeScript lambdas for AWS CDK.",
5
5
  "exports": {
6
6
  ".": {
@@ -62,10 +62,10 @@
62
62
  "@commitlint/config-conventional": "19.8.1",
63
63
  "@swc/cli": "0.7.7",
64
64
  "@types/aws-lambda": "8.10.150",
65
- "@types/node": "22.15.34",
65
+ "@types/node": "22.16.0",
66
66
  "@types/unzip-stream": "0.3.4",
67
67
  "@types/yazl": "3.3.0",
68
- "cdk": "2.1019.2",
68
+ "cdk": "2.1020.0",
69
69
  "commitlint": "19.8.1",
70
70
  "husky": "9.1.7",
71
71
  "id128": "1.6.6",
@@ -122,8 +122,8 @@
122
122
  },
123
123
  "peerDependencies": {
124
124
  "@aws-sdk/client-lambda": "^3.840.0",
125
- "@bifravst/aws-ssm-settings-helpers": "^1.2.165",
126
- "aws-cdk-lib": "^2.202.0",
125
+ "@bifravst/aws-ssm-settings-helpers": "^1.2.166",
126
+ "aws-cdk-lib": "^2.203.0",
127
127
  "constructs": "^10.4.2"
128
128
  }
129
129
  }