@esvndev/es-react-config-setting 1.0.71 → 1.0.72

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.
@@ -1,4 +1,4 @@
1
1
  import { key_format } from "../../shared/type";
2
2
  export declare const GLOBAL_WINDOW_VARIABLE: Record<string, any>;
3
3
  export declare const INIT_CONFIG_SETTING: () => void;
4
- export declare const key_conf: (key: string, type?: key_format) => any;
4
+ export declare const get_conf: (key: string, type?: key_format) => any;
package/dist/index.js CHANGED
@@ -19042,7 +19042,7 @@ const _FETCH_AND_UPDATE = () => {
19042
19042
  TIME_RELOAD = (data?.timeupdate < 5000 || data?.timeupdate > 300000) ? 5000 : data?.timeupdate;
19043
19043
  }
19044
19044
  if (data?.status && data?.isupdate && data?.data) {
19045
- localStorage.setItem("init_config_setting", JSON.stringify(data.data));
19045
+ localStorage.setItem("app_config_setting", JSON.stringify(data.data));
19046
19046
  localStorage.setItem("app_config_setting_version", data.version);
19047
19047
  _LOAD_(data.data);
19048
19048
  }
@@ -19056,7 +19056,7 @@ const _FETCH_AND_UPDATE = () => {
19056
19056
  const _LOAD_ = (data) => {
19057
19057
  let _ = {};
19058
19058
  if (!data) {
19059
- const _json = localStorage.getItem("init_config_setting");
19059
+ const _json = localStorage.getItem("app_config_setting");
19060
19060
  try {
19061
19061
  _ = JSON.parse(_json ?? '{}');
19062
19062
  }