@djangocfg/api 1.2.11 → 1.2.13

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.d.cts CHANGED
@@ -26800,10 +26800,6 @@ declare class API {
26800
26800
  * - Singleton pattern for API client
26801
26801
  */
26802
26802
 
26803
- /**
26804
- * Singleton API instance with JWT token management
26805
- * Uses LocalStorage for token persistence
26806
- */
26807
26803
  declare const api: API;
26808
26804
  /**
26809
26805
  * Base Client Class
package/dist/index.d.ts CHANGED
@@ -26800,10 +26800,6 @@ declare class API {
26800
26800
  * - Singleton pattern for API client
26801
26801
  */
26802
26802
 
26803
- /**
26804
- * Singleton API instance with JWT token management
26805
- * Uses LocalStorage for token persistence
26806
- */
26807
26803
  declare const api: API;
26808
26804
  /**
26809
26805
  * Base Client Class
package/dist/index.mjs CHANGED
@@ -22441,8 +22441,9 @@ var API = class {
22441
22441
  };
22442
22442
 
22443
22443
  // src/cfg/BaseClient.ts
22444
+ var apiUrl = process.env.NEXT_PUBLIC_API_URL || "";
22444
22445
  var api = new API(
22445
- typeof process !== "undefined" && process.env?.NEXT_PUBLIC_API_URL ? process.env.NEXT_PUBLIC_API_URL : "http://localhost:8000",
22446
+ apiUrl,
22446
22447
  {
22447
22448
  storage: new LocalStorageAdapter()
22448
22449
  }