@jayfong/x-server 1.33.4 → 1.33.6

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.
@@ -100,17 +100,17 @@ class Server {
100
100
  websocket: isWS,
101
101
  handler: async (req, res) => {
102
102
  const url = `${appUrl}${// 结构:/test/sss?x=2
103
- req.url}`;
103
+ isWS ? res.url : req.url}`;
104
104
 
105
105
  if (isWS) {
106
106
  await item.handler.handle(undefined, {
107
107
  url: url,
108
- headers: req.headers,
109
- setHeader: (k, v) => res.header(k, v),
110
- redirect: undefined,
108
+ headers: res.headers,
109
+ setHeader: _vtils.noop,
110
+ redirect: _vtils.noop,
111
111
  ws: req,
112
- req: req,
113
- res: res
112
+ req: res,
113
+ res: {}
114
114
  });
115
115
  return;
116
116
  }
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  exports.__esModule = true;
6
6
  exports.WsParserPlugin = void 0;
7
7
 
8
- var _fastifyWebsocket = _interopRequireDefault(require("fastify-websocket"));
8
+ var _websocket = _interopRequireDefault(require("@fastify/websocket"));
9
9
 
10
10
  /**
11
11
  * websocket 解析器插件
@@ -16,7 +16,7 @@ class WsParserPlugin {
16
16
  }
17
17
 
18
18
  register(fastify) {
19
- fastify.register(_fastifyWebsocket.default, this.options);
19
+ fastify.register(_websocket.default, this.options);
20
20
  }
21
21
 
22
22
  }
@@ -33,6 +33,19 @@ class SensitiveWordsService {
33
33
  });
34
34
  return res.text;
35
35
  }
36
+ /**
37
+ * 验证文本是否包含敏感词。
38
+ */
39
+
40
+
41
+ async validate(text) {
42
+ if (!this.mint) {
43
+ this.mint = new _mintFilter.default(this.options.words);
44
+ }
45
+
46
+ const res = this.mint.validator(text);
47
+ return res;
48
+ }
36
49
 
37
50
  }
38
51
 
@@ -1,5 +1,5 @@
1
1
  import Fastify from 'fastify';
2
- import { castArray } from 'vtils';
2
+ import { castArray, noop } from 'vtils';
3
3
  import { HandlerMethodToHttpMethod } from "./http_method";
4
4
  import { x } from "../x";
5
5
  export class Server {
@@ -85,17 +85,17 @@ export class Server {
85
85
  websocket: isWS,
86
86
  handler: async (req, res) => {
87
87
  const url = `${appUrl}${// 结构:/test/sss?x=2
88
- req.url}`;
88
+ isWS ? res.url : req.url}`;
89
89
 
90
90
  if (isWS) {
91
91
  await item.handler.handle(undefined, {
92
92
  url: url,
93
- headers: req.headers,
94
- setHeader: (k, v) => res.header(k, v),
95
- redirect: undefined,
93
+ headers: res.headers,
94
+ setHeader: noop,
95
+ redirect: noop,
96
96
  ws: req,
97
- req: req,
98
- res: res
97
+ req: res,
98
+ res: {}
99
99
  });
100
100
  return;
101
101
  }
@@ -10,7 +10,7 @@ import type { Handler } from './handler';
10
10
  import type { IncomingHttpHeaders } from 'http';
11
11
  import type { MultipartFile } from 'fastify-multipart';
12
12
  import type { Queue } from 'bull';
13
- import type { SocketStream } from 'fastify-websocket';
13
+ import type { SocketStream } from '@fastify/websocket';
14
14
  export declare namespace XServer {
15
15
  type Mode = 'development' | 'production';
16
16
  interface Route {
@@ -1,4 +1,4 @@
1
1
  import { FastifyInstance } from 'fastify';
2
2
  export interface BasePlugin {
3
- readonly register: (fastify: FastifyInstance) => void;
3
+ readonly register: (fastify: FastifyInstance<any, any, any, any, any>) => void;
4
4
  }
@@ -17,5 +17,5 @@ export interface CorsPluginOptions {
17
17
  export declare class CorsPlugin implements BasePlugin {
18
18
  private options;
19
19
  constructor(options: CorsPluginOptions);
20
- register(fastify: FastifyInstance): void;
20
+ register(fastify: FastifyInstance<any, any, any, any, any>): void;
21
21
  }
@@ -9,5 +9,5 @@ export interface FileParserPluginOptions extends FastifyMultipartOptions {
9
9
  export declare class FileParserPlugin implements BasePlugin {
10
10
  private options?;
11
11
  constructor(options?: FileParserPluginOptions);
12
- register(fastify: FastifyInstance): void;
12
+ register(fastify: FastifyInstance<any, any, any, any, any>): void;
13
13
  }
@@ -9,5 +9,5 @@ export interface FormBodyParserPluginOptions extends FormBodyPluginOptions {
9
9
  export declare class FormBodyParserPlugin implements BasePlugin {
10
10
  private options?;
11
11
  constructor(options?: FormBodyParserPluginOptions);
12
- register(fastify: FastifyInstance): void;
12
+ register(fastify: FastifyInstance<any, any, any, any, any>): void;
13
13
  }
@@ -1,4 +1,4 @@
1
- import { WebsocketPluginOptions } from 'fastify-websocket';
1
+ import { WebsocketPluginOptions } from '@fastify/websocket';
2
2
  import { BasePlugin } from './base';
3
3
  import { FastifyInstance } from 'fastify';
4
4
  export interface WsParserPluginOptions extends WebsocketPluginOptions {
@@ -9,5 +9,5 @@ export interface WsParserPluginOptions extends WebsocketPluginOptions {
9
9
  export declare class WsParserPlugin implements BasePlugin {
10
10
  private options?;
11
11
  constructor(options?: WsParserPluginOptions);
12
- register(fastify: FastifyInstance): void;
12
+ register(fastify: FastifyInstance<any, any, any, any, any>): void;
13
13
  }
@@ -1,4 +1,4 @@
1
- import FastifyWebsocket from 'fastify-websocket';
1
+ import FastifyWebsocket from '@fastify/websocket';
2
2
 
3
3
  /**
4
4
  * websocket 解析器插件
@@ -15,5 +15,5 @@ export interface XmlParserPluginOptions extends Partial<fxp.X2jOptions> {
15
15
  export declare class XmlParserPlugin implements BasePlugin {
16
16
  private options?;
17
17
  constructor(options?: XmlParserPluginOptions);
18
- register(fastify: FastifyInstance): void;
18
+ register(fastify: FastifyInstance<any, any, any, any, any>): void;
19
19
  }
@@ -15,6 +15,10 @@ export declare class SensitiveWordsService implements BaseService {
15
15
  * 处理文本,敏感词将被替换为 * 号。
16
16
  */
17
17
  process(text: string): Promise<string>;
18
+ /**
19
+ * 验证文本是否包含敏感词。
20
+ */
21
+ validate(text: string): Promise<boolean>;
18
22
  }
19
23
  declare module '../x' {
20
24
  interface X {
@@ -26,5 +26,18 @@ export class SensitiveWordsService {
26
26
  });
27
27
  return res.text;
28
28
  }
29
+ /**
30
+ * 验证文本是否包含敏感词。
31
+ */
32
+
33
+
34
+ async validate(text) {
35
+ if (!this.mint) {
36
+ this.mint = new Mint(this.options.words);
37
+ }
38
+
39
+ const res = this.mint.validator(text);
40
+ return res;
41
+ }
29
42
 
30
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jayfong/x-server",
3
- "version": "1.33.4",
3
+ "version": "1.33.6",
4
4
  "license": "ISC",
5
5
  "sideEffects": false,
6
6
  "main": "lib/_cjs/index.js",
@@ -27,6 +27,7 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@fastify/formbody": "^6.0.0",
30
+ "@fastify/websocket": "^7.0.1",
30
31
  "@prisma/client": "^3.12.0",
31
32
  "@types/bull": "^3.15.8",
32
33
  "@types/busboy": "^0.3.2",
@@ -52,7 +53,6 @@
52
53
  "fastify": "^3.28.0",
53
54
  "fastify-cors": "^6.0.3",
54
55
  "fastify-multipart": "^5.3.1",
55
- "fastify-websocket": "^4.2.2",
56
56
  "fs-extra": "^10.0.1",
57
57
  "got": "^11.8.2",
58
58
  "http-errors": "^1.8.1",
package/CHANGELOG.md DELETED
@@ -1,627 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
-
5
- ### [1.33.4](https://github.com/jfWorks/x-server/compare/v1.33.3...v1.33.4) (2022-07-17)
6
-
7
-
8
- ### Bug Fixes
9
-
10
- * remove console log ([13df7b1](https://github.com/jfWorks/x-server/commit/13df7b1728ab67df8206e79b2742f03143ff5668))
11
-
12
- ### [1.33.3](https://github.com/jfWorks/x-server/compare/v1.33.2...v1.33.3) (2022-07-07)
13
-
14
- ### [1.33.2](https://github.com/jfWorks/x-server/compare/v1.33.1...v1.33.2) (2022-06-28)
15
-
16
- ### [1.33.1](https://github.com/jfWorks/x-server/compare/v1.33.0...v1.33.1) (2022-06-12)
17
-
18
- ## [1.33.0](https://github.com/jfWorks/x-server/compare/v1.32.1...v1.33.0) (2022-06-11)
19
-
20
-
21
- ### Features
22
-
23
- * defineTask concurrency ([d8174aa](https://github.com/jfWorks/x-server/commit/d8174aa302e9013610d41265d937512a02412359))
24
-
25
- ### [1.32.1](https://github.com/jfWorks/x-server/compare/v1.32.0...v1.32.1) (2022-06-02)
26
-
27
-
28
- ### Bug Fixes
29
-
30
- * trustProxy: true ([b116aaa](https://github.com/jfWorks/x-server/commit/b116aaac3dd90364d5aaf939bf66e50a6911aad2))
31
-
32
- ## [1.32.0](https://github.com/jfWorks/x-server/compare/v1.31.3...v1.32.0) (2022-05-31)
33
-
34
-
35
- ### Features
36
-
37
- * add DingtalkService ([3cbe91c](https://github.com/jfWorks/x-server/commit/3cbe91cd82c6cfc5fa4c5bcf2d8c7eb93711ef7c))
38
-
39
- ### [1.31.3](https://github.com/jfWorks/x-server/compare/v1.31.2...v1.31.3) (2022-05-30)
40
-
41
-
42
- ### Bug Fixes
43
-
44
- * defineCron ([5d72533](https://github.com/jfWorks/x-server/commit/5d72533c039645833391ce31f0403c96b2c5ef77))
45
-
46
- ### [1.31.2](https://github.com/jfWorks/x-server/compare/v1.31.1...v1.31.2) (2022-05-30)
47
-
48
- ### [1.31.1](https://github.com/jfWorks/x-server/compare/v1.31.0...v1.31.1) (2022-05-30)
49
-
50
- ## [1.31.0](https://github.com/jfWorks/x-server/compare/v1.30.2...v1.31.0) (2022-05-30)
51
-
52
-
53
- ### Features
54
-
55
- * defineCron ([f9f362e](https://github.com/jfWorks/x-server/commit/f9f362ee0a9845f662af0b686781299390c5647d))
56
-
57
- ### [1.30.2](https://github.com/jfWorks/x-server/compare/v1.30.1...v1.30.2) (2022-05-26)
58
-
59
-
60
- ### Bug Fixes
61
-
62
- * use lz-string ([bf0e9af](https://github.com/jfWorks/x-server/commit/bf0e9af411c86ebd2b6527fc75be1476559c25fa))
63
-
64
- ### [1.30.1](https://github.com/jfWorks/x-server/compare/v1.30.0...v1.30.1) (2022-05-26)
65
-
66
-
67
- ### Bug Fixes
68
-
69
- * deflate <-> inflate ([e7c5f63](https://github.com/jfWorks/x-server/commit/e7c5f631a6a5165bbecf20b5b5923bbef4b6db1e))
70
-
71
- ## [1.30.0](https://github.com/jfWorks/x-server/compare/v1.29.0...v1.30.0) (2022-05-26)
72
-
73
-
74
- ### Features
75
-
76
- * add responseDataObfuscate ([2f1a70d](https://github.com/jfWorks/x-server/commit/2f1a70dae70c4359fbb6430ce5391f9d80ec0d17))
77
- * client_helper ([00146d1](https://github.com/jfWorks/x-server/commit/00146d133167ba8f535bff2acef4ef33412678ba))
78
-
79
- ## [1.29.0](https://github.com/jfWorks/x-server/compare/v1.28.2...v1.29.0) (2022-05-19)
80
-
81
-
82
- ### Features
83
-
84
- * jwt sign support ttl ([2e2958f](https://github.com/jfWorks/x-server/commit/2e2958f564b779838a9ca13a1b8cebc4e2a9bb59))
85
-
86
- ### [1.28.2](https://github.com/jfWorks/x-server/compare/v1.28.1...v1.28.2) (2022-05-16)
87
-
88
-
89
- ### Bug Fixes
90
-
91
- * rhel-openssl-1.1.x ([c2a752a](https://github.com/jfWorks/x-server/commit/c2a752a2c06e8a1e37c3c72154d5f21d801de8a2))
92
-
93
- ### [1.28.1](https://github.com/jfWorks/x-server/compare/v1.28.0...v1.28.1) (2022-05-16)
94
-
95
-
96
- ### Bug Fixes
97
-
98
- * rhel-openssl-1.1.x ([38bbf2f](https://github.com/jfWorks/x-server/commit/38bbf2ff3b1b22eaf37eebb7bca5bc95ee8c90a0))
99
-
100
- ## [1.28.0](https://github.com/jfWorks/x-server/compare/v1.27.4...v1.28.0) (2022-05-15)
101
-
102
-
103
- ### Features
104
-
105
- * **cache:** add rememberMany ([d6460d3](https://github.com/jfWorks/x-server/commit/d6460d363000700745834c02d145ec86658400d1))
106
-
107
- ### [1.27.4](https://github.com/jfWorks/x-server/compare/v1.27.3...v1.27.4) (2022-05-15)
108
-
109
-
110
- ### Bug Fixes
111
-
112
- * cache remove use batch ([1075902](https://github.com/jfWorks/x-server/commit/1075902984e09e766ec72b0289c4e4a5d16d5d16))
113
-
114
- ### [1.27.3](https://github.com/jfWorks/x-server/compare/v1.27.2...v1.27.3) (2022-05-11)
115
-
116
-
117
- ### Bug Fixes
118
-
119
- * api gen ([5e0086f](https://github.com/jfWorks/x-server/commit/5e0086f166bf629f0a68ddea367816abf40197f0))
120
-
121
- ### [1.27.2](https://github.com/jfWorks/x-server/compare/v1.27.1...v1.27.2) (2022-05-11)
122
-
123
-
124
- ### Bug Fixes
125
-
126
- * api gen GET ([601d94a](https://github.com/jfWorks/x-server/commit/601d94a9abd4a33a91f805dae74a0a471ba2cd59))
127
-
128
- ### [1.27.1](https://github.com/jfWorks/x-server/compare/v1.27.0...v1.27.1) (2022-05-08)
129
-
130
-
131
- ### Bug Fixes
132
-
133
- * api ([d30109c](https://github.com/jfWorks/x-server/commit/d30109ce90db1f3f9c513b9867be6123bc6373e6))
134
-
135
- ## [1.27.0](https://github.com/jfWorks/x-server/compare/v1.26.9...v1.27.0) (2022-05-07)
136
-
137
-
138
- ### Features
139
-
140
- * 添加 fastifyOptions ([0be0509](https://github.com/jfWorks/x-server/commit/0be0509adb2bfcc24ff0122b1f5d52a155370738))
141
-
142
- ### [1.26.9](https://github.com/jfWorks/x-server/compare/v1.26.8...v1.26.9) (2022-05-07)
143
-
144
-
145
- ### Bug Fixes
146
-
147
- * initTasks ([3e1984d](https://github.com/jfWorks/x-server/commit/3e1984da3ad0cb99b858f88e211c68c8a6eab8c1))
148
-
149
- ### [1.26.8](https://github.com/jfWorks/x-server/compare/v1.26.7...v1.26.8) (2022-05-07)
150
-
151
-
152
- ### Bug Fixes
153
-
154
- * init ([b8f8e44](https://github.com/jfWorks/x-server/commit/b8f8e44ed1cf282293938ab3678796a402832dc2))
155
-
156
- ### [1.26.7](https://github.com/jfWorks/x-server/compare/v1.26.6...v1.26.7) (2022-05-07)
157
-
158
-
159
- ### Bug Fixes
160
-
161
- * _ => index ([e3000d0](https://github.com/jfWorks/x-server/commit/e3000d09f20d983e3edc00d7a307b419f786e485))
162
-
163
- ### [1.26.6](https://github.com/jfWorks/x-server/compare/v1.26.5...v1.26.6) (2022-05-07)
164
-
165
-
166
- ### Bug Fixes
167
-
168
- * ServiceOptions ([bd86e66](https://github.com/jfWorks/x-server/commit/bd86e6618a5e115cbba26b56dfbeba2a427bfda7))
169
-
170
- ### [1.26.5](https://github.com/jfWorks/x-server/compare/v1.26.4...v1.26.5) (2022-05-06)
171
-
172
-
173
- ### Bug Fixes
174
-
175
- * export MailServiceSendOptions type ([7c47c23](https://github.com/jfWorks/x-server/commit/7c47c23a0d2f4d9a08f49e66a0155e282518257f))
176
-
177
- ### [1.26.4](https://github.com/jfWorks/x-server/compare/v1.26.3...v1.26.4) (2022-05-03)
178
-
179
-
180
- ### Bug Fixes
181
-
182
- * bull ([5c92fc2](https://github.com/jfWorks/x-server/commit/5c92fc2f54c6e7ddcc237553d840b72af27d8630))
183
-
184
- ### [1.26.3](https://github.com/jfWorks/x-server/compare/v1.26.2...v1.26.3) (2022-05-03)
185
-
186
-
187
- ### Bug Fixes
188
-
189
- * hexoid 构建问题 ([0620d5a](https://github.com/jfWorks/x-server/commit/0620d5a3ea3ffe3d552a68aeaa51330abde70585))
190
-
191
- ### [1.26.2](https://github.com/jfWorks/x-server/compare/v1.26.1...v1.26.2) (2022-05-03)
192
-
193
-
194
- ### Bug Fixes
195
-
196
- * defineTask ([8b32f5c](https://github.com/jfWorks/x-server/commit/8b32f5c4b068ac5c03030901dffa599df4fb6cf6))
197
-
198
- ### [1.26.1](https://github.com/jfWorks/x-server/compare/v1.26.0...v1.26.1) (2022-05-03)
199
-
200
-
201
- ### Bug Fixes
202
-
203
- * defineTask ([7d5a5d2](https://github.com/jfWorks/x-server/commit/7d5a5d247a63301dc46042238a6d31f7f4cb5423))
204
-
205
- ## [1.26.0](https://github.com/jfWorks/x-server/compare/v1.25.0...v1.26.0) (2022-05-02)
206
-
207
-
208
- ### Features
209
-
210
- * add SensitiveWordsService ([ee03592](https://github.com/jfWorks/x-server/commit/ee03592f5acd795b03fa65717ea276db66f453c1))
211
-
212
- ## [1.25.0](https://github.com/jfWorks/x-server/compare/v1.24.2...v1.25.0) (2022-05-02)
213
-
214
-
215
- ### Features
216
-
217
- * add FormBodyParserPlugin ([b51392c](https://github.com/jfWorks/x-server/commit/b51392c5dce6480f9f5250192f676421c6a1cad2))
218
- * ctx add req res ([ccd1ea0](https://github.com/jfWorks/x-server/commit/ccd1ea08f9d10e0b29ff235b1b6572b180798d8d))
219
-
220
- ### [1.24.2](https://github.com/jfWorks/x-server/compare/v1.24.1...v1.24.2) (2022-05-02)
221
-
222
-
223
- ### Bug Fixes
224
-
225
- * returnUrl? ([fb46884](https://github.com/jfWorks/x-server/commit/fb4688405c16986727be2785695e9faa6a2db386))
226
- * verifyNotifyData ([a4b76e3](https://github.com/jfWorks/x-server/commit/a4b76e3c63babc2f789646f932b1375a1c0a76e4))
227
-
228
- ### [1.24.1](https://github.com/jfWorks/x-server/compare/v1.24.0...v1.24.1) (2022-05-02)
229
-
230
- ## [1.24.0](https://github.com/jfWorks/x-server/compare/v1.23.0...v1.24.0) (2022-05-02)
231
-
232
-
233
- ### Features
234
-
235
- * add PayService ([c8d5ecc](https://github.com/jfWorks/x-server/commit/c8d5eccf2393c1a1bf98415564032b09ffb10497))
236
-
237
- ## [1.23.0](https://github.com/jfWorks/x-server/compare/v1.22.0...v1.23.0) (2022-05-01)
238
-
239
-
240
- ### Features
241
-
242
- * **captcha:** add generateDataUrl ([54205df](https://github.com/jfWorks/x-server/commit/54205df24d0cc397029d8c66ea17020d7cb5c5fd))
243
-
244
- ## [1.22.0](https://github.com/jfWorks/x-server/compare/v1.21.0...v1.22.0) (2022-05-01)
245
-
246
-
247
- ### Features
248
-
249
- * **cors:** allowAll ([5ce4b5d](https://github.com/jfWorks/x-server/commit/5ce4b5d9183f68a32173d77de569f00c5409ccdc))
250
-
251
- ## [1.21.0](https://github.com/jfWorks/x-server/compare/v1.20.1...v1.21.0) (2022-04-29)
252
-
253
-
254
- ### Features
255
-
256
- * export * from '@prisma/client' ([3e6c707](https://github.com/jfWorks/x-server/commit/3e6c707d55bad0cbb719f1b76bdd306ef0527ba1))
257
-
258
- ### [1.20.1](https://github.com/jfWorks/x-server/compare/v1.20.0...v1.20.1) (2022-04-27)
259
-
260
-
261
- ### Bug Fixes
262
-
263
- * res == null ? ({} as any) : res ([ea0c531](https://github.com/jfWorks/x-server/commit/ea0c531524636cf9a92e43646fb37bd57b6148d7))
264
-
265
- ## [1.20.0](https://github.com/jfWorks/x-server/compare/v1.19.0...v1.20.0) (2022-04-27)
266
-
267
-
268
- ### Features
269
-
270
- * add responseContentType ([dcd9841](https://github.com/jfWorks/x-server/commit/dcd9841e7940d0bc4dfd55faa69deedd1463aee0))
271
-
272
- ## [1.19.0](https://github.com/jfWorks/x-server/compare/v1.18.0...v1.19.0) (2022-04-27)
273
-
274
-
275
- ### Features
276
-
277
- * http_header ([b4cc67b](https://github.com/jfWorks/x-server/commit/b4cc67b88f523e9bb0535e9edd2ce6e27d5ff209))
278
-
279
- ## [1.18.0](https://github.com/jfWorks/x-server/compare/v1.17.0...v1.18.0) (2022-04-27)
280
-
281
-
282
- ### Features
283
-
284
- * setHeader ([07596ba](https://github.com/jfWorks/x-server/commit/07596ba1c83f6a7583e16b969332936339bd06a8))
285
-
286
- ## [1.17.0](https://github.com/jfWorks/x-server/compare/v1.16.1...v1.17.0) (2022-04-27)
287
-
288
-
289
- ### Features
290
-
291
- * add ctx.url ([1092009](https://github.com/jfWorks/x-server/commit/10920094646e975e74dc0339ecc290e257f3ca52))
292
-
293
- ### [1.16.1](https://github.com/jfWorks/x-server/compare/v1.16.0...v1.16.1) (2022-04-27)
294
-
295
-
296
- ### Bug Fixes
297
-
298
- * RateLimitService ([20a489e](https://github.com/jfWorks/x-server/commit/20a489e3cb119ba055d4c77983354f607f61af0b))
299
-
300
- ## [1.16.0](https://github.com/jfWorks/x-server/compare/v1.15.3...v1.16.0) (2022-04-27)
301
-
302
-
303
- ### Features
304
-
305
- * add RateLimitService ([49b5edb](https://github.com/jfWorks/x-server/commit/49b5edba451dd355a24a1b5cc4e52ec14a8769e4))
306
-
307
-
308
- ### Bug Fixes
309
-
310
- * X_SERVER_ENVS ([6586cec](https://github.com/jfWorks/x-server/commit/6586cec0eb69336c379a52eb7bb67b29f6694785))
311
-
312
- ### [1.15.3](https://github.com/jfWorks/x-server/compare/v1.15.2...v1.15.3) (2022-04-26)
313
-
314
-
315
- ### Bug Fixes
316
-
317
- * verify ([aeaddd0](https://github.com/jfWorks/x-server/commit/aeaddd0eb307e815ee3d8f92e48dd7755cabce89))
318
-
319
- ### [1.15.2](https://github.com/jfWorks/x-server/compare/v1.15.1...v1.15.2) (2022-04-26)
320
-
321
-
322
- ### Bug Fixes
323
-
324
- * 验证码应取小写判断 ([36fa3f8](https://github.com/jfWorks/x-server/commit/36fa3f83374777740c28b1775efc4d1f5694a918))
325
-
326
- ### [1.15.1](https://github.com/jfWorks/x-server/compare/v1.15.0...v1.15.1) (2022-04-26)
327
-
328
-
329
- ### Bug Fixes
330
-
331
- * env ([4ae102e](https://github.com/jfWorks/x-server/commit/4ae102eabe2fb0f99f6367d75314d9b2db6b556e))
332
- * envs ([6fe04ee](https://github.com/jfWorks/x-server/commit/6fe04eedcc2875edd5e0b7398b3fe8f7a826c3e1))
333
-
334
- ## [1.15.0](https://github.com/jfWorks/x-server/compare/v1.14.1...v1.15.0) (2022-04-26)
335
-
336
-
337
- ### Features
338
-
339
- * x.env ([e39771f](https://github.com/jfWorks/x-server/commit/e39771f998f4b952bda528105fb18b6895e0ce81))
340
-
341
- ### [1.14.1](https://github.com/jfWorks/x-server/compare/v1.14.0...v1.14.1) (2022-04-26)
342
-
343
-
344
- ### Bug Fixes
345
-
346
- * requestDataSchema ([8b4f910](https://github.com/jfWorks/x-server/commit/8b4f910b1e9efbc082571b9ef407d7baf31b6319))
347
-
348
- ## [1.14.0](https://github.com/jfWorks/x-server/compare/v1.13.1...v1.14.0) (2022-04-26)
349
-
350
-
351
- ### Features
352
-
353
- * requestDataSchema ([72970dd](https://github.com/jfWorks/x-server/commit/72970dd63810ab9b3fcdc9390fcde3cfdd4a6013))
354
-
355
-
356
- ### Bug Fixes
357
-
358
- * text -> code ([a8571e3](https://github.com/jfWorks/x-server/commit/a8571e3c99036467f2110b5ab30798c4e6bc42af))
359
-
360
- ### [1.13.1](https://github.com/jfWorks/x-server/compare/v1.13.0...v1.13.1) (2022-04-26)
361
-
362
-
363
- ### Bug Fixes
364
-
365
- * appname -> appid ([88d14d1](https://github.com/jfWorks/x-server/commit/88d14d18078c7bc19ddf2c973e53cc0353a533de))
366
-
367
- ## [1.13.0](https://github.com/jfWorks/x-server/compare/v1.12.0...v1.13.0) (2022-04-26)
368
-
369
-
370
- ### Features
371
-
372
- * **CaptchaService:** generate, generateImage ([22bf340](https://github.com/jfWorks/x-server/commit/22bf3404cfb7d3a530714471fe004fcd9ee60760))
373
-
374
- ## [1.12.0](https://github.com/jfWorks/x-server/compare/v1.11.6...v1.12.0) (2022-04-25)
375
-
376
-
377
- ### Features
378
-
379
- * add MailService ([e7a5337](https://github.com/jfWorks/x-server/commit/e7a53370af0dc29d6183fe66ffa3919ae55f0905))
380
-
381
- ### [1.11.6](https://github.com/jfWorks/x-server/compare/v1.11.5...v1.11.6) (2022-04-21)
382
-
383
-
384
- ### Bug Fixes
385
-
386
- * initHelperPackage ([5ddae6a](https://github.com/jfWorks/x-server/commit/5ddae6a7fe6b9695f8817a8525a1cff3f90a3c38))
387
-
388
- ### [1.11.5](https://github.com/jfWorks/x-server/compare/v1.11.4...v1.11.5) (2022-04-20)
389
-
390
-
391
- ### Bug Fixes
392
-
393
- * tbify node ([f732b68](https://github.com/jfWorks/x-server/commit/f732b6895895bd6f751e32d7cf04d5ed5ebacd61))
394
-
395
- ### [1.11.4](https://github.com/jfWorks/x-server/compare/v1.11.3...v1.11.4) (2022-04-20)
396
-
397
-
398
- ### Bug Fixes
399
-
400
- * 下载 centos (rhel-openssl-1.0.x) 的可执行文件 ([1b5a13f](https://github.com/jfWorks/x-server/commit/1b5a13f30dd46d0cc5d76ee1697580ad07ab03cd))
401
-
402
- ### [1.11.3](https://github.com/jfWorks/x-server/compare/v1.11.2...v1.11.3) (2022-04-20)
403
-
404
-
405
- ### Bug Fixes
406
-
407
- * mainFields ([80fd62d](https://github.com/jfWorks/x-server/commit/80fd62d3973f556a83dc7bf1930e5bb06c6845ec))
408
-
409
- ### [1.11.2](https://github.com/jfWorks/x-server/compare/v1.11.1...v1.11.2) (2022-04-20)
410
-
411
-
412
- ### Bug Fixes
413
-
414
- * bin ([aa23fe9](https://github.com/jfWorks/x-server/commit/aa23fe9a6ccfef2b78f318676d4d983d24f315c4))
415
-
416
- ### [1.11.1](https://github.com/jfWorks/x-server/compare/v1.11.0...v1.11.1) (2022-04-20)
417
-
418
-
419
- ### Bug Fixes
420
-
421
- * module ([cdbc01b](https://github.com/jfWorks/x-server/commit/cdbc01b7e252283fa868c5519dd7f22263853aa9))
422
-
423
- ## [1.11.0](https://github.com/jfWorks/x-server/compare/v1.10.3...v1.11.0) (2022-04-20)
424
-
425
-
426
- ### Features
427
-
428
- * minify & sideEffects ([12cdccd](https://github.com/jfWorks/x-server/commit/12cdccdd23273117e610a1f428f33b735f6b199b))
429
-
430
- ### [1.10.3](https://github.com/jfWorks/x-server/compare/v1.10.2...v1.10.3) (2022-04-19)
431
-
432
-
433
- ### Bug Fixes
434
-
435
- * initModels ([85c6aa7](https://github.com/jfWorks/x-server/commit/85c6aa77d28ded5aeb336e57b2c62de3817a18f3))
436
-
437
- ### [1.10.2](https://github.com/jfWorks/x-server/compare/v1.10.1...v1.10.2) (2022-04-19)
438
-
439
-
440
- ### Bug Fixes
441
-
442
- * api gen ([cc33df1](https://github.com/jfWorks/x-server/commit/cc33df1bf15c2b367b1a62cf920a1a1184c20339))
443
-
444
- ### [1.10.1](https://github.com/jfWorks/x-server/compare/v1.10.0...v1.10.1) (2022-04-19)
445
-
446
- ## [1.10.0](https://github.com/jfWorks/x-server/compare/v1.8.0...v1.10.0) (2022-04-19)
447
-
448
-
449
- ### Features
450
-
451
- * use esbuild-register ([0b004db](https://github.com/jfWorks/x-server/commit/0b004db9a048d0faaf528c0d8030bf0ccfb8e2b3))
452
-
453
-
454
- ### Bug Fixes
455
-
456
- * template ([0f9bd05](https://github.com/jfWorks/x-server/commit/0f9bd0589d101de6f78f13f185ef9220edc887a7))
457
- * watcher initial ([82511a1](https://github.com/jfWorks/x-server/commit/82511a1bc9d1ccf4d96aa7a8ae7ee3d50a8ec2db))
458
-
459
- ## [1.9.0](https://github.com/jfWorks/x-server/compare/v1.7.2...v1.9.0) (2022-04-18)
460
-
461
-
462
- ### Features
463
-
464
- * 更改包名为 @jayfong/x-server ([1be9998](https://github.com/jfWorks/x-server/commit/1be9998070cc0960aeef2d333356f66a22bb5766))
465
- * 移除 cwd 选项 ([12cfa42](https://github.com/jfWorks/x-server/commit/12cfa4222ec8d69d73f2b38a68ea6aa975dbe575))
466
- * npc ([5d314ea](https://github.com/jfWorks/x-server/commit/5d314ea341a72ae5b09db979d5d2b63ffadf0670))
467
- * plugins ([1df0cd1](https://github.com/jfWorks/x-server/commit/1df0cd10ccf170d9e7180abf9d27416304856894))
468
- * service 通过 x 提供 ([a159154](https://github.com/jfWorks/x-server/commit/a1591541e865e755d4d6dbdeb405d5d08b334a4a))
469
- * templates ([deeb0d6](https://github.com/jfWorks/x-server/commit/deeb0d643bdf04d04533d20bd1d5a068b178347a))
470
- * use esbuild-register ([0b004db](https://github.com/jfWorks/x-server/commit/0b004db9a048d0faaf528c0d8030bf0ccfb8e2b3))
471
-
472
-
473
- ### Bug Fixes
474
-
475
- * template ([0f9bd05](https://github.com/jfWorks/x-server/commit/0f9bd0589d101de6f78f13f185ef9220edc887a7))
476
- * test ([994845b](https://github.com/jfWorks/x-server/commit/994845b0e2ac84ce050494de27b705c1e45fb343))
477
-
478
- ## [1.8.0](https://github.com/jfWorks/x-server/compare/v1.7.2...v1.8.0) (2022-04-18)
479
-
480
-
481
- ### Features
482
-
483
- * 更改包名为 @jayfong/x-server ([1be9998](https://github.com/jfWorks/x-server/commit/1be9998070cc0960aeef2d333356f66a22bb5766))
484
- * 移除 cwd 选项 ([12cfa42](https://github.com/jfWorks/x-server/commit/12cfa4222ec8d69d73f2b38a68ea6aa975dbe575))
485
- * npc ([5d314ea](https://github.com/jfWorks/x-server/commit/5d314ea341a72ae5b09db979d5d2b63ffadf0670))
486
- * plugins ([1df0cd1](https://github.com/jfWorks/x-server/commit/1df0cd10ccf170d9e7180abf9d27416304856894))
487
- * service 通过 x 提供 ([a159154](https://github.com/jfWorks/x-server/commit/a1591541e865e755d4d6dbdeb405d5d08b334a4a))
488
- * templates ([deeb0d6](https://github.com/jfWorks/x-server/commit/deeb0d643bdf04d04533d20bd1d5a068b178347a))
489
-
490
-
491
- ### Bug Fixes
492
-
493
- * test ([994845b](https://github.com/jfWorks/x-server/commit/994845b0e2ac84ce050494de27b705c1e45fb343))
494
-
495
- ### [1.7.2](https://github.com/jfWorks/x-server/compare/v1.7.1...v1.7.2) (2022-04-16)
496
-
497
-
498
- ### Bug Fixes
499
-
500
- * npx -> tnpx ([2ef5650](https://github.com/jfWorks/x-server/commit/2ef5650679dbc1ceea5a44e8348c31aa06f5ae5b))
501
-
502
- ### [1.7.1](https://github.com/jfWorks/x-server/compare/v1.7.0...v1.7.1) (2022-04-16)
503
-
504
- ## [1.7.0](https://github.com/jfWorks/x-server/compare/v1.6.0...v1.7.0) (2021-11-08)
505
-
506
-
507
- ### Features
508
-
509
- * 升级 vtils 使用 dedent, ms ([251591b](https://github.com/jfWorks/x-server/commit/251591ba47b9a9d619e038adcb66dfb52fd80264))
510
-
511
- ## [1.6.0](https://github.com/jfWorks/x-server/compare/v1.5.7...v1.6.0) (2021-11-07)
512
-
513
-
514
- ### Features
515
-
516
- * 支持 npc ([53069e6](https://github.com/jfWorks/x-server/commit/53069e6ba77d2ad8852cc2d5d7ede73a9d05c1da))
517
-
518
- ### [1.5.7](https://github.com/jfWorks/x-server/compare/v1.5.6...v1.5.7) (2021-11-07)
519
-
520
- ### [1.5.6](https://github.com/jfWorks/x-server/compare/v1.5.5...v1.5.6) (2021-11-07)
521
-
522
-
523
- ### Bug Fixes
524
-
525
- * task ([f36571a](https://github.com/jfWorks/x-server/commit/f36571a51d32fff19d62c233cc31fd250d90281a))
526
-
527
- ### [1.5.5](https://github.com/jfWorks/x-server/compare/v1.5.4...v1.5.5) (2021-11-07)
528
-
529
-
530
- ### Bug Fixes
531
-
532
- * env ([5917b3d](https://github.com/jfWorks/x-server/commit/5917b3dddaeb750c692c7ac8a1af6fdb65eab942))
533
-
534
- ### [1.5.4](https://github.com/jfWorks/x-server/compare/v1.5.3...v1.5.4) (2021-11-07)
535
-
536
-
537
- ### Bug Fixes
538
-
539
- * 兼容 prisma ([41c3417](https://github.com/jfWorks/x-server/commit/41c34175d2af074c44e76422d9ba2b421be556c9))
540
-
541
- ### [1.5.3](https://github.com/jfWorks/x-server/compare/v1.5.2...v1.5.3) (2021-11-07)
542
-
543
-
544
- ### Bug Fixes
545
-
546
- * 兼容 prisma ([668bfd1](https://github.com/jfWorks/x-server/commit/668bfd1d7efd91b1a3c607d7050379d43fccdd22))
547
-
548
- ### [1.5.2](https://github.com/jfWorks/x-server/compare/v1.5.1...v1.5.2) (2021-11-07)
549
-
550
- ### [1.5.1](https://github.com/jfWorks/x-server/compare/v1.5.0...v1.5.1) (2021-11-07)
551
-
552
-
553
- ### Bug Fixes
554
-
555
- * env ([f79cd48](https://github.com/jfWorks/x-server/commit/f79cd48a3ee9101605d9ac80dbaac5f8ca7f94df))
556
-
557
- ## [1.5.0](https://github.com/jfWorks/x-server/compare/v1.4.0...v1.5.0) (2021-11-07)
558
-
559
-
560
- ### Features
561
-
562
- * 支持 DATABASE_ACTION_URL ([e21884e](https://github.com/jfWorks/x-server/commit/e21884eeca8e1c451f8536d93663e1b663ee5303))
563
-
564
- ## [1.4.0](https://github.com/jfWorks/x-server/compare/v1.3.1...v1.4.0) (2021-11-06)
565
-
566
-
567
- ### Features
568
-
569
- * 进一步简化部署流程 ([a2062d8](https://github.com/jfWorks/x-server/commit/a2062d8d07df2a256d470ec10b633183fa5e44c1))
570
- * build 优化 ([4d988bb](https://github.com/jfWorks/x-server/commit/4d988bb953f68a44916d6bb89c9d05ee5801abb9))
571
-
572
- ### [1.3.1](https://github.com/jfWorks/x-server/compare/v1.3.0...v1.3.1) (2021-11-06)
573
-
574
-
575
- ### Bug Fixes
576
-
577
- * **cli/build:** 将 svg-captcha 加入 external ([d2b9b8d](https://github.com/jfWorks/x-server/commit/d2b9b8d7e4818d7eb3eb5249b6b24c344a9f027b))
578
- * ws ([6cdb442](https://github.com/jfWorks/x-server/commit/6cdb4421415b4e607a6e00c5469a955114aca112))
579
-
580
- ## [1.3.0](https://github.com/jfWorks/x-server/compare/v1.1.3...v1.3.0) (2021-11-06)
581
-
582
-
583
- ### Features
584
-
585
- * deploy ([b0808ce](https://github.com/jfWorks/x-server/commit/b0808cec8d5eb35fe80897e13db719151f6935b3))
586
- * **EnvUtil:** 支持多行 ([fb99204](https://github.com/jfWorks/x-server/commit/fb9920478db090fce3eb57340b71e8c9b5c9af96))
587
-
588
-
589
- ### Bug Fixes
590
-
591
- * deploy ([0a02537](https://github.com/jfWorks/x-server/commit/0a02537d4e1198249f6e0d9c1fc6e40b7c24684c))
592
-
593
- ## [1.2.0](https://github.com/jfWorks/x-server/compare/v1.1.3...v1.2.0) (2021-11-05)
594
-
595
-
596
- ### Features
597
-
598
- * deploy ([b0808ce](https://github.com/jfWorks/x-server/commit/b0808cec8d5eb35fe80897e13db719151f6935b3))
599
- * **EnvUtil:** 支持多行 ([fb99204](https://github.com/jfWorks/x-server/commit/fb9920478db090fce3eb57340b71e8c9b5c9af96))
600
-
601
- ### [1.1.3](https://github.com/jfWorks/x-server/compare/v1.1.2...v1.1.3) (2021-11-05)
602
-
603
-
604
- ### Bug Fixes
605
-
606
- * **EnvUtil:** 解析注释正则更新 ([5e9cfbf](https://github.com/jfWorks/x-server/commit/5e9cfbff44a8695f648e7b7ef25226b1e6c4b350))
607
-
608
- ### [1.1.2](https://github.com/jfWorks/x-server/compare/v1.1.1...v1.1.2) (2021-11-05)
609
-
610
- ### [1.1.1](https://github.com/jfWorks/x-server/compare/v1.1.0...v1.1.1) (2021-11-05)
611
-
612
- ## [1.1.0](https://github.com/jfWorks/x-server/compare/v1.0.1...v1.1.0) (2021-11-05)
613
-
614
-
615
- ### Features
616
-
617
- * **cli:** 新增 run ([c9d8de0](https://github.com/jfWorks/x-server/commit/c9d8de01de8373541f6e4e628fe43067a58d0b8b))
618
- * **cli:** prisma 支持通过 mode 传入环境 ([5547b7b](https://github.com/jfWorks/x-server/commit/5547b7b66205b25e545a94db88665c513cc8fbd0))
619
- * **cli:** prisma 支持增强 ([2be1aa1](https://github.com/jfWorks/x-server/commit/2be1aa1394d6aac5c2f4c9a7ca24a3b89a4c0811))
620
- * **run:** 不传 script 时选择 npm scripts ([474baf0](https://github.com/jfWorks/x-server/commit/474baf0f30b039600922679850f494dadbea4963))
621
-
622
-
623
- ### Bug Fixes
624
-
625
- * **cli:** 简化模式配置 ([a4e9e41](https://github.com/jfWorks/x-server/commit/a4e9e413b8e5209489a3944ae0bb7930c42a999c))
626
-
627
- ### 1.0.1 (2021-11-05)