@elliemae/pui-app-sdk 5.26.2 → 5.27.0

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.
@@ -29,6 +29,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
29
29
  var http_client_exports = {};
30
30
  __export(http_client_exports, {
31
31
  getAuthHTTPClient: () => getAuthHTTPClient,
32
+ getAuthorizationHeader: () => import_helper.getAuthorizationHeader,
32
33
  getHTTPClient: () => getHTTPClient
33
34
  });
34
35
  module.exports = __toCommonJS(http_client_exports);
@@ -258,7 +258,8 @@ class CMicroAppGuest {
258
258
  return this.#uuid;
259
259
  }
260
260
  async init(options) {
261
- this.props = import_lodash.default.merge(this.props, options);
261
+ const { history, ...rest } = options;
262
+ this.props = import_lodash.default.merge(this.props, rest);
262
263
  if (!this.props.host) {
263
264
  const host = await this.findHost();
264
265
  if (host) {
@@ -32,5 +32,6 @@ const getAuthHTTPClient = ({
32
32
  });
33
33
  export {
34
34
  getAuthHTTPClient,
35
+ getAuthorizationHeader,
35
36
  getHTTPClient
36
37
  };
@@ -225,7 +225,8 @@ class CMicroAppGuest {
225
225
  return this.#uuid;
226
226
  }
227
227
  async init(options) {
228
- this.props = _.merge(this.props, options);
228
+ const { history, ...rest } = options;
229
+ this.props = _.merge(this.props, rest);
229
230
  if (!this.props.host) {
230
231
  const host = await this.findHost();
231
232
  if (host) {
@@ -1,8 +1,10 @@
1
1
  import { AxiosInstance, RawAxiosRequestHeaders, HeadersDefaults } from 'axios';
2
+ import { getAuthorizationHeader } from '../../utils/auth/helper.js';
2
3
  type AxiosRequestHeaders = RawAxiosRequestHeaders | Partial<HeadersDefaults>;
3
4
  export type RequestConfig = {
4
5
  Authorization?: string;
5
6
  } & AxiosRequestHeaders;
7
+ export { getAuthorizationHeader };
6
8
  export declare const getHTTPClient: ({ baseURL, headers, }?: {
7
9
  baseURL?: string;
8
10
  headers?: RequestConfig;
@@ -12,4 +14,3 @@ export declare const getAuthHTTPClient: ({ baseURL, headers, ...rest }?: {
12
14
  headers?: RequestConfig;
13
15
  rest?: any[];
14
16
  }) => AxiosInstance;
15
- export {};