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

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,7 +3,7 @@ import { GetFunctionCommand, LastUpdateStatus, TagResourceCommand, UpdateFunctio
3
3
  import assert from 'node:assert';
4
4
  import { readFile } from 'node:fs/promises';
5
5
  import pRetry from 'p-retry';
6
- const updateLambda = ({ lambda, packs, debug })=>async (lambdaResource)=>{
6
+ const updateLambda = ({ lambda, packs, debug, forceUpdate })=>async (lambdaResource)=>{
7
7
  const info = await lambda.send(new GetFunctionCommand({
8
8
  FunctionName: lambdaResource.PhysicalResourceId
9
9
  }));
@@ -13,9 +13,11 @@ const updateLambda = ({ lambda, packs, debug })=>async (lambdaResource)=>{
13
13
  return;
14
14
  }
15
15
  debug?.(`[${packed.id}]`, 'found pack');
16
- if (packed.hash === info.Tags?.['packedLambda:hash']) {
17
- debug?.(`[${packed.id}]`, 'No update needed');
18
- return;
16
+ if ((forceUpdate ?? false) === false) {
17
+ if (packed.hash === info.Tags?.['packedLambda:hash']) {
18
+ debug?.(`[${packed.id}]`, 'No update needed');
19
+ return;
20
+ }
19
21
  }
20
22
  if (packed.hash !== info.Tags?.['packedLambda:hash']) {
21
23
  debug?.(`[${packed.id}]`, 'Updating lambda');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bifravst/aws-cdk-lambda-helpers",
3
- "version": "3.3.81",
3
+ "version": "3.4.0",
4
4
  "description": "Helper functions which simplify working with TypeScript lambdas for AWS CDK.",
5
5
  "exports": {
6
6
  ".": {
@@ -53,8 +53,8 @@
53
53
  "author": "Nordic Semiconductor ASA | nordicsemi.no",
54
54
  "license": "BSD-3-Clause",
55
55
  "devDependencies": {
56
- "@aws-sdk/client-cloudformation": "3.840.0",
57
- "@aws-sdk/client-dynamodb": "3.840.0",
56
+ "@aws-sdk/client-cloudformation": "3.844.0",
57
+ "@aws-sdk/client-dynamodb": "3.844.0",
58
58
  "@bifravst/cloudformation-helpers": "9.1.1",
59
59
  "@bifravst/eslint-config-typescript": "6.4.1",
60
60
  "@bifravst/from-env": "3.0.2",
@@ -62,7 +62,7 @@
62
62
  "@commitlint/config-conventional": "19.8.1",
63
63
  "@swc/cli": "0.7.8",
64
64
  "@types/aws-lambda": "8.10.150",
65
- "@types/node": "22.16.2",
65
+ "@types/node": "24.0.13",
66
66
  "@types/unzip-stream": "0.3.4",
67
67
  "@types/yazl": "3.3.0",
68
68
  "cdk": "2.1020.2",
@@ -113,7 +113,7 @@
113
113
  ],
114
114
  "prettier": "@bifravst/prettier-config",
115
115
  "dependencies": {
116
- "@swc/core": "1.12.11",
116
+ "@swc/core": "1.12.14",
117
117
  "fp-ts": "2.16.10",
118
118
  "glob": "11.0.3",
119
119
  "p-retry": "6.2.1",
@@ -121,7 +121,7 @@
121
121
  "yazl": "3.3.1"
122
122
  },
123
123
  "peerDependencies": {
124
- "@aws-sdk/client-lambda": "^3.840.0",
124
+ "@aws-sdk/client-lambda": "^3.844.0",
125
125
  "@bifravst/aws-ssm-settings-helpers": "^1.2.169",
126
126
  "aws-cdk-lib": "^2.204.0",
127
127
  "constructs": "^10.4.2"