From b51c863550cb377f6e720bccf4f1485ed8d97222 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Wed, 29 Apr 2020 21:20:55 +0100 Subject: feat(std/path): Add fromFileUrl() (#4993) Fix: URL constructor accepts a URL object which is not a base --- std/path/mod.ts | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'std/path/mod.ts') diff --git a/std/path/mod.ts b/std/path/mod.ts index 402adcf00..104e0b616 100644 --- a/std/path/mod.ts +++ b/std/path/mod.ts @@ -11,19 +11,20 @@ const path = isWindows ? _win32 : _posix; export const win32 = _win32; export const posix = _posix; export const { - resolve, - normalize, - isAbsolute, - join, - relative, - toNamespacedPath, - dirname, basename, + delimiter, + dirname, extname, format, + fromFileUrl, + isAbsolute, + join, + normalize, parse, + relative, + resolve, sep, - delimiter, + toNamespacedPath, } = path; export { common } from "./common.ts"; -- cgit v1.2.3