Skip to content

Commit

Permalink
Merge pull request #73 from contentstack/staging
Browse files Browse the repository at this point in the history
Import fix
  • Loading branch information
harshithad0703 authored Jan 24, 2025
2 parents 7fefbdd + 3c26f3b commit 29b6628
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/core/content-type/formatting.ts
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 29b6628

Please sign in to comment.