@xeno-js/core 0.1.3 → 0.1.5

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
@@ -2,9 +2,9 @@ import { ICache, Optional, IPipelineBehavior, IRequest, IExtendendService, IBase
2
2
  export * from '@xeno-js/shared';
3
3
  export { Query as BaseQuery } from '@xeno-js/shared';
4
4
  import { SupabaseClientOptions } from '@supabase/supabase-js';
5
- import { Client } from '@libsql/client/web';
6
- import { LibSQLDatabase } from 'drizzle-orm/libsql';
7
- import { NodePgDatabase } from 'drizzle-orm/node-postgres';
5
+ import * as _libsql_client_web from '@libsql/client/web';
6
+ import * as drizzle_orm_libsql from 'drizzle-orm/libsql';
7
+ import * as drizzle_orm_node_postgres from 'drizzle-orm/node-postgres';
8
8
  export * from 'drizzle-orm';
9
9
  export { Query } from 'drizzle-orm';
10
10
 
@@ -818,11 +818,11 @@ interface IModule<TRegistry extends ApplicationRegistry<unknown> = ApplicationRe
818
818
  */
819
819
  interface IIPResolver {
820
820
  /**
821
- * @description Resolves a optional string based on the input of type T.
822
- * @param request The input of type T.
823
- * @param ip The optional IP address of the client.
824
- * @returns The resolved optional string.
825
- */
821
+ * @description Resolves a optional string based on the input of type T.
822
+ * @param request The input of type T.
823
+ * @param ip The optional IP address of the client.
824
+ * @returns The resolved optional string.
825
+ */
826
826
  resolve<T>(request: T, ip: Optional<string>): Optional<string>;
827
827
  }
828
828
 
@@ -1345,12 +1345,12 @@ interface CsrfConfig {
1345
1345
  */
1346
1346
  cookieName: Optional<string>;
1347
1347
  /**
1348
- * @description the name of the header that will be used to send the CSRF token.
1349
- */
1348
+ * @description the name of the header that will be used to send the CSRF token.
1349
+ */
1350
1350
  headerName: Optional<string>;
1351
1351
  /**
1352
1352
  * @description the number of seconds that the CSRF token will be valid for.
1353
- */
1353
+ */
1354
1354
  cookieMaxAgeSeconds: Optional<number>;
1355
1355
  /**
1356
1356
  * Cookie SameSite policy.
@@ -1733,8 +1733,8 @@ declare abstract class Specification<T> implements ISpecification<T> {
1733
1733
  * @since 2025-09-30
1734
1734
  * @link https://github.com/xeno-js/xeno-js
1735
1735
  */
1736
- type DbContext<TSchema extends Dictionary = Dictionary> = NodePgDatabase<TSchema> | (LibSQLDatabase<TSchema> & {
1737
- $client: Client;
1736
+ type DbContext<TSchema extends Dictionary = Dictionary> = drizzle_orm_node_postgres.NodePgDatabase<TSchema> | (drizzle_orm_libsql.LibSQLDatabase<TSchema> & {
1737
+ $client: _libsql_client_web.Client;
1738
1738
  });
1739
1739
  /**
1740
1740
  * @description Type definition for the transaction object used in the database context.
package/dist/index.d.ts CHANGED
@@ -2,9 +2,9 @@ import { ICache, Optional, IPipelineBehavior, IRequest, IExtendendService, IBase
2
2
  export * from '@xeno-js/shared';
3
3
  export { Query as BaseQuery } from '@xeno-js/shared';
4
4
  import { SupabaseClientOptions } from '@supabase/supabase-js';
5
- import { Client } from '@libsql/client/web';
6
- import { LibSQLDatabase } from 'drizzle-orm/libsql';
7
- import { NodePgDatabase } from 'drizzle-orm/node-postgres';
5
+ import * as _libsql_client_web from '@libsql/client/web';
6
+ import * as drizzle_orm_libsql from 'drizzle-orm/libsql';
7
+ import * as drizzle_orm_node_postgres from 'drizzle-orm/node-postgres';
8
8
  export * from 'drizzle-orm';
9
9
  export { Query } from 'drizzle-orm';
10
10
 
@@ -818,11 +818,11 @@ interface IModule<TRegistry extends ApplicationRegistry<unknown> = ApplicationRe
818
818
  */
819
819
  interface IIPResolver {
820
820
  /**
821
- * @description Resolves a optional string based on the input of type T.
822
- * @param request The input of type T.
823
- * @param ip The optional IP address of the client.
824
- * @returns The resolved optional string.
825
- */
821
+ * @description Resolves a optional string based on the input of type T.
822
+ * @param request The input of type T.
823
+ * @param ip The optional IP address of the client.
824
+ * @returns The resolved optional string.
825
+ */
826
826
  resolve<T>(request: T, ip: Optional<string>): Optional<string>;
827
827
  }
828
828
 
@@ -1345,12 +1345,12 @@ interface CsrfConfig {
1345
1345
  */
1346
1346
  cookieName: Optional<string>;
1347
1347
  /**
1348
- * @description the name of the header that will be used to send the CSRF token.
1349
- */
1348
+ * @description the name of the header that will be used to send the CSRF token.
1349
+ */
1350
1350
  headerName: Optional<string>;
1351
1351
  /**
1352
1352
  * @description the number of seconds that the CSRF token will be valid for.
1353
- */
1353
+ */
1354
1354
  cookieMaxAgeSeconds: Optional<number>;
1355
1355
  /**
1356
1356
  * Cookie SameSite policy.
@@ -1733,8 +1733,8 @@ declare abstract class Specification<T> implements ISpecification<T> {
1733
1733
  * @since 2025-09-30
1734
1734
  * @link https://github.com/xeno-js/xeno-js
1735
1735
  */
1736
- type DbContext<TSchema extends Dictionary = Dictionary> = NodePgDatabase<TSchema> | (LibSQLDatabase<TSchema> & {
1737
- $client: Client;
1736
+ type DbContext<TSchema extends Dictionary = Dictionary> = drizzle_orm_node_postgres.NodePgDatabase<TSchema> | (drizzle_orm_libsql.LibSQLDatabase<TSchema> & {
1737
+ $client: _libsql_client_web.Client;
1738
1738
  });
1739
1739
  /**
1740
1740
  * @description Type definition for the transaction object used in the database context.