@pinelab/vendure-plugin-sendcloud 1.2.4 → 1.2.5

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,9 @@
1
1
  # 1.2.4 (2024-06-13)
2
2
 
3
+ - Using util.inspect again to log the incoming webhook body
4
+
5
+ # 1.2.4 (2024-06-13)
6
+
3
7
  - Check if incoming request is a Buffer or already parsed by other middleware
4
8
 
5
9
  # 1.2.3 (2024-06-13)
@@ -19,6 +19,7 @@ const sendcloud_client_1 = require("./sendcloud.client");
19
19
  const core_1 = require("@vendure/core");
20
20
  const constants_1 = require("./constants");
21
21
  const sendcloud_types_1 = require("./types/sendcloud.types");
22
+ const util_1 = require("util");
22
23
  let SendcloudController = class SendcloudController {
23
24
  constructor(sendcloudService) {
24
25
  this.sendcloudService = sendcloudService;
@@ -35,7 +36,7 @@ let SendcloudController = class SendcloudController {
35
36
  body = JSON.parse(req.body.toString());
36
37
  }
37
38
  catch (e) {
38
- core_1.Logger.error(`Error parsing incoming webhook body: ${e?.message ?? e}`, constants_1.loggerCtx, req.body.toString());
39
+ core_1.Logger.error(`Error parsing incoming webhook body: ${e?.message ?? e}`, constants_1.loggerCtx, (0, util_1.inspect)(req.body));
39
40
  return;
40
41
  }
41
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pinelab/vendure-plugin-sendcloud",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "Vendure plugin for syncing orders with SendCloud",
5
5
  "author": "Martijn van de Brug <martijn@pinelab.studio>",
6
6
  "homepage": "https://pinelab-plugins.com/",
@@ -23,5 +23,5 @@
23
23
  "start": "yarn ts-node test/dev-server.ts",
24
24
  "lint": "echo 'No linting configured'"
25
25
  },
26
- "gitHead": "55ad85256aabbf322470155a78c517111e8c754c"
26
+ "gitHead": "9398a2fc872da969da4014c135e376ba9c697c30"
27
27
  }