@scayle/storefront-nuxt 7.56.0 → 7.57.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,22 @@
1
1
  # @scayle/storefront-nuxt
2
2
 
3
+ ## 7.57.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Update to `nuxt@3.10.2`
8
+
9
+ ## 7.57.0
10
+
11
+ ### Minor Changes
12
+
13
+ - Strip sensitive data from log messages
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+ - @scayle/storefront-core@7.41.0
19
+
3
20
  ## 7.56.0
4
21
 
5
22
  ### Minor Changes
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2023 SCAYLE GmbH
3
+ Copyright (c) 2024 SCAYLE GmbH
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/dist/module.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.9.0"
6
6
  },
7
- "version": "7.55.3"
7
+ "version": "7.57.0"
8
8
  }
@@ -1,11 +1,13 @@
1
1
  import { defineEventHandler, readBody, createError } from "h3";
2
+ import { purifySensitiveData } from "@scayle/storefront-core";
2
3
  import { handler } from "../handler.mjs";
3
4
  import { resolveError } from "../error/handler.mjs";
4
5
  export default defineEventHandler(async (event) => {
5
6
  const pathComponents = event.path.split("?")[0].split("/");
6
7
  const method = pathComponents[pathComponents.length - 1];
7
8
  const body = await readBody(event);
8
- event.context.$rpcContext.log.space("sfc").debug(`RPC Handler: ${method}, Payload: ${JSON.stringify(body?.payload)}`);
9
+ const payloadToBeLogged = JSON.stringify(purifySensitiveData(body?.payload));
10
+ event.context.$rpcContext.log.space("sfc").debug(`RPC Handler: ${method}, Payload: ${payloadToBeLogged}`);
9
11
  try {
10
12
  return await handler(method, body?.payload, event.context.$rpcContext);
11
13
  } catch (e) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
3
  "type": "module",
4
- "version": "7.56.0",
4
+ "version": "7.57.1",
5
5
  "description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
6
6
  "author": "SCAYLE Commerce Engine",
7
7
  "license": "MIT",
@@ -60,13 +60,13 @@
60
60
  "test:watch": "vitest watch"
61
61
  },
62
62
  "dependencies": {
63
- "@nuxt/kit": "3.10.1",
63
+ "@nuxt/kit": "3.10.2",
64
64
  "@scayle/h3-session": "0.3.5",
65
- "@scayle/storefront-core": "7.40.1",
65
+ "@scayle/storefront-core": "7.41.0",
66
66
  "@scayle/unstorage-compression-driver": "0.1.1",
67
67
  "@vueuse/core": "10.7.2",
68
68
  "consola": "3.2.3",
69
- "core-js": "3.35.1",
69
+ "core-js": "3.36.0",
70
70
  "defu": "6.1.4",
71
71
  "h3": "1.10.1",
72
72
  "jose": "^5.2.0",
@@ -81,15 +81,15 @@
81
81
  },
82
82
  "devDependencies": {
83
83
  "@nuxt/module-builder": "0.5.5",
84
- "@nuxt/schema": "3.10.1",
84
+ "@nuxt/schema": "3.10.2",
85
85
  "@nuxt/test-utils": "3.11.0",
86
86
  "@scayle/eslint-config-storefront": "3.2.6",
87
87
  "@scayle/prettier-config-storefront": "2.0.2",
88
- "@types/node": "20.11.17",
88
+ "@types/node": "20.11.18",
89
89
  "eslint": "8.56.0",
90
90
  "eslint-formatter-gitlab": "5.1.0",
91
91
  "node-mocks-http": "1.14.1",
92
- "nuxt": "3.10.1",
92
+ "nuxt": "3.10.2",
93
93
  "prettier": "3.0.0",
94
94
  "publint": "0.2.7",
95
95
  "vitest": "1.2.2",
@@ -111,8 +111,8 @@
111
111
  "@vue/runtime-core": "3.4.19",
112
112
  "@vue/runtime-dom": "3.4.19",
113
113
  "@vue/server-renderer": "3.4.19",
114
- "@nuxt/kit": "3.10.1",
115
- "@nuxt/schema": "3.10.1"
114
+ "@nuxt/kit": "3.10.2",
115
+ "@nuxt/schema": "3.10.2"
116
116
  },
117
117
  "volta": {
118
118
  "node": "20.11.0"