sixseconds-modules 1.6.37 → 1.6.39

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.
@@ -7,3 +7,4 @@ export declare const env: Readonly<{
7
7
  VITE_MODULES_CERT_FRONTEND_BASE_URL: string;
8
8
  VITE_MODULES_SSO_BACKEND_BASE_URL: string;
9
9
  }>;
10
+ export declare const DEV: boolean;
package/dist/index.cjs.js CHANGED
@@ -2663,6 +2663,7 @@ const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "devel
2663
2663
  const env = createEnv({
2664
2664
  runtimeEnv: __vite_import_meta_env__
2665
2665
  });
2666
+ const DEV = process.env.NODE_ENV === "development";
2666
2667
  const SERVER_STATUS = Object.freeze({
2667
2668
  success: "success",
2668
2669
  failure: "failure"
@@ -2834,9 +2835,9 @@ const handleRedirection = (type, source) => {
2834
2835
  };
2835
2836
  const CookiesUtil = {
2836
2837
  set: (name, val) => {
2837
- Cookies.set(name, val, {
2838
+ Cookies.set(name, JSON.stringify(val), {
2838
2839
  path: "/",
2839
- domain: ".6seconds.org",
2840
+ domain: DEV ? "localhost" : ".6seconds.org",
2840
2841
  secure: true,
2841
2842
  sameSite: "None",
2842
2843
  expires: 7