@lafken/standalone 0.12.8 → 0.12.10

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,4 +1,4 @@
1
- import type { LambdaMetadata, LambdaProps, ServicesValues } from '@lafken/common';
1
+ import type { LambdaMetadata, LambdaProps, LambdaReferenceNames, ServicesValues } from '@lafken/common';
2
2
  export declare const RESOURCE_TYPE = "standalone";
3
3
  export interface HandlerProps {
4
4
  /**
@@ -33,7 +33,7 @@ export interface HandlerProps {
33
33
  services?: ServicesValues;
34
34
  roleRef?: string;
35
35
  };
36
- lambda?: LambdaProps;
36
+ lambda?: Omit<LambdaProps, 'ref'>;
37
37
  /**
38
38
  * Registers this Lambda function as a named global reference, allowing other
39
39
  * resources to access its attributes (e.g. ARN, function name) by reference name.
@@ -41,7 +41,7 @@ export interface HandlerProps {
41
41
  * @example
42
42
  * ref: 'myHandler'
43
43
  */
44
- ref?: string;
44
+ ref?: LambdaReferenceNames;
45
45
  }
46
- export interface HandlerMetadata extends Omit<HandlerProps, 'name'>, LambdaMetadata {
46
+ export interface HandlerMetadata extends Omit<HandlerProps, 'name'>, Omit<LambdaMetadata, 'lambda'> {
47
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lafken/standalone",
3
- "version": "0.12.8",
3
+ "version": "0.12.10",
4
4
  "private": false,
5
5
  "description": "Define Lambdas using TypeScript decorators - serverless event-driven infrastructure",
6
6
  "keywords": [
@@ -47,7 +47,7 @@
47
47
  ],
48
48
  "dependencies": {
49
49
  "reflect-metadata": "^0.2.2",
50
- "@lafken/resolver": "0.12.8"
50
+ "@lafken/resolver": "0.12.10"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@cdktn/provider-aws": "^24.0.0",
@@ -60,13 +60,13 @@
60
60
  "typescript": "6.0.3",
61
61
  "unplugin-swc": "^1.5.9",
62
62
  "vitest": "^4.1.5",
63
- "@lafken/common": "0.12.8"
63
+ "@lafken/common": "0.12.10"
64
64
  },
65
65
  "peerDependencies": {
66
66
  "@cdktn/provider-aws": ">=23.0.0",
67
67
  "cdktn": ">=0.22.0",
68
68
  "constructs": "^10.4.5",
69
- "@lafken/common": "0.12.8"
69
+ "@lafken/common": "0.12.10"
70
70
  },
71
71
  "engines": {
72
72
  "node": ">=20.19"