@smartico/public-api 0.0.238 → 0.0.239

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/index.js CHANGED
@@ -3003,7 +3003,8 @@ var SmarticoAPI = /*#__PURE__*/function () {
3003
3003
  SmarticoAPI.getAvatarUrl = function getAvatarUrl(label_api_key) {
3004
3004
  var envId = SmarticoAPI.getEnvDnsSuffix(label_api_key);
3005
3005
  var avatarUrl = AVATAR_DOMAIN.replace('{ENV_ID}', SmarticoAPI.getEnvDnsSuffix(label_api_key));
3006
- if (envId === '4') {
3006
+ var envs = ['4', '5', '6', '7'];
3007
+ if (envs.includes(envId)) {
3007
3008
  return SmarticoAPI.replaceSmrDomainsWithCloudfront(avatarUrl);
3008
3009
  } else {
3009
3010
  return avatarUrl;
@@ -3068,7 +3069,8 @@ var SmarticoAPI = /*#__PURE__*/function () {
3068
3069
  return Promise.resolve(_this.messageSender(message, _this.publicUrl, expectCID)).then(function (_this$messageSender) {
3069
3070
  result = _this$messageSender;
3070
3071
  var timeEnd = new Date().getTime();
3071
- if (SmarticoAPI.getEnvDnsSuffix(_this.label_api_key) === '4' && result) {
3072
+ var envs = ['4', '5', '6', '7'];
3073
+ if (envs.includes(SmarticoAPI.getEnvDnsSuffix(_this.label_api_key)) && result) {
3072
3074
  result = SmarticoAPI.replaceSmrDomainsWithCloudfront(result);
3073
3075
  }
3074
3076
  if (_this.logHTTPTiming) {