backtrace-service
Advanced tools
Comparing version 1.2.5 to 1.2.6
@@ -174,2 +174,5 @@ "use strict"; | ||
case 0: | ||
if (!coronerdUrl) { | ||
throw new Error('CoronerdUrl is undefined or empty string'); | ||
} | ||
prefix = coronerdUrl.endsWith('/') ? '' : '/'; | ||
@@ -277,3 +280,3 @@ protocol = coronerdUrl.startsWith('http') ? '' : 'http://'; | ||
}; | ||
if (!data.url.startsWith('http')) { | ||
if (data.url && !data.url.startsWith('http')) { | ||
data.url = "http://" + data.url; | ||
@@ -280,0 +283,0 @@ } |
{ | ||
"name": "backtrace-service", | ||
"version": "1.2.5", | ||
"version": "1.2.6", | ||
"description": "Common tools for Backtrace Node services", | ||
@@ -5,0 +5,0 @@ "author": "Backtrace", |
@@ -167,2 +167,5 @@ import axios from 'axios'; | ||
): Promise<IServerConfiguration | undefined> { | ||
if (!coronerdUrl) { | ||
throw new Error('CoronerdUrl is undefined or empty string'); | ||
} | ||
const prefix = coronerdUrl.endsWith('/') ? '' : '/'; | ||
@@ -255,3 +258,3 @@ const protocol = coronerdUrl.startsWith('http') ? '' : 'http://'; | ||
}; | ||
if (!data.url.startsWith('http')) { | ||
if (data.url && !data.url.startsWith('http')) { | ||
data.url = `http://${data.url}`; | ||
@@ -258,0 +261,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
86915
1440