@bifravst/aws-cdk-lambda-helpers 3.4.0 → 3.4.1

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.
@@ -1,5 +1,6 @@
1
1
  import { mkdir } from 'node:fs/promises';
2
2
  import path from 'node:path';
3
+ import { checkSumOfStrings } from './checksumOfFiles.js';
3
4
  import { packLambda } from './packLambda.js';
4
5
  export const packLambdaFromPath = async ({ id, sourceFilePath, handlerFunction: handlerFunctionArg, baseDir: baseDirArg, distDir: distDirArg, tsConfigFilePath, debug, progress })=>{
5
6
  const distDir = distDirArg ?? path.join(process.cwd(), 'dist', 'lambdas');
@@ -24,6 +25,9 @@ export const packLambdaFromPath = async ({ id, sourceFilePath, handlerFunction:
24
25
  id,
25
26
  zipFilePath: zipFile,
26
27
  handler: handler.replace('.js', `.${handlerFunction}`),
27
- hash
28
+ hash: checkSumOfStrings([
29
+ id,
30
+ hash
31
+ ])
28
32
  };
29
33
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bifravst/aws-cdk-lambda-helpers",
3
- "version": "3.4.0",
3
+ "version": "3.4.1",
4
4
  "description": "Helper functions which simplify working with TypeScript lambdas for AWS CDK.",
5
5
  "exports": {
6
6
  ".": {