flowrix 1.0.1-beta.69 → 1.0.1-beta.70

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.69",
4
+ "version": "1.0.1-beta.70",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -28,7 +28,7 @@ export default defineEventHandler(async (event) => {
28
28
  } catch (error) {
29
29
  throw createError({
30
30
  statusCode: 500,
31
- statusMessage: `Failed to fetch product for slug: ${slug}`,
31
+ statusMessage: `Failed to fetch countires `,
32
32
  data: error.message
33
33
  });
34
34
  }
@@ -4,5 +4,5 @@ export declare const useCountriesStore: import("pinia").StoreDefinition<"countri
4
4
  loading: boolean;
5
5
  error: string | null;
6
6
  }, {}, {
7
- getountries(): Promise<any>;
7
+ getCountries(): Promise<any>;
8
8
  }>;
@@ -1,5 +1,4 @@
1
1
  import { defineStore } from "pinia";
2
- import { $fetch } from "ofetch";
3
2
  export const useCountriesStore = defineStore("countries", {
4
3
  state: () => ({
5
4
  countries: [],
@@ -7,9 +6,9 @@ export const useCountriesStore = defineStore("countries", {
7
6
  error: null
8
7
  }),
9
8
  actions: {
10
- async getountries() {
11
- const apiUrl = `/api/countries`;
12
- const response = await $fetch(apiUrl);
9
+ async getCountries() {
10
+ const response = await $fetch("/api/countries");
11
+ this.countries = response;
13
12
  return response;
14
13
  }
15
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowrix",
3
- "version": "1.0.1-beta.69",
3
+ "version": "1.0.1-beta.70",
4
4
  "description": "Plug-and-play Nuxt eCommerce cart powered by FLOWRiX. Subscription required.",
5
5
  "license": "MIT",
6
6
  "type": "module",