@rdyl/node-koa-controller 0.1.9 → 0.2.0

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.9 (2025-04-11)
1
+ ## 0.1.9 (2025-04-29)
2
2
 
3
3
 
4
4
 
@@ -156,6 +156,9 @@ var JwtSecretGateway = /** @class */ (function () {
156
156
  var token = this._jwtToken.create(data);
157
157
  return token;
158
158
  };
159
+ JwtSecretGateway.prototype.remove = function (t) {
160
+ this._jwtToken.removeBy(t);
161
+ };
159
162
  return JwtSecretGateway;
160
163
  }());
161
164
  exports.JwtSecretGateway = JwtSecretGateway;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rdyl/node-koa-controller",
3
- "version": "0.1.9",
3
+ "version": "0.2.0",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "types/index.d.ts",
@@ -20,6 +20,7 @@ export declare class JwtSecretGateway<T extends object> {
20
20
  });
21
21
  use(ctx: KoaCtx): Promise<JwtResData<T>>;
22
22
  authorize(data: T): string;
23
+ remove(t: string): void;
23
24
  }
24
25
  export interface JwtTokenItem<T> {
25
26
  token: string;