@scayle/storefront-nuxt 7.44.0 → 7.44.1

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.44.1
4
+
5
+ ### Patch Changes
6
+
7
+ - The api/up route should not be bootstrapped with the context
8
+
3
9
  ## 7.44.0
4
10
 
5
11
  ### Minor Changes
package/dist/module.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.7.0"
6
6
  },
7
- "version": "7.43.1"
7
+ "version": "7.44.0"
8
8
  }
@@ -125,11 +125,11 @@ export default defineEventHandler(async (event) => {
125
125
  }
126
126
  const config = useRuntimeConfig();
127
127
  const $storefrontConfig = config.storefront;
128
- const $shopConfig = getShopConfig(event, config);
129
- const apiBasePath = ($storefrontConfig.shopSelector === "path" && $shopConfig.path ? `/${$shopConfig.path}` : "") + ($shopConfig.apiBasePath || $storefrontConfig.apiBasePath || "/api");
130
- if (url.pathname === `${apiBasePath}/up`) {
128
+ if (url.pathname === `${$storefrontConfig.apiBasePath ?? "/api"}/up`) {
131
129
  return;
132
130
  }
131
+ const $shopConfig = getShopConfig(event, config);
132
+ const apiBasePath = ($storefrontConfig.shopSelector === "path" && $shopConfig.path ? `/${$shopConfig.path}` : "") + ($shopConfig.apiBasePath || $storefrontConfig.apiBasePath || "/api");
133
133
  const log = createLog(
134
134
  createConsola,
135
135
  $storefrontConfig.log.name,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
3
  "type": "module",
4
- "version": "7.44.0",
4
+ "version": "7.44.1",
5
5
  "description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
6
6
  "author": "SCAYLE Commerce Engine",
7
7
  "license": "MIT",
@@ -85,8 +85,8 @@
85
85
  "@nuxt/test-utils": "3.8.1",
86
86
  "@scayle/eslint-config-storefront": "3.2.6",
87
87
  "@scayle/prettier-config-storefront": "2.0.2",
88
- "@types/node": "20.10.4",
89
- "eslint": "8.55.0",
88
+ "@types/node": "20.10.5",
89
+ "eslint": "8.56.0",
90
90
  "eslint-formatter-gitlab": "5.1.0",
91
91
  "node-mocks-http": "1.14.0",
92
92
  "nuxt": "3.8.2",