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>
22 lines
506 B
Text
22 lines
506 B
Text
export function translateTraits(indicator) {
|
|
if (typeof indicator === "object") {
|
|
return indicator;
|
|
}
|
|
indicator = indicator | 0;
|
|
const traits = {};
|
|
let i = 0;
|
|
for (const trait of [
|
|
"httpLabel",
|
|
"idempotent",
|
|
"idempotencyToken",
|
|
"sensitive",
|
|
"httpPayload",
|
|
"httpResponseCode",
|
|
"httpQueryParams",
|
|
]) {
|
|
if (((indicator >> i++) & 1) === 1) {
|
|
traits[trait] = 1;
|
|
}
|
|
}
|
|
return traits;
|
|
}
|