@laboratory-one/api-components 0.0.36 → 0.0.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/src/ability/subject.enum.d.ts +1 -0
- package/dist/src/ability/subject.enum.d.ts.map +1 -1
- package/dist/src/ability/subject.enum.js +1 -0
- package/dist/src/ability/subject.enum.js.map +1 -1
- package/dist/src/services/sentry.service.d.ts.map +1 -1
- package/dist/src/services/sentry.service.js +4 -0
- package/dist/src/services/sentry.service.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/ability/subject.enum.ts +1 -0
- package/src/services/sentry.service.ts +5 -0
|
@@ -6,6 +6,7 @@ export declare const SUBJECTS: {
|
|
|
6
6
|
readonly ANKI: "anki";
|
|
7
7
|
readonly METABOTS: "metabots";
|
|
8
8
|
readonly TASTEBUD: "tastebud";
|
|
9
|
+
readonly NOT_DEAD_YET: "not-dead-yet";
|
|
9
10
|
};
|
|
10
11
|
export type Subject = (typeof SUBJECTS)[keyof typeof SUBJECTS];
|
|
11
12
|
//# sourceMappingURL=subject.enum.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subject.enum.d.ts","sourceRoot":"","sources":["../../../src/ability/subject.enum.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"subject.enum.d.ts","sourceRoot":"","sources":["../../../src/ability/subject.enum.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ;;;;;;;;;CASX,CAAC;AAEX,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subject.enum.js","sourceRoot":"","sources":["../../../src/ability/subject.enum.ts"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GAAG;IACtB,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,aAAa;IAC1B,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;
|
|
1
|
+
{"version":3,"file":"subject.enum.js","sourceRoot":"","sources":["../../../src/ability/subject.enum.ts"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GAAG;IACtB,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,aAAa;IAC1B,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,YAAY,EAAE,cAAc;CACpB,CAAC","sourcesContent":["export const SUBJECTS = {\n ALL: 'all',\n AUTH: 'auth',\n SUNG_JINWOO: 'sung-jinwoo',\n MOMENTAI: 'momentai',\n ANKI: 'anki',\n METABOTS: 'metabots',\n TASTEBUD: 'tastebud',\n NOT_DEAD_YET: 'not-dead-yet',\n} as const;\n\nexport type Subject = (typeof SUBJECTS)[keyof typeof SUBJECTS];\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sentry.service.d.ts","sourceRoot":"","sources":["../../../src/services/sentry.service.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,GAAI,aAAa,MAAM,
|
|
1
|
+
{"version":3,"file":"sentry.service.d.ts","sourceRoot":"","sources":["../../../src/services/sentry.service.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,GAAI,aAAa,MAAM,SAuB7C,CAAC"}
|
|
@@ -5,6 +5,10 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const Sentry = tslib_1.__importStar(require("@sentry/node"));
|
|
6
6
|
const profiling_node_1 = require("@sentry/profiling-node");
|
|
7
7
|
const initSentry = (projectName) => {
|
|
8
|
+
if (!process.env.SENTRY_DSN) {
|
|
9
|
+
console.log('Sentry disabled: SENTRY_DSN not set');
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
8
12
|
Sentry.init({
|
|
9
13
|
dsn: process.env.SENTRY_DSN,
|
|
10
14
|
environment: process.env.ENVIRONMENT,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sentry.service.js","sourceRoot":"","sources":["../../../src/services/sentry.service.ts"],"names":[],"mappings":";;;;AAAA,6DAAuC;AACvC,2DAAkE;AAE3D,MAAM,UAAU,GAAG,CAAC,WAAmB,EAAE,EAAE;
|
|
1
|
+
{"version":3,"file":"sentry.service.js","sourceRoot":"","sources":["../../../src/services/sentry.service.ts"],"names":[],"mappings":";;;;AAAA,6DAAuC;AACvC,2DAAkE;AAE3D,MAAM,UAAU,GAAG,CAAC,WAAmB,EAAE,EAAE;IAChD,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,CAAC;QAC5B,OAAO,CAAC,GAAG,CAAC,qCAAqC,CAAC,CAAC;QACnD,OAAO;IACT,CAAC;IAGD,MAAM,CAAC,IAAI,CAAC;QACV,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,UAAU;QAC3B,WAAW,EAAE,OAAO,CAAC,GAAG,CAAC,WAAW;QACpC,OAAO,EAAE,GAAG,WAAW,IAAI,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE;QAC5D,YAAY,EAAE;YAEZ,IAAA,yCAAwB,GAAE;YAC1B,MAAM,CAAC,cAAc,CAAC,EAAE,iBAAiB,EAAE,IAAI,EAAE,CAAC;SACnD;QAGD,gBAAgB,EAAE,GAAG;QAGrB,kBAAkB,EAAE,GAAG;KACxB,CAAC,CAAC;AACL,CAAC,CAAC;AAvBW,QAAA,UAAU,cAuBrB","sourcesContent":["import * as Sentry from '@sentry/node';\nimport { nodeProfilingIntegration } from '@sentry/profiling-node';\n\nexport const initSentry = (projectName: string) => {\n if (!process.env.SENTRY_DSN) {\n console.log('Sentry disabled: SENTRY_DSN not set');\n return;\n }\n\n // Ensure to call this before requiring any other modules!\n Sentry.init({\n dsn: process.env.SENTRY_DSN,\n environment: process.env.ENVIRONMENT,\n release: `${projectName}@${process.env.npm_package_version}`,\n integrations: [\n // Add our Profiling integration\n nodeProfilingIntegration(),\n Sentry.anrIntegration({ captureStackTrace: true }),\n ],\n // Add Tracing by setting tracesSampleRate\n // We recommend adjusting this value in production\n tracesSampleRate: 1.0,\n // Set sampling rate for profiling\n // This is relative to tracesSampleRate\n profilesSampleRate: 1.0,\n });\n};\n"]}
|