sixseconds-modules 1.6.38 → 1.6.41
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/constants/env.d.ts +1 -0
- package/dist/index.cjs.js +6 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +6 -2
- package/dist/index.es.js.map +1 -1
- package/dist/utils/common.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2645,6 +2645,7 @@ const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "devel
|
|
|
2645
2645
|
const env = createEnv({
|
|
2646
2646
|
runtimeEnv: __vite_import_meta_env__
|
|
2647
2647
|
});
|
|
2648
|
+
const DEV = process.env.NODE_ENV === "development";
|
|
2648
2649
|
const SERVER_STATUS = Object.freeze({
|
|
2649
2650
|
success: "success",
|
|
2650
2651
|
failure: "failure"
|
|
@@ -2815,10 +2816,13 @@ const handleRedirection = (type, source) => {
|
|
|
2815
2816
|
}
|
|
2816
2817
|
};
|
|
2817
2818
|
const CookiesUtil = {
|
|
2819
|
+
get: (name) => {
|
|
2820
|
+
return JSON.parse(Cookies.get(name) || "{}");
|
|
2821
|
+
},
|
|
2818
2822
|
set: (name, val) => {
|
|
2819
2823
|
Cookies.set(name, JSON.stringify(val), {
|
|
2820
2824
|
path: "/",
|
|
2821
|
-
domain: ".6seconds.org",
|
|
2825
|
+
domain: DEV ? "localhost" : ".6seconds.org",
|
|
2822
2826
|
secure: true,
|
|
2823
2827
|
sameSite: "None",
|
|
2824
2828
|
expires: 7
|
|
@@ -10748,7 +10752,7 @@ const IMAGES = {
|
|
|
10748
10752
|
Us
|
|
10749
10753
|
};
|
|
10750
10754
|
const PreviousLoginBanner = ({ t: t2, router }) => {
|
|
10751
|
-
const previousLoginDetails =
|
|
10755
|
+
const previousLoginDetails = CookiesUtil.get("previousLoginDetails") || {};
|
|
10752
10756
|
CookiesUtil.set("previousLoginDetails", previousLoginDetails);
|
|
10753
10757
|
const handleAutoLogin = async () => {
|
|
10754
10758
|
try {
|