bugg-lens-nestjs 0.1.6 → 0.1.8
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/bugg-lens.controller.d.ts +10 -0
- package/dist/bugg-lens.controller.d.ts.map +1 -0
- package/dist/bugg-lens.controller.js +52 -0
- package/dist/bugg-lens.controller.js.map +1 -0
- package/dist/bugg-lens.d.ts +10 -6
- package/dist/bugg-lens.d.ts.map +1 -1
- package/dist/bugg-lens.js +26 -12
- package/dist/bugg-lens.js.map +1 -1
- package/dist/bugg-lens.module.d.ts.map +1 -1
- package/dist/bugg-lens.module.js +2 -0
- package/dist/bugg-lens.module.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { BuggLens, StreamEvent } from "./bugg-lens";
|
|
3
|
+
import { Response } from "express";
|
|
4
|
+
export declare class BuggLensController {
|
|
5
|
+
private readonly buggLens;
|
|
6
|
+
constructor(buggLens: BuggLens);
|
|
7
|
+
debug(): Observable<StreamEvent>;
|
|
8
|
+
index(res: Response): void | Response<any, Record<string, any>>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=bugg-lens.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bugg-lens.controller.d.ts","sourceRoot":"","sources":["../bugg-lens.controller.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAEpD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,qBACa,kBAAkB;IACf,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBAAR,QAAQ,EAAE,QAAQ;IAG/C,KAAK,IAAI,UAAU,CAAC,WAAW,CAAC;IAKhC,KAAK,CAAQ,GAAG,EAAE,QAAQ;CAM7B"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.BuggLensController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const rxjs_1 = require("rxjs");
|
|
18
|
+
const bugg_lens_1 = require("./bugg-lens");
|
|
19
|
+
const node_path_1 = require("node:path");
|
|
20
|
+
let BuggLensController = class BuggLensController {
|
|
21
|
+
constructor(buggLens) {
|
|
22
|
+
this.buggLens = buggLens;
|
|
23
|
+
}
|
|
24
|
+
debug() {
|
|
25
|
+
return this.buggLens.stream();
|
|
26
|
+
}
|
|
27
|
+
index(res) {
|
|
28
|
+
if (process.env.APP_DEBUG === "true") {
|
|
29
|
+
return res.sendFile((0, node_path_1.join)(__dirname, 'index.html'));
|
|
30
|
+
}
|
|
31
|
+
return res.status(404).json({ message: "Not Found" });
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
exports.BuggLensController = BuggLensController;
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, common_1.Sse)("debug"),
|
|
37
|
+
__metadata("design:type", Function),
|
|
38
|
+
__metadata("design:paramtypes", []),
|
|
39
|
+
__metadata("design:returntype", rxjs_1.Observable)
|
|
40
|
+
], BuggLensController.prototype, "debug", null);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, common_1.Get)(),
|
|
43
|
+
__param(0, (0, common_1.Res)()),
|
|
44
|
+
__metadata("design:type", Function),
|
|
45
|
+
__metadata("design:paramtypes", [Object]),
|
|
46
|
+
__metadata("design:returntype", void 0)
|
|
47
|
+
], BuggLensController.prototype, "index", null);
|
|
48
|
+
exports.BuggLensController = BuggLensController = __decorate([
|
|
49
|
+
(0, common_1.Controller)("bugg-lens"),
|
|
50
|
+
__metadata("design:paramtypes", [bugg_lens_1.BuggLens])
|
|
51
|
+
], BuggLensController);
|
|
52
|
+
//# sourceMappingURL=bugg-lens.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bugg-lens.controller.js","sourceRoot":"","sources":["../bugg-lens.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA2D;AAC3D,+BAAkC;AAClC,2CAAoD;AACpD,yCAAiC;AAI1B,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC3B,YAA6B,QAAkB;QAAlB,aAAQ,GAAR,QAAQ,CAAU;IAAI,CAAC;IAGpD,KAAK;QACD,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;IAClC,CAAC;IAGD,KAAK,CAAQ,GAAa;QACtB,IAAI,OAAO,CAAC,GAAG,CAAC,SAAS,KAAK,MAAM,EAAE,CAAC;YACnC,OAAO,GAAG,CAAC,QAAQ,CAAC,IAAA,gBAAI,EAAC,SAAS,EAAE,YAAY,CAAC,CAAC,CAAA;QACtD,CAAC;QACD,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,CAAA;IACzD,CAAC;CACJ,CAAA;AAfY,gDAAkB;AAI3B;IADC,IAAA,YAAG,EAAC,OAAO,CAAC;;;oCACJ,iBAAU;+CAElB;AAGD;IADC,IAAA,YAAG,GAAE;IACC,WAAA,IAAA,YAAG,GAAE,CAAA;;;;+CAKX;6BAdQ,kBAAkB;IAD9B,IAAA,mBAAU,EAAC,WAAW,CAAC;qCAEmB,oBAAQ;GADtC,kBAAkB,CAe9B"}
|
package/dist/bugg-lens.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HttpArgumentsHost } from '@nestjs/common/interfaces';
|
|
1
|
+
import { HttpArgumentsHost, OnModuleDestroy } from '@nestjs/common/interfaces';
|
|
2
2
|
export declare enum Level {
|
|
3
3
|
debug = "debug",
|
|
4
4
|
error = "error",
|
|
@@ -7,22 +7,24 @@ export declare enum Level {
|
|
|
7
7
|
}
|
|
8
8
|
export interface BuggLensOptions {
|
|
9
9
|
dsn: string;
|
|
10
|
-
apiKey?: string;
|
|
11
|
-
apiKeyHeader?: string;
|
|
12
|
-
headers?: Record<string, string>;
|
|
13
10
|
timeoutMs?: number;
|
|
14
11
|
ignoreErrors?: any[];
|
|
15
12
|
maxRateLimit?: 100 | 200 | 300 | 400 | 500;
|
|
16
13
|
level?: Level;
|
|
17
14
|
environment: string;
|
|
18
15
|
}
|
|
19
|
-
export
|
|
16
|
+
export interface StreamEvent {
|
|
17
|
+
event: string;
|
|
18
|
+
data: any;
|
|
19
|
+
}
|
|
20
|
+
export declare class BuggLens implements OnModuleDestroy {
|
|
20
21
|
private readonly options;
|
|
21
22
|
private readonly http;
|
|
22
23
|
private errorCount;
|
|
23
24
|
private windowResetTime;
|
|
25
|
+
private projectId;
|
|
26
|
+
private subject;
|
|
24
27
|
constructor(options: BuggLensOptions);
|
|
25
|
-
private buildHeaders;
|
|
26
28
|
capture(error: Error, ctx: HttpArgumentsHost): void;
|
|
27
29
|
private isRateLimited;
|
|
28
30
|
private captureAsync;
|
|
@@ -31,5 +33,7 @@ export declare class BuggLens {
|
|
|
31
33
|
private extractFrame;
|
|
32
34
|
private getPlatFormInfo;
|
|
33
35
|
private getSystemHealth;
|
|
36
|
+
stream(): import("rxjs").Observable<StreamEvent>;
|
|
37
|
+
onModuleDestroy(): void;
|
|
34
38
|
}
|
|
35
39
|
//# sourceMappingURL=bugg-lens.d.ts.map
|
package/dist/bugg-lens.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bugg-lens.d.ts","sourceRoot":"","sources":["../bugg-lens.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"bugg-lens.d.ts","sourceRoot":"","sources":["../bugg-lens.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAK/E,oBAAY,KAAK;IACb,KAAK,UAAU;IACf,KAAK,UAAU;IACf,IAAI,SAAS;IACb,IAAI,SAAS;CAChB;AAED,MAAM,WAAW,eAAe;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,GAAG,EAAE,CAAC;IACrB,YAAY,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAA;IAC1C,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,WAAW,EAAE,MAAM,CAAC;CAEvB;AAQD,MAAM,WAAW,WAAW;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,GAAG,CAAC;CACb;AAED,qBACa,QAAS,YAAW,eAAe;IAQb,OAAO,CAAC,QAAQ,CAAC,OAAO;IAPvD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAgB;IACrC,OAAO,CAAC,UAAU,CAAI;IACtB,OAAO,CAAC,eAAe,CAAqB;IAC5C,OAAO,CAAC,SAAS,CAAQ;IACzB,OAAO,CAAC,OAAO,CAA6B;gBAGI,OAAO,EAAE,eAAe;IAiBxE,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,iBAAiB,GAAG,IAAI;IAanD,OAAO,CAAC,aAAa;YAsBP,YAAY;IA8C1B,OAAO,CAAC,gBAAgB;YAWV,iBAAiB;IAI/B,OAAO,CAAC,YAAY;IAepB,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,eAAe;IAavB,MAAM;IAIN,eAAe;CAGlB"}
|
package/dist/bugg-lens.js
CHANGED
|
@@ -20,6 +20,7 @@ const axios_1 = __importDefault(require("axios"));
|
|
|
20
20
|
const bugg_lens_util_1 = require("./bugg-lens.util");
|
|
21
21
|
const common_1 = require("@nestjs/common");
|
|
22
22
|
const bugg_lens_module_1 = require("./bugg-lens.module");
|
|
23
|
+
const rxjs_1 = require("rxjs");
|
|
23
24
|
var Level;
|
|
24
25
|
(function (Level) {
|
|
25
26
|
Level["debug"] = "debug";
|
|
@@ -32,20 +33,19 @@ let BuggLens = class BuggLens {
|
|
|
32
33
|
this.options = options;
|
|
33
34
|
this.errorCount = 0;
|
|
34
35
|
this.windowResetTime = Date.now() + 60000;
|
|
36
|
+
this.subject = new rxjs_1.Subject();
|
|
37
|
+
const url = new URL(this.options.dsn);
|
|
38
|
+
const apiKey = url.username;
|
|
39
|
+
const host = url.origin;
|
|
40
|
+
this.projectId = url.pathname;
|
|
35
41
|
this.http = axios_1.default.create({
|
|
36
|
-
baseURL:
|
|
37
|
-
headers:
|
|
42
|
+
baseURL: host,
|
|
43
|
+
headers: {
|
|
44
|
+
'x-api-key': apiKey,
|
|
45
|
+
},
|
|
38
46
|
timeout: this.options.timeoutMs ?? 2000,
|
|
39
47
|
});
|
|
40
48
|
}
|
|
41
|
-
buildHeaders(options) {
|
|
42
|
-
if (!options.apiKey)
|
|
43
|
-
return options.headers;
|
|
44
|
-
return {
|
|
45
|
-
...options.headers,
|
|
46
|
-
[options.apiKeyHeader ?? 'x-api-key']: options.apiKey,
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
49
|
capture(error, ctx) {
|
|
50
50
|
if (this.options.ignoreErrors?.some((E) => E && error instanceof E))
|
|
51
51
|
return;
|
|
@@ -85,7 +85,13 @@ let BuggLens = class BuggLens {
|
|
|
85
85
|
params: req.params,
|
|
86
86
|
query: req.query,
|
|
87
87
|
});
|
|
88
|
-
|
|
88
|
+
if (process.env.APP_DEBUG === "true") {
|
|
89
|
+
this.subject.next({
|
|
90
|
+
event: "message",
|
|
91
|
+
data: sourceContext
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
const body = {
|
|
89
95
|
frame,
|
|
90
96
|
sourceContext,
|
|
91
97
|
meta,
|
|
@@ -96,7 +102,9 @@ let BuggLens = class BuggLens {
|
|
|
96
102
|
systemHealth: this.getSystemHealth(),
|
|
97
103
|
level: this.options.level ?? Level.error,
|
|
98
104
|
environment: this.options.environment,
|
|
99
|
-
|
|
105
|
+
projectId: this.projectId
|
|
106
|
+
};
|
|
107
|
+
await this.http.post('/error-groups', body);
|
|
100
108
|
}
|
|
101
109
|
extractErrorMeta(error) {
|
|
102
110
|
const match = /^([A-Za-z]+(?:Error|Exception)?): (.+)$/m.exec(error.stack ?? '');
|
|
@@ -134,6 +142,12 @@ let BuggLens = class BuggLens {
|
|
|
134
142
|
}
|
|
135
143
|
};
|
|
136
144
|
}
|
|
145
|
+
stream() {
|
|
146
|
+
return this.subject.asObservable();
|
|
147
|
+
}
|
|
148
|
+
onModuleDestroy() {
|
|
149
|
+
this.subject.complete();
|
|
150
|
+
}
|
|
137
151
|
};
|
|
138
152
|
exports.BuggLens = BuggLens;
|
|
139
153
|
exports.BuggLens = BuggLens = __decorate([
|
package/dist/bugg-lens.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bugg-lens.js","sourceRoot":"","sources":["../bugg-lens.ts"],"names":[],"mappings":";;;;;;;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AAiB,CAAC,CAAA;;GARrB,QAAQ,CAgKpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bugg-lens.module.d.ts","sourceRoot":"","sources":["../bugg-lens.module.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,aAAa,EAEhB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"bugg-lens.module.d.ts","sourceRoot":"","sources":["../bugg-lens.module.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,aAAa,EAEhB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,eAAe,EAAY,MAAM,aAAa,CAAC;AAKxD,eAAO,MAAM,iBAAiB,eAA8B,CAAA;AAE5D,qBACa,cAAc;IACvB,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,aAAa;CAoB3D"}
|
package/dist/bugg-lens.module.js
CHANGED
|
@@ -12,6 +12,7 @@ const common_1 = require("@nestjs/common");
|
|
|
12
12
|
const bugg_lens_1 = require("./bugg-lens");
|
|
13
13
|
const core_1 = require("@nestjs/core");
|
|
14
14
|
const bugg_lens_interceptor_1 = require("./bugg-lens.interceptor");
|
|
15
|
+
const bugg_lens_controller_1 = require("./bugg-lens.controller");
|
|
15
16
|
exports.BUGG_LENS_OPTIONS = Symbol('BUGG_LENS_OPTIONS');
|
|
16
17
|
let BuggLensModule = BuggLensModule_1 = class BuggLensModule {
|
|
17
18
|
static register(options) {
|
|
@@ -28,6 +29,7 @@ let BuggLensModule = BuggLensModule_1 = class BuggLensModule {
|
|
|
28
29
|
},
|
|
29
30
|
bugg_lens_1.BuggLens
|
|
30
31
|
],
|
|
32
|
+
controllers: [bugg_lens_controller_1.BuggLensController],
|
|
31
33
|
exports: [bugg_lens_1.BuggLens],
|
|
32
34
|
global: true,
|
|
33
35
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bugg-lens.module.js","sourceRoot":"","sources":["../bugg-lens.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAGwB;AACxB,
|
|
1
|
+
{"version":3,"file":"bugg-lens.module.js","sourceRoot":"","sources":["../bugg-lens.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAGwB;AACxB,2CAAwD;AACxD,uCAA8C;AAC9C,mEAA8D;AAC9D,iEAA4D;AAE/C,QAAA,iBAAiB,GAAG,MAAM,CAAC,mBAAmB,CAAC,CAAA;AAGrD,IAAM,cAAc,sBAApB,MAAM,cAAc;IACvB,MAAM,CAAC,QAAQ,CAAC,OAAwB;QAEpC,OAAO;YACH,MAAM,EAAE,gBAAc;YACtB,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,yBAAiB;oBAC1B,QAAQ,EAAE,OAAO;iBACpB;gBACD;oBACI,OAAO,EAAE,sBAAe;oBACxB,QAAQ,EAAE,2CAAmB;iBAChC;gBACD,oBAAQ;aACX;YACD,WAAW,EAAE,CAAC,yCAAkB,CAAC;YACjC,OAAO,EAAE,CAAC,oBAAQ,CAAC;YACnB,MAAM,EAAE,IAAI;SACf,CAAC;IACN,CAAC;CACJ,CAAA;AArBY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,cAAc,CAqB1B"}
|