@sap-ux/preview-middleware 0.13.49 → 0.13.51

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.
Files changed (2) hide show
  1. package/dist/base/flp.js +2 -2
  2. package/package.json +3 -3
package/dist/base/flp.js CHANGED
@@ -348,7 +348,7 @@ class FlpSandbox {
348
348
  yield this.onChangeRequest('read', change, fs, this.logger);
349
349
  }
350
350
  }
351
- res.status(200).contentType('application/json').send(changes);
351
+ this.sendResponse(res, 'application/json', 200, JSON.stringify(changes));
352
352
  })));
353
353
  this.router.post(api, ((req, res) => __awaiter(this, void 0, void 0, function* () {
354
354
  try {
@@ -358,7 +358,7 @@ class FlpSandbox {
358
358
  }
359
359
  const { success, message } = (0, flex_1.writeChange)(change, this.utils.getProject().getSourcePath(), fs, this.logger);
360
360
  if (success) {
361
- fs.commit(() => res.status(200).send(message));
361
+ fs.commit(() => this.sendResponse(res, 'text/plain', 200, message !== null && message !== void 0 ? message : ''));
362
362
  }
363
363
  else {
364
364
  this.sendResponse(res, 'text/plain', 400, 'INVALID_DATA');
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "bugs": {
10
10
  "url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Apreview-middleware"
11
11
  },
12
- "version": "0.13.49",
12
+ "version": "0.13.51",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",
@@ -27,7 +27,7 @@
27
27
  "mem-fs-editor": "9.4.0",
28
28
  "@sap-ux/logger": "0.5.1",
29
29
  "@sap-ux/btp-utils": "0.14.4",
30
- "@sap-ux/adp-tooling": "0.10.11",
30
+ "@sap-ux/adp-tooling": "0.10.12",
31
31
  "@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.4.23",
32
32
  "@sap-ux/project-access": "1.20.1"
33
33
  },
@@ -46,7 +46,7 @@
46
46
  "@sap-ux-private/playwright": "0.0.3",
47
47
  "dotenv": "16.3.1",
48
48
  "@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.9.14",
49
- "@sap-ux/axios-extension": "1.12.5",
49
+ "@sap-ux/axios-extension": "1.12.6",
50
50
  "@sap-ux/store": "0.5.0",
51
51
  "@sap-ux/ui5-info": "0.5.0",
52
52
  "@sap-ux/i18n": "0.0.6"