@mingjue8888/express-plus 1.2.3 → 1.2.4

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.
Files changed (2) hide show
  1. package/index.ts +4 -3
  2. package/package.json +2 -2
package/index.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import "dotenv/config";
2
+ import {oneDay, oneSecond} from "@mingjue8888/base-dependencies/datetime";
2
3
  import logger from "@mingjue8888/base-dependencies/logger";
3
- import {AbstractAccount, oneDay, oneSecond} from "@mingjue8888/base-dependencies/ubiquitous-language";
4
+ import {RBAC0Account} from "@mingjue8888/base-dependencies/rbac0";
4
5
  import compression from "compression";
5
6
  import cors from "cors";
6
7
  import express from "express";
@@ -69,7 +70,7 @@ function errorHandler(
69
70
 
70
71
  declare global {
71
72
  namespace Express {
72
- interface User extends AbstractAccount {}
73
+ interface User extends RBAC0Account {}
73
74
  interface Response {
74
75
  signToken: (sub: string) => void;
75
76
  body?: any;
@@ -87,7 +88,7 @@ interface EnvOptions {
87
88
  }
88
89
 
89
90
  interface StartupOptions extends EnvOptions {
90
- authenticate?: <T extends AbstractAccount>(token: JWTPayload) => Promise<T>;
91
+ authenticate?: <T extends RBAC0Account>(token: JWTPayload) => Promise<T>;
91
92
  middlewares?: Middleware[];
92
93
  onError?: ResponseErrorConverter;
93
94
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mingjue8888/express-plus",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "repository": "github:mingjue8888/express-plus",
5
5
  "keywords": [
6
6
  "web",
@@ -12,7 +12,7 @@
12
12
  "router"
13
13
  ],
14
14
  "dependencies": {
15
- "@mingjue8888/base-dependencies": "^1.5.2",
15
+ "@mingjue8888/base-dependencies": "^1.5.4",
16
16
  "compression": "^1.8.2",
17
17
  "cors": "^2.8.6",
18
18
  "express-rate-limit": "^8.7.4",