@primestyleai/tryon 5.7.10 → 5.7.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -21381,9 +21381,13 @@ function buildPropsFromDataAttrs(data) {
|
|
|
21381
21381
|
}
|
|
21382
21382
|
async function fetchSizeGuideForProduct(proxyUrl, productId) {
|
|
21383
21383
|
try {
|
|
21384
|
-
const url = `${proxyUrl}/api/v1/sizeguide-lookup
|
|
21385
|
-
console.log(`${TAG} fetching size guide ${url}`);
|
|
21386
|
-
const res = await fetch(url, {
|
|
21384
|
+
const url = `${proxyUrl}/api/v1/sizeguide-lookup`;
|
|
21385
|
+
console.log(`${TAG} fetching size guide ${url} (productId=${productId})`);
|
|
21386
|
+
const res = await fetch(url, {
|
|
21387
|
+
method: "POST",
|
|
21388
|
+
headers: { "Content-Type": "application/json" },
|
|
21389
|
+
body: JSON.stringify({ productId })
|
|
21390
|
+
});
|
|
21387
21391
|
if (!res.ok) {
|
|
21388
21392
|
console.warn(`${TAG} size guide lookup failed: ${res.status}`);
|
|
21389
21393
|
return null;
|