backtrace-service
Advanced tools
Comparing version 1.2.17 to 1.2.18
@@ -209,3 +209,3 @@ "use strict"; | ||
err_1 = _a.sent(); | ||
this.log('error', "Cannot login to coronerd. Reason " + JSON.stringify(err_1)); | ||
this.log('error', "Cannot login to coronerd. Reason " + err_1.message); | ||
return [2 /*return*/, undefined]; | ||
@@ -287,2 +287,5 @@ case 4: return [2 /*return*/]; | ||
IdentityManager.prototype.sanitizeHeader = function (value) { | ||
if (!value) { | ||
return ''; | ||
} | ||
return value.replace(/[^a-z0-9A-Z?!]/gi, ''); | ||
@@ -289,0 +292,0 @@ }; |
{ | ||
"name": "backtrace-service", | ||
"version": "1.2.17", | ||
"version": "1.2.18", | ||
"description": "Common tools for Backtrace Node services", | ||
@@ -5,0 +5,0 @@ "author": "Backtrace", |
@@ -207,6 +207,3 @@ import axios from 'axios'; | ||
} catch (err) { | ||
this.log( | ||
'error', | ||
`Cannot login to coronerd. Reason ${JSON.stringify(err)}`, | ||
); | ||
this.log('error', `Cannot login to coronerd. Reason ${err.message}`); | ||
return undefined; | ||
@@ -278,2 +275,5 @@ } | ||
private sanitizeHeader(value: string) { | ||
if (!value) { | ||
return ''; | ||
} | ||
return value.replace(/[^a-z0-9A-Z?!]/gi, ''); | ||
@@ -280,0 +280,0 @@ } |
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
97543
1675