@xeno-js/core 1.0.0 → 1.1.1

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
@@ -715,8 +715,12 @@ interface ISsrCookieHandler {
715
715
  getAll(): ISsrCookie[];
716
716
  setAll(cookies: ISsrCookieToSet[]): void;
717
717
  }
718
+ interface CookieHandlerOptions extends CookieOptions {
719
+ httpOnly: boolean;
720
+ }
718
721
  interface AuthSsrConfig<TOption, TRegistry extends ApplicationRegistry = ApplicationRegistry> extends AuthConfig<TOption> {
719
722
  ssrOpts: Optional<(container: IServiceContainer<TRegistry>) => ISsrCookieHandler>;
723
+ cookieOpts: CookieHandlerOptions;
720
724
  customAuth: Optional<{
721
725
  authHeaderExtractor: () => IServiceExtractor<Request['headers'], Optional<string>>;
722
726
  authExtendedService: () => IExtendendAuthService;
@@ -1851,6 +1855,7 @@ interface SupabaseServerAuthFactoryInput<TRegistry extends XenoRegistry> {
1851
1855
  }
1852
1856
  declare class SupabaseServerAuthFactory<TRegistry extends XenoRegistry = XenoRegistry> implements IFactory<SupabaseServerAuthFactoryInput<TRegistry>, IExtendendAuthService> {
1853
1857
  create({ config, container, }: SupabaseServerAuthFactoryInput<TRegistry>): IExtendendAuthService;
1858
+ private _getCookieSsr;
1854
1859
  }
1855
1860
 
1856
1861
  /**
@@ -1996,4 +2001,4 @@ declare abstract class BaseController<TRequest, TResponse> implements IControlle
1996
2001
  protected getContext(): Optional<RequestContext>;
1997
2002
  }
1998
2003
 
1999
- export { AppBuilder, type ApplicationRegistry, type AuthSsrConfig, BaseAuthorizationStrategy, BaseController, BaseHandler, BasePostgresSqlDataSource, BaseSqliteSqlDataSource, ContainerUtils, type DbContext, type DbTransaction, type ExecutionContext, type HttpConfig, type HttpCoreConfig, type IAllowMethod, type IAllowOrigin, type IAtomicCache, type ICryptoService, type ICsrfTokenService, type IIPResolver, type IModule, type IRateLimitKeyBuilder, type IRequestContext, type IServiceContainer, type IServiceProvider, type IServiceScope, type IServiceScopeAccessor, type ISsrCookie, type ISsrCookieHandler, type ISsrCookieToSet, type Lifetime, type LoggerConfig, type MiddlewareConfig, type PinoLoggerConfig, type PipelineConfig, ReadDao, Repository, type ResilienceConfig, type SchemaConfig, type SentryLoggerConfig, type ServiceDescriptor, Specification, SupabaseServerAuthFactory, type XenoRegistry };
2004
+ export { AppBuilder, type ApplicationRegistry, type AuthSsrConfig, BaseAuthorizationStrategy, BaseController, BaseHandler, BasePostgresSqlDataSource, BaseSqliteSqlDataSource, ContainerUtils, type CookieHandlerOptions, type DbContext, type DbTransaction, type ExecutionContext, type HttpConfig, type HttpCoreConfig, type IAllowMethod, type IAllowOrigin, type IAtomicCache, type ICryptoService, type ICsrfTokenService, type IIPResolver, type IModule, type IRateLimitKeyBuilder, type IRequestContext, type IServiceContainer, type IServiceProvider, type IServiceScope, type IServiceScopeAccessor, type ISsrCookie, type ISsrCookieHandler, type ISsrCookieToSet, type Lifetime, type LoggerConfig, type MiddlewareConfig, type PinoLoggerConfig, type PipelineConfig, ReadDao, Repository, type ResilienceConfig, type SchemaConfig, type SentryLoggerConfig, type ServiceDescriptor, Specification, SupabaseServerAuthFactory, type XenoRegistry };
package/dist/index.d.ts CHANGED
@@ -715,8 +715,12 @@ interface ISsrCookieHandler {
715
715
  getAll(): ISsrCookie[];
716
716
  setAll(cookies: ISsrCookieToSet[]): void;
717
717
  }
718
+ interface CookieHandlerOptions extends CookieOptions {
719
+ httpOnly: boolean;
720
+ }
718
721
  interface AuthSsrConfig<TOption, TRegistry extends ApplicationRegistry = ApplicationRegistry> extends AuthConfig<TOption> {
719
722
  ssrOpts: Optional<(container: IServiceContainer<TRegistry>) => ISsrCookieHandler>;
723
+ cookieOpts: CookieHandlerOptions;
720
724
  customAuth: Optional<{
721
725
  authHeaderExtractor: () => IServiceExtractor<Request['headers'], Optional<string>>;
722
726
  authExtendedService: () => IExtendendAuthService;
@@ -1851,6 +1855,7 @@ interface SupabaseServerAuthFactoryInput<TRegistry extends XenoRegistry> {
1851
1855
  }
1852
1856
  declare class SupabaseServerAuthFactory<TRegistry extends XenoRegistry = XenoRegistry> implements IFactory<SupabaseServerAuthFactoryInput<TRegistry>, IExtendendAuthService> {
1853
1857
  create({ config, container, }: SupabaseServerAuthFactoryInput<TRegistry>): IExtendendAuthService;
1858
+ private _getCookieSsr;
1854
1859
  }
1855
1860
 
1856
1861
  /**
@@ -1996,4 +2001,4 @@ declare abstract class BaseController<TRequest, TResponse> implements IControlle
1996
2001
  protected getContext(): Optional<RequestContext>;
1997
2002
  }
1998
2003
 
1999
- export { AppBuilder, type ApplicationRegistry, type AuthSsrConfig, BaseAuthorizationStrategy, BaseController, BaseHandler, BasePostgresSqlDataSource, BaseSqliteSqlDataSource, ContainerUtils, type DbContext, type DbTransaction, type ExecutionContext, type HttpConfig, type HttpCoreConfig, type IAllowMethod, type IAllowOrigin, type IAtomicCache, type ICryptoService, type ICsrfTokenService, type IIPResolver, type IModule, type IRateLimitKeyBuilder, type IRequestContext, type IServiceContainer, type IServiceProvider, type IServiceScope, type IServiceScopeAccessor, type ISsrCookie, type ISsrCookieHandler, type ISsrCookieToSet, type Lifetime, type LoggerConfig, type MiddlewareConfig, type PinoLoggerConfig, type PipelineConfig, ReadDao, Repository, type ResilienceConfig, type SchemaConfig, type SentryLoggerConfig, type ServiceDescriptor, Specification, SupabaseServerAuthFactory, type XenoRegistry };
2004
+ export { AppBuilder, type ApplicationRegistry, type AuthSsrConfig, BaseAuthorizationStrategy, BaseController, BaseHandler, BasePostgresSqlDataSource, BaseSqliteSqlDataSource, ContainerUtils, type CookieHandlerOptions, type DbContext, type DbTransaction, type ExecutionContext, type HttpConfig, type HttpCoreConfig, type IAllowMethod, type IAllowOrigin, type IAtomicCache, type ICryptoService, type ICsrfTokenService, type IIPResolver, type IModule, type IRateLimitKeyBuilder, type IRequestContext, type IServiceContainer, type IServiceProvider, type IServiceScope, type IServiceScopeAccessor, type ISsrCookie, type ISsrCookieHandler, type ISsrCookieToSet, type Lifetime, type LoggerConfig, type MiddlewareConfig, type PinoLoggerConfig, type PipelineConfig, ReadDao, Repository, type ResilienceConfig, type SchemaConfig, type SentryLoggerConfig, type ServiceDescriptor, Specification, SupabaseServerAuthFactory, type XenoRegistry };