@laboratory-one/api-components 0.0.30 → 0.0.32

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.
@@ -4,6 +4,7 @@ export declare const SUBJECTS: {
4
4
  readonly SUNG_JINWOO: "sung-jinwoo";
5
5
  readonly MOMENTAI: "momentai";
6
6
  readonly ANKI: "anki";
7
+ readonly METABOTS: "metabots";
7
8
  };
8
9
  export type Subject = (typeof SUBJECTS)[keyof typeof SUBJECTS];
9
10
  //# 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;;;;;;CAMX,CAAC;AAEX,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC"}
1
+ {"version":3,"file":"subject.enum.d.ts","sourceRoot":"","sources":["../../../src/ability/subject.enum.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ;;;;;;;CAOX,CAAC;AAEX,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC"}
@@ -7,5 +7,6 @@ exports.SUBJECTS = {
7
7
  SUNG_JINWOO: 'sung-jinwoo',
8
8
  MOMENTAI: 'momentai',
9
9
  ANKI: 'anki',
10
+ METABOTS: 'metabots',
10
11
  };
11
12
  //# sourceMappingURL=subject.enum.js.map
@@ -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;CACJ,CAAC","sourcesContent":["export const SUBJECTS = {\n ALL: 'all',\n AUTH: 'auth',\n SUNG_JINWOO: 'sung-jinwoo',\n MOMENTAI: 'momentai',\n ANKI: 'anki',\n} as const;\n\nexport type Subject = (typeof SUBJECTS)[keyof typeof SUBJECTS];\n"]}
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;CACZ,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} as const;\n\nexport type Subject = (typeof SUBJECTS)[keyof typeof SUBJECTS];\n"]}
@@ -1,2 +1,2 @@
1
- export * from './instrument-sentry';
1
+ export * from './sentry.service';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./instrument-sentry"), exports);
4
+ tslib_1.__exportStar(require("./sentry.service"), exports);
5
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/services/index.ts"],"names":[],"mappings":";;;AAAA,8DAAoC","sourcesContent":["export * from './instrument-sentry';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/services/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiC","sourcesContent":["export * from './sentry.service';\n"]}
@@ -1,2 +1,2 @@
1
1
  export declare const initSentry: (projectName: string) => void;
2
- //# sourceMappingURL=instrument-sentry.d.ts.map
2
+ //# sourceMappingURL=sentry.service.d.ts.map
@@ -0,0 +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,SAkB7C,CAAC"}
@@ -18,4 +18,4 @@ const initSentry = (projectName) => {
18
18
  });
19
19
  };
20
20
  exports.initSentry = initSentry;
21
- //# sourceMappingURL=instrument-sentry.js.map
21
+ //# sourceMappingURL=sentry.service.js.map
@@ -0,0 +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;IAEhD,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;AAlBW,QAAA,UAAU,cAkBrB","sourcesContent":["import * as Sentry from '@sentry/node';\nimport { nodeProfilingIntegration } from '@sentry/profiling-node';\n\nexport const initSentry = (projectName: string) => {\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"]}