@minimaltech/node-infra 0.2.36 → 0.2.38

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/index.d.ts CHANGED
@@ -7,3 +7,4 @@ export * from './middlewares';
7
7
  export * from './migrations';
8
8
  export * from './mixins';
9
9
  export * from './utilities';
10
+ export * as loopback from './loopback';
package/dist/index.js CHANGED
@@ -10,10 +10,23 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
10
10
  if (k2 === undefined) k2 = k;
11
11
  o[k2] = m[k];
12
12
  }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
13
18
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
19
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
20
  };
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
16
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.loopback = void 0;
17
30
  const helpers_1 = require("./helpers");
18
31
  const { NODE_ENV, RUN_MODE, ALLOW_EMPTY_ENV_VALUE = false, APPLICATION_ENV_PREFIX = 'APP_ENV', APP_ENV_APPLICATION_NAME = 'PNT', APP_ENV_APPLICATION_TIMEZONE = 'Asia/Ho_Chi_Minh', APP_ENV_DS_MIGRATION = 'postgres', APP_ENV_DS_AUTHORIZE = 'postgres', APP_ENV_LOGGER_FOLDER_PATH = './', } = process.env;
19
32
  helpers_1.applicationLogger.info('------------------------------------------------------------------------');
@@ -34,4 +47,5 @@ __exportStar(require("./middlewares"), exports);
34
47
  __exportStar(require("./migrations"), exports);
35
48
  __exportStar(require("./mixins"), exports);
36
49
  __exportStar(require("./utilities"), exports);
