@primestyleai/tryon 3.2.1 → 3.2.2

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.
@@ -467,7 +467,13 @@ function PrimeStyleTryonInner({
467
467
  const data = await res.json();
468
468
  setSizingResult(data);
469
469
  } else {
470
- console.warn("[PrimeStyle] Sizing API error:", res.status, await res.text().catch(() => ""));
470
+ const errBody = await res.text().catch(() => "");
471
+ console.error("[PrimeStyle] Sizing API error:", res.status, errBody);
472
+ try {
473
+ const parsed = JSON.parse(errBody);
474
+ if (parsed.issues) console.error("[PrimeStyle] Validation issues:", JSON.stringify(parsed.issues, null, 2));
475
+ } catch {
476
+ }
471
477
  }
472
478
  } catch (err) {
473
479
  console.warn("[PrimeStyle] Sizing request failed:", err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primestyleai/tryon",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
4
4
  "description": "PrimeStyle Virtual Try-On SDK — React component & Web Component",
5
5
  "type": "module",
6
6
  "main": "dist/primestyle-tryon.js",