@asapjs/core 0.10.42 → 1.0.0-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/dist/application.d.ts +7 -5
- package/dist/application.d.ts.map +1 -1
- package/dist/application.js +84 -20
- package/dist/application.js.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/util/logger.d.ts +28 -1
- package/dist/util/logger.d.ts.map +1 -1
- package/dist/util/logger.js +70 -5
- package/dist/util/logger.js.map +1 -1
- package/package.json +33 -5
- package/dist/config/index.d.ts +0 -44
- package/dist/config/index.d.ts.map +0 -1
- package/dist/config/index.js +0 -11
- package/dist/config/index.js.map +0 -1
- package/tsconfig.json +0 -21
package/dist/application.d.ts
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
import { AsapJSConfig } from '@asapjs/types';
|
|
2
2
|
import express from 'express';
|
|
3
3
|
import http from 'http';
|
|
4
4
|
export default class Application {
|
|
5
5
|
private config;
|
|
6
6
|
private app;
|
|
7
7
|
private server;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
private plugins;
|
|
9
|
+
constructor(dirname: string, projectConfig: AsapJSConfig);
|
|
10
|
+
private initModules;
|
|
10
11
|
run: (initBeforeStartServer?: () => void, options?: {
|
|
11
12
|
disableListenServer: boolean;
|
|
12
13
|
}) => Promise<express.Application>;
|
|
13
|
-
getApp: () =>
|
|
14
|
-
getServer: () =>
|
|
14
|
+
getApp: () => express.Application;
|
|
15
|
+
getServer: () => http.Server;
|
|
16
|
+
destroy(): Promise<void>;
|
|
15
17
|
}
|
|
16
18
|
//# sourceMappingURL=application.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../src/application.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../src/application.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAA+B,MAAM,eAAe,CAAC;AAC1E,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,MAAM,CAAC,OAAO,OAAO,WAAW;IAC9B,OAAO,CAAC,MAAM,CAAe;IAC7B,OAAO,CAAC,GAAG,CAAsB;IACjC,OAAO,CAAC,MAAM,CAAc;IAC5B,OAAO,CAAC,OAAO,CAAsB;gBAEzB,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,YAAY;IAKxD,OAAO,CAAC,WAAW,CAiDjB;IAEK,GAAG,GAAU,wBAAwB,MAAM,IAAI,EAAE,UAAU;QAAE,mBAAmB,EAAE,OAAO,CAAA;KAAE,kCAmChG;IAEK,MAAM,4BAEX;IAEK,SAAS,oBAEd;IAEW,OAAO;CAkBrB"}
|
package/dist/application.js
CHANGED
|
@@ -12,21 +12,50 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
const
|
|
15
|
+
const common_1 = require("@asapjs/common");
|
|
16
|
+
const express_1 = __importDefault(require("express"));
|
|
16
17
|
const http_1 = __importDefault(require("http"));
|
|
17
|
-
const logger_1 = __importDefault(require("./util/logger"));
|
|
18
|
-
const config_1 = require("./config");
|
|
19
18
|
class Application {
|
|
20
19
|
constructor(dirname, projectConfig) {
|
|
21
|
-
this.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
this.plugins = [];
|
|
21
|
+
this.initModules = () => __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
this.app = (0, express_1.default)();
|
|
23
|
+
const context = {
|
|
24
|
+
app: this.app,
|
|
25
|
+
logger: common_1.logger,
|
|
26
|
+
getConfig: () => this.config,
|
|
27
|
+
};
|
|
28
|
+
// Initialize router plugin if enabled
|
|
29
|
+
if (this.config.extensions.includes('@asapjs/router')) {
|
|
30
|
+
try {
|
|
31
|
+
const RouterPlugin = require('@asapjs/router').RouterPlugin;
|
|
32
|
+
const routerPlugin = new RouterPlugin();
|
|
33
|
+
yield routerPlugin.init(this.config, context);
|
|
34
|
+
this.plugins.push(routerPlugin);
|
|
35
|
+
}
|
|
36
|
+
catch (error) {
|
|
37
|
+
common_1.logger.error('Failed to initialize router plugin', error.message || error);
|
|
38
|
+
console.error('Router plugin error details:', error);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
// Initialize sequelize plugin if enabled
|
|
26
42
|
if (this.config.extensions.includes('@asapjs/sequelize')) {
|
|
27
|
-
|
|
28
|
-
|
|
43
|
+
try {
|
|
44
|
+
// 먼저 sequelize 플러그인을 @asapjs/schema에 등록
|
|
45
|
+
const { registry, sequelizePlugin } = require('@asapjs/schema');
|
|
46
|
+
if (!registry.has('sequelize')) {
|
|
47
|
+
registry.register(sequelizePlugin);
|
|
48
|
+
}
|
|
49
|
+
const SequelizePlugin = require('@asapjs/sequelize').SequelizePlugin;
|
|
50
|
+
const sequelizePluginInstance = new SequelizePlugin();
|
|
51
|
+
yield sequelizePluginInstance.init(this.config, context);
|
|
52
|
+
this.plugins.push(sequelizePluginInstance);
|
|
53
|
+
}
|
|
54
|
+
catch (error) {
|
|
55
|
+
common_1.logger.error('Failed to initialize sequelize plugin', error);
|
|
56
|
+
}
|
|
29
57
|
}
|
|
58
|
+
// Initialize Sentry if configured
|
|
30
59
|
if (this.config.sentry !== undefined) {
|
|
31
60
|
const Sentry = require('@sentry/node');
|
|
32
61
|
Sentry.init({
|
|
@@ -37,30 +66,65 @@ class Application {
|
|
|
37
66
|
}
|
|
38
67
|
});
|
|
39
68
|
this.run = (initBeforeStartServer, options) => __awaiter(this, void 0, void 0, function* () {
|
|
40
|
-
yield this.
|
|
69
|
+
yield this.initModules();
|
|
41
70
|
const sv = http_1.default.createServer(this.app);
|
|
71
|
+
this.server = sv;
|
|
72
|
+
const context = {
|
|
73
|
+
app: this.app,
|
|
74
|
+
server: sv,
|
|
75
|
+
logger: common_1.logger,
|
|
76
|
+
getConfig: () => this.config,
|
|
77
|
+
};
|
|
78
|
+
// Initialize socket plugin if enabled
|
|
42
79
|
if (this.config.extensions.includes('@asapjs/socket')) {
|
|
43
|
-
|
|
44
|
-
|
|
80
|
+
try {
|
|
81
|
+
const SocketPlugin = require('@asapjs/socket').SocketPlugin;
|
|
82
|
+
const socketPlugin = new SocketPlugin();
|
|
83
|
+
yield socketPlugin.init(this.config, context);
|
|
84
|
+
this.plugins.push(socketPlugin);
|
|
85
|
+
}
|
|
86
|
+
catch (error) {
|
|
87
|
+
common_1.logger.error('Failed to initialize socket plugin', error);
|
|
88
|
+
}
|
|
45
89
|
}
|
|
46
90
|
if (initBeforeStartServer) {
|
|
47
91
|
initBeforeStartServer();
|
|
48
92
|
}
|
|
49
93
|
if (!(options === null || options === void 0 ? void 0 : options.disableListenServer)) {
|
|
50
94
|
this.server = sv
|
|
51
|
-
.listen(this.config.port, () =>
|
|
52
|
-
.on('error', (error) =>
|
|
95
|
+
.listen(this.config.port, () => common_1.logger.info(`@asapjs :: Server is listening at ${this.config.port}`))
|
|
96
|
+
.on('error', (error) => common_1.logger.error(error));
|
|
53
97
|
}
|
|
54
98
|
return this.app;
|
|
55
99
|
});
|
|
56
|
-
this.getApp = () =>
|
|
100
|
+
this.getApp = () => {
|
|
57
101
|
return this.app;
|
|
58
|
-
}
|
|
59
|
-
this.getServer = () =>
|
|
102
|
+
};
|
|
103
|
+
this.getServer = () => {
|
|
60
104
|
return this.server;
|
|
105
|
+
};
|
|
106
|
+
this.config = Object.assign(Object.assign({}, projectConfig), { dirname });
|
|
107
|
+
(0, common_1.setConfig)(this.config);
|
|
108
|
+
}
|
|
109
|
+
destroy() {
|
|
110
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
111
|
+
// Destroy all plugins in reverse order
|
|
112
|
+
for (let i = this.plugins.length - 1; i >= 0; i--) {
|
|
113
|
+
const plugin = this.plugins[i];
|
|
114
|
+
if (plugin.destroy) {
|
|
115
|
+
try {
|
|
116
|
+
yield plugin.destroy();
|
|
117
|
+
}
|
|
118
|
+
catch (error) {
|
|
119
|
+
common_1.logger.error(`Failed to destroy plugin ${plugin.name}`, error);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
this.plugins = [];
|
|
124
|
+
if (this.server) {
|
|
125
|
+
this.server.close();
|
|
126
|
+
}
|
|
61
127
|
});
|
|
62
|
-
(0, config_1.setConfig)(projectConfig);
|
|
63
|
-
this.config = Object.assign({ dirname }, projectConfig);
|
|
64
128
|
}
|
|
65
129
|
}
|
|
66
130
|
exports.default = Application;
|
package/dist/application.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application.js","sourceRoot":"","sources":["../src/application.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"application.js","sourceRoot":"","sources":["../src/application.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,2CAAmD;AAEnD,sDAA8B;AAC9B,gDAAwB;AAExB,MAAqB,WAAW;IAM9B,YAAY,OAAe,EAAE,aAA2B;QAFhD,YAAO,GAAmB,EAAE,CAAC;QAO7B,gBAAW,GAAG,GAAS,EAAE;YAC/B,IAAI,CAAC,GAAG,GAAG,IAAA,iBAAO,GAAE,CAAC;YAErB,MAAM,OAAO,GAAkB;gBAC7B,GAAG,EAAE,IAAI,CAAC,GAAG;gBACb,MAAM,EAAN,eAAM;gBACN,SAAS,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM;aAC7B,CAAC;YAEF,sCAAsC;YACtC,IAAI,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,CAAC;gBACtD,IAAI,CAAC;oBACH,MAAM,YAAY,GAAG,OAAO,C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AE,CAAC;wBACf,eAAM,CAAC,KAAK,CAAC,4BAA4B,MAAM,CAAC,IAAI,EAAE,EAAE,KAAK,CAAC,CAAC;oBACjE,CAAC;gBACH,CAAC;YACH,CAAC;YACD,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;YAElB,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;gBAChB,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;YACtB,CAAC;QACH,CAAC;KAAA;CACF;AA7HD,8BA6HC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -3,11 +3,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.logger = exports.getConfig = exports.Application = void 0;
|
|
6
|
+
exports.logger = exports.hasConfig = exports.setConfig = exports.getConfig = exports.Application = void 0;
|
|
7
7
|
var application_1 = require("./application");
|
|
8
8
|
Object.defineProperty(exports, "Application", { enumerable: true, get: function () { return __importDefault(application_1).default; } });
|
|
9
|
-
var
|
|
10
|
-
Object.defineProperty(exports, "getConfig", { enumerable: true, get: function () { return
|
|
11
|
-
|
|
12
|
-
Object.defineProperty(exports, "
|
|
9
|
+
var common_1 = require("@asapjs/common");
|
|
10
|
+
Object.defineProperty(exports, "getConfig", { enumerable: true, get: function () { return common_1.getConfig; } });
|
|
11
|
+
Object.defineProperty(exports, "setConfig", { enumerable: true, get: function () { return common_1.setConfig; } });
|
|
12
|
+
Object.defineProperty(exports, "hasConfig", { enumerable: true, get: function () { return common_1.hasConfig; } });
|
|
13
|
+
Object.defineProperty(exports, "logger", { enumerable: true, get: function () { return common_1.logger; } });
|
|
13
14
|
//# 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,6CAAuD;AAA9C,2HAAA,OAAO,OAAe;AAC/B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,6CAAuD;AAA9C,2HAAA,OAAO,OAAe;AAC/B,yCAAyE;AAAhE,mGAAA,SAAS,OAAA;AAAE,mGAAA,SAAS,OAAA;AAAE,mGAAA,SAAS,OAAA;AAAE,gGAAA,MAAM,OAAA"}
|
package/dist/util/logger.d.ts
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* 공통 로그 메타 (최소 스키마)
|
|
3
|
+
* - operation: 함수/유스케이스명
|
|
4
|
+
* - executeId: 실행/흐름 식별자
|
|
5
|
+
* - err: error 레벨에서만 넣기 권장 (stack 포함)
|
|
6
|
+
*/
|
|
7
|
+
export interface LogMeta {
|
|
8
|
+
operation?: string;
|
|
9
|
+
executeId?: string;
|
|
10
|
+
err?: unknown;
|
|
11
|
+
/**
|
|
12
|
+
* 업무/도메인 컨텍스트를 넣고 싶으면 여기에 자유롭게 확장하세요.
|
|
13
|
+
* 예) context: { transactionId, ticketTransactionId }
|
|
14
|
+
*/
|
|
15
|
+
context?: Record<string, unknown>;
|
|
16
|
+
[key: string]: unknown;
|
|
17
|
+
}
|
|
18
|
+
type LogFn = (message: string, meta?: LogMeta) => void;
|
|
19
|
+
interface LoggerFacade {
|
|
20
|
+
debug: LogFn;
|
|
21
|
+
info: LogFn;
|
|
22
|
+
warn: LogFn;
|
|
23
|
+
error: {
|
|
24
|
+
(message: string, meta?: LogMeta): void;
|
|
25
|
+
(message: string, err: unknown, meta?: LogMeta): void;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
declare const logger: LoggerFacade;
|
|
2
29
|
export default logger;
|
|
3
30
|
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/util/logger.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/util/logger.ts"],"names":[],"mappings":"AAkBA;;;;;GAKG;AACH,MAAM,WAAW,OAAO;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAqCD,KAAK,KAAK,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;AAEvD,UAAU,YAAY;IACpB,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,KAAK,CAAC;IACZ,IAAI,EAAE,KAAK,CAAC;IACZ,KAAK,EAAE;QACL,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;QACxC,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;KACvD,CAAC;CACH;AAUD,QAAA,MAAM,MAAM,EAAE,YA2Bb,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
package/dist/util/logger.js
CHANGED
|
@@ -1,15 +1,80 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const winston_1 = require("winston");
|
|
4
|
-
const
|
|
4
|
+
const isPlainObject = (v) => typeof v === 'object' && v !== null && !Array.isArray(v);
|
|
5
|
+
const warnInvalidMeta = (level, message, meta) => {
|
|
6
|
+
baseLogger.warn('[asapjs logger] Invalid meta: expected object. Use logger.<level>(message, { operation, executeId, context })', {
|
|
7
|
+
operation: 'logger.metaValidation',
|
|
8
|
+
context: {
|
|
9
|
+
level,
|
|
10
|
+
message,
|
|
11
|
+
metaType: meta === null ? 'null' : Array.isArray(meta) ? 'array' : typeof meta,
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
const sanitizeMeta = (meta) => {
|
|
16
|
+
if (!meta)
|
|
17
|
+
return {};
|
|
18
|
+
const out = Object.assign({}, meta);
|
|
19
|
+
// remove undefined keys so executeId is omitted when not present
|
|
20
|
+
for (const k of Object.keys(out)) {
|
|
21
|
+
if (out[k] === undefined)
|
|
22
|
+
delete out[k];
|
|
23
|
+
}
|
|
24
|
+
return out;
|
|
25
|
+
};
|
|
26
|
+
const normalizeErrField = (0, winston_1.format)((info) => {
|
|
27
|
+
const err = info.err;
|
|
28
|
+
if (err instanceof Error) {
|
|
29
|
+
info.err = {
|
|
30
|
+
name: err.name,
|
|
31
|
+
message: err.message,
|
|
32
|
+
stack: err.stack,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
return info;
|
|
36
|
+
});
|
|
37
|
+
const baseLogger = (0, winston_1.createLogger)({
|
|
38
|
+
level: process.env.ASAPJS_LOG_LEVEL || 'info',
|
|
5
39
|
transports: [
|
|
6
40
|
new winston_1.transports.Console({
|
|
7
|
-
|
|
8
|
-
format: winston_1.format.combine(winston_1.format.
|
|
9
|
-
format: 'YYYY-MM-DD HH:mm:ss',
|
|
10
|
-
}), winston_1.format.colorize(), winston_1.format.printf((info) => `${info.timestamp} - ${info.level}: ${info.label} ${info.message}`)),
|
|
41
|
+
// Always emit JSON for all environments (dev/prod/local) for consistency and log searchability.
|
|
42
|
+
format: winston_1.format.combine(winston_1.format.timestamp({ format: 'YYYY-MM-DD HH:mm:ss' }), normalizeErrField(), winston_1.format.json()),
|
|
11
43
|
}),
|
|
12
44
|
],
|
|
13
45
|
});
|
|
46
|
+
const logWithLevel = (level, message, meta) => {
|
|
47
|
+
if (meta !== undefined && !isPlainObject(meta)) {
|
|
48
|
+
warnInvalidMeta(level, message, meta);
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
baseLogger.log(level, message, sanitizeMeta(meta));
|
|
52
|
+
};
|
|
53
|
+
const logger = {
|
|
54
|
+
debug: (message, meta) => logWithLevel('debug', message, meta),
|
|
55
|
+
info: (message, meta) => logWithLevel('info', message, meta),
|
|
56
|
+
warn: (message, meta) => logWithLevel('warn', message, meta),
|
|
57
|
+
error: ((message, arg2, arg3) => {
|
|
58
|
+
// 지원하는 두 가지 패턴:
|
|
59
|
+
// - logger.error('msg', { operation, executeId })
|
|
60
|
+
// - logger.error('msg', err, { operation, executeId })
|
|
61
|
+
if (arg3 !== undefined) {
|
|
62
|
+
if (!isPlainObject(arg3)) {
|
|
63
|
+
warnInvalidMeta('error', message, arg3);
|
|
64
|
+
baseLogger.error(message, { err: arg2 });
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
const merged = sanitizeMeta(arg3);
|
|
68
|
+
merged.err = arg2;
|
|
69
|
+
baseLogger.error(message, merged);
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
if (isPlainObject(arg2)) {
|
|
73
|
+
baseLogger.error(message, sanitizeMeta(arg2));
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
baseLogger.error(message, { err: arg2 });
|
|
77
|
+
}),
|
|
78
|
+
};
|
|
14
79
|
exports.default = logger;
|
|
15
80
|
//# sourceMappingURL=logger.js.map
|
package/dist/util/logger.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/util/logger.ts"],"names":[],"mappings":";;AAAA,qCAA2D;
|
|
1
|
+
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/util/logger.ts"],"names":[],"mappings":";;AAAA,qCAA2D;AAI3D,MAAM,aAAa,GAAG,CAAC,CAAU,EAAgC,EAAE,CACjE,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AAE3D,MAAM,eAAe,GAAG,CAAC,KAAe,EAAE,OAAe,EAAE,IAAa,EAAE,EAAE;IAC1E,UAAU,CAAC,IAAI,CAAC,+GAA+G,EAAE;QAC/H,SAAS,EAAE,uBAAuB;QAClC,OAAO,EAAE;YACP,KAAK;YACL,OAAO;YACP,QAAQ,EAAE,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,IAAI;SAC/E;KACF,CAAC,CAAC;AACL,CAAC,CAAC;AAoBF,MAAM,YAAY,GAAG,CAAC,IAAc,EAA2B,EAAE;IAC/D,IAAI,CAAC,IAAI;QAAE,OAAO,EAAE,CAAC;IAErB,MAAM,GAAG,qBAAiC,IAAI,CAAE,CAAC;IAEjD,iEAAiE;IACjE,KAAK,MAAM,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;QACjC,IAAI,GAAG,CAAC,CAAC,CAAC,KAAK,SAAS;YAAE,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC;IAC1C,CAAC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3
|
+
"version": "1.0.0-alpha.0",
|
|
4
|
+
"description": "Core framework for AsapJS",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
6
10
|
"scripts": {
|
|
7
11
|
"prebuild": "rm -rf dist",
|
|
8
12
|
"build": "tsc"
|
|
9
13
|
},
|
|
10
14
|
"author": "",
|
|
11
15
|
"license": "ISC",
|
|
16
|
+
"publishConfig": {
|
|
17
|
+
"access": "public"
|
|
18
|
+
},
|
|
12
19
|
"dependencies": {
|
|
20
|
+
"@asapjs/common": "1.0.0-alpha.0",
|
|
21
|
+
"@asapjs/types": "1.0.0-alpha.0",
|
|
13
22
|
"@sentry/node": "^6.19.7",
|
|
14
23
|
"@sentry/tracing": "^6.19.7",
|
|
15
24
|
"body-parser": "^1.19.2",
|
|
@@ -20,13 +29,32 @@
|
|
|
20
29
|
"sequelize-typescript": "^2.1.3",
|
|
21
30
|
"winston": "^3.6.0"
|
|
22
31
|
},
|
|
32
|
+
"peerDependencies": {
|
|
33
|
+
"@asapjs/router": "*",
|
|
34
|
+
"@asapjs/schema": "*",
|
|
35
|
+
"@asapjs/sequelize": "*",
|
|
36
|
+
"@asapjs/socket": "*"
|
|
37
|
+
},
|
|
38
|
+
"peerDependenciesMeta": {
|
|
39
|
+
"@asapjs/router": {
|
|
40
|
+
"optional": true
|
|
41
|
+
},
|
|
42
|
+
"@asapjs/schema": {
|
|
43
|
+
"optional": true
|
|
44
|
+
},
|
|
45
|
+
"@asapjs/sequelize": {
|
|
46
|
+
"optional": true
|
|
47
|
+
},
|
|
48
|
+
"@asapjs/socket": {
|
|
49
|
+
"optional": true
|
|
50
|
+
}
|
|
51
|
+
},
|
|
23
52
|
"devDependencies": {
|
|
24
|
-
"@asapjs/router": "^0.10.42",
|
|
25
53
|
"@types/body-parser": "^1.19.2",
|
|
26
54
|
"@types/cors": "^2.8.12",
|
|
27
55
|
"@types/express": "^4.17.13",
|
|
28
56
|
"@types/node": "^17.0.21",
|
|
29
|
-
"typescript": "^
|
|
57
|
+
"typescript": "^5.8.3"
|
|
30
58
|
},
|
|
31
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "79561e3604dc505813035558d1bfcc6cda0b088a"
|
|
32
60
|
}
|
package/dist/config/index.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
interface IConfig {
|
|
2
|
-
dirname: string;
|
|
3
|
-
debug: boolean;
|
|
4
|
-
name: string;
|
|
5
|
-
extensions: string[];
|
|
6
|
-
port: number;
|
|
7
|
-
basePath: string;
|
|
8
|
-
swagger: {
|
|
9
|
-
name: string;
|
|
10
|
-
version: string;
|
|
11
|
-
description: string;
|
|
12
|
-
scheme: 'http' | 'https';
|
|
13
|
-
host: string;
|
|
14
|
-
auth_url?: string;
|
|
15
|
-
useAuth?: boolean;
|
|
16
|
-
userObject?: {
|
|
17
|
-
[username: string]: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
auth: {
|
|
21
|
-
jwt_secret: string;
|
|
22
|
-
};
|
|
23
|
-
db: {
|
|
24
|
-
database: string;
|
|
25
|
-
username: string;
|
|
26
|
-
password?: string;
|
|
27
|
-
host: string;
|
|
28
|
-
port: number;
|
|
29
|
-
dialect: string;
|
|
30
|
-
logging?: (query: string, time: number) => void;
|
|
31
|
-
timezone?: string;
|
|
32
|
-
pool?: {
|
|
33
|
-
max: number;
|
|
34
|
-
idle: number;
|
|
35
|
-
acquire: number;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
extra: any;
|
|
39
|
-
}
|
|
40
|
-
export declare let config: null;
|
|
41
|
-
export declare const getConfig: () => IConfig | null;
|
|
42
|
-
export declare const setConfig: (v: any) => void;
|
|
43
|
-
export {};
|
|
44
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/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E5D,eAAO,MAAM,SAAS,MAAO,GAAG,SAE/B,CAAC"}
|
package/dist/config/index.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.setConfig = exports.getConfig = exports.config = void 0;
|
|
4
|
-
exports.config = null;
|
|
5
|
-
const getConfig = () => exports.config;
|
|
6
|
-
exports.getConfig = getConfig;
|
|
7
|
-
const setConfig = (v) => {
|
|
8
|
-
exports.config = v;
|
|
9
|
-
};
|
|
10
|
-
exports.setConfig = setConfig;
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
package/dist/config/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":";;;AAsCW,QAAA,MAAM,GAAG,IAAI,CAAC;AAElB,MAAM,SAAS,GAAyB,GAAG,EAAE,CAAC,cAAM,CAAC;AAA/C,QAAA,SAAS,aAAsC;AAErD,MAAM,SAAS,GAAG,CAAC,CAAM,EAAE,EAAE;IAClC,cAAM,GAAG,CAAC,CAAC;AACb,CAAC,CAAC;AAFW,QAAA,SAAS,aAEpB"}
|
package/tsconfig.json
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"module": "commonjs",
|
|
4
|
-
"esModuleInterop": true,
|
|
5
|
-
"target": "es6",
|
|
6
|
-
"noImplicitAny": true,
|
|
7
|
-
"moduleResolution": "node",
|
|
8
|
-
"sourceMap": true,
|
|
9
|
-
"declaration": true,
|
|
10
|
-
"declarationMap": true,
|
|
11
|
-
"baseUrl": ".",
|
|
12
|
-
"outDir": "dist",
|
|
13
|
-
"lib": ["es2015", "es2019", "es2020"],
|
|
14
|
-
"skipLibCheck": true,
|
|
15
|
-
"strictNullChecks": true,
|
|
16
|
-
"experimentalDecorators": true,
|
|
17
|
-
"emitDecoratorMetadata": true,
|
|
18
|
-
"resolveJsonModule": true
|
|
19
|
-
},
|
|
20
|
-
"include": ["src/**/*"]
|
|
21
|
-
}
|