@sap-ux/preview-middleware 0.11.12 → 0.11.14
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<
|
|
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
|
+
"version": "0.11.14",
|
|
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/
|
|
28
|
-
"@sap-ux/
|
|
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,8 +36,10 @@
|
|
|
36
36
|
"npm-run-all": "4.1.5",
|
|
37
37
|
"nock": "13.2.1",
|
|
38
38
|
"supertest": "6.3.3",
|
|
39
|
-
"@private/
|
|
40
|
-
"
|
|
39
|
+
"@sap-ux-private/playwright": "0.0.1",
|
|
40
|
+
"dotenv": "16.3.1",
|
|
41
|
+
"@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.8.8",
|
|
42
|
+
"@sap-ux/project-access": "1.16.1",
|
|
41
43
|
"@sap-ux/store": "0.4.0"
|
|
42
44
|
},
|
|
43
45
|
"peerDependencies": {
|
|
@@ -53,12 +55,15 @@
|
|
|
53
55
|
"build:middleware": "tsc --build",
|
|
54
56
|
"build:client": "pnpm -C ../preview-middleware-client run build && copyfiles --exclude **/*-dbg.js --up 4 \"./node_modules/@private/preview-middleware-client/dist/**/*\" \"./dist/client\"",
|
|
55
57
|
"watch": "tsc --watch",
|
|
56
|
-
"clean": "rimraf --glob dist test/test-output coverage *.tsbuildinfo",
|
|
58
|
+
"clean": "rimraf --glob dist test/test-output coverage *.tsbuildinfo playwright-report",
|
|
57
59
|
"format": "prettier --write '**/*.{js,json,ts,yaml,yml}' --ignore-path ../../.prettierignore",
|
|
58
60
|
"lint": "eslint . --ext .ts",
|
|
59
61
|
"lint:fix": "eslint . --ext .ts --fix",
|
|
60
62
|
"test": "jest --ci --forceExit --detectOpenHandles --colors",
|
|
61
63
|
"test-u": "jest --ci --forceExit --detectOpenHandles --colors -u",
|
|
64
|
+
"test:integration:clean": "rimraf --glob playwright-report",
|
|
65
|
+
"test:integration:run": "playwright test",
|
|
66
|
+
"test:integration": "npm-run-all -l -s test:integration:clean test:integration:run",
|
|
62
67
|
"link": "pnpm link --global",
|
|
63
68
|
"unlink": "pnpm unlink --global"
|
|
64
69
|
}
|