50
+ exports.loopback = __importStar(require("./loopback"));
37
51
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uCAA8C;AAE9C,MAAM,EACJ,QAAQ,EACR,QAAQ,EACR,qBAAqB,GAAG,KAAK,EAC7B,sBAAsB,GAAG,SAAS,EAElC,wBAAwB,GAAG,KAAK,EAChC,4BAA4B,GAAG,kBAAkB,EACjD,oBAAoB,GAAG,UAAU,EACjC,oBAAoB,GAAG,UAAU,EACjC,0BAA0B,GAAG,IAAI,GAClC,GAAG,OAAO,CAAC,GAAG,CAAC;AAEhB,2BAAiB,CAAC,IAAI,CAAC,0EAA0E,CAAC,CAAC;AACnG,2BAAiB,CAAC,IAAI,CAAC,kCAAkC,EAAE,QAAQ,CAAC,CAAC;AACrE,2BAAiB,CAAC,IAAI,CAAC,kCAAkC,EAAE,qBAAqB,EAAE,sBAAsB,CAAC,CAAC;AAC1G,2BAAiB,CAAC,IAAI,CAAC,YAAY,EAAE,wBAAwB,CAAC,CAAC;AAC/D,2BAAiB,CAAC,IAAI,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAC;AACnD,2BAAiB,CAAC,IAAI,CAAC,gBAAgB,EAAE,4BAA4B,CAAC,CAAC;AACvE,2BAAiB,CAAC,IAAI,CAAC,eAAe,EAAE,0BAA0B,CAAC,CAAC;AACpE,2BAAiB,CAAC,IAAI,CAAC,qCAAqC,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,CAAC;AAC1G,2BAAiB,CAAC,IAAI,CAAC,0EAA0E,CAAC,CAAC;AAEnG,yCAAuB;AACvB,2CAAyB;AACzB,+CAA6B;AAC7B,gDAA8B;AAC9B,4CAA0B;AAC1B,gDAA8B;AAC9B,+CAA6B;AAC7B,2CAAyB;AACzB,8CAA4B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAA8C;AAE9C,MAAM,EACJ,QAAQ,EACR,QAAQ,EACR,qBAAqB,GAAG,KAAK,EAC7B,sBAAsB,GAAG,SAAS,EAElC,wBAAwB,GAAG,KAAK,EAChC,4BAA4B,GAAG,kBAAkB,EACjD,oBAAoB,GAAG,UAAU,EACjC,oBAAoB,GAAG,UAAU,EACjC,0BAA0B,GAAG,IAAI,GAClC,GAAG,OAAO,CAAC,GAAG,CAAC;AAEhB,2BAAiB,CAAC,IAAI,CAAC,0EAA0E,CAAC,CAAC;AACnG,2BAAiB,CAAC,IAAI,CAAC,kCAAkC,EAAE,QAAQ,CAAC,CAAC;AACrE,2BAAiB,CAAC,IAAI,CAAC,kCAAkC,EAAE,qBAAqB,EAAE,sBAAsB,CAAC,CAAC;AAC1G,2BAAiB,CAAC,IAAI,CAAC,YAAY,EAAE,wBAAwB,CAAC,CAAC;AAC/D,2BAAiB,CAAC,IAAI,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAC;AACnD,2BAAiB,CAAC,IAAI,CAAC,gBAAgB,EAAE,4BAA4B,CAAC,CAAC;AACvE,2BAAiB,CAAC,IAAI,CAAC,eAAe,EAAE,0BAA0B,CAAC,CAAC;AACpE,2BAAiB,CAAC,IAAI,CAAC,qCAAqC,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,CAAC;AAC1G,2BAAiB,CAAC,IAAI,CAAC,0EAA0E,CAAC,CAAC;AAEnG,yCAAuB;AACvB,2CAAyB;AACzB,+CAA6B;AAC7B,gDAA8B;AAC9B,4CAA0B;AAC1B,gDAA8B;AAC9B,+CAA6B;AAC7B,2CAAyB;AACzB,8CAA4B;AAC5B,uDAAuC"}
@@ -0,0 +1,5 @@
1
+ export * as core from '@loopback/core';
2
+ export * as security from '@loopback/security';
3
+ export * as rest from '@loopback/rest';
4
+ export * as restCrud from '@loopback/rest-crud';
5
+ export * as repository from '@loopback/repository';
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.repository = exports.restCrud = exports.rest = exports.security = exports.core = void 0;
27
+ exports.core = __importStar(require("@loopback/core"));
28
+ exports.security = __importStar(require("@loopback/security"));
29
+ exports.rest = __importStar(require("@loopback/rest"));
30
+ exports.restCrud = __importStar(require("@loopback/rest-crud"));
31
+ exports.repository = __importStar(require("@loopback/repository"));
32
+ //# sourceMappingURL=loopback.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loopback.js","sourceRoot":"","sources":["../src/loopback.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAuC;AACvC,+DAA+C;AAC/C,uDAAuC;AACvC,gEAAgD;AAChD,mEAAmD"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@minimaltech/node-infra",
3
- "version": "0.2.36",
4
- "description": "NodeJS Infrastructure - Loopback 4 Framework",
3
+ "version": "0.2.38",
4
+ "description": "Minimal Technology NodeJS Infrastructure - Loopback 4 Framework",
5
5
  "keywords": [
6
6
  "web",
7
7
  "restful",
@@ -16,7 +16,13 @@
16
16
  "StrongLoop",
17
17
  "loopback",
18
18
  "loopback-application",
19
- "infrastructure"
19
+ "infrastructure",
20
+ "minimaltech",
21
+ "minimaltek",
22
+ "mt",
23
+ "infra",
24
+ "nodejs",
25
+ "nodejs framework"
20
26
  ],
21
27
  "main": "dist/index.js",
22
28
  "types": "dist/index.d.ts",
@@ -45,64 +51,64 @@
45
51
  "access": "public"
46
52
  },
47
53
  "dependencies": {
48
- "@grpc/grpc-js": "^1.11.1",
54
+ "@grpc/grpc-js": "^1.11.2",
49
55
  "@grpc/proto-loader": "^0.7.13",
50
- "@loopback/authentication": "^11.0.3",
51
- "@loopback/authentication-jwt": "^0.15.3",
52
- "@loopback/authentication-passport": "^7.0.3",
53
- "@loopback/authorization": "^0.15.3",
54
- "@loopback/boot": "^7.0.3",
55
- "@loopback/core": "^6.1.0",
56
- "@loopback/http-server": "^6.0.3",
57
- "@loopback/metadata": "^7.0.5",
58
- "@loopback/repository": "^7.0.3",
59
- "@loopback/rest": "^14.0.3",
60
- "@loopback/rest-crud": "^0.18.3",
61
- "@loopback/rest-explorer": "^7.0.3",
62
- "@loopback/security": "^0.11.3",
63
- "@loopback/service-proxy": "^7.0.3",
64
- "@node-oauth/oauth2-server": "^5.1.0",
56
+ "@loopback/authentication": "^11.0.6",
57
+ "@loopback/authentication-jwt": "^0.15.6",
58
+ "@loopback/authentication-passport": "^7.0.6",
59
+ "@loopback/authorization": "^0.15.6",
60
+ "@loopback/boot": "^7.0.6",
61
+ "@loopback/core": "^6.1.3",
62
+ "@loopback/http-server": "^6.0.6",
63
+ "@loopback/metadata": "^7.0.6",
64
+ "@loopback/repository": "^7.0.6",
65
+ "@loopback/rest": "^14.0.6",
66
+ "@loopback/rest-crud": "^0.18.6",
67
+ "@loopback/rest-explorer": "^7.0.6",
68
+ "@loopback/security": "^0.11.6",
69
+ "@loopback/service-proxy": "^7.0.6",
70
+ "@node-oauth/oauth2-server": "^5.2.0",
65
71
  "@socket.io/redis-adapter": "^8.3.0",
66
72
  "@socket.io/redis-emitter": "^5.1.0",
67
73
  "axios": "^1.7.7",
68
- "bullmq": "^5.12.12",
74
+ "bullmq": "^5.13.0",
69
75
  "casbin": "^5.30.0",
70
76
  "cron": "^3.1.7",
71
- "dayjs": "^1.11.12",
77
+ "dayjs": "^1.11.13",
72
78
  "dotenv-flow": "4.1.0",
73
79
  "ejs": "^3.1.10",
74
80
  "ioredis": "^5.4.1",
75
- "jsonwebtoken": "^9.0.0",
81
+ "jsonwebtoken": "^9.0.2",
76
82
  "knex": "^3.1.0",
77
83
  "lodash": "^4.17.21",
78
84
  "minio": "^8.0.1",
79
85
  "mocha": "^10.7.3",
80
- "mqtt": "^5.9.0",
81
- "multer": "^1.4.5-lts.1",
82
- "rxjs": "^7.8.0",
86
+ "mqtt": "^5.10.1",
87
+ "multer": "1.4.5-lts.1",
88
+ "rxjs": "^7.8.1",
83
89
  "socket.io": "^4.7.5",
84
90
  "socket.io-client": "^4.7.5",
85
- "winston": "^3.13.1",
91
+ "winston": "^3.14.2",
86
92
  "winston-daily-rotate-file": "^5.0.0"
87
93
  },
88
94
  "devDependencies": {
89
- "@loopback/build": "^11.0.3",
90
- "@loopback/testlab": "^7.0.3",
91
- "@minimaltech/eslint-node": "^0.1.14",
95
+ "@loopback/build": "^11.0.6",
96
+ "@loopback/testlab": "^7.0.6",
97
+ "@minimaltech/eslint-node": "^0.1.15",
92
98
  "@types/express": "^4.17.21",
93
- "@types/jsonwebtoken": "^9.0.6",
99
+ "@types/jsonwebtoken": "^9.0.7",
94
100
  "@types/lodash": "^4.17.7",
95
- "@types/mocha": "^10.0.7",
96
- "@types/multer": "^1.4.7",
97
- "@types/node": "^20.16.2",
98
- "eslint": "^8.57.0",
99
- "husky": "^9.1.5",
100
- "prettier": "^3.3.2",
101
+ "@types/mocha": "^10.0.8",
102
+ "@types/multer": "^1.4.12",
103
+ "@types/node": "^20.16.5",
104
+ "eslint": "^8.57.1",
105
+ "husky": "^9.1.6",
106
+ "prettier": "^3.3.3",
101
107
  "source-map-support": "^0.5.21",
102
- "ts-node": "^10.9.1",
103
- "tsc-alias": "^1.8.7",
108
+ "ts-node": "^10.9.2",
109
+ "tsc-alias": "^1.8.10",
104
110
  "tsconfig-paths": "^4.2.0",
105
- "typescript": "^5.5.3"
111
+ "typescript": "^5.6.2"
106
112
  },
107
113
  "scripts": {
108
114
  "build": "sh ./scripts/build.sh",