@bifravst/aws-cdk-lambda-helpers 4.0.28 → 4.0.29

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,11 +3,11 @@
3
3
  */
4
4
  export declare const findDependencies: (args: {
5
5
  sourceFilePath: string;
6
- imports?: string[];
7
- visited?: string[];
8
- packages?: Set<string>;
9
- tsConfigFilePath?: string;
10
- importsSubpathPatterns?: Record<string, string>;
6
+ imports?: string[] | undefined;
7
+ visited?: string[] | undefined;
8
+ packages?: Set<string> | undefined;
9
+ tsConfigFilePath?: string | undefined;
10
+ importsSubpathPatterns?: Record<string, string> | undefined;
11
11
  }) => {
12
12
  dependencies: string[];
13
13
  /**
@@ -13,9 +13,9 @@ export declare const packLambda: ({ sourceFilePath, zipFilePath, tsConfigFilePat
13
13
  /**
14
14
  * Pass the path to the tsconfig.json file if you want to use paths from the tsconfig.json file.
15
15
  */
16
- tsConfigFilePath?: string;
17
- debug?: (label: string, info: string) => void;
18
- progress?: (label: string, info: string) => void;
16
+ tsConfigFilePath?: string | undefined;
17
+ debug?: ((label: string, info: string) => void) | undefined;
18
+ progress?: ((label: string, info: string) => void) | undefined;
19
19
  }) => Promise<{
20
20
  handler: string;
21
21
  hash: string;
@@ -2,19 +2,19 @@ import { type PackedLambda } from './packLambda.ts';
2
2
  export declare const packLambdaFromPath: ({ id, sourceFilePath, handlerFunction: handlerFunctionArg, baseDir: baseDirArg, distDir: distDirArg, tsConfigFilePath, debug, progress, }: {
3
3
  id: string;
4
4
  sourceFilePath: string;
5
- handlerFunction?: string;
5
+ handlerFunction?: string | undefined;
6
6
  /**
7
7
  * @default process.cwd()
8
8
  */
9
- baseDir?: string;
9
+ baseDir?: string | undefined;
10
10
  /**
11
11
  * @default ${baseDir}/dist/lambdas
12
12
  */
13
- distDir?: string;
13
+ distDir?: string | undefined;
14
14
  /**
15
15
  * Pass the path to the tsconfig.json file if you want to use paths from the tsconfig.json file.
16
16
  */
17
- tsConfigFilePath?: string;
18
- debug?: (label: string, info: string) => void;
19
- progress?: (label: string, info: string) => void;
17
+ tsConfigFilePath?: string | undefined;
18
+ debug?: ((label: string, info: string) => void) | undefined;
19
+ progress?: ((label: string, info: string) => void) | undefined;
20
20
  }) => Promise<PackedLambda>;
@@ -8,16 +8,16 @@ export declare const packLayer: ({ id, dependencies, baseDir, distDir, installCo
8
8
  /**
9
9
  * @default process.cwd()
10
10
  */
11
- baseDir?: string;
11
+ baseDir?: string | undefined;
12
12
  /**
13
13
  * @default ${baseDir}/dist/layers
14
14
  */
15
- distDir?: string;
15
+ distDir?: string | undefined;
16
16
  /**
17
17
  * Returns the command to run, the first element is the command (e.g. `npm`) and the rest are its arguments.
18
18
  */
19
- installCommand?: (args: {
19
+ installCommand?: ((args: {
20
20
  packageFilePath: string;
21
21
  packageLockFilePath: string;
22
- }) => [string, ...string[]];
22
+ }) => [string, ...string[]]) | undefined;
23
23
  }) => Promise<PackedLayer>;
@@ -4,4 +4,4 @@ import type { PackedLambda } from './packLambda.ts';
4
4
  export declare const updateLambdaCode: ({ cf, lambda }: {
5
5
  cf: CloudFormationClient;
6
6
  lambda: LambdaClient;
7
- }) => (stackName: string, packedLambdas: Record<string, PackedLambda>, debug?: (...args: any[]) => void) => Promise<void>;
7
+ }) => (stackName: string, packedLambdas: Record<string, PackedLambda>, debug?: ((...args: any[]) => void) | undefined) => Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bifravst/aws-cdk-lambda-helpers",
3
- "version": "4.0.28",
3
+ "version": "4.0.29",
4
4
  "description": "Helper functions which simplify working with TypeScript lambdas for AWS CDK.",
5
5
  "exports": {
6
6
  ".": {
@@ -60,12 +60,12 @@
60
60
  "@bifravst/from-env": "3.0.2",
61
61
  "@bifravst/prettier-config": "1.1.17",
62
62
  "@commitlint/config-conventional": "20.3.1",
63
- "@swc/cli": "0.7.10",
63
+ "@swc/cli": "0.8.0",
64
64
  "@types/aws-lambda": "8.10.160",
65
65
  "@types/node": "25.2.1",
66
66
  "@types/unzip-stream": "0.3.4",
67
67
  "@types/yazl": "3.3.0",
68
- "@typescript/native-preview": "7.0.0-dev.20260205.1",
68
+ "@typescript/native-preview": "7.0.0-dev.20260206.1",
69
69
  "cdk": "2.1105.0",
70
70
  "commitlint": "20.3.1",
71
71
  "husky": "9.1.7",
@@ -122,7 +122,7 @@
122
122
  },
123
123
  "peerDependencies": {
124
124
  "@aws-sdk/client-lambda": "^3.981.0",
125
- "@bifravst/aws-ssm-settings-helpers": "^1.2.269",
125
+ "@bifravst/aws-ssm-settings-helpers": "^1.2.270",
126
126
  "aws-cdk-lib": "^2.237.1",
127
127
  "constructs": "^10.4.5"
128
128
  }