@grandlinex/kernel 0.16.0 → 0.16.1

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,6 +1,11 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## [v0.16.1] - 2021-12-07
5
+
6
+ ### Changed
7
+ - Update to core 0.16.2
8
+
4
9
  ## [0.15.3] - 2021-12-06
5
10
  ### Changed
6
11
  - Update to core 0.15.1
@@ -62,6 +62,7 @@ var ApiVersionAction_1 = __importDefault(require("./actions/ApiVersionAction"));
62
62
  var GetTokenAction_1 = __importDefault(require("./actions/GetTokenAction"));
63
63
  var ApiAuthTestAction_1 = __importDefault(require("./actions/ApiAuthTestAction"));
64
64
  var KernelDBLight_1 = __importDefault(require("./database/KernelDBLight"));
65
+ var GKey_1 = __importDefault(require("./database/entity/GKey"));
65
66
  var KernelModule = /** @class */ (function (_super) {
66
67
  __extends(KernelModule, _super);
67
68
  function KernelModule(kernel) {
@@ -85,7 +86,7 @@ var KernelModule = /** @class */ (function (_super) {
85
86
  return __generator(this, function (_a) {
86
87
  switch (_a.label) {
87
88
  case 0:
88
- this.setCache(new core_1.InMemCache(this, 120000));
89
+ this.setCache(new core_1.InMemCache(this, 480000));
89
90
  if (this.useLightDB) {
90
91
  db = new KernelDBLight_1.default(this);
91
92
  }
@@ -93,6 +94,7 @@ var KernelModule = /** @class */ (function (_super) {
93
94
  db = new KernelDB_1.default(this);
94
95
  }
95
96
  db.setEntityCache(true);
97
+ db.registerEntity(new GKey_1.default());
96
98
  this.setDb(db);
97
99
  endpoint = new KernelEndpoint_1.default('api', this, this.getKernel().getAppServerPort());
98
100
  this.setEndpoint(endpoint);
@@ -33,19 +33,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
33
33
  __setModuleDefault(result, mod);
34
34
  return result;
35
35
  };
36
- var __importDefault = (this && this.__importDefault) || function (mod) {
37
- return (mod && mod.__esModule) ? mod : { "default": mod };
38
- };
39
36
  Object.defineProperty(exports, "__esModule", { value: true });
40
37
  var bundle_postgresql_1 = require("@grandlinex/bundle-postgresql");
41
- var GKey_1 = __importDefault(require("./entity/GKey"));
42
38
  var DBF = __importStar(require("./DBFunctions"));
43
39
  var KernelDB = /** @class */ (function (_super) {
44
40
  __extends(KernelDB, _super);
45
41
  function KernelDB(module) {
46
- var _this = _super.call(this, module, DBF.KERNEL_DB_VERSION) || this;
47
- _this.registerEntity(new GKey_1.default());
48
- return _this;
42
+ return _super.call(this, module, DBF.KERNEL_DB_VERSION) || this;
49
43
  }
50
44
  KernelDB.prototype.deleteKey = function (id) {
51
45
  return DBF.deleteKey(this, id);
@@ -38,14 +38,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
38
38
  };
39
39
  Object.defineProperty(exports, "__esModule", { value: true });
40
40
  var bundle_sqlight_1 = __importDefault(require("@grandlinex/bundle-sqlight"));
41
- var GKey_1 = __importDefault(require("./entity/GKey"));
42
41
  var DBF = __importStar(require("./DBFunctions"));
43
42
  var KernelDBLight = /** @class */ (function (_super) {
44
43
  __extends(KernelDBLight, _super);
45
44
  function KernelDBLight(module) {
46
- var _this = _super.call(this, module, DBF.KERNEL_DB_VERSION) || this;
47
- _this.registerEntity(new GKey_1.default());
48
- return _this;
45
+ return _super.call(this, module, DBF.KERNEL_DB_VERSION) || this;
49
46
  }
50
47
  KernelDBLight.prototype.deleteKey = function (id) {
51
48
  return DBF.deleteKey(this, id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grandlinex/kernel",
3
- "version": "0.16.0",
3
+ "version": "0.16.1",
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",
@@ -29,8 +29,8 @@
29
29
  "dependencies": {
30
30
  "@grandlinex/bundle-elogger": "^0.16.0",
31
31
  "@grandlinex/bundle-postgresql": "^0.16.0",
32
- "@grandlinex/bundle-sqlight": "^0.16.0",
33
- "@grandlinex/core": "^0.16.1",
32
+ "@grandlinex/bundle-sqlight": "^0.16.1",
33
+ "@grandlinex/core": "0.16.2",
34
34
  "axios": "^0.24.0",
35
35
  "body-parser": "^1.19.0",
36
36
  "express": "^4.17.1",
@@ -41,7 +41,7 @@
41
41
  "@types/express": "^4.17.13",
42
42
  "@types/jest": "^27.0.3",
43
43
  "@types/jsonwebtoken": "^8.5.6",
44
- "@types/node": "^16.11.11",
44
+ "@types/node": "^16.11.12",
45
45
  "@typescript-eslint/eslint-plugin": "^5.5.0",
46
46
  "@typescript-eslint/parser": "^5.5.0",
47
47
  "cross-env": "^7.0.3",