@xeno-js/core 0.1.6 → 0.1.7

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.cjs CHANGED
@@ -4308,8 +4308,7 @@ var init_middleware_module = __esm({
4308
4308
  )
4309
4309
  );
4310
4310
  if (!import_shared73.Guards.isNullOrEmpty(opts.allowOrigins)) {
4311
- const withCredentials2 = opts.httpConfig.withCredentials ?? false;
4312
- if (withCredentials2 && opts.allowOrigins.includes("*"))
4311
+ if (opts.withCredentials && opts.allowOrigins.includes("*"))
4313
4312
  throw new Error(
4314
4313
  "Wildcard CORS origin is not allowed when withCredentials is set to true in addHttpCore"
4315
4314
  );
@@ -4327,7 +4326,7 @@ var init_middleware_module = __esm({
4327
4326
  });
4328
4327
  middlewares.push(TOKENS4.ALLOW_ORIGIN_MIDDLEWARE);
4329
4328
  }
4330
- const withCredentials = import_shared73.Guards.isDefined(opts.httpConfig.withCredentials) && opts.httpConfig.withCredentials ? "true" : "false";
4329
+ const withCredentials = opts.withCredentials ? "true" : "false";
4331
4330
  if (opts.optionsMiddleware) {
4332
4331
  const { OptionsMiddleware: OptionsMiddleware2 } = await Promise.resolve().then(() => (init_presentation(), presentation_exports));
4333
4332
  container.addSingleton(
@@ -4810,7 +4809,8 @@ var AppBuilder = class {
4810
4809
  trustedProxies: [],
4811
4810
  allowOrigins: [],
4812
4811
  allowHeaders: [],
4813
- cors: true
4812
+ cors: true,
4813
+ withCredentials: true
4814
4814
  };
4815
4815
  _httpConfig = {
4816
4816
  dataSourceToken: void 0,
@@ -5223,8 +5223,7 @@ var AppBuilder = class {
5223
5223
  ...this._middlewareConfig,
5224
5224
  isAuth: this._isAuthModuleQueued,
5225
5225
  isLogger: this._isLoggerModuleQueued,
5226
- isCache: this._isCacheModuleQueued || this._isPipelineModuleQueued,
5227
- httpConfig: this._httpConfig.http.client
5226
+ isCache: this._isCacheModuleQueued || this._isPipelineModuleQueued
5228
5227
  });
5229
5228
  }
5230
5229
  });