@scayle/storefront-nuxt 7.42.1 → 7.42.2

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,11 @@
1
1
  # @scayle/storefront-nuxt
2
2
 
3
+ ## 7.42.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Ensure `useNuxtApp` is only called from a composable context in `useCategories`
8
+
3
9
  ## 7.42.1
4
10
 
5
11
  ### Patch Changes
package/dist/module.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.7.0"
6
6
  },
7
- "version": "7.42.0"
7
+ "version": "7.42.1"
8
8
  }
@@ -8,6 +8,7 @@ export async function useCategories({
8
8
  key = "useCategories"
9
9
  } = {}) {
10
10
  const currentShop = useCurrentShop();
11
+ const nuxtApp = useNuxtApp();
11
12
  const { data, fetching, fetch, error, status } = await useRpc(
12
13
  "getCategoriesByPath",
13
14
  key,
@@ -15,7 +16,7 @@ export async function useCategories({
15
16
  options
16
17
  );
17
18
  const getCategoryById = rpcCall(
18
- useNuxtApp(),
19
+ nuxtApp,
19
20
  "getCategoryById",
20
21
  currentShop.value ?? void 0
21
22
  );
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
3
  "type": "module",
4
- "version": "7.42.1",
4
+ "version": "7.42.2",
5
5
  "description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
6
6
  "author": "SCAYLE Commerce Engine",
7
7
  "license": "MIT",