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.
- package/bundles/tnx-shared.umd.js +9 -1
- package/bundles/tnx-shared.umd.js.map +1 -1
- package/bundles/tnx-shared.umd.min.js +1 -1
- package/bundles/tnx-shared.umd.min.js.map +1 -1
- package/esm2015/components/address/services/address.service.js +2 -2
- package/esm2015/services/common.service.js +9 -1
- package/fesm2015/tnx-shared.js +9 -1
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/services/common.service.d.ts +4 -0
- package/services/common.service.d.ts.map +1 -1
- package/tnx-shared.metadata.json +1 -1
|
@@ -4729,6 +4729,14 @@
|
|
|
4729
4729
|
}
|
|
4730
4730
|
return control;
|
|
4731
4731
|
};
|
|
4732
|
+
CommonService.prototype.tryParseJson = function (data) {
|
|
4733
|
+
try {
|
|
4734
|
+
return { valid: true, value: JSON.parse(data) };
|
|
4735
|
+
}
|
|
4736
|
+
catch (e) {
|
|
4737
|
+
return { valid: false, value: data };
|
|
4738
|
+
}
|
|
4739
|
+
};
|
|
4732
4740
|
CommonService.prototype.convertStringToUnSign = function (str) {
|
|
4733
4741
|
if (!str)
|
|
4734
4742
|
return '';
|
|
@@ -28442,7 +28450,7 @@
|
|
|
28442
28450
|
var AddressService = /** @class */ (function (_super) {
|
|
28443
28451
|
__extends(AddressService, _super);
|
|
28444
28452
|
function AddressService(http, injector, _moduleConfigService) {
|
|
28445
|
-
var _this = _super.call(this, http, injector, _moduleConfigService.getConfig().environment.apiDomain.
|
|
28453
|
+
var _this = _super.call(this, http, injector, _moduleConfigService.getConfig().environment.apiDomain.commonMasterDataEndpoint + "/" + _moduleConfigService.getConfig().environment.apiVersion + "/Address") || this;
|
|
28446
28454
|
_this.endPoint = _moduleConfigService.getConfig().environment.apiDomain.commonMasterDataV5Endpoint;
|
|
28447
28455
|
return _this;
|
|
28448
28456
|
}
|