brainerce 1.10.1 → 1.10.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.
package/dist/index.js CHANGED
@@ -2415,7 +2415,13 @@ var BrainerceClient = class {
2415
2415
  * ```
2416
2416
  */
2417
2417
  isCustomerLoggedIn() {
2418
- return this.proxyMode || !!this.customerToken;
2418
+ if (this.proxyMode) {
2419
+ if (typeof document !== "undefined") {
2420
+ return document.cookie.includes("brainerce_logged_in=1");
2421
+ }
2422
+ return false;
2423
+ }
2424
+ return !!this.customerToken;
2419
2425
  }
2420
2426
  // -------------------- Session Cart Helpers --------------------
2421
2427
  /**
package/dist/index.mjs CHANGED
@@ -2357,7 +2357,13 @@ var BrainerceClient = class {
2357
2357
  * ```
2358
2358
  */
2359
2359
  isCustomerLoggedIn() {
2360
- return this.proxyMode || !!this.customerToken;
2360
+ if (this.proxyMode) {
2361
+ if (typeof document !== "undefined") {
2362
+ return document.cookie.includes("brainerce_logged_in=1");
2363
+ }
2364
+ return false;
2365
+ }
2366
+ return !!this.customerToken;
2361
2367
  }
2362
2368
  // -------------------- Session Cart Helpers --------------------
2363
2369
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brainerce",
3
- "version": "1.10.1",
3
+ "version": "1.10.2",
4
4
  "description": "Official SDK for building e-commerce storefronts with Brainerce Platform. Perfect for vibe-coded sites, AI-built stores (Cursor, Lovable, v0), and custom storefronts.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",