lakutata 2.0.58 → 2.0.59

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lakutata",
3
- "version": "2.0.58",
3
+ "version": "2.0.59",
4
4
  "description": "An IoC-based universal application framework.",
5
5
  "exports": {
6
6
  ".": {
@@ -8,9 +8,9 @@ const e = require("../internal/BasicInfo.cjs");
8
8
 
9
9
  const s = require("../../helpers/Templating.cjs");
10
10
 
11
- const r = require("../../helpers/As.cjs");
11
+ const t = require("../../helpers/As.cjs");
12
12
 
13
- const t = require("../internal/CamelCase.cjs");
13
+ const r = require("../internal/CamelCase.cjs");
14
14
 
15
15
  require("../../../../vendor/Package.6.cjs");
16
16
 
@@ -27,11 +27,12 @@ class Exception extends Error {
27
27
  super();
28
28
  this.appId = (() => e.GetBasicInfo().appId)();
29
29
  this.appName = (() => e.GetBasicInfo().appName)();
30
+ this.statusCode = 500;
30
31
  if (i) {
31
32
  const e = a;
32
- const r = i;
33
+ const t = i;
33
34
  try {
34
- this.message = s.Templating(e, r, {
35
+ this.message = s.Templating(e, t, {
35
36
  ignoreMissing: true
36
37
  });
37
38
  } catch (e) {
@@ -41,10 +42,10 @@ class Exception extends Error {
41
42
  if (typeof a === "string") {
42
43
  this.message = a;
43
44
  } else {
44
- this.message = r.As(a).message;
45
+ this.message = t.As(a).message;
45
46
  }
46
47
  } else {
47
- const e = t.CamelCase(this.name).toLowerCase();
48
+ const e = r.CamelCase(this.name).toLowerCase();
48
49
  this.message = `${e.charAt(0).toUpperCase()}${e.slice(1)}`;
49
50
  }
50
51
  this.errMsg = this.message;
@@ -21,6 +21,7 @@ class Exception extends Error {
21
21
  super();
22
22
  this.appId = (() => e().appId)();
23
23
  this.appName = (() => e().appName)();
24
+ this.statusCode = 500;
24
25
  if (i) {
25
26
  const e = a;
26
27
  const t = i;