Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
19 lines
722 B
Text
19 lines
722 B
Text
export function determineTimestampFormat(ns, settings) {
|
|
if (settings.timestampFormat.useTrait) {
|
|
if (ns.isTimestampSchema() &&
|
|
(ns.getSchema() === 5 ||
|
|
ns.getSchema() === 6 ||
|
|
ns.getSchema() === 7)) {
|
|
return ns.getSchema();
|
|
}
|
|
}
|
|
const { httpLabel, httpPrefixHeaders, httpHeader, httpQuery } = ns.getMergedTraits();
|
|
const bindingFormat = settings.httpBindings
|
|
? typeof httpPrefixHeaders === "string" || Boolean(httpHeader)
|
|
? 6
|
|
: Boolean(httpQuery) || Boolean(httpLabel)
|
|
? 5
|
|
: undefined
|
|
: undefined;
|
|
return bindingFormat ?? settings.timestampFormat.default;
|
|
}
|