@napp/dti-core 4.5.2 → 4.5.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.
- package/action.js +0 -1
- package/base62.js +2 -3
- package/package.json +1 -1
- package/response.js +5 -1
- package/route.js +2 -7
package/action.js
CHANGED
package/base62.js
CHANGED
|
@@ -6,10 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.Base62 = void 0;
|
|
7
7
|
const base_x_1 = __importDefault(require("base-x"));
|
|
8
8
|
class Base62 {
|
|
9
|
-
convert;
|
|
10
|
-
utf8Encode = new TextEncoder();
|
|
11
|
-
utf8Decoder = new TextDecoder();
|
|
12
9
|
constructor(ALPHABET = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789') {
|
|
10
|
+
this.utf8Encode = new TextEncoder();
|
|
11
|
+
this.utf8Decoder = new TextDecoder();
|
|
13
12
|
this.convert = (0, base_x_1.default)(ALPHABET);
|
|
14
13
|
}
|
|
15
14
|
encode(str) {
|
package/package.json
CHANGED
package/response.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var _a;
|
|
2
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
4
|
exports.DtiRawResponse = void 0;
|
|
4
5
|
const key = Symbol.for('DtiRawResponse_key');
|
|
5
6
|
class DtiRawResponse {
|
|
6
|
-
|
|
7
|
+
constructor() {
|
|
8
|
+
this[_a] = key;
|
|
9
|
+
}
|
|
7
10
|
static is(obj) {
|
|
8
11
|
if (obj instanceof DtiRawResponse && obj[key] === key) {
|
|
9
12
|
return true;
|
|
@@ -12,3 +15,4 @@ class DtiRawResponse {
|
|
|
12
15
|
}
|
|
13
16
|
}
|
|
14
17
|
exports.DtiRawResponse = DtiRawResponse;
|
|
18
|
+
_a = key;
|
package/route.js
CHANGED
|
@@ -2,14 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DtiRoute = void 0;
|
|
4
4
|
class DtiRoute {
|
|
5
|
-
name;
|
|
6
5
|
constructor(name) {
|
|
7
6
|
this.name = name;
|
|
8
7
|
}
|
|
9
|
-
_parent;
|
|
10
|
-
_children;
|
|
11
|
-
_actions;
|
|
12
|
-
path;
|
|
13
8
|
getChildroutes() {
|
|
14
9
|
return this._children || [];
|
|
15
10
|
}
|
|
@@ -59,10 +54,10 @@ class DtiRoute {
|
|
|
59
54
|
}
|
|
60
55
|
static factory(name, opt) {
|
|
61
56
|
let route = new DtiRoute(name);
|
|
62
|
-
if (opt
|
|
57
|
+
if (opt === null || opt === void 0 ? void 0 : opt.path) {
|
|
63
58
|
route.path = opt.path;
|
|
64
59
|
}
|
|
65
|
-
if (opt
|
|
60
|
+
if (opt === null || opt === void 0 ? void 0 : opt.childrens) {
|
|
66
61
|
for (let r of opt.childrens) {
|
|
67
62
|
route.regChildroute(r);
|
|
68
63
|
}
|