@common-stack/server-stack 5.0.5-alpha.0 → 5.0.5-alpha.2
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.
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
'use strict';var
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
// @ts-ignore
|
|
5
|
-
const sentryErrorHandlerMiddleware = Sentry__namespace.Handlers.errorHandler();exports.sentryErrorHandlerMiddleware=sentryErrorHandlerMiddleware;exports.sentryMiddleware=sentryMiddleware;//# sourceMappingURL=sentry.cjs.map
|
|
1
|
+
'use strict';var node=require('@sentry/node');node.init({ dsn: process.env.SENTRY_DSN_BACKEND });
|
|
2
|
+
const sentryMiddleware = node.Handlers.requestHandler();
|
|
3
|
+
const sentryErrorHandlerMiddleware = node.Handlers.errorHandler();exports.sentryErrorHandlerMiddleware=sentryErrorHandlerMiddleware;exports.sentryMiddleware=sentryMiddleware;//# sourceMappingURL=sentry.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sentry.cjs","sources":["../../src/middleware/sentry.ts"],"sourcesContent":[null],"names":["
|
|
1
|
+
{"version":3,"file":"sentry.cjs","sources":["../../src/middleware/sentry.ts"],"sourcesContent":[null],"names":["init","Handlers"],"mappings":"8CAEAA,SAAI,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,CAAC,CAAC;MAGjC,gBAAgB,GAAGC,aAAQ,CAAC,cAAc,GAAG;MAE7C,4BAA4B,GAAGA,aAAQ,CAAC,YAAY"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
export declare const sentryMiddleware: (req: import("http").IncomingMessage, res: import("http").ServerResponse<import("http").IncomingMessage>, next: (error?: any) => void) => void;
|
|
2
3
|
export declare const sentryErrorHandlerMiddleware: any;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
// @ts-ignore
|
|
5
|
-
const sentryErrorHandlerMiddleware = Sentry.Handlers.errorHandler();export{sentryErrorHandlerMiddleware,sentryMiddleware};//# sourceMappingURL=sentry.mjs.map
|
|
1
|
+
import {init,Handlers}from'@sentry/node';init({ dsn: process.env.SENTRY_DSN_BACKEND });
|
|
2
|
+
const sentryMiddleware = Handlers.requestHandler();
|
|
3
|
+
const sentryErrorHandlerMiddleware = Handlers.errorHandler();export{sentryErrorHandlerMiddleware,sentryMiddleware};//# sourceMappingURL=sentry.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sentry.mjs","sources":["../../src/middleware/sentry.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sentry.mjs","sources":["../../src/middleware/sentry.ts"],"sourcesContent":[null],"names":[],"mappings":"yCAEA,IAAI,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,CAAC,CAAC;MAGjC,gBAAgB,GAAG,QAAQ,CAAC,cAAc,GAAG;MAE7C,4BAA4B,GAAG,QAAQ,CAAC,YAAY"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@common-stack/server-stack",
|
|
3
|
-
"version": "5.0.5-alpha.
|
|
3
|
+
"version": "5.0.5-alpha.2",
|
|
4
4
|
"description": "common core for higher packages to depend on",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -32,8 +32,7 @@
|
|
|
32
32
|
"@graphql-tools/utils": "^8.0.0",
|
|
33
33
|
"@graphql-tools/wrap": "^8.4.20",
|
|
34
34
|
"@keyv/redis": "2.8.4",
|
|
35
|
-
"@sentry/node": "
|
|
36
|
-
"@sentry/profiling-node": "^8.25.0",
|
|
35
|
+
"@sentry/node": "~7.24.2",
|
|
37
36
|
"apollo-datasource": "^3.3.1",
|
|
38
37
|
"apollo-datasource-rest": "^3.3.1",
|
|
39
38
|
"apollo-errors": "^1.9.0",
|
|
@@ -74,5 +73,5 @@
|
|
|
74
73
|
"typescript": {
|
|
75
74
|
"definition": "lib/index.d.ts"
|
|
76
75
|
},
|
|
77
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "46bbda8f2b881d84a83c1f53260aeaa2990eff03"
|
|
78
77
|
}
|