@scayle/storefront-nuxt 8.12.0 → 8.12.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/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
- "version": "8.12.0",
3
+ "version": "8.12.2",
4
4
  "configKey": "storefront",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.9.0"
package/dist/module.mjs CHANGED
@@ -53,7 +53,7 @@ export default {
53
53
  }`;
54
54
  }
55
55
  const PACKAGE_NAME = "@scayle/storefront-nuxt";
56
- const PACKAGE_VERSION = "8.12.0";
56
+ const PACKAGE_VERSION = "8.12.2";
57
57
  const logger = createConsola({
58
58
  fancy: true,
59
59
  formatOptions: {
@@ -153,34 +153,34 @@ export default defineEventHandler(async (event) => {
153
153
  if (path === `${$storefrontConfig.apiBasePath ?? "/api"}/up`) {
154
154
  return;
155
155
  }
156
- await tracer.startActiveSpan(
157
- `storefront-nuxt.middleware/bootstrap`,
158
- {
159
- attributes: {
160
- path,
161
- originalPath
162
- }
163
- },
164
- async (span) => {
165
- try {
166
- const $shopConfig = getCurrentShopConfigForRequest(
167
- event,
168
- $storefrontConfig,
169
- config.app
170
- );
171
- if (!$shopConfig) {
172
- event.context.$log.debug(
173
- "Could not find shop config for this request",
174
- path
175
- );
176
- return;
156
+ const $shopConfig = getCurrentShopConfigForRequest(
157
+ event,
158
+ $storefrontConfig,
159
+ config.app
160
+ );
161
+ if (!$shopConfig) {
162
+ event.context.$log.debug(
163
+ "Could not find shop config for this request",
164
+ path
165
+ );
166
+ return;
167
+ }
168
+ const apiBasePath = getApiBasePath(
169
+ $storefrontConfig,
170
+ config.app.baseURL
171
+ );
172
+ if (!event.context.$rpcContext) {
173
+ event.context.$log.debug("Bootstrapping request: " + path);
174
+ await tracer.startActiveSpan(
175
+ `storefront-nuxt.middleware/bootstrap`,
176
+ {
177
+ attributes: {
178
+ path,
179
+ originalPath
177
180
  }
178
- const apiBasePath = getApiBasePath(
179
- $storefrontConfig,
180
- config.app.baseURL
181
- );
182
- if (!event.context.$rpcContext) {
183
- event.context.$log.debug("Bootstrapping request: " + path);
181
+ },
182
+ async (span) => {
183
+ try {
184
184
  await bootstrap(
185
185
  event,
186
186
  $shopConfig,
@@ -188,25 +188,27 @@ export default defineEventHandler(async (event) => {
188
188
  apiBasePath,
189
189
  config
190
190
  );
191
+ } catch (e) {
192
+ span.setStatus({ code: SpanStatusCode.ERROR });
193
+ if (e instanceof Error) {
194
+ event.context.$log.error(e);
195
+ span.recordException(e);
196
+ }
197
+ span.end();
198
+ throw e;
191
199
  }
192
- if ($storefrontConfig.redirects?.enabled && !path.startsWith(apiBasePath) && originalPath !== joinURL(config.app.baseURL, "/__nuxt_error")) {
193
- await tracer.startActiveSpan(
194
- `storefront-nuxt.middleware/redirects`,
195
- {},
196
- async (innerSpan) => {
197
- await useRedirects(event);
198
- innerSpan.end();
199
- }
200
- );
201
- }
202
- } catch (e) {
203
- console.error(e);
204
- span.setStatus({ code: SpanStatusCode.ERROR });
205
- if (e instanceof Error) {
206
- span.recordException(e);
207
- }
200
+ span.end();
208
201
  }
209
- span.end();
210
- }
211
- );
202
+ );
203
+ }
204
+ if ($storefrontConfig.redirects?.enabled && !path.startsWith(apiBasePath) && originalPath !== joinURL(config.app.baseURL, "/__nuxt_error")) {
205
+ await tracer.startActiveSpan(
206
+ `storefront-nuxt.middleware/redirects`,
207
+ {},
208
+ async (innerSpan) => {
209
+ await useRedirects(event);
210
+ innerSpan.end();
211
+ }
212
+ );
213
+ }
212
214
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
3
  "type": "module",
4
- "version": "8.12.0",
4
+ "version": "8.12.2",
5
5
  "description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
6
6
  "author": "SCAYLE Commerce Engine",
7
7
  "license": "MIT",
@@ -55,6 +55,9 @@
55
55
  "types": "./dist/index.d.ts",
56
56
  "files": [
57
57
  "CHANGELOG.md",
58
+ "CHANGELOG-V7.md",
59
+ "LICENSE",
60
+ "README.md",
58
61
  "dist"
59
62
  ],
60
63
  "engines": {
@@ -78,7 +81,7 @@
78
81
  "dependencies": {
79
82
  "@opentelemetry/api": "^1.9.0",
80
83
  "@scayle/h3-session": "0.6.0",
81
- "@scayle/storefront-core": "8.14.0",
84
+ "@scayle/storefront-core": "8.14.2",
82
85
  "@scayle/unstorage-compression-driver": "^0.2.4",
83
86
  "@vercel/nft": "0.29.2",
84
87
  "@vueuse/core": "13.0.0",
@@ -107,14 +110,14 @@
107
110
  "@scayle/eslint-plugin-vue-composable": "0.2.1",
108
111
  "@scayle/unstorage-scayle-kv-driver": "0.1.1",
109
112
  "@types/node": "22.13.10",
110
- "dprint": "0.49.0",
113
+ "dprint": "0.49.1",
111
114
  "eslint-formatter-gitlab": "5.1.0",
112
115
  "eslint": "9.22.0",
113
116
  "fishery": "2.2.3",
114
117
  "h3": "1.15.0",
115
118
  "nitropack": "2.9.7",
116
119
  "node-mocks-http": "1.16.2",
117
- "nuxi": "3.22.5",
120
+ "nuxi": "3.23.1",
118
121
  "nuxt": "3.15.4",
119
122
  "publint": "0.2.12",
120
123
  "typescript": "5.8.2",