@bool-ts/guard-sdk 1.0.0-beta.1 → 1.0.1-beta.2

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/package.json CHANGED
@@ -46,5 +46,5 @@
46
46
  "test": "bun --hot run __test/index.ts"
47
47
  },
48
48
  "types": "./dist/index.d.ts",
49
- "version": "1.0.0-beta.1"
49
+ "version": "1.0.1-beta.2"
50
50
  }
@@ -1,2 +1,3 @@
1
1
  export * from "./interceptor";
2
+ export * from "./loader";
2
3
  export * from "./middleware";
@@ -16,5 +16,3 @@ export const loader = async (clientConfigs: TClientConfigs, clientOptions?: TCli
16
16
 
17
17
  return [Keys.guardClient, boolGuardClient];
18
18
  };
19
-
20
- export default loader;
@@ -1,7 +1,7 @@
1
1
  import type { IContext, IMiddleware } from "@bool-ts/core";
2
2
  import type { IClient, TAuthState } from "../interfaces/client.interface";
3
3
 
4
- import { Context, Inject, RequestHeaders } from "@bool-ts/core";
4
+ import { Middleware as BoolMiddleware, Context, Inject, RequestHeaders } from "@bool-ts/core";
5
5
  import { object, string } from "zod/v4";
6
6
  import { Keys } from "../constants";
7
7
  import { Client } from "../instances";
@@ -23,6 +23,7 @@ const headersSchema = object({
23
23
  /**
24
24
  * Bool guard middleware for Bool Typescript framework
25
25
  */
26
+ @BoolMiddleware()
26
27
  export class Middleware implements IMiddleware {
27
28
  /**
28
29
  *