From d4fca9f7dcc771f68d28318d3d09439e28dc5515 Mon Sep 17 00:00:00 2001 From: raj pandey Date: Fri, 24 Jan 2025 20:56:38 +0530 Subject: [PATCH] import updated --- src/core/content-type/formatting.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/core/content-type/formatting.ts b/src/core/content-type/formatting.ts index 8021c46..4016d4b 100644 --- a/src/core/content-type/formatting.ts +++ b/src/core/content-type/formatting.ts @@ -1,6 +1,5 @@ -import moment from 'moment' -const urljoin = require('url-join') - +import moment from 'moment' +import urlJoin from 'url-join'; const TIME_FORMAT = 'L hh:mm:ss a' export function date(date: any) { @@ -32,7 +31,7 @@ export function urlPattern(contentType: any) { if (!contentType || !contentType.options) return 'Unknown' if (!contentType.options.url_pattern) return 'N/A' - return urljoin(contentType.options.url_prefix, contentType.options.url_pattern) + return urlJoin(contentType.options.url_prefix, contentType.options.url_pattern) } export function checked(value: boolean) {