From 445238acc12a233a8808ba7d521f5a0ebc316430 Mon Sep 17 00:00:00 2001 From: Andrew Rodriguez <49878080+zARODz11z@users.noreply.github.com> Date: Wed, 28 Feb 2024 11:33:15 -0800 Subject: [PATCH] add provided.al2023 to runtimeLookup (#471) * add provided.al2023 to runtimeLookup * format --- src/layer.spec.ts | 7 +++++++ src/layer.ts | 1 + 2 files changed, 8 insertions(+) diff --git a/src/layer.spec.ts b/src/layer.spec.ts index 6ca1759e..d467ebf5 100644 --- a/src/layer.spec.ts +++ b/src/layer.spec.ts @@ -59,6 +59,7 @@ describe("findHandlers", () => { "java21-function": { handler: "myfile.handler", runtime: "java21" }, "dotnet6-function": { handler: "myfile.handler", runtime: "dotnet6" }, "provided-function": { handler: "myfile.handler", runtime: "provided" }, + "provided.al2023-function": { handler: "myfile.handler", runtime: "provided.al2023" }, }); const result = findHandlers(mockService, []); @@ -171,6 +172,12 @@ describe("findHandlers", () => { type: RuntimeType.CUSTOM, runtime: "provided", }, + { + name: "provided.al2023-function", + handler: { handler: "myfile.handler", runtime: "provided.al2023" }, + type: RuntimeType.CUSTOM, + runtime: "provided.al2023", + }, ]); }); }); diff --git a/src/layer.ts b/src/layer.ts index d88c2592..cda0e794 100644 --- a/src/layer.ts +++ b/src/layer.ts @@ -68,6 +68,7 @@ export const runtimeLookup: { [key: string]: RuntimeType } = { "java8.al2": RuntimeType.JAVA, java8: RuntimeType.JAVA, "provided.al2": RuntimeType.CUSTOM, + "provided.al2023": RuntimeType.CUSTOM, provided: RuntimeType.CUSTOM, "ruby3.2": RuntimeType.RUBY, "go1.x": RuntimeType.GO,