dispatch-node-sdk
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -229,3 +229,4 @@ 'use strict'; | ||
value: function determineAuxiliaryAPIHost(serviceName) { | ||
return serviceMap[serviceName] ? serviceMap[serviceName][this.host] : this.host.replace('api', serviceName); | ||
var replaceValue = this.host.includes('wfm') ? 'wfm-api' : 'api'; | ||
return serviceMap[serviceName] ? serviceMap[serviceName][this.host] : this.host.replace(replaceValue, serviceName); | ||
} | ||
@@ -232,0 +233,0 @@ |
@@ -134,3 +134,4 @@ import * as endpoints from './endpoints'; | ||
determineAuxiliaryAPIHost(serviceName) { | ||
return serviceMap[serviceName] ? serviceMap[serviceName][this.host] : this.host.replace('api', serviceName); | ||
const replaceValue = this.host.includes('wfm') ? 'wfm-api' : 'api'; | ||
return serviceMap[serviceName] ? serviceMap[serviceName][this.host] : this.host.replace(replaceValue, serviceName); | ||
} | ||
@@ -137,0 +138,0 @@ |
{ | ||
"name": "dispatch-node-sdk", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "High- and low-level libraries for interacting with the Dispatch API", | ||
@@ -5,0 +5,0 @@ "main": "dist/lib/index.js", |
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
262441
6635