@grandlinex/kernel 0.15.3 → 0.16.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/dist/KernelModule.d.ts +2 -1
- package/dist/KernelModule.js +2 -0
- package/package.json +5 -5
package/dist/KernelModule.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { InMemCache } from '@grandlinex/core';
|
|
1
2
|
import BaseKernelModule from './classes/BaseKernelModule';
|
|
2
3
|
import KernelDB from './database/KernelDB';
|
|
3
4
|
import { IKernel } from './lib';
|
|
4
5
|
import KernelEndpoint from './api/KernelEndpoint';
|
|
5
6
|
import KernelDBLight from './database/KernelDBLight';
|
|
6
|
-
export default class KernelModule extends BaseKernelModule<KernelDB | KernelDBLight, null,
|
|
7
|
+
export default class KernelModule extends BaseKernelModule<KernelDB | KernelDBLight, null, InMemCache, KernelEndpoint> {
|
|
7
8
|
useLightDB: boolean;
|
|
8
9
|
constructor(kernel: IKernel);
|
|
9
10
|
initModule(): Promise<void>;
|
package/dist/KernelModule.js
CHANGED
|
@@ -85,12 +85,14 @@ var KernelModule = /** @class */ (function (_super) {
|
|
|
85
85
|
return __generator(this, function (_a) {
|
|
86
86
|
switch (_a.label) {
|
|
87
87
|
case 0:
|
|
88
|
+
this.setCache(new core_1.InMemCache(this, 120000));
|
|
88
89
|
if (this.useLightDB) {
|
|
89
90
|
db = new KernelDBLight_1.default(this);
|
|
90
91
|
}
|
|
91
92
|
else {
|
|
92
93
|
db = new KernelDB_1.default(this);
|
|
93
94
|
}
|
|
95
|
+
db.setEntityCache(true);
|
|
94
96
|
this.setDb(db);
|
|
95
97
|
endpoint = new KernelEndpoint_1.default('api', this, this.getKernel().getAppServerPort());
|
|
96
98
|
this.setEndpoint(endpoint);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grandlinex/kernel",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "GrandLineX is an out-of-the-box server framework on top of ExpressJs.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
},
|
|
28
28
|
"license": "BSD-3-Clause",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@grandlinex/bundle-elogger": "^0.
|
|
31
|
-
"@grandlinex/bundle-postgresql": "^0.
|
|
32
|
-
"@grandlinex/bundle-sqlight": "^0.
|
|
33
|
-
"@grandlinex/core": "^0.
|
|
30
|
+
"@grandlinex/bundle-elogger": "^0.16.0",
|
|
31
|
+
"@grandlinex/bundle-postgresql": "^0.16.0",
|
|
32
|
+
"@grandlinex/bundle-sqlight": "^0.16.0",
|
|
33
|
+
"@grandlinex/core": "^0.16.1",
|
|
34
34
|
"axios": "^0.24.0",
|
|
35
35
|
"body-parser": "^1.19.0",
|
|
36
36
|
"express": "^4.17.1",
|