@nsshunt/stsuxvue 1.0.85 → 1.0.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/stsuxvue.cjs
CHANGED
|
@@ -13059,14 +13059,17 @@ class RESTClientSubscriber {
|
|
|
13059
13059
|
}
|
|
13060
13060
|
#GetData = async (subscription) => {
|
|
13061
13061
|
try {
|
|
13062
|
-
this.#LogDebugMessage(chalk.yellow(`RESTClientSubscriber:#GetData(): subscriptionKey: [${subscription.subscriptionKey
|
|
13062
|
+
this.#LogDebugMessage(chalk.yellow(`RESTClientSubscriber:#GetData(): subscriptionKey: [${JSON.stringify(subscription.subscriptionKey)}`));
|
|
13063
13063
|
const retVal = await this.#InvokeRESTAPI(subscription);
|
|
13064
13064
|
if (retVal) {
|
|
13065
13065
|
const payload = {
|
|
13066
13066
|
subscriptionKey: subscription.subscriptionKey,
|
|
13067
13067
|
data: retVal
|
|
13068
13068
|
};
|
|
13069
|
+
this.#LogDebugMessage(chalk.yellow(`RESTClientSubscriber:#GetData(): data returned: subscriptionKey: [${JSON.stringify(subscription.subscriptionKey)}, retVal: [${JSON.stringify(retVal)}]`));
|
|
13069
13070
|
subscription.cb(payload);
|
|
13071
|
+
} else {
|
|
13072
|
+
this.#LogDebugMessage(chalk.yellow(`RESTClientSubscriber:#GetData(): No data returned: subscriptionKey: [${JSON.stringify(subscription.subscriptionKey)}`));
|
|
13070
13073
|
}
|
|
13071
13074
|
} catch (error) {
|
|
13072
13075
|
this.#LogErrorMessage(chalk.red(`RESTClientSubscriber:#AddKeepAlive(): Error response: [${JSON.stringify(error)}]`));
|