@grandlinex/kernel 0.20.0 → 0.22.1-alpha.0
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 +71 -71
- package/LICENSE +29 -29
- package/README.md +30 -30
- package/dist/Kernel.d.ts +22 -21
- package/dist/Kernel.js +68 -60
- package/dist/KernelModule.d.ts +8 -10
- package/dist/KernelModule.js +89 -105
- package/dist/actions/ApiAuthTestAction.d.ts +27 -27
- package/dist/actions/ApiAuthTestAction.js +93 -92
- package/dist/actions/ApiVersionAction.d.ts +30 -30
- package/dist/actions/ApiVersionAction.js +96 -96
- package/dist/actions/GetTokenAction.d.ts +43 -43
- package/dist/actions/GetTokenAction.js +135 -133
- package/dist/actions/index.d.ts +4 -4
- package/dist/actions/index.js +12 -12
- package/dist/api/KernelEndpoint.d.ts +3 -3
- package/dist/api/KernelEndpoint.js +29 -29
- package/dist/api/index.d.ts +2 -2
- package/dist/api/index.js +8 -8
- package/dist/classes/BaseAction.d.ts +13 -13
- package/dist/classes/BaseAction.js +103 -103
- package/dist/classes/BaseApiAction.d.ts +8 -8
- package/dist/classes/BaseApiAction.js +67 -61
- package/dist/classes/BaseAuthProvider.d.ts +23 -16
- package/dist/classes/BaseAuthProvider.js +8 -8
- package/dist/classes/BaseEndpoint.d.ts +12 -12
- package/dist/classes/BaseEndpoint.js +61 -61
- package/dist/classes/BaseKernelModule.d.ts +5 -5
- package/dist/classes/BaseKernelModule.js +26 -26
- package/dist/classes/index.d.ts +8 -7
- package/dist/classes/index.js +34 -23
- package/dist/database/KernelDB.d.ts +14 -14
- package/dist/database/KernelDB.js +115 -115
- package/dist/database/entity/GKey.d.ts +8 -8
- package/dist/database/entity/GKey.js +61 -61
- package/dist/index.d.ts +14 -21
- package/dist/index.js +31 -54
- package/dist/lib/index.d.ts +31 -38
- package/dist/lib/index.js +2 -2
- package/dist/modules/crypto/CryptoClient.d.ts +19 -19
- package/dist/modules/crypto/CryptoClient.js +152 -170
- package/dist/modules/crypto/index.d.ts +3 -3
- package/dist/modules/crypto/index.js +19 -19
- package/dist/modules/crypto/utils/cors.d.ts +3 -3
- package/dist/modules/crypto/utils/cors.js +10 -10
- package/package.json +69 -72
package/CHANGELOG.md
CHANGED
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
All notable changes to this project will be documented in this file.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## [v0.18.0] - 2022-01-10
|
|
6
|
-
### Changed
|
|
7
|
-
- Update to core 0.18.0
|
|
8
|
-
|
|
9
|
-
## [v0.17.0] - 2022-01-03
|
|
10
|
-
### Changed
|
|
11
|
-
- Update to core 0.17.1
|
|
12
|
-
- Using db prefab for kernel db
|
|
13
|
-
|
|
14
|
-
## [v0.16.2] - 2021-12-17
|
|
15
|
-
|
|
16
|
-
### Changed
|
|
17
|
-
- Update Db Bundles with search bug
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
## [v0.16.1] - 2021-12-07
|
|
21
|
-
|
|
22
|
-
### Changed
|
|
23
|
-
- Update to core 0.16.2
|
|
24
|
-
|
|
25
|
-
## [0.15.3] - 2021-12-06
|
|
26
|
-
### Changed
|
|
27
|
-
- Update to core 0.15.1
|
|
28
|
-
|
|
29
|
-
## [0.15.2] - 2021-12-04
|
|
30
|
-
|
|
31
|
-
### Fixed
|
|
32
|
-
- Update to fixed database bundles
|
|
33
|
-
- Export DB Classes in root file
|
|
34
|
-
|
|
35
|
-
## [0.15.1] - 2021-12-03
|
|
36
|
-
|
|
37
|
-
### Fixed
|
|
38
|
-
- Linting error
|
|
39
|
-
- DB Duplication
|
|
40
|
-
|
|
41
|
-
## [0.15.0] - 2021-12-02
|
|
42
|
-
### Added
|
|
43
|
-
- Add Changelog
|
|
44
|
-
- Add ORM System
|
|
45
|
-
- Add reflection Typescript feature (for ORM)
|
|
46
|
-
````json
|
|
47
|
-
{
|
|
48
|
-
"dependencies": {
|
|
49
|
-
"reflect-metadata": "^0.1.13"
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
````
|
|
53
|
-
- `GKey` Store
|
|
54
|
-
- `GKey` - ORM Entity
|
|
55
|
-
### Changed
|
|
56
|
-
- Update to core version `0.15.0`
|
|
57
|
-
- Change tsconfig.json enable decorator feature
|
|
58
|
-
````json
|
|
59
|
-
{
|
|
60
|
-
"experimentalDecorators": true,
|
|
61
|
-
"emitDecoratorMetadata": true
|
|
62
|
-
}
|
|
63
|
-
````
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
### Removed
|
|
67
|
-
- legacy keystore
|
|
68
|
-
|
|
69
|
-
### Fixed
|
|
70
|
-
> bundle export nameSpace
|
|
71
|
-
|
|
1
|
+
# Changelog
|
|
2
|
+
All notable changes to this project will be documented in this file.
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## [v0.18.0] - 2022-01-10
|
|
6
|
+
### Changed
|
|
7
|
+
- Update to core 0.18.0
|
|
8
|
+
|
|
9
|
+
## [v0.17.0] - 2022-01-03
|
|
10
|
+
### Changed
|
|
11
|
+
- Update to core 0.17.1
|
|
12
|
+
- Using db prefab for kernel db
|
|
13
|
+
|
|
14
|
+
## [v0.16.2] - 2021-12-17
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
- Update Db Bundles with search bug
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
## [v0.16.1] - 2021-12-07
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
- Update to core 0.16.2
|
|
24
|
+
|
|
25
|
+
## [0.15.3] - 2021-12-06
|
|
26
|
+
### Changed
|
|
27
|
+
- Update to core 0.15.1
|
|
28
|
+
|
|
29
|
+
## [0.15.2] - 2021-12-04
|
|
30
|
+
|
|
31
|
+
### Fixed
|
|
32
|
+
- Update to fixed database bundles
|
|
33
|
+
- Export DB Classes in root file
|
|
34
|
+
|
|
35
|
+
## [0.15.1] - 2021-12-03
|
|
36
|
+
|
|
37
|
+
### Fixed
|
|
38
|
+
- Linting error
|
|
39
|
+
- DB Duplication
|
|
40
|
+
|
|
41
|
+
## [0.15.0] - 2021-12-02
|
|
42
|
+
### Added
|
|
43
|
+
- Add Changelog
|
|
44
|
+
- Add ORM System
|
|
45
|
+
- Add reflection Typescript feature (for ORM)
|
|
46
|
+
````json
|
|
47
|
+
{
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"reflect-metadata": "^0.1.13"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
````
|
|
53
|
+
- `GKey` Store
|
|
54
|
+
- `GKey` - ORM Entity
|
|
55
|
+
### Changed
|
|
56
|
+
- Update to core version `0.15.0`
|
|
57
|
+
- Change tsconfig.json enable decorator feature
|
|
58
|
+
````json
|
|
59
|
+
{
|
|
60
|
+
"experimentalDecorators": true,
|
|
61
|
+
"emitDecoratorMetadata": true
|
|
62
|
+
}
|
|
63
|
+
````
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
### Removed
|
|
67
|
+
- legacy keystore
|
|
68
|
+
|
|
69
|
+
### Fixed
|
|
70
|
+
> bundle export nameSpace
|
|
71
|
+
|
package/LICENSE
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
BSD 3-Clause License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2021, GrandlineX
|
|
4
|
-
All rights reserved.
|
|
5
|
-
|
|
6
|
-
Redistribution and use in source and binary forms, with or without
|
|
7
|
-
modification, are permitted provided that the following conditions are met:
|
|
8
|
-
|
|
9
|
-
1. Redistributions of source code must retain the above copyright notice, this
|
|
10
|
-
list of conditions and the following disclaimer.
|
|
11
|
-
|
|
12
|
-
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
13
|
-
this list of conditions and the following disclaimer in the documentation
|
|
14
|
-
and/or other materials provided with the distribution.
|
|
15
|
-
|
|
16
|
-
3. Neither the name of the copyright holder nor the names of its
|
|
17
|
-
contributors may be used to endorse or promote products derived from
|
|
18
|
-
this software without specific prior written permission.
|
|
19
|
-
|
|
20
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
21
|
-
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
22
|
-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
23
|
-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
24
|
-
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
25
|
-
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
26
|
-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
27
|
-
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
28
|
-
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
29
|
-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1
|
+
BSD 3-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021, GrandlineX
|
|
4
|
+
All rights reserved.
|
|
5
|
+
|
|
6
|
+
Redistribution and use in source and binary forms, with or without
|
|
7
|
+
modification, are permitted provided that the following conditions are met:
|
|
8
|
+
|
|
9
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
10
|
+
list of conditions and the following disclaimer.
|
|
11
|
+
|
|
12
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
13
|
+
this list of conditions and the following disclaimer in the documentation
|
|
14
|
+
and/or other materials provided with the distribution.
|
|
15
|
+
|
|
16
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
17
|
+
contributors may be used to endorse or promote products derived from
|
|
18
|
+
this software without specific prior written permission.
|
|
19
|
+
|
|
20
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
21
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
22
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
23
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
24
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
25
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
26
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
27
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
28
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
29
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
package/README.md
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
# GrandLineX Kernel
|
|
2
|
-
|
|
3
|
-
## Description
|
|
4
|
-
|
|
5
|
-
GrandLineX is an out-of-the-box server framework on top of ExpressJs.
|
|
6
|
-
|
|
7
|
-
<img alt="img" height="24" src="https://img.shields.io/static/v1?label=&message=KERNEL&color=black&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAAAAACPAi4CAAABJWlDQ1BJQ0MgcHJvZmlsZQAAKJGdkL9KxEAQxr/EQ0XORsVCLLawPbAxlY1/MFgcnLkIRqvcbg4PszFk9zh8A9/Ee5grBME38AUUrP02Wli4jQvD/Bhmvm9mgVCUUpvOPqAr28TJUXa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y0ln7C60kOOrOV715kOnfB1JWFYwoT2F13UFsS8pvyo6NaWPIVAojDZFZQZqoJ0qpx2kKQ1OqKzouu0cmeaPoVWfMPEb3soas/nDernomKXTW9DGJvGmJg8zZ39P6gB0B6qOviy0uwiBHCLkgeMl6hB/Daf2jEDQuD4taO5+qri25zng9p1W1UuABTBsaR+INPne33D3pCIjQQAt13CnSEfxmyOtpv3hFQqrh0/YDTS26YoKoleOJrji8VurUQlCfBK9HRKdomnj/NSyfA+0PyhJFFJovCKkrX87Tfgru4kPFmeHTNUZwi/lKGvt0GzOXmkNdk0mdbbQrL0dWNhOQk9vyV3WYwaAgx3Z9ia1kdemNJuHm5CQk7I9avCo+0c92UIAPfRuoesmWVqAGgsof/YTLaZJAD09V/mDjBu30oCADoZ7ey4KAIg60q4OV57NpGF6vzRgfLnJh4Au1rfNduQwUVvht67662VAZj0ZKkAKJI3Ro0zrCqEz3238P778wDmU6aaNbuVANikxH0jTqqJ1CoJILHypU0oDc9TAAAbHj5rk+qyVfLVeezw1346JjWcmF6MvI8dPdLpmVP9zrPFVuei1NldVV9gTIhgCKGQxjuqfhS0ZjWAcdnqDIDTJz0ZqRLttzoHXQDhNQAm7IsABE5pAUAA8D8D/AUp6ovNs1/7jgAAAABJRU5ErkJggg==" />
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
[](https://github.com/GrandlineX/kernel)
|
|
11
|
-
[](https://www.npmjs.com/package/@grandlinex/kernel)
|
|
12
|
-

|
|
13
|
-
|
|
14
|
-
### Status
|
|
15
|
-

|
|
16
|
-

|
|
17
|
-

|
|
18
|
-

|
|
19
|
-

|
|
20
|
-
|
|
21
|
-
### Issues
|
|
22
|
-

|
|
23
|
-

|
|
24
|
-

|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
## Documentation
|
|
28
|
-
- [Documentation](https://grandlinex.github.io/kernel/)
|
|
29
|
-
- [GrandLineX Docs](https://grandlinex.github.io/docs/)
|
|
30
|
-
- [GrandLineX Project](https://grandlinex.github.io/)
|
|
1
|
+
# GrandLineX Kernel
|
|
2
|
+
|
|
3
|
+
## Description
|
|
4
|
+
|
|
5
|
+
GrandLineX is an out-of-the-box server framework on top of ExpressJs.
|
|
6
|
+
|
|
7
|
+
<img alt="img" height="24" src="https://img.shields.io/static/v1?label=&message=KERNEL&color=black&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAAAAACPAi4CAAABJWlDQ1BJQ0MgcHJvZmlsZQAAKJGdkL9KxEAQxr/EQ0XORsVCLLawPbAxlY1/MFgcnLkIRqvcbg4PszFk9zh8A9/Ee5grBME38AUUrP02Wli4jQvD/Bhmvm9mgVCUUpvOPqAr28TJUXaVXYuVN3TRwQYOEObS1P3hWQrv+3xF4PJLz2n5+/58y6owknnBqGTdWCA4JEczWztmYOsuTU7Ij2ShdKXIc/Ke0sqxm010OZU/mm6bblFdDl2dsYsY5+hjAIERppighEWPuWLlFBHvFOxpkOMBBpK5RMHajD0WtyRDpRjHpJTEbTx+O63fgC4jakyo5Rzuoanp/OD+93vs46KdDLYXdd7kbWmJEY7HwPsTsJ4Bm8/A2o3Ha/X3bZ6eqO35541f9HxQa/wig0AAAAAJcEhZcwAAC7gAAAu4AT6yGBcAAAAHdElNRQflDAQSNSxPhIOMAAAEMElEQVRYw+2Wa0wUVxTH/3dmH+wgr4WdBWst4gIVwUAoxqJUwYatthCMtpVoE0usqY1pg/ShMTFpm6YiiWlMStLWEm0biqQE05qoLUIEIqlaHoW2yoLQxQWB3YVleezszuztB8XFFdoh/dKkO5/mnjnzmznnnnP+l/D4dxeDACAACAD+GwDF3z2LDNUvVYh3hxx2cfEAEp2bHa/jCECnh00/1Y0u5LfAQNG+smOFgsyuqKe78uzkvI5s8LzYp8pe4lniW7P8+sR2h2wAMR5PYf1jNaRdG5MLyD72xL2vU68oUhACACTG0DAjLwfLK5IJAHhMbR09U8Gr0zNiGAAQyz/2ygEoSwsZANRyqmaUAgBrOLhVBQCWnd1yQsh4hwMAU/G5qft7Y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9
|
+
|
|
10
|
+
[](https://github.com/GrandlineX/kernel)
|
|
11
|
+
[](https://www.npmjs.com/package/@grandlinex/kernel)
|
|
12
|
+

|
|
13
|
+
|
|
14
|
+
### Status
|
|
15
|
+

|
|
16
|
+

|
|
17
|
+

|
|
18
|
+

|
|
19
|
+

|
|
20
|
+
|
|
21
|
+
### Issues
|
|
22
|
+

|
|
23
|
+

|
|
24
|
+

|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## Documentation
|
|
28
|
+
- [Documentation](https://grandlinex.github.io/kernel/)
|
|
29
|
+
- [GrandLineX Docs](https://grandlinex.github.io/docs/)
|
|
30
|
+
- [GrandLineX Project](https://grandlinex.github.io/)
|
package/dist/Kernel.d.ts
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import CoreKernel from '@grandlinex/core';
|
|
2
|
-
import { ICClient, IKernel } from './lib';
|
|
3
|
-
/**
|
|
4
|
-
* @class Kernel
|
|
5
|
-
*/
|
|
6
|
-
export default class Kernel extends CoreKernel<ICClient> implements IKernel {
|
|
7
|
-
private expressPort;
|
|
8
|
-
/**
|
|
9
|
-
* Default Constructor
|
|
10
|
-
* @param options App Name
|
|
11
|
-
*/
|
|
12
|
-
constructor(options: {
|
|
13
|
-
appName: string;
|
|
14
|
-
appCode: string;
|
|
15
|
-
pathOverride?: string;
|
|
16
|
-
portOverride?: number;
|
|
17
|
-
envFilePath?: string;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
import CoreKernel, { CoreLogger } from '@grandlinex/core';
|
|
2
|
+
import { ICClient, IKernel } from './lib';
|
|
3
|
+
/**
|
|
4
|
+
* @class Kernel
|
|
5
|
+
*/
|
|
6
|
+
export default class Kernel extends CoreKernel<ICClient> implements IKernel {
|
|
7
|
+
private expressPort;
|
|
8
|
+
/**
|
|
9
|
+
* Default Constructor
|
|
10
|
+
* @param options App Name
|
|
11
|
+
*/
|
|
12
|
+
constructor(options: {
|
|
13
|
+
appName: string;
|
|
14
|
+
appCode: string;
|
|
15
|
+
pathOverride?: string;
|
|
16
|
+
portOverride?: number;
|
|
17
|
+
envFilePath?: string;
|
|
18
|
+
logger?: (k: CoreKernel<any>) => CoreLogger;
|
|
19
|
+
});
|
|
20
|
+
getAppServerPort(): number;
|
|
21
|
+
setAppServerPort(port: number): void;
|
|
22
|
+
}
|
package/dist/Kernel.js
CHANGED
|
@@ -1,60 +1,68 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
var
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
var
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
var
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
if (
|
|
48
|
-
_this.
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __assign = (this && this.__assign) || function () {
|
|
18
|
+
__assign = Object.assign || function(t) {
|
|
19
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
20
|
+
s = arguments[i];
|
|
21
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
22
|
+
t[p] = s[p];
|
|
23
|
+
}
|
|
24
|
+
return t;
|
|
25
|
+
};
|
|
26
|
+
return __assign.apply(this, arguments);
|
|
27
|
+
};
|
|
28
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
+
};
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
var core_1 = __importDefault(require("@grandlinex/core"));
|
|
33
|
+
var CryptoClient_1 = __importDefault(require("./modules/crypto/CryptoClient"));
|
|
34
|
+
var KernelModule_1 = __importDefault(require("./KernelModule"));
|
|
35
|
+
/**
|
|
36
|
+
* @class Kernel
|
|
37
|
+
*/
|
|
38
|
+
var Kernel = /** @class */ (function (_super) {
|
|
39
|
+
__extends(Kernel, _super);
|
|
40
|
+
/**
|
|
41
|
+
* Default Constructor
|
|
42
|
+
* @param options App Name
|
|
43
|
+
*/
|
|
44
|
+
function Kernel(options) {
|
|
45
|
+
var _this = _super.call(this, __assign({}, options)) || this;
|
|
46
|
+
_this.setBaseModule(new KernelModule_1.default(_this));
|
|
47
|
+
if (options.portOverride) {
|
|
48
|
+
_this.debug("use custiom api port @ ".concat(options.portOverride));
|
|
49
|
+
_this.expressPort = options.portOverride;
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
_this.expressPort = 9257;
|
|
53
|
+
}
|
|
54
|
+
var store = _this.getConfigStore();
|
|
55
|
+
if (store.has('SERVER_PASSWORD')) {
|
|
56
|
+
_this.setCryptoClient(new CryptoClient_1.default(CryptoClient_1.default.fromPW(store.get('SERVER_PASSWORD')), _this));
|
|
57
|
+
}
|
|
58
|
+
return _this;
|
|
59
|
+
}
|
|
60
|
+
Kernel.prototype.getAppServerPort = function () {
|
|
61
|
+
return this.expressPort;
|
|
62
|
+
};
|
|
63
|
+
Kernel.prototype.setAppServerPort = function (port) {
|
|
64
|
+
this.expressPort = port;
|
|
65
|
+
};
|
|
66
|
+
return Kernel;
|
|
67
|
+
}(core_1.default));
|
|
68
|
+
exports.default = Kernel;
|
package/dist/KernelModule.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { InMemCache } from '@grandlinex/core';
|
|
2
|
-
import BaseKernelModule from './classes/BaseKernelModule';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
initModule(): Promise<void>;
|
|
10
|
-
}
|
|
1
|
+
import { InMemCache } from '@grandlinex/core';
|
|
2
|
+
import BaseKernelModule from './classes/BaseKernelModule';
|
|
3
|
+
import { IKernel } from './lib';
|
|
4
|
+
import KernelEndpoint from './api/KernelEndpoint';
|
|
5
|
+
export default class KernelModule extends BaseKernelModule<null, null, InMemCache, KernelEndpoint> {
|
|
6
|
+
constructor(kernel: IKernel);
|
|
7
|
+
initModule(): Promise<void>;
|
|
8
|
+
}
|