@lambda-kata/cdk 0.1.3-rc.65 → 0.1.3-rc.66

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.
@@ -22,7 +22,7 @@ export { LicensingService, HttpLicensingService, createLicensingService, isValid
22
22
  export { MockLicensingService, createMockLicensingService, } from './mock-licensing';
23
23
  export { resolveAccountId, resolveAccountIdWithSource, isValidAccountIdFormat, AccountResolutionError, AccountResolutionResult, AccountResolverOptions, } from './account-resolver';
24
24
  export { resolveAccountIdSync, resolveAccountIdSyncWithSource, resolveRegionSync, SyncAccountResolutionError, SyncAccountResolutionResult, SyncAccountResolverOptions, } from './sync-account-resolver';
25
- export { kata, kataWithAccountId, applyTransformation, handleUnlicensed, isKataTransformed, getKataPromise, KataWrapperOptions, KataResult, } from './kata-wrapper';
25
+ export { kata, kataWithAccountId, applyTransformation, handleUnlicensed, isKataTransformed, getKataPromise, extractBundlePathFromHandler, KataWrapperOptions, KataResult, } from './kata-wrapper';
26
26
  export { createKataConfigLayer, generateConfigContent, KataConfigLayerProps, CONFIG_DIR_NAME, CONFIG_FILE_NAME, HANDLER_CONFIG_KEY, } from './config-layer';
27
27
  export { EnsureNodeRuntimeLayerOptions, EnsureNodeRuntimeLayerResult, NodeVersionInfo, LayerInfo, LayerSearchOptions, LayerRequirements, LayerCreationOptions, Logger, RuntimeDetector, LayerManager, ErrorCodes, NodeRuntimeLayerError, VersionCacheEntry, LayerMetadata, NodejsLayerDeploymentOptions, NodejsLayerDeploymentResult, MultiArchitectureDeploymentResult, } from './nodejs-layer-manager';
28
28
  export { DockerRuntimeDetector, DockerRuntimeDetectorOptions, } from './docker-runtime-detector';
@@ -136,6 +136,23 @@ export declare function kata<T extends NodejsFunction | LambdaFunction>(lambda:
136
136
  * @internal
137
137
  */
138
138
  export declare function kataWithAccountId<T extends NodejsFunction | LambdaFunction>(lambda: T, accountId: string, region: string, props?: KataWrapperOptions): Promise<KataResult>;
139
+ /**
140
+ * Extracts the bundle path from a Lambda handler string.
141
+ *
142
+ * The handler format is "<module>.<function>" or "<path/module>.<function>".
143
+ * This function extracts the module path and appends ".js" extension.
144
+ *
145
+ * @param handler - The Lambda handler string (e.g., "index.handler", "src/app.myHandler")
146
+ * @returns The bundle path (e.g., "index.js", "src/app.js")
147
+ *
148
+ * @example
149
+ * extractBundlePathFromHandler("index.handler") // => "index.js"
150
+ * extractBundlePathFromHandler("src/app.myHandler") // => "src/app.js"
151
+ * extractBundlePathFromHandler("dist/handlers/api.handler") // => "dist/handlers/api.js"
152
+ *
153
+ * @internal
154
+ */
155
+ export declare function extractBundlePathFromHandler(handler: string): string;
139
156
  /**
140
157
  * Gets the original runtime from a Lambda function before transformation.
141
158
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lambda-kata/cdk",
3
- "version": "0.1.3-rc.65",
3
+ "version": "0.1.3-rc.66",
4
4
  "description": "AWS CDK integration for Lambda Kata - Node.js Lambdas running via Lambda Kata runtime",
5
5
  "main": "out/dist/index.js",
6
6
  "types": "out/tsc/src/index.d.ts",