@decaf-ts/core 0.7.62 → 0.7.63

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.
@@ -20,7 +20,7 @@ export * from "./persistence";
20
20
  * @const VERSION
21
21
  * @memberOf module:core
22
22
  */
23
- export declare const VERSION = "0.7.61";
23
+ export declare const VERSION = "0.7.63";
24
24
  /**
25
25
  * @description Stores the current package version
26
26
  * @summary A constant representing the version of the core package
package/lib/esm/index.js CHANGED
@@ -30,7 +30,7 @@ export * from "./persistence/index.js";
30
30
  * @const VERSION
31
31
  * @memberOf module:core
32
32
  */
33
- export const VERSION = "0.7.61";
33
+ export const VERSION = "0.7.63";
34
34
  /**
35
35
  * @description Stores the current package version
36
36
  * @summary A constant representing the version of the core package
@@ -4,17 +4,17 @@ import { Observable, type Observer } from "../interfaces/index";
4
4
  import { Logger } from "@decaf-ts/logging";
5
5
  import { Constructor } from "@decaf-ts/decoration";
6
6
  import { Model } from "@decaf-ts/decorator-validation";
7
- import { ContextualArgs } from "../utils";
7
+ import { ContextualArgs, ContextualLoggedClass } from "../utils/ContextualLoggedClass";
8
8
  import { Context } from "./Context";
9
9
  import { Repository } from "../repository/Repository";
10
10
  import { PersistenceKeys } from "./constants";
11
- import { PreparedStatementKeys } from "../query/index";
11
+ import { PreparedStatementKeys } from "../query/constants";
12
12
  export type FlagsOfContext<C extends Context<any>> = C extends Context<infer F> ? F : never;
13
13
  export type LoggerOfContext<C extends Context<any>> = LoggerOfFlags<FlagsOfContext<C>>;
14
14
  export type ContextOfRepository<R extends Repository<any, any>> = R extends Repository<any, infer A> ? ContextOf<A> : never;
15
15
  export type FlagsOfRepository<R extends Repository<any, any>> = FlagsOfContext<ContextOfRepository<R>>;
16
16
  export type LoggerOfRepository<R extends Repository<any, any>> = LoggerOfContext<ContextOfRepository<R>>;
17
- export type ContextOf<OBJ extends Repository<any, any> | Adapter<any, any, any, any>> = OBJ extends Adapter<any, any, any, infer C> ? C : OBJ extends Repository<any, any> ? ContextOfRepository<OBJ> : never;
17
+ export type ContextOf<OBJ extends Repository<any, any> | Adapter<any, any, any, any> | ContextualLoggedClass<any>> = OBJ extends Adapter<any, any, any, infer C> ? C : OBJ extends Repository<any, any> ? ContextOfRepository<OBJ> : OBJ extends ContextualLoggedClass<infer C> ? C : OBJ;
18
18
  export type ConfigOf<OBJ extends Adapter<any, any, any, any>> = OBJ extends Adapter<infer C, any, any, any> ? C : never;
19
19
  export type LoggerOfAdapter<A extends Adapter<any, any, any, any>> = A extends Adapter<any, any, any, infer C> ? LoggerOfContext<C> : never;
20
20
  export type FlagsOfAdapter<A extends Adapter<any, any, any, any>> = A extends Adapter<any, any, any, infer C> ? FlagsOfContext<C> : never;
package/lib/index.cjs CHANGED
@@ -47,7 +47,7 @@ __exportStar(require("./persistence/index.cjs"), exports);
47
47
  * @const VERSION
48
48
  * @memberOf module:core
49
49
  */
50
- exports.VERSION = "0.7.61";
50
+ exports.VERSION = "0.7.63";
51
51
  /**
52
52
  * @description Stores the current package version
53
53
  * @summary A constant representing the version of the core package
package/lib/index.d.ts CHANGED
@@ -20,7 +20,7 @@ export * from "./persistence";
20
20
  * @const VERSION
21
21
  * @memberOf module:core
22
22
  */
23
- export declare const VERSION = "0.7.61";
23
+ export declare const VERSION = "0.7.63";
24
24
  /**
25
25
  * @description Stores the current package version
26
26
  * @summary A constant representing the version of the core package
@@ -4,17 +4,17 @@ import { Observable, type Observer } from "../interfaces/index";
4
4
  import { Logger } from "@decaf-ts/logging";
5
5
  import { Constructor } from "@decaf-ts/decoration";
6
6
  import { Model } from "@decaf-ts/decorator-validation";
7
- import { ContextualArgs } from "../utils";
7
+ import { ContextualArgs, ContextualLoggedClass } from "../utils/ContextualLoggedClass";
8
8
  import { Context } from "./Context";
9
9
  import { Repository } from "../repository/Repository";
10
10
  import { PersistenceKeys } from "./constants";
11
- import { PreparedStatementKeys } from "../query/index";
11
+ import { PreparedStatementKeys } from "../query/constants";
12
12
  export type FlagsOfContext<C extends Context<any>> = C extends Context<infer F> ? F : never;
13
13
  export type LoggerOfContext<C extends Context<any>> = LoggerOfFlags<FlagsOfContext<C>>;
14
14
  export type ContextOfRepository<R extends Repository<any, any>> = R extends Repository<any, infer A> ? ContextOf<A> : never;
15
15
  export type FlagsOfRepository<R extends Repository<any, any>> = FlagsOfContext<ContextOfRepository<R>>;
16
16
  export type LoggerOfRepository<R extends Repository<any, any>> = LoggerOfContext<ContextOfRepository<R>>;
17
- export type ContextOf<OBJ extends Repository<any, any> | Adapter<any, any, any, any>> = OBJ extends Adapter<any, any, any, infer C> ? C : OBJ extends Repository<any, any> ? ContextOfRepository<OBJ> : never;
17
+ export type ContextOf<OBJ extends Repository<any, any> | Adapter<any, any, any, any> | ContextualLoggedClass<any>> = OBJ extends Adapter<any, any, any, infer C> ? C : OBJ extends Repository<any, any> ? ContextOfRepository<OBJ> : OBJ extends ContextualLoggedClass<infer C> ? C : OBJ;
18
18
  export type ConfigOf<OBJ extends Adapter<any, any, any, any>> = OBJ extends Adapter<infer C, any, any, any> ? C : never;
19
19
  export type LoggerOfAdapter<A extends Adapter<any, any, any, any>> = A extends Adapter<any, any, any, infer C> ? LoggerOfContext<C> : never;
20
20
  export type FlagsOfAdapter<A extends Adapter<any, any, any, any>> = A extends Adapter<any, any, any, infer C> ? FlagsOfContext<C> : never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decaf-ts/core",
3
- "version": "0.7.62",
3
+ "version": "0.7.63",
4
4
  "description": "Core persistence module for the decaf framework",
5
5
  "type": "module",
6
6
  "exports": {