diff --git a/src/helpers/parseWinPath.ts b/src/helpers/parseWinPath.ts index e73a9e18..809d2c84 100644 --- a/src/helpers/parseWinPath.ts +++ b/src/helpers/parseWinPath.ts @@ -1,4 +1,4 @@ -import { isWindows } from '../utils'; +import { isWindows } from '../utils/isWindows'; export const parseWinPath = (path: string | undefined): string => { path = path?.split(`\\`).join(`/`) || ''; diff --git a/src/utils/joinUrl.ts b/src/utils/joinUrl.ts index 36bd3892..9ce92026 100644 --- a/src/utils/joinUrl.ts +++ b/src/utils/joinUrl.ts @@ -1,4 +1,5 @@ import { urlJoin } from 'url-join-ts'; +import { parseWinPath } from '../helpers'; export const joinUrl = (baseUrl: string | undefined, ...paths: any[]): string => { const url = urlJoin(baseUrl, ...paths); @@ -9,5 +10,5 @@ export const joinUrl = (baseUrl: string | undefined, ...paths: any[]): string => return url + '/'; } - return url; + return parseWinPath(url); };