@5minds/processcube_engine_client
Advanced tools
Comparing version 5.1.5 to 5.1.6
@@ -12,3 +12,4 @@ import { Identity } from '@5minds/processcube_engine_sdk'; | ||
private getAuthorityUrlFromEngineUrl; | ||
private ensureEndsWithoutSlash; | ||
private hash; | ||
} |
@@ -60,3 +60,3 @@ "use strict"; | ||
if (config.authorityUrl) { | ||
return config.authorityUrl; | ||
return this.ensureEndsWithoutSlash(this.config.authorityUrl); | ||
} | ||
@@ -72,3 +72,3 @@ if (config.engineUrl) { | ||
const authorityAddress = await (0, Retry_1.executeWithRetry)(async () => applicationInfoClient.getAuthorityAddress(), `${engineUrl} not available, retrying...`); | ||
return authorityAddress; | ||
return this.ensureEndsWithoutSlash(authorityAddress); | ||
} | ||
@@ -80,2 +80,5 @@ catch (err) { | ||
} | ||
ensureEndsWithoutSlash(url) { | ||
return url.replace(/(\/)$/, ''); | ||
} | ||
hash(str) { | ||
@@ -82,0 +85,0 @@ // djb2 constants |
@@ -7,3 +7,3 @@ { | ||
"name": "@5minds/processcube_engine_client", | ||
"version": "5.1.5", | ||
"version": "5.1.6", | ||
"description": "Contains a typescript based client for accessing the Engine.", | ||
@@ -10,0 +10,0 @@ "main": "dist/commonjs/index.js", |
Sorry, the diff of this file is not supported yet
354502
5066