@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/cjs/index.js CHANGED
@@ -1947,6 +1947,7 @@ __export(index_exports, {
1947
1947
  createMediaQueryListener: () => createMediaQueryListener,
1948
1948
  detectThemeMode: () => detectThemeMode,
1949
1949
  hasAuthParamsInUrl: () => hasAuthParamsInUrl_default,
1950
+ http: () => http_default,
1950
1951
  workerReceiver: () => workerReceiver
1951
1952
  });
1952
1953
  module.exports = __toCommonJS(index_exports);
@@ -5425,6 +5426,25 @@ var createMediaQueryListener = (callback) => {
5425
5426
  }
5426
5427
  return mediaQuery;
5427
5428
  };
5429
+
5430
+ // src/utils/http.ts
5431
+ var http = {
5432
+ /**
5433
+ * Makes a single HTTP request using the AsgardeoSPAClient instance.
5434
+ *
5435
+ * @param config - The HTTP request configuration object.
5436
+ * @returns A promise resolving to the HTTP response.
5437
+ */
5438
+ request: AsgardeoSPAClient.getInstance().httpRequest.bind(AsgardeoSPAClient.getInstance()),
5439
+ /**
5440
+ * Makes multiple HTTP requests in parallel using the AsgardeoSPAClient instance.
5441
+ *
5442
+ * @param configs - An array of HTTP request configuration objects.
5443
+ * @returns A promise resolving to an array of HTTP responses.
5444
+ */
5445
+ requestAll: AsgardeoSPAClient.getInstance().httpRequestAll.bind(AsgardeoSPAClient.getInstance())
5446
+ };
5447
+ var http_default = http;
5428
5448
  /*! Bundled license information:
5429
5449
 
5430
5450
  ieee754/index.js: