From e376aff6e070179d2a71496ee1b903ead271f573 Mon Sep 17 00:00:00 2001 From: TexKiller <3438226+TexKiller@users.noreply.github.com> Date: Sat, 29 Jun 2024 04:21:22 -0300 Subject: [PATCH] sanitize full path to support Windows --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 3688a0b..e7b0660 100644 --- a/index.js +++ b/index.js @@ -81,7 +81,7 @@ export default class ServerlessOfflineLambdaFunctionUrls { return handler } getFullPath(...args) { - return resolve(cwd(), ...args) + return resolve(cwd(), ...args).replace(/^[A-Z]:/, "").replace(/\\/g, "/") } async init() { const {default: Lambda} = await import(