@goweekdays/layer-common 1.0.7 → 1.1.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @goweekdays/layer-common
2
2
 
3
+ ## 1.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 7e20715: Add APP and landPage variables to login redirect
8
+
9
+ ## 1.0.8
10
+
11
+ ### Patch Changes
12
+
13
+ - 54da80d: Fix useUtil function
14
+
3
15
  ## 1.0.7
4
16
 
5
17
  ### Patch Changes
@@ -48,6 +48,8 @@ export default function useLocal() {
48
48
  const pages = ref(0);
49
49
  const pageRange = ref("");
50
50
 
51
+ const landingPage = useCookie("landingPage", cookieConfig);
52
+
51
53
  return {
52
54
  cookieConfig,
53
55
  getUserFromCookie,
@@ -59,5 +61,6 @@ export default function useLocal() {
59
61
  page,
60
62
  pages,
61
63
  pageRange,
64
+ landingPage,
62
65
  };
63
66
  }
@@ -3,6 +3,7 @@ export default function useUtils() {
3
3
 
4
4
  const emailRule = (v: string): true | string => {
5
5
  const regex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
6
+ if(!v) return true;
6
7
  return regex.test(v) || "Please enter a valid email address";
7
8
  };
8
9
 
package/nuxt.config.ts CHANGED
@@ -15,6 +15,7 @@ export default defineNuxtConfig({
15
15
  secure: true,
16
16
  maxAge: 30 * 24 * 60 * 60,
17
17
  },
18
+ APP: (process.env.APP as string) ?? "app",
18
19
  APP_NAME: (process.env.APP_NAME as string) ?? "App",
19
20
  APP_NAME_ROUTE: (process.env.APP_NAME_ROUTE as string) ?? "index",
20
21
  S3_BUCKET_ENDPOINT: (process.env.S3_BUCKET_ENDPOINT as string) ?? "",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@goweekdays/layer-common",
3
3
  "license": "MIT",
4
4
  "type": "module",
5
- "version": "1.0.7",
5
+ "version": "1.1.0",
6
6
  "main": "./nuxt.config.ts",
7
7
  "publishConfig": {
8
8
  "access": "public"