nestjs-profiler 1.0.25 → 1.0.26
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/README.md +120 -6
- package/collectors/event-collector.d.ts +18 -0
- package/collectors/event-collector.js +254 -0
- package/collectors/event-collector.js.map +1 -0
- package/common/profiler-options.interface.d.ts +8 -0
- package/common/profiler.model.d.ts +25 -0
- package/controllers/profiler.controller.d.ts +13 -1
- package/controllers/profiler.controller.js +103 -17
- package/controllers/profiler.controller.js.map +1 -1
- package/middleware/profiler-auth.middleware.d.ts +10 -0
- package/middleware/profiler-auth.middleware.js +110 -0
- package/middleware/profiler-auth.middleware.js.map +1 -0
- package/package.json +2 -2
- package/profiler.module.js +78 -0
- package/profiler.module.js.map +1 -1
- package/services/entity-explorer.service.d.ts +1 -1
- package/services/entity-explorer.service.js +7 -7
- package/services/entity-explorer.service.js.map +1 -1
- package/services/health.service.js +23 -8
- package/services/health.service.js.map +1 -1
- package/services/profiler.service.d.ts +10 -1
- package/services/profiler.service.js +103 -35
- package/services/profiler.service.js.map +1 -1
- package/services/route-explorer.service.d.ts +23 -1
- package/services/route-explorer.service.js +136 -10
- package/services/route-explorer.service.js.map +1 -1
- package/services/template-builder.service.d.ts +1 -0
- package/services/template-builder.service.js +184 -83
- package/services/template-builder.service.js.map +1 -1
- package/services/view.service.d.ts +1 -1
- package/services/view.service.js +30 -23
- package/services/view.service.js.map +1 -1
- package/views/events.html +763 -0
- package/views/layout.html +31 -9
- package/views/login.html +277 -0
- package/views/routes.html +405 -37
|
@@ -8,14 +8,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var RouteExplorerService_1;
|
|
11
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
13
|
exports.RouteExplorerService = void 0;
|
|
13
14
|
const common_1 = require("@nestjs/common");
|
|
14
15
|
const constants_1 = require("@nestjs/common/constants");
|
|
15
|
-
let RouteExplorerService = class RouteExplorerService {
|
|
16
|
-
constructor() {
|
|
17
|
-
this.routes = [];
|
|
18
|
-
}
|
|
16
|
+
let RouteExplorerService = RouteExplorerService_1 = class RouteExplorerService {
|
|
17
|
+
constructor() { }
|
|
19
18
|
initialize(modulesContainer, globalPrefix = '') {
|
|
20
19
|
try {
|
|
21
20
|
this.scan(modulesContainer, globalPrefix);
|
|
@@ -25,7 +24,7 @@ let RouteExplorerService = class RouteExplorerService {
|
|
|
25
24
|
}
|
|
26
25
|
}
|
|
27
26
|
getRoutes() {
|
|
28
|
-
return
|
|
27
|
+
return RouteExplorerService_1._routes;
|
|
29
28
|
}
|
|
30
29
|
scan(modulesContainer, globalPrefix) {
|
|
31
30
|
if (!modulesContainer)
|
|
@@ -33,7 +32,10 @@ let RouteExplorerService = class RouteExplorerService {
|
|
|
33
32
|
const routes = [];
|
|
34
33
|
const modules = [...modulesContainer.values()];
|
|
35
34
|
for (const module of modules) {
|
|
36
|
-
const
|
|
35
|
+
const controllersMap = module.controllers;
|
|
36
|
+
if (!controllersMap || typeof controllersMap.values !== 'function')
|
|
37
|
+
continue;
|
|
38
|
+
const controllers = [...controllersMap.values()];
|
|
37
39
|
for (const controllerWrapper of controllers) {
|
|
38
40
|
const controller = controllerWrapper.instance;
|
|
39
41
|
const metadata = controllerWrapper.metatype;
|
|
@@ -44,16 +46,27 @@ let RouteExplorerService = class RouteExplorerService {
|
|
|
44
46
|
Object.getOwnPropertyNames(prototype).forEach(methodName => {
|
|
45
47
|
if (methodName === 'constructor')
|
|
46
48
|
return;
|
|
47
|
-
|
|
49
|
+
let handler;
|
|
50
|
+
try {
|
|
51
|
+
const descriptor = Object.getOwnPropertyDescriptor(prototype, methodName);
|
|
52
|
+
if (!descriptor || typeof descriptor.value !== 'function')
|
|
53
|
+
return;
|
|
54
|
+
handler = descriptor.value;
|
|
55
|
+
}
|
|
56
|
+
catch {
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
48
59
|
const methodPath = Reflect.getMetadata(constants_1.PATH_METADATA, handler);
|
|
49
60
|
const requestMethod = Reflect.getMetadata(constants_1.METHOD_METADATA, handler);
|
|
50
61
|
if (requestMethod !== undefined) {
|
|
51
62
|
const fullPath = this.normalizePath(globalPrefix, controllerPath, methodPath);
|
|
63
|
+
const meta = this.extractHandlerMeta(prototype, methodName, fullPath);
|
|
52
64
|
routes.push({
|
|
53
65
|
path: fullPath,
|
|
54
66
|
method: this.getRequestMethodName(requestMethod),
|
|
55
67
|
controller: metadata.name,
|
|
56
|
-
handler: methodName
|
|
68
|
+
handler: methodName,
|
|
69
|
+
...meta,
|
|
57
70
|
});
|
|
58
71
|
}
|
|
59
72
|
});
|
|
@@ -61,7 +74,7 @@ let RouteExplorerService = class RouteExplorerService {
|
|
|
61
74
|
}
|
|
62
75
|
const unique = new Map();
|
|
63
76
|
routes.forEach(r => unique.set(`${r.method}:${r.path}`, r));
|
|
64
|
-
|
|
77
|
+
RouteExplorerService_1._routes = Array.from(unique.values()).sort((a, b) => a.path.localeCompare(b.path));
|
|
65
78
|
}
|
|
66
79
|
normalizePath(globalPrefix, controllerPath, methodPath) {
|
|
67
80
|
const parts = [globalPrefix, controllerPath, methodPath].map(p => {
|
|
@@ -72,6 +85,118 @@ let RouteExplorerService = class RouteExplorerService {
|
|
|
72
85
|
let path = '/' + parts.join('/');
|
|
73
86
|
return path.replace(/\/+/g, '/');
|
|
74
87
|
}
|
|
88
|
+
extractHandlerMeta(prototype, methodName, fullPath) {
|
|
89
|
+
try {
|
|
90
|
+
const ROUTE_ARGS_KEY = '__routeArguments__';
|
|
91
|
+
const RPT = { BODY: 3, QUERY: 4, PARAM: 5, HEADERS: 6 };
|
|
92
|
+
const rawArgs = Reflect.getMetadata(ROUTE_ARGS_KEY, prototype.constructor, methodName) || {};
|
|
93
|
+
const paramTypes = Reflect.getMetadata('design:paramtypes', prototype, methodName) || [];
|
|
94
|
+
const params = [];
|
|
95
|
+
let bodyDef;
|
|
96
|
+
const coveredPathParams = new Set();
|
|
97
|
+
for (const key of Object.keys(rawArgs)) {
|
|
98
|
+
const entry = rawArgs[key];
|
|
99
|
+
if (key.includes('__customRouteArgs__'))
|
|
100
|
+
continue;
|
|
101
|
+
const typeNum = parseInt(key.split(':')[0], 10);
|
|
102
|
+
if (isNaN(typeNum))
|
|
103
|
+
continue;
|
|
104
|
+
const paramIndex = entry?.index ?? parseInt(key.split(':')[1], 10);
|
|
105
|
+
const decoratorData = entry?.data;
|
|
106
|
+
const tsType = paramTypes[paramIndex];
|
|
107
|
+
const typeName = this.typeName(tsType);
|
|
108
|
+
const PRIMITIVES = ['string', 'number', 'boolean', 'object', 'array', 'any'];
|
|
109
|
+
const isPrimitive = PRIMITIVES.includes(typeName);
|
|
110
|
+
if (typeNum === RPT.PARAM) {
|
|
111
|
+
if (!decoratorData)
|
|
112
|
+
continue;
|
|
113
|
+
const name = decoratorData;
|
|
114
|
+
coveredPathParams.add(name);
|
|
115
|
+
const props = !isPrimitive ? this.extractDtoProperties(tsType) : undefined;
|
|
116
|
+
const file = !isPrimitive ? this.findDtoFile(tsType) : undefined;
|
|
117
|
+
params.push({ name, paramType: 'path', dataType: typeName, required: true, ...(props?.length ? { properties: props } : {}), ...(file ? { file } : {}) });
|
|
118
|
+
}
|
|
119
|
+
else if (typeNum === RPT.QUERY) {
|
|
120
|
+
const name = decoratorData || `query${paramIndex}`;
|
|
121
|
+
const props = !isPrimitive ? this.extractDtoProperties(tsType) : undefined;
|
|
122
|
+
const file = !isPrimitive ? this.findDtoFile(tsType) : undefined;
|
|
123
|
+
params.push({ name, paramType: 'query', dataType: typeName, required: false, ...(props?.length ? { properties: props } : {}), ...(file ? { file } : {}) });
|
|
124
|
+
}
|
|
125
|
+
else if (typeNum === RPT.HEADERS) {
|
|
126
|
+
const name = decoratorData || 'headers';
|
|
127
|
+
const props = !isPrimitive ? this.extractDtoProperties(tsType) : undefined;
|
|
128
|
+
const file = !isPrimitive ? this.findDtoFile(tsType) : undefined;
|
|
129
|
+
params.push({ name, paramType: 'header', dataType: typeName, required: false, ...(props?.length ? { properties: props } : {}), ...(file ? { file } : {}) });
|
|
130
|
+
}
|
|
131
|
+
else if (typeNum === RPT.BODY) {
|
|
132
|
+
const file = !isPrimitive ? this.findDtoFile(tsType) : undefined;
|
|
133
|
+
bodyDef = {
|
|
134
|
+
typeName: typeName,
|
|
135
|
+
properties: isPrimitive ? [] : this.extractDtoProperties(tsType),
|
|
136
|
+
...(file ? { file } : {}),
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
const urlPathParams = [...fullPath.matchAll(/:([^/]+)/g)].map(m => m[1]);
|
|
141
|
+
for (const name of urlPathParams) {
|
|
142
|
+
if (!coveredPathParams.has(name)) {
|
|
143
|
+
params.push({ name, paramType: 'path', dataType: 'string', required: true });
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
return { params, body: bodyDef };
|
|
147
|
+
}
|
|
148
|
+
catch {
|
|
149
|
+
return { params: [] };
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
findDtoFile(ctor) {
|
|
153
|
+
if (!ctor?.name)
|
|
154
|
+
return '';
|
|
155
|
+
try {
|
|
156
|
+
const cache = require.cache;
|
|
157
|
+
for (const [filename, mod] of Object.entries(cache)) {
|
|
158
|
+
if (!mod?.exports)
|
|
159
|
+
continue;
|
|
160
|
+
const exp = mod.exports;
|
|
161
|
+
if (exp[ctor.name] === ctor || exp?.default === ctor) {
|
|
162
|
+
return filename.replace(/\.js$/, '.ts');
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
catch { }
|
|
167
|
+
return '';
|
|
168
|
+
}
|
|
169
|
+
typeName(ctor) {
|
|
170
|
+
if (!ctor)
|
|
171
|
+
return 'any';
|
|
172
|
+
switch (ctor) {
|
|
173
|
+
case String: return 'string';
|
|
174
|
+
case Number: return 'number';
|
|
175
|
+
case Boolean: return 'boolean';
|
|
176
|
+
case Object: return 'object';
|
|
177
|
+
case Array: return 'array';
|
|
178
|
+
default: return ctor.name || 'any';
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
extractDtoProperties(ctor) {
|
|
182
|
+
if (!ctor || typeof ctor !== 'function')
|
|
183
|
+
return [];
|
|
184
|
+
try {
|
|
185
|
+
const proto = ctor.prototype;
|
|
186
|
+
if (!proto)
|
|
187
|
+
return [];
|
|
188
|
+
return Object.getOwnPropertyNames(proto)
|
|
189
|
+
.filter(name => name !== 'constructor')
|
|
190
|
+
.map(name => {
|
|
191
|
+
const type = Reflect.getMetadata('design:type', proto, name);
|
|
192
|
+
return type ? { name, type: this.typeName(type) } : null;
|
|
193
|
+
})
|
|
194
|
+
.filter((p) => p !== null);
|
|
195
|
+
}
|
|
196
|
+
catch {
|
|
197
|
+
return [];
|
|
198
|
+
}
|
|
199
|
+
}
|
|
75
200
|
getRequestMethodName(method) {
|
|
76
201
|
switch (method) {
|
|
77
202
|
case common_1.RequestMethod.GET: return 'GET';
|
|
@@ -87,7 +212,8 @@ let RouteExplorerService = class RouteExplorerService {
|
|
|
87
212
|
}
|
|
88
213
|
};
|
|
89
214
|
exports.RouteExplorerService = RouteExplorerService;
|
|
90
|
-
|
|
215
|
+
RouteExplorerService._routes = [];
|
|
216
|
+
exports.RouteExplorerService = RouteExplorerService = RouteExplorerService_1 = __decorate([
|
|
91
217
|
(0, common_1.Injectable)(),
|
|
92
218
|
__metadata("design:paramtypes", [])
|
|
93
219
|
], RouteExplorerService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route-explorer.service.js","sourceRoot":"","sources":["../../../libs/nestjs-profiler/src/services/route-explorer.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"route-explorer.service.js","sourceRoot":"","sources":["../../../libs/nestjs-profiler/src/services/route-explorer.service.ts"],"names":[],"mapp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AM,CAAC,CAAC,CAAC,EAA0B,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC;QAC3D,CAAC;QAAC,MAAM,CAAC;YACL,OAAO,EAAE,CAAC;QACd,CAAC;IACL,CAAC;IAEO,oBAAoB,CAAC,MAAc;QACvC,QAAQ,MAAM,EAAE,CAAC;YACb,KAAK,sBAAa,CAAC,GAAG,CAAC,CAAC,OAAO,KAAK,CAAC;YACrC,KAAK,sBAAa,CAAC,IAAI,CAAC,CAAC,OAAO,MAAM,CAAC;YACvC,KAAK,sBAAa,CAAC,GAAG,CAAC,CAAC,OAAO,KAAK,CAAC;YACrC,KAAK,sBAAa,CAAC,MAAM,CAAC,CAAC,OAAO,QAAQ,CAAC;YAC3C,KAAK,sBAAa,CAAC,KAAK,CAAC,CAAC,OAAO,OAAO,CAAC;YACzC,KAAK,sBAAa,CAAC,OAAO,CAAC,CAAC,OAAO,SAAS,CAAC;YAC7C,KAAK,sBAAa,CAAC,IAAI,CAAC,CAAC,OAAO,MAAM,CAAC;YACvC,KAAK,sBAAa,CAAC,GAAG,CAAC,CAAC,OAAO,KAAK,CAAC;YACrC,OAAO,CAAC,CAAC,OAAO,SAAS,CAAC;QAC9B,CAAC;IACL,CAAC;;AAvQQ,oDAAoB;AAQd,4BAAO,GAAsB,EAAE,AAAxB,CAAyB;+BARtC,oBAAoB;IADhC,IAAA,mBAAU,GAAE;;GACA,oBAAoB,CAwQhC"}
|
|
@@ -6,6 +6,7 @@ export declare class TemplateBuilderService {
|
|
|
6
6
|
buildLiveLogsPage(): string;
|
|
7
7
|
buildHealthPage(): string;
|
|
8
8
|
buildCodeQualityPage(): string;
|
|
9
|
+
buildEventsPage(): string;
|
|
9
10
|
buildSummaryPage(stats: Awaited<ReturnType<import('./profiler.service').ProfilerService['getSummaryStats']>>): string;
|
|
10
11
|
private getMethodBadgeClass;
|
|
11
12
|
buildDashboard(profiles: RequestProfile[]): string;
|