@launchtray/hatch-util
Advanced tools
Comparing version 0.21.0-alpha.54 to 0.21.0-alpha.55
@@ -7,3 +7,3 @@ { | ||
"libraries/hatch-util/CHANGELOG.md": "f20f78b0f782223c6efabce2e0d46d2921ba3203", | ||
"libraries/hatch-util/package.json": "c2137078a411b9ce57286c2b9ccdbdb71d0d05b6", | ||
"libraries/hatch-util/package.json": "7d89d9b05d0d0ef790b66f4a0c3b6e0e16c3de72", | ||
"libraries/hatch-util/src/AnyJson.ts": "285f7799925c0f02c2b17c61d400c138e7e736b9", | ||
@@ -16,3 +16,3 @@ "libraries/hatch-util/src/CompletableFuture.ts": "89f6eb084db11ded950ad87ee7f81dfbdfffbf84", | ||
"libraries/hatch-util/src/SentryMonitor.ts": "e8b0e734cc6627d411da3033b2750fd30c7db95f", | ||
"libraries/hatch-util/src/SentryReporter.ts": "e948247b2ece105a2ea10c5dc21f182a87013067", | ||
"libraries/hatch-util/src/SentryReporter.ts": "30cd24fa954ce646c7a8d4b60e23ed6e8542a48c", | ||
"libraries/hatch-util/src/StreamUtils.ts": "5b2c5d925d283750d870fa1c086005420d9ba914", | ||
@@ -19,0 +19,0 @@ "libraries/hatch-util/src/__tests__/delegate.test.ts": "785d2633fde21d2cfd68d13185672381efabdd05", |
@@ -7,3 +7,3 @@ { | ||
"libraries/hatch-util/CHANGELOG.md": "f20f78b0f782223c6efabce2e0d46d2921ba3203", | ||
"libraries/hatch-util/package.json": "7d89d9b05d0d0ef790b66f4a0c3b6e0e16c3de72", | ||
"libraries/hatch-util/package.json": "ac64fd1989db131307e37cfb58793e72bc02b975", | ||
"libraries/hatch-util/src/AnyJson.ts": "285f7799925c0f02c2b17c61d400c138e7e736b9", | ||
@@ -16,3 +16,3 @@ "libraries/hatch-util/src/CompletableFuture.ts": "89f6eb084db11ded950ad87ee7f81dfbdfffbf84", | ||
"libraries/hatch-util/src/SentryMonitor.ts": "e8b0e734cc6627d411da3033b2750fd30c7db95f", | ||
"libraries/hatch-util/src/SentryReporter.ts": "e948247b2ece105a2ea10c5dc21f182a87013067", | ||
"libraries/hatch-util/src/SentryReporter.ts": "30cd24fa954ce646c7a8d4b60e23ed6e8542a48c", | ||
"libraries/hatch-util/src/StreamUtils.ts": "5b2c5d925d283750d870fa1c086005420d9ba914", | ||
@@ -19,0 +19,0 @@ "libraries/hatch-util/src/__tests__/delegate.test.ts": "785d2633fde21d2cfd68d13185672381efabdd05", |
@@ -45,3 +45,7 @@ "use strict"; | ||
if ((exception === null || exception === void 0 ? void 0 : exception.stack) != null) { | ||
this.sentry.setExtra('exceptionContext', exception.stack); | ||
// Remove ANSI color codes, per https://stackoverflow.com/questions/25245716 | ||
const stack = exception.stack.replace( | ||
// eslint-disable-next-line no-control-regex | ||
/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g, ''); | ||
this.sentry.setExtra('exceptionContext', stack); | ||
} | ||
@@ -48,0 +52,0 @@ this.sentry.captureException(exception); |
{ | ||
"name": "@launchtray/hatch-util", | ||
"version": "0.21.0-alpha.54", | ||
"version": "0.21.0-alpha.55", | ||
"description": "Utilities used by several other hatch modules", | ||
@@ -15,4 +15,4 @@ "main": "./dist/index.js", | ||
"devDependencies": { | ||
"@launchtray/hatch-eslint-config": "0.21.0-alpha.54", | ||
"@launchtray/hatch-test": "0.21.0-alpha.54", | ||
"@launchtray/hatch-eslint-config": "0.21.0-alpha.55", | ||
"@launchtray/hatch-test": "0.21.0-alpha.55", | ||
"@launchtray/tsyringe-async": "4.3.3", | ||
@@ -19,0 +19,0 @@ "@sentry/types": "^5", |
@@ -46,3 +46,9 @@ import {Breadcrumb, Options, Severity} from '@sentry/types'; | ||
if (exception?.stack != null) { | ||
this.sentry.setExtra('exceptionContext', exception.stack); | ||
// Remove ANSI color codes, per https://stackoverflow.com/questions/25245716 | ||
const stack = exception.stack.replace( | ||
// eslint-disable-next-line no-control-regex | ||
/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g, | ||
'', | ||
); | ||
this.sentry.setExtra('exceptionContext', stack); | ||
} | ||
@@ -49,0 +55,0 @@ this.sentry.captureException(exception); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
163115
2470