@scayle/storefront-nuxt 7.56.0 → 7.57.0

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,16 @@
1
1
  # @scayle/storefront-nuxt
2
2
 
3
+ ## 7.57.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Strip sensitive data from log messages
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+ - @scayle/storefront-core@7.41.0
13
+
3
14
  ## 7.56.0
4
15
 
5
16
  ### Minor Changes
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.56.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.0",
5
5
  "description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
6
6
  "author": "SCAYLE Commerce Engine",
7
7
  "license": "MIT",
@@ -62,7 +62,7 @@
62
62
  "dependencies": {
63
63
  "@nuxt/kit": "3.10.1",
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",