@sap-ux/preview-middleware 0.11.12 → 0.11.13

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.
@@ -158,6 +158,7 @@ sap.ui.define(["sap/m/MessageToast", "sap/ui/core/library", "sap/ui/model/json/J
158
158
  };
159
159
  const service = await this.rta.getService('controllerExtension');
160
160
  const change = await service.add(controllerRef.codeRef, controllerRef.viewId);
161
+ change.creation = new Date().toISOString();
161
162
  await writeChange(change);
162
163
  MessageToast.show(`Controller extension with name '${controllerName}' was created.`);
163
164
  } catch (e) {
@@ -37,7 +37,7 @@ import {
37
37
  import BaseDialog from './BaseDialog.controller';
38
38
 
39
39
  interface ControllerExtensionService {
40
- add: (codeRef: string, viewId: string) => Promise<unknown>;
40
+ add: (codeRef: string, viewId: string) => Promise<{ creation: string }>;
41
41
  }
42
42
 
43
43
  interface ControllerInfo {
@@ -266,6 +266,7 @@ export default class ControllerExtension extends BaseDialog {
266
266
  const service = await this.rta.getService<ControllerExtensionService>('controllerExtension');
267
267
 
268
268
  const change = await service.add(controllerRef.codeRef, controllerRef.viewId);
269
+ change.creation = new Date().toISOString();
269
270
 
270
271
  await writeChange(change);
271
272
  MessageToast.show(`Controller extension with name '${controllerName}' was created.`);
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.11.12",
12
+ "version": "0.11.13",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",
@@ -24,8 +24,8 @@
24
24
  "dependencies": {
25
25
  "ejs": "3.1.9",
26
26
  "@sap-ux/logger": "0.4.0",
27
- "@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.4.5",
28
- "@sap-ux/adp-tooling": "0.7.2"
27
+ "@sap-ux/adp-tooling": "0.7.2",
28
+ "@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.4.5"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/ejs": "3.1.2",
@@ -36,9 +36,9 @@
36
36
  "npm-run-all": "4.1.5",
37
37
  "nock": "13.2.1",
38
38
  "supertest": "6.3.3",
39
- "@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.8.7",
40
- "@sap-ux/project-access": "1.16.0",
41
- "@sap-ux/store": "0.4.0"
39
+ "@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.8.8",
40
+ "@sap-ux/store": "0.4.0",
41
+ "@sap-ux/project-access": "1.16.0"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "express": "4"