@smartico/public-api 0.0.228 → 0.0.230

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartico/public-api",
3
- "version": "0.0.228",
3
+ "version": "0.0.230",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -191,7 +191,7 @@ class SmarticoAPI {
191
191
  return ENV_ID;
192
192
  }
193
193
 
194
- private static replaceSmrDomainsWithCloudfront<T>(value: string | {[key: string]: any}): T {
194
+ public static replaceSmrDomainsWithCloudfront<T>(value: string | {[key: string]: any}): T {
195
195
  if (!value) {
196
196
  return value as T;
197
197
  }
@@ -268,7 +268,7 @@ class SmarticoAPI {
268
268
  result = await this.messageSender(message, this.publicUrl, expectCID);
269
269
  const timeEnd = new Date().getTime();
270
270
 
271
- if (SmarticoAPI.getEnvDnsSuffix(this.label_api_key) === 'a6e7ac26-c368-4892-9380-96e7ff82cf3e-4' && result) {
271
+ if (SmarticoAPI.getEnvDnsSuffix(this.label_api_key) === '4' && result) {
272
272
  result = SmarticoAPI.replaceSmrDomainsWithCloudfront(result);
273
273
  }
274
274