@rdyl/node-koa-controller 0.1.5 → 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/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- ## 0.1.5 (2025-04-10)
1
+ ## 0.1.7 (2025-04-10)
2
2
 
3
3
 
4
4
 
@@ -109,7 +109,7 @@ function RegisterASTCacheRoutes(router, useJwt) {
109
109
  _b.trys.push([0, 4, , 5]);
110
110
  instance = new Instance(_ctx);
111
111
  if (!useJwt) return [3 /*break*/, 2];
112
- token = _ctx.request.headers[useJwt.name] || "";
112
+ token = _ctx.request.headers[useJwt.name.toLowerCase()] || "";
113
113
  return [4 /*yield*/, useJwt.get(token)];
114
114
  case 1:
115
115
  jwt = _b.sent();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rdyl/node-koa-controller",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "types/index.d.ts",
@@ -59,7 +59,7 @@ export interface UseProps {
59
59
  formidable?: ExtendedFormidableOptions;
60
60
  useJwt?: {
61
61
  name: string;
62
- get(n: string): Promise<UseJwtValue>;
62
+ get(n: string): Promise<UseJwtValue | null>;
63
63
  };
64
64
  }
65
65
  export interface SyncUseValue {