@asgardeo/browser 0.1.12 → 0.1.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.ts CHANGED
@@ -34,3 +34,4 @@ export { default as hasAuthParamsInUrl } from './utils/hasAuthParamsInUrl';
34
34
  export { default as AsgardeoBrowserClient } from './AsgardeoBrowserClient';
35
35
  export * from '@asgardeo/javascript';
36
36
  export { detectThemeMode, createClassObserver, createMediaQueryListener, BrowserThemeDetection, } from './theme/themeDetection';
37
+ export { default as http } from './utils/http';
package/dist/index.js CHANGED
@@ -5417,6 +5417,25 @@ var createMediaQueryListener = (callback) => {
5417
5417
  }
5418
5418
  return mediaQuery;
5419
5419
  };
5420
+
5421
+ // src/utils/http.ts
5422
+ var http = {
5423
+ /**
5424
+ * Makes a single HTTP request using the AsgardeoSPAClient instance.
5425
+ *
5426
+ * @param config - The HTTP request configuration object.
5427
+ * @returns A promise resolving to the HTTP response.
5428
+ */
5429
+ request: AsgardeoSPAClient.getInstance().httpRequest.bind(AsgardeoSPAClient.getInstance()),
5430
+ /**
5431
+ * Makes multiple HTTP requests in parallel using the AsgardeoSPAClient instance.
5432
+ *
5433
+ * @param configs - An array of HTTP request configuration objects.
5434
+ * @returns A promise resolving to an array of HTTP responses.
5435
+ */
5436
+ requestAll: AsgardeoSPAClient.getInstance().httpRequestAll.bind(AsgardeoSPAClient.getInstance())
5437
+ };
5438
+ var http_default = http;
5420
5439
  export {
5421
5440
  AsgardeoBrowserClient_default as AsgardeoBrowserClient,
5422
5441
  AsgardeoSPAClient,
@@ -5444,6 +5463,7 @@ export {
5444
5463
  createMediaQueryListener,
5445
5464
  detectThemeMode,
5446
5465
  hasAuthParamsInUrl_default as hasAuthParamsInUrl,
5466
+ http_default as http,
5447
5467
  workerReceiver
5448
5468
  };
5449
5469
  /*! Bundled license information: