@zthun/lumberjacky-sentry 2.2.1 → 2.2.3

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 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../src/logger/logger-sentry.mts"],"sourcesContent":["import { Client, SeverityLevel } from \"@sentry/types\";\nimport { IZLogEntry, IZLogger, ZLogLevel } from \"@zthun/lumberjacky-log\";\n\n/**\n * A logger that logs to sentry (https://sentry.io)\n */\nexport class ZLoggerSentry implements IZLogger {\n private static readonly SeverityMap: Record<ZLogLevel, SeverityLevel> =\n Object.freeze({\n [ZLogLevel.CATASTROPHE]: \"fatal\",\n [ZLogLevel.ERROR]: \"error\",\n [ZLogLevel.WARNING]: \"warning\",\n [ZLogLevel.INFO]: \"info\",\n });\n\n /**\n * Initializes a new instance of this object.\n *\n * @param _client -\n * The sentry client to log to.\n */\n public constructor(private _client: Client) {}\n\n public log(entry: IZLogEntry): void {\n this._client.captureEvent({\n message: entry.message,\n level: ZLoggerSentry.SeverityMap[entry.level],\n extra: {\n context: entry.context,\n },\n });\n }\n}\n"],"names":["ZLogLevel"],"mappings":";;;AAMO,MAAM,iBAAN,MAAM,eAAkC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAetC,YAAoB,SAAiB;AAAjB,SAAA,UAAA;AAAA,EAAkB;AAAA,EAEtC,IAAI,OAAyB;AAClC,SAAK,QAAQ,aAAa;AAAA,MACxB,SAAS,MAAM;AAAA,MACf,OAAO,eAAc,YAAY,MAAM,KAAK;AAAA,MAC5C,OAAO;AAAA,QACL,SAAS,MAAM;AAAA,MACjB;AAAA,IAAA,CACD;AAAA,EACH;AACF;AAzB0B,eAAA,cACtB,OAAO,OAAO;AAAA,EACZ,CAACA,eAAAA,UAAU,WAAW,GAAG;AAAA,EACzB,CAACA,eAAAA,UAAU,KAAK,GAAG;AAAA,EACnB,CAACA,eAAAA,UAAU,OAAO,GAAG;AAAA,EACrB,CAACA,eAAAA,UAAU,IAAI,GAAG;AAAA,CACnB;AAPE,IAAM,gBAAN;;"}
1
+ {"version":3,"file":"index.cjs","sources":["../src/logger/logger-sentry.mts"],"sourcesContent":["import { Client, SeverityLevel } from \"@sentry/core\";\nimport { IZLogEntry, IZLogger, ZLogLevel } from \"@zthun/lumberjacky-log\";\n\n/**\n * A logger that logs to sentry (https://sentry.io)\n */\nexport class ZLoggerSentry implements IZLogger {\n private static readonly SeverityMap: Record<ZLogLevel, SeverityLevel> =\n Object.freeze({\n [ZLogLevel.CATASTROPHE]: \"fatal\",\n [ZLogLevel.ERROR]: \"error\",\n [ZLogLevel.WARNING]: \"warning\",\n [ZLogLevel.INFO]: \"info\",\n });\n\n /**\n * Initializes a new instance of this object.\n *\n * @param _client -\n * The sentry client to log to.\n */\n public constructor(private _client: Client) {}\n\n public log(entry: IZLogEntry): void {\n this._client.captureEvent({\n message: entry.message,\n level: ZLoggerSentry.SeverityMap[entry.level],\n extra: {\n context: entry.context,\n },\n });\n }\n}\n"],"names":["ZLogLevel"],"mappings":";;;AAMO,MAAM,iBAAN,MAAM,eAAkC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAetC,YAAoB,SAAiB;AAAjB,SAAA,UAAA;AAAA,EAAkB;AAAA,EAEtC,IAAI,OAAyB;AAClC,SAAK,QAAQ,aAAa;AAAA,MACxB,SAAS,MAAM;AAAA,MACf,OAAO,eAAc,YAAY,MAAM,KAAK;AAAA,MAC5C,OAAO;AAAA,QACL,SAAS,MAAM;AAAA,MACjB;AAAA,IAAA,CACD;AAAA,EACH;AACF;AAzB0B,eAAA,cACtB,OAAO,OAAO;AAAA,EACZ,CAACA,eAAAA,UAAU,WAAW,GAAG;AAAA,EACzB,CAACA,eAAAA,UAAU,KAAK,GAAG;AAAA,EACnB,CAACA,eAAAA,UAAU,OAAO,GAAG;AAAA,EACrB,CAACA,eAAAA,UAAU,IAAI,GAAG;AAAA,CACnB;AAPE,IAAM,gBAAN;;"}
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/logger/logger-sentry.mts"],"sourcesContent":["import { Client, SeverityLevel } from \"@sentry/types\";\nimport { IZLogEntry, IZLogger, ZLogLevel } from \"@zthun/lumberjacky-log\";\n\n/**\n * A logger that logs to sentry (https://sentry.io)\n */\nexport class ZLoggerSentry implements IZLogger {\n private static readonly SeverityMap: Record<ZLogLevel, SeverityLevel> =\n Object.freeze({\n [ZLogLevel.CATASTROPHE]: \"fatal\",\n [ZLogLevel.ERROR]: \"error\",\n [ZLogLevel.WARNING]: \"warning\",\n [ZLogLevel.INFO]: \"info\",\n });\n\n /**\n * Initializes a new instance of this object.\n *\n * @param _client -\n * The sentry client to log to.\n */\n public constructor(private _client: Client) {}\n\n public log(entry: IZLogEntry): void {\n this._client.captureEvent({\n message: entry.message,\n level: ZLoggerSentry.SeverityMap[entry.level],\n extra: {\n context: entry.context,\n },\n });\n }\n}\n"],"names":[],"mappings":";AAMO,MAAM,iBAAN,MAAM,eAAkC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAetC,YAAoB,SAAiB;AAAjB,SAAA,UAAA;AAAA,EAAkB;AAAA,EAEtC,IAAI,OAAyB;AAClC,SAAK,QAAQ,aAAa;AAAA,MACxB,SAAS,MAAM;AAAA,MACf,OAAO,eAAc,YAAY,MAAM,KAAK;AAAA,MAC5C,OAAO;AAAA,QACL,SAAS,MAAM;AAAA,MACjB;AAAA,IAAA,CACD;AAAA,EACH;AACF;AAzB0B,eAAA,cACtB,OAAO,OAAO;AAAA,EACZ,CAAC,UAAU,WAAW,GAAG;AAAA,EACzB,CAAC,UAAU,KAAK,GAAG;AAAA,EACnB,CAAC,UAAU,OAAO,GAAG;AAAA,EACrB,CAAC,UAAU,IAAI,GAAG;AAAA,CACnB;AAPE,IAAM,gBAAN;"}
1
+ {"version":3,"file":"index.js","sources":["../src/logger/logger-sentry.mts"],"sourcesContent":["import { Client, SeverityLevel } from \"@sentry/core\";\nimport { IZLogEntry, IZLogger, ZLogLevel } from \"@zthun/lumberjacky-log\";\n\n/**\n * A logger that logs to sentry (https://sentry.io)\n */\nexport class ZLoggerSentry implements IZLogger {\n private static readonly SeverityMap: Record<ZLogLevel, SeverityLevel> =\n Object.freeze({\n [ZLogLevel.CATASTROPHE]: \"fatal\",\n [ZLogLevel.ERROR]: \"error\",\n [ZLogLevel.WARNING]: \"warning\",\n [ZLogLevel.INFO]: \"info\",\n });\n\n /**\n * Initializes a new instance of this object.\n *\n * @param _client -\n * The sentry client to log to.\n */\n public constructor(private _client: Client) {}\n\n public log(entry: IZLogEntry): void {\n this._client.captureEvent({\n message: entry.message,\n level: ZLoggerSentry.SeverityMap[entry.level],\n extra: {\n context: entry.context,\n },\n });\n }\n}\n"],"names":[],"mappings":";AAMO,MAAM,iBAAN,MAAM,eAAkC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAetC,YAAoB,SAAiB;AAAjB,SAAA,UAAA;AAAA,EAAkB;AAAA,EAEtC,IAAI,OAAyB;AAClC,SAAK,QAAQ,aAAa;AAAA,MACxB,SAAS,MAAM;AAAA,MACf,OAAO,eAAc,YAAY,MAAM,KAAK;AAAA,MAC5C,OAAO;AAAA,QACL,SAAS,MAAM;AAAA,MACjB;AAAA,IAAA,CACD;AAAA,EACH;AACF;AAzB0B,eAAA,cACtB,OAAO,OAAO;AAAA,EACZ,CAAC,UAAU,WAAW,GAAG;AAAA,EACzB,CAAC,UAAU,KAAK,GAAG;AAAA,EACnB,CAAC,UAAU,OAAO,GAAG;AAAA,EACrB,CAAC,UAAU,IAAI,GAAG;AAAA,CACnB;AAPE,IAAM,gBAAN;"}
@@ -1,4 +1,4 @@
1
- import { Client } from '@sentry/types';
1
+ import { Client } from '@sentry/core';
2
2
  import { IZLogEntry, IZLogger } from '@zthun/lumberjacky-log';
3
3
  /**
4
4
  * A logger that logs to sentry (https://sentry.io)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zthun/lumberjacky-sentry",
3
- "version": "2.2.1",
3
+ "version": "2.2.3",
4
4
  "description": "A standard lumberjacky log interface to interact with sentry.",
5
5
  "author": "Anthony Bonta",
6
6
  "license": "MIT",
@@ -15,14 +15,14 @@
15
15
  "log",
16
16
  "console"
17
17
  ],
18
+ "types": "./dist/index.d.ts",
18
19
  "main": "./dist/index.cjs",
19
20
  "module": "./dist/index.js",
20
- "types": "./dist/index.d.ts",
21
21
  "type": "module",
22
22
  "exports": {
23
+ "types": "./dist/index.d.ts",
23
24
  "require": "./dist/index.cjs",
24
- "import": "./dist/index.js",
25
- "types": "./dist/index.d.ts"
25
+ "import": "./dist/index.js"
26
26
  },
27
27
  "scripts": {
28
28
  "build": "vite build"
@@ -31,33 +31,33 @@
31
31
  "access": "public"
32
32
  },
33
33
  "dependencies": {
34
- "@sentry/types": "^8.37.1",
35
- "@zthun/lumberjacky-log": "^2.2.1",
34
+ "@sentry/core": "^8.47.0",
35
+ "@zthun/lumberjacky-log": "^2.2.3",
36
36
  "lodash": "^4.17.21"
37
37
  },
38
38
  "devDependencies": {
39
- "typescript": "^5.6.3",
40
- "vite": "^5.4.10",
41
- "vitest": "^2.1.4",
39
+ "typescript": "~5.7.2",
40
+ "vite": "^5.4.11",
41
+ "vitest": "^2.1.8",
42
42
  "vitest-mock-extended": "^2.0.2"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@sentry/browser": "^8.19.0",
46
+ "@sentry/core": "^8.19.0",
46
47
  "@sentry/node": "^8.19.0",
47
- "@sentry/react": "^8.19.0",
48
- "@sentry/types": "^8.19.0"
48
+ "@sentry/react": "^8.19.0"
49
49
  },
50
50
  "peerDependenciesMeta": {
51
51
  "@sentry/browser": {
52
52
  "optional": true
53
53
  },
54
- "@sentry/node": {
54
+ "@sentry/core": {
55
55
  "optional": true
56
56
  },
57
- "@sentry/react": {
57
+ "@sentry/node": {
58
58
  "optional": true
59
59
  },
60
- "@sentry/types": {
60
+ "@sentry/react": {
61
61
  "optional": true
62
62
  }
63
63
  },
@@ -65,5 +65,5 @@
65
65
  "dist"
66
66
  ],
67
67
  "sideEffects": false,
68
- "gitHead": "4a595bf10284eea3c9ae5906a9588fdc9f996572"
68
+ "gitHead": "e838c81c07318a9d9c796b1a89916a3fc8c3439d"
69
69
  }