sixseconds-modules 1.6.38 → 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.
- package/dist/constants/env.d.ts +1 -0
- package/dist/index.cjs.js +2 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +2 -1
- package/dist/index.es.js.map +1 -1
- 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"
|
|
@@ -2818,7 +2819,7 @@ const CookiesUtil = {
|
|
|
2818
2819
|
set: (name, val) => {
|
|
2819
2820
|
Cookies.set(name, JSON.stringify(val), {
|
|
2820
2821
|
path: "/",
|
|
2821
|
-
domain: ".6seconds.org",
|
|
2822
|
+
domain: DEV ? "localhost" : ".6seconds.org",
|
|
2822
2823
|
secure: true,
|
|
2823
2824
|
sameSite: "None",
|
|
2824
2825
|
expires: 7
|