@sap-ux/preview-middleware 0.5.4 → 0.5.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/README.md +6 -8
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -18,8 +18,6 @@ It hosts a local Fiori launchpad based on your configuration as well as offers a
|
|
|
18
18
|
| `rta` | | | Optional configuration allowing to add mount points for runtime adaptation |
|
|
19
19
|
| `rta.layer` | `string` | `(calculated)` | Optional property for defining the runtime adaptation layer for changes (default is `CUSTOMER_BASE` or read from the project for adaptation projects) |
|
|
20
20
|
| `rta.editors` | `array` | `undefined` | Optional list of mount points for editing |
|
|
21
|
-
|
|
22
|
-
|
|
23
21
|
| `debug` | `boolean` | `false` | Enables debug output |
|
|
24
22
|
|
|
25
23
|
### `flp.apps`
|
|
@@ -44,7 +42,7 @@ Array of additional application configurations:
|
|
|
44
42
|
| Option | Type | Description |
|
|
45
43
|
| --------------- | -------------------| -----------------------------------------------------------------------------------------------|
|
|
46
44
|
| `path` | `string` mandatory | The mount point to be used for the editor. |
|
|
47
|
-
| `developerMode` | `boolean` optional | Enables/disables the runtime adaptation developer mode (only supported for adaptation projects |
|
|
45
|
+
| `developerMode` | `boolean` optional | Enables/disables the runtime adaptation developer mode (only supported for adaptation projects) |
|
|
48
46
|
|
|
49
47
|
|
|
50
48
|
## Usage
|
|
@@ -52,7 +50,7 @@ The middleware can be used without configuration. However, since the middleware
|
|
|
52
50
|
Example: [./test/fixtures/simple-app/ui5.yaml](./test/fixtures/simple-app/ui5.yaml)
|
|
53
51
|
|
|
54
52
|
### Minimal Configuration
|
|
55
|
-
With no configuration provided, the
|
|
53
|
+
With no configuration provided, the local FLP will be available at `/test/flp.html` and the log level is `info`.
|
|
56
54
|
```Yaml
|
|
57
55
|
server:
|
|
58
56
|
customMiddleware:
|
|
@@ -61,7 +59,7 @@ server:
|
|
|
61
59
|
```
|
|
62
60
|
|
|
63
61
|
### Different Path and Debugging enabled
|
|
64
|
-
With this configuration, the
|
|
62
|
+
With this configuration, the local FLP will be available at `/test/myFLP.html` and the log level is `debug`.
|
|
65
63
|
```Yaml
|
|
66
64
|
server:
|
|
67
65
|
customMiddleware:
|
|
@@ -69,7 +67,7 @@ server:
|
|
|
69
67
|
afterMiddleware: compression
|
|
70
68
|
configuration:
|
|
71
69
|
flp:
|
|
72
|
-
path: /
|
|
70
|
+
path: /test/myFLP.html
|
|
73
71
|
debug: true
|
|
74
72
|
```
|
|
75
73
|
|
|
@@ -98,7 +96,7 @@ server:
|
|
|
98
96
|
rta:
|
|
99
97
|
layer: CUSTOMER_BASE
|
|
100
98
|
editors:
|
|
101
|
-
- path: /
|
|
99
|
+
- path: /test/variant-editor.html
|
|
102
100
|
```
|
|
103
101
|
|
|
104
102
|
|
|
@@ -116,7 +114,7 @@ server:
|
|
|
116
114
|
ignoreCertErrors: true
|
|
117
115
|
rta:
|
|
118
116
|
editors:
|
|
119
|
-
- path: /
|
|
117
|
+
- path: /test/adaptation-editor.html
|
|
120
118
|
developerMode: true
|
|
121
119
|
```
|
|
122
120
|
|
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.5.
|
|
12
|
+
"version": "0.5.5",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/ejs": "3.1.2",
|
|
31
31
|
"@types/express": "4.17.17",
|
|
32
|
-
"@types/prompts": "2.
|
|
32
|
+
"@types/prompts": "2.4.4",
|
|
33
33
|
"@types/supertest": "2.0.12",
|
|
34
34
|
"copyfiles": "2.4.1",
|
|
35
35
|
"npm-run-all": "4.1.5",
|
|
36
36
|
"express": "4.18.2",
|
|
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.1.
|
|
39
|
+
"@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.1.1",
|
|
40
40
|
"@sap-ux/project-access": "1.13.5",
|
|
41
41
|
"@sap-ux/store": "0.3.13"
|
|
42
42
|
},
|