diff --git a/Source/Library/Files/In.ts b/Source/Library/Files/In.ts index 811efa7..8c26b2c 100644 --- a/Source/Library/Files/In.ts +++ b/Source/Library/Files/In.ts @@ -4,11 +4,11 @@ import Apply from "../Apply.js"; export default async (Path: Path, Paths: Plan["Paths"]) => { const _Path = await Apply( + (Path: string) => (Path.endsWith("/") ? Path : `${Path}/`), await Apply( (url: URL | string) => (url instanceof URL ? _Path(url) : url), Path - ), - (Path: string) => (Path.endsWith("/") ? Path : `${Path}/`) + ) ); if (_Path instanceof Map) { diff --git a/Target/Library/Files/In.js b/Target/Library/Files/In.js index e808d38..9e4bf62 100644 --- a/Target/Library/Files/In.js +++ b/Target/Library/Files/In.js @@ -1 +1 @@ -import"url";import a from"../Apply.js";var r=async(e,o)=>{const n=await a(await a(t=>t instanceof URL?n(t):t,e),t=>t.endsWith("/")?t:`${t}/`);if(n instanceof Map)for(const[t,i]of n)o.set(t,i);else o.set(n,n);return o};export{r as default}; +import"url";import a from"../Apply.js";var r=async(e,o)=>{const n=await a(t=>t.endsWith("/")?t:`${t}/`,await a(t=>t instanceof URL?n(t):t,e));if(n instanceof Map)for(const[t,i]of n)o.set(t,i);else o.set(n,n);return o};export{r as default};