skybase 0.1.107 → 0.1.110

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,35 +1,43 @@
1
- ## [0.1.106](https://github.com/kongnet/skybase/compare/v0.1.105...v0.1.106) (2025-12-13)
1
+ ## [0.1.108](https://github.com/kongnet/skybase/compare/v0.1.101...v0.1.108) (2025-12-18)
2
+
3
+
4
+ ### :sparkles:
5
+
6
+ * 增加多语言前端自定义错误 ([107bea2](https://github.com/kongnet/skybase/commit/107bea25a2c4edcf6d59b46508f1efadd5d0d70c))
2
7
 
3
8
 
4
9
 
10
+ ## [0.1.101](https://github.com/kongnet/skybase/compare/v0.1.100...v0.1.101) (2025-12-18)
5
11
 
6
- ## [0.1.105](https://github.com/kongnet/skybase/compare/v0.1.104...v0.1.105) (2025-12-13)
7
12
 
8
13
 
9
14
 
15
+ ## [0.1.100](https://github.com/kongnet/skybase/compare/v0.1.99...v0.1.100) (2025-12-04)
10
16
 
11
- ## [0.1.104](https://github.com/kongnet/skybase/compare/v0.1.103...v0.1.104) (2025-12-13)
12
17
 
13
18
 
14
19
 
20
+ ## [0.1.99](https://github.com/kongnet/skybase/compare/v0.1.98...v0.1.99) (2025-10-15)
15
21
 
16
- ## [0.1.103](https://github.com/kongnet/skybase/compare/v0.1.102...v0.1.103) (2025-12-13)
17
22
 
18
23
 
19
24
 
25
+ ## [0.1.98](https://github.com/kongnet/skybase/compare/v0.1.97...v0.1.98) (2025-10-14)
20
26
 
21
- ## [0.1.102](https://github.com/kongnet/skybase/compare/v0.1.101...v0.1.102) (2025-12-13)
22
27
 
23
28
 
24
29
 
30
+ ## [0.1.97](https://github.com/kongnet/skybase/compare/v0.1.96...v0.1.97) (2025-10-14)
25
31
 
26
- ## [0.1.101](https://github.com/kongnet/skybase/compare/v0.1.95...v0.1.101) (2025-12-13)
32
+
33
+
34
+
35
+ ## [0.1.96](https://github.com/kongnet/skybase/compare/v0.1.95...v0.1.96) (2025-10-14)
27
36
 
28
37
 
29
38
  ### :sparkles:
30
39
 
31
40
  * (koa 版本升级) ([eb043e1](https://github.com/kongnet/skybase/commit/eb043e18851d6946c92de77940a8756dfe89b920))
32
- * 增加多语言前端自定义错误 ([107bea2](https://github.com/kongnet/skybase/commit/107bea25a2c4edcf6d59b46508f1efadd5d0d70c))
33
41
 
34
42
 
35
43
 
@@ -121,15 +129,15 @@
121
129
 
122
130
  ### :art:
123
131
 
124
- * 添加readme ([5ae8572](https://github.com/kongnet/skybase/commit/5ae85725b0240f80edfc7df4ecd6918c23770e56))
125
132
  * 在测试环境下,返回实际提交的参数 ([423feb2](https://github.com/kongnet/skybase/commit/423feb206c8942333b222be86e1596ead316bfe9))
133
+ * 添加readme ([5ae8572](https://github.com/kongnet/skybase/commit/5ae85725b0240f80edfc7df4ecd6918c23770e56))
126
134
 
127
135
  ### :bug:
128
136
 
137
+ * information_schema单词拼错 ([22548d0](https://github.com/kongnet/skybase/commit/22548d081cfb97882fa3c14213b69f741f4a4206))
129
138
  * 创建中间暴露到index,修复controller出错时候的信息 ([8c00a07](https://github.com/kongnet/skybase/commit/8c00a07f3ed6c0549ee2db84c3f42d0e542429e7))
130
139
  * 启动时候的颜色修正 ([96eac4a](https://github.com/kongnet/skybase/commit/96eac4a81b24f033520a71fa0e64c8e2e3f926fc))
131
140
  * 增加上传文件限制的maxFileSize配置项 ([76d4657](https://github.com/kongnet/skybase/commit/76d46577d668dc39e6d6cbd2ec170bff8a09ff6f))
132
- * information_schema单词拼错 ([22548d0](https://github.com/kongnet/skybase/commit/22548d081cfb97882fa3c14213b69f741f4a4206))
133
141
 
134
142
  ### :fire:
135
143
 
@@ -137,33 +145,33 @@
137
145
 
138
146
  ### :memo:
139
147
 
140
- * 简单的实践文档 ([cf0ceaf](https://github.com/kongnet/skybase/commit/cf0ceaf5f8ac61e5ef7cf1997a4935b6b0eb90de))
141
- * 修改创建项目的帮助文档 ([73154d8](https://github.com/kongnet/skybase/commit/73154d89b33d039a45401b7ab64ccb9451f1e119))
142
148
  * 修改上传文件说明 ([9f94e21](https://github.com/kongnet/skybase/commit/9f94e2100ae8e4d2bce614395b1762937d117d9d))
149
+ * 修改创建项目的帮助文档 ([73154d8](https://github.com/kongnet/skybase/commit/73154d89b33d039a45401b7ab64ccb9451f1e119))
143
150
  * 修改说明文档,增加Changelog.md ([fb4708b](https://github.com/kongnet/skybase/commit/fb4708bc445a1cde593668edf094aeefbe665543))
144
- * 增加模板文件 ([e1a0620](https://github.com/kongnet/skybase/commit/e1a062001d3646f0ae4b0f0213cc0f01d25d4edd))
145
- * 增加数据探针帮助文件 ([a74a388](https://github.com/kongnet/skybase/commit/a74a38856393083043b9b0373f4993dafc435011))
146
151
  * 增加探针服务器readme ([5e8c069](https://github.com/kongnet/skybase/commit/5e8c0693397ea737e0413a068218add3f7600f2f))
152
+ * 增加数据探针帮助文件 ([a74a388](https://github.com/kongnet/skybase/commit/a74a38856393083043b9b0373f4993dafc435011))
153
+ * 增加模板文件 ([e1a0620](https://github.com/kongnet/skybase/commit/e1a062001d3646f0ae4b0f0213cc0f01d25d4edd))
154
+ * 简单的实践文档 ([cf0ceaf](https://github.com/kongnet/skybase/commit/cf0ceaf5f8ac61e5ef7cf1997a4935b6b0eb90de))
147
155
 
148
156
  ### :sparkles:
149
157
 
150
- * 表和字段除id外,没有注解标注 ([45b0b49](https://github.com/kongnet/skybase/commit/45b0b493f8d7754d13b76e11d9c5447ec07c1955))
151
- * 更新的统计到mq的方法 ([a0ea9b3](https://github.com/kongnet/skybase/commit/a0ea9b3f8c139281f5c8ae2973cdcd4299165488))
158
+ * mysql tree ([acf3e2c](https://github.com/kongnet/skybase/commit/acf3e2cdfe9ff27bb047f36f1362775e64ca35ac))
159
+ * skyjt init 模板中增加 mock 例子 ([c417d8e](https://github.com/kongnet/skybase/commit/c417d8e79ef18aa72db85e8d1ffbfea330ed256d))
152
160
  * 优化mock案例,增加readme文档注释 ([b80d448](https://github.com/kongnet/skybase/commit/b80d448e147bacdde1d422f446514af60c781efa))
153
- * 增加最近20条错误列表 ([171ab33](https://github.com/kongnet/skybase/commit/171ab330be6ce795e5151d9e2c27ae47a5028291))
154
- * 增加api统计队列名称设置rtsQueueName ([46cedc1](https://github.com/kongnet/skybase/commit/46cedc19dddef9b573f27fabe96c919016184732))
155
161
  * 增加api无参数提交测试 ([7ca8020](https://github.com/kongnet/skybase/commit/7ca80203772b356f0005b0dae7f238f7a800715b))
162
+ * 增加api统计队列名称设置rtsQueueName ([46cedc1](https://github.com/kongnet/skybase/commit/46cedc19dddef9b573f27fabe96c919016184732))
156
163
  * 增加redirect功能 ([35ead02](https://github.com/kongnet/skybase/commit/35ead02d749b36b6adadfe4ce3e92ac2db1cdfa7))
157
164
  * 增加skybase的默认init模板 ([408126e](https://github.com/kongnet/skybase/commit/408126e84c84852faad9d8480f30e8be94372d5b))
158
165
  * 增加sokcet.io支持 ([74f0047](https://github.com/kongnet/skybase/commit/74f0047bcc9b2be393d062a0d490b4210e35619e))
159
- * mysql tree ([acf3e2c](https://github.com/kongnet/skybase/commit/acf3e2cdfe9ff27bb047f36f1362775e64ca35ac))
160
- * skyjt init 模板中增加 mock 例子 ([c417d8e](https://github.com/kongnet/skybase/commit/c417d8e79ef18aa72db85e8d1ffbfea330ed256d))
166
+ * 增加最近20条错误列表 ([171ab33](https://github.com/kongnet/skybase/commit/171ab330be6ce795e5151d9e2c27ae47a5028291))
167
+ * 更新的统计到mq的方法 ([a0ea9b3](https://github.com/kongnet/skybase/commit/a0ea9b3f8c139281f5c8ae2973cdcd4299165488))
168
+ * 表和字段除id外,没有注解标注 ([45b0b49](https://github.com/kongnet/skybase/commit/45b0b493f8d7754d13b76e11d9c5447ec07c1955))
161
169
 
162
170
  ### :wrench:
163
171
 
164
- * 更新依赖包版本 ([9f1eefb](https://github.com/kongnet/skybase/commit/9f1eefb40b2433536252428a0eac6f8053b9b1a7))
165
- * 修改模板中的配置文件 ([c298f97](https://github.com/kongnet/skybase/commit/c298f97124f919612b36d210f1acf43b61d71719))
166
172
  * 修改模板中index的数据库加载 ([4727cb6](https://github.com/kongnet/skybase/commit/4727cb60468ee5d773b67654c8d3ffb19d2fb3fa))
173
+ * 修改模板中的配置文件 ([c298f97](https://github.com/kongnet/skybase/commit/c298f97124f919612b36d210f1acf43b61d71719))
174
+ * 更新依赖包版本 ([9f1eefb](https://github.com/kongnet/skybase/commit/9f1eefb40b2433536252428a0eac6f8053b9b1a7))
167
175
 
168
176
  ### :zap:
169
177
 
@@ -62,7 +62,7 @@ const routerLog = (result, name, apiPath, ms) => {
62
62
  }
63
63
  )
64
64
  resultKey = resultKey.slice(0, 1000)
65
- $.err(
65
+ $.log(
66
66
  '[router处理]=>',
67
67
  resultKey,
68
68
  `\n${$.c.dimc(name + apiPath)} => ${$.c.dimc(ms || '0')} ms\n`
@@ -91,7 +91,7 @@ const getApiFn = (apiPath, opt) => {
91
91
  let mockModel = 0
92
92
  if (!opt.controller) {
93
93
  if (opt.mock) {
94
- $.err(
94
+ $.log(
95
95
  $.c.g('✔'),
96
96
  apiPath.fillStr(' ', 30),
97
97
  $.c.r('controller未定义'),
@@ -146,7 +146,7 @@ const limitReqAction = (action, apiPath) => {
146
146
  const diff = start - it.t
147
147
  if ((1 / feqLimit) * 1000 > diff) {
148
148
  ctx.body = {
149
- code: 402,
149
+ code: 429,
150
150
  data: diff,
151
151
  msg: 'base:request limit, pls try later' //'访问过快请稍后再试!'
152
152
  }
@@ -335,7 +335,7 @@ const loadRunDict = () => {
335
335
 
336
336
  // $.dir($S)
337
337
 
338
- $.err(
338
+ $.log(
339
339
  n === 0 ? $.c.r('✘') : $.c.g('✔'),
340
340
  `[${$.c.y('frontApi/totlaApi')}] = [${$.c.y(
341
341
  `${n}/${m}`
@@ -16,6 +16,8 @@ const interceptLastReturn = ctx => {
16
16
  case 204:
17
17
  ctx.throwCode(204, 'base:no content') //'sys:无内容返回'
18
18
  break
19
+ case 402:
20
+ break
19
21
  case 405:
20
22
  ctx.throwCode(405, 'base:api no rights') //'sys:无访问api权限'
21
23
  break
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skybase",
3
- "version": "0.1.107",
3
+ "version": "0.1.110",
4
4
  "description": "sky框架",
5
5
  "main": "index.js",
6
6
  "directories": {