tnx-shared 5.3.160 → 5.3.162

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.
@@ -3851,6 +3851,14 @@ class CommonService {
3851
3851
  }
3852
3852
  return control;
3853
3853
  }
3854
+ tryParseJson(data) {
3855
+ try {
3856
+ return { valid: true, value: JSON.parse(data) };
3857
+ }
3858
+ catch (e) {
3859
+ return { valid: false, value: data };
3860
+ }
3861
+ }
3854
3862
  convertStringToUnSign(str) {
3855
3863
  if (!str)
3856
3864
  return '';
@@ -24345,7 +24353,7 @@ var ENUM_DON_VI_HANH_CHINH;
24345
24353
 
24346
24354
  class AddressService extends BaseService {
24347
24355
  constructor(http, injector, _moduleConfigService) {
24348
- super(http, injector, `${_moduleConfigService.getConfig().environment.apiDomain.commonMasterDataV5Endpoint}/${_moduleConfigService.getConfig().environment.apiVersion}/Address`);
24356
+ super(http, injector, `${_moduleConfigService.getConfig().environment.apiDomain.commonMasterDataEndpoint}/${_moduleConfigService.getConfig().environment.apiVersion}/Address`);
24349
24357
  this.endPoint = _moduleConfigService.getConfig().environment.apiDomain.commonMasterDataV5Endpoint;
24350
24358
  }
24351
24359
  }