skybase 0.1.92 → 0.1.93

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,3 +1,12 @@
1
+ ## [0.1.92](https://github.com/kongnet/skybase/compare/v0.1.91...v0.1.92) (2022-08-31)
2
+
3
+
4
+ ### :ambulance:
5
+
6
+ * 非get/post/all打印出错 ([1573187](https://github.com/kongnet/skybase/commit/157318784828856e7a689c654ce23ba1953f65a5))
7
+
8
+
9
+
1
10
  ## [0.1.91](https://github.com/kongnet/skybase/compare/v0.1.90...v0.1.91) (2022-05-16)
2
11
 
3
12
 
@@ -16,11 +16,12 @@ const apiCheckLog = function (url, obj, method, oldParam, ctx) {
16
16
  checkColor = 'y'
17
17
  }
18
18
  let methodStr = method.toUpperCase()
19
+ const fname =
20
+ methodStr === 'GET' ? 'dimg' : methodStr === 'POST' ? 'dimy' : 'r'
19
21
  $.log(
20
- $.c[{ GET: 'dimg', POST: 'dimy' }[methodStr]]?.(`[ ${methodStr} ]`) ??
21
- $.c.r(`[ ${methodStr} ]`) +
22
- $.c.dimy(url.join ? url.join('/') : url) +
23
- $.c[checkColor](JSON.stringify(obj || '{}')),
22
+ $.c[fname](`[ ${methodStr} ]`) +
23
+ $.c.dimy(url.join ? url.join('/') : url) +
24
+ $.c[checkColor](JSON.stringify(obj || '{}')),
24
25
  '实际参数:',
25
26
  oldParam ? $.c.r(JSON.stringify(oldParam || '{}')) : '',
26
27
  'header参数:',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skybase",
3
- "version": "0.1.92",
3
+ "version": "0.1.93",
4
4
  "description": "sky框架",
5
5
  "main": "index.js",
6
6
  "directories": {