@esvndev/es-react-config-setting 1.0.88 → 1.0.90

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.mjs CHANGED
@@ -16997,7 +16997,7 @@ const GetSettingConfigClient = async (filter, callback) => {
16997
16997
  StateId: '',
16998
16998
  Option: JSON.stringify({
16999
16999
  version: localStorage.getItem("app_config_setting_version"),
17000
- ...(filter ?? {})
17000
+ filter: { ...(filter ?? {}) }
17001
17001
  })
17002
17002
  };
17003
17003
  const options = {
@@ -17372,6 +17372,16 @@ const get_conf = (key, type) => {
17372
17372
  }
17373
17373
  return _;
17374
17374
  };
17375
+ //set parameter by key when call server ,
17376
+ const set_filter = (filter) => {
17377
+ try {
17378
+ VARIABLE_FRIVATE.FILTER_SETUP = filter;
17379
+ _FETCH_AND_UPDATE(VARIABLE_FRIVATE.FILTER_SETUP);
17380
+ }
17381
+ catch (ex) {
17382
+ console.log("Failed add filter to get setting:", filter);
17383
+ }
17384
+ };
17375
17385
  const _FETCH_AND_UPDATE = async (filter) => {
17376
17386
  await GetSettingConfigClient(filter, (data) => {
17377
17387
  try {
@@ -17414,5 +17424,5 @@ const _LOAD_ = (data) => {
17414
17424
 
17415
17425
  registerLicense('ORg4AjUWIQA/Gnt2VVhiQlFadVlJXmJWf1FpTGpQdk5yd19DaVZUTX1dQl9hSXlTckVmXHtfcHNVRGM=');
17416
17426
 
17417
- export { INIT_CONFIG_SETTING, SettingApp, get_conf };
17427
+ export { INIT_CONFIG_SETTING, SettingApp, get_conf, set_filter };
17418
17428
  //# sourceMappingURL=index.mjs.map