@sap-ux/preview-middleware 0.16.9 → 0.16.12
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 +7 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -158,6 +158,13 @@ server:
|
|
|
158
158
|
- path: /test/adaptation-editor.html
|
|
159
159
|
developerMode: true
|
|
160
160
|
```
|
|
161
|
+
When the middleware is used in an adaptation project together with a middleware proxying requests to the backend e.g. the `backend-proxy-middleware`, then it is critically important that the `preview-middleware` is handling requests before the backend proxy because it intercepts requests to the `manifest.json` of the original application and merges it with the local variant.
|
|
162
|
+
```Yaml
|
|
163
|
+
- name: preview-middleware
|
|
164
|
+
afterMiddleware: rcompression
|
|
165
|
+
- name: backend-proxy-middleware
|
|
166
|
+
afterMiddleware: preview-middleware
|
|
167
|
+
```
|
|
161
168
|
|
|
162
169
|
### Programmatic Usage
|
|
163
170
|
Alternatively you can use the underlying middleware fuction programmatically, e.g. for the case when you want to incorporate the `preview-middleware` functionality in your own middleware.
|
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.16.
|
|
12
|
+
"version": "0.16.12",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"mem-fs-editor": "9.4.0",
|
|
28
28
|
"@sap-ux/logger": "0.6.0",
|
|
29
29
|
"@sap-ux/btp-utils": "0.15.0",
|
|
30
|
-
"@sap-ux/adp-tooling": "0.12.
|
|
30
|
+
"@sap-ux/adp-tooling": "0.12.8",
|
|
31
31
|
"@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.4.25",
|
|
32
|
-
"@sap-ux/project-access": "1.25.
|
|
32
|
+
"@sap-ux/project-access": "1.25.3"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/ejs": "3.1.2",
|