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/constants/env.d.ts
CHANGED
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"
|
|
@@ -2836,7 +2837,7 @@ const CookiesUtil = {
|
|
|
2836
2837
|
set: (name, val) => {
|
|
2837
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
|