flowrix 1.0.1-beta.133 → 1.0.1-beta.134

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/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "flowrix",
3
3
  "configKey": "flowrix",
4
- "version": "1.0.1-beta.133",
4
+ "version": "1.0.1-beta.134",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -2,7 +2,7 @@
2
2
  import { useRoute } from "vue-router";
3
3
  import { defineAsyncComponent, ref } from "vue";
4
4
  const route = useRoute();
5
- const slug = route.params.slug || "";
5
+ const slug = route.params.slug || "home";
6
6
  const { data, error, execute, refresh } = await useFetch(`/api/v2/${slug}`);
7
7
  const redirectPage = (async (data2) => {
8
8
  return navigateTo(`/${data2.target}`, { redirectCode: data2.status_code || 404 });
@@ -31,9 +31,8 @@ const NotFoundComponent = defineAsyncComponent(async () => {
31
31
  </script>
32
32
 
33
33
  <template>
34
- {{ data }}
34
+ {{ data.data.type }}
35
35
  <template v-if="data">
36
- {{ data }}
37
36
  </template>
38
37
  <template v-else>
39
38
  <ClientOnly>
@@ -22,10 +22,12 @@ export default defineEventHandler(async (event) => {
22
22
  }
23
23
  try {
24
24
  const config = useRuntimeConfig();
25
+ const envData = process.env;
25
26
  const rawCookies = event.req.headers.cookie || "";
26
27
  const apiConfig = {
27
28
  ...config,
28
- cookies: rawCookies
29
+ cookies: rawCookies,
30
+ env: envData
29
31
  };
30
32
  return config;
31
33
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowrix",
3
- "version": "1.0.1-beta.133",
3
+ "version": "1.0.1-beta.134",
4
4
  "description": "Plug-and-play Nuxt eCommerce cart powered by FLOWRiX. Subscription required.",
5
5
  "license": "MIT",
6
6
  "type": "module",