From 2923eb4d66f8d503b4a55984727e50f0d54def9c Mon Sep 17 00:00:00 2001 From: Alexander Cerutti Date: Mon, 27 Dec 2021 19:34:00 +0100 Subject: [PATCH] Changed quotes and applied change to PKPass.from (which uses internals-like to read model) --- examples/self-hosted/src/PKPass.from.ts | 2 +- src/getModelFolderContents.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/self-hosted/src/PKPass.from.ts b/examples/self-hosted/src/PKPass.from.ts index ea501f9..d46943f 100644 --- a/examples/self-hosted/src/PKPass.from.ts +++ b/examples/self-hosted/src/PKPass.from.ts @@ -45,7 +45,7 @@ function getObjectFromModelFile( const fileComponents = filePath.split(path.sep); const fileName = fileComponents .slice(fileComponents.length - depthFromEnd) - .join(path.sep); + .join("/"); return { [fileName]: content }; } diff --git a/src/getModelFolderContents.ts b/src/getModelFolderContents.ts index dbb4c38..ebac561 100644 --- a/src/getModelFolderContents.ts +++ b/src/getModelFolderContents.ts @@ -107,7 +107,7 @@ function getObjectFromModelFile( const fileComponents = filePath.split(path.sep); const fileName = fileComponents .slice(fileComponents.length - depthFromEnd) - .join('/'); + .join("/"); return { [fileName]: content }; }