@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.
- package/dist/components/init/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
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("
|
|
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("
|
|
19059
|
+
const _json = localStorage.getItem("app_config_setting");
|
|
19060
19060
|
try {
|
|
19061
19061
|
_ = JSON.parse(_json ?? '{}');
|
|
19062
19062
|
}
|