@sap-ux/ui5-proxy-middleware 1.1.11 → 1.1.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/dist/ui5/middleware.js +3 -2
- package/package.json +4 -4
package/dist/ui5/middleware.js
CHANGED
|
@@ -26,7 +26,7 @@ const dotenv_1 = __importDefault(require("dotenv"));
|
|
|
26
26
|
function createProxyOptions(logger, config) {
|
|
27
27
|
return {
|
|
28
28
|
secure: config.secure !== undefined ? !!config.secure : true,
|
|
29
|
-
logLevel:
|
|
29
|
+
logLevel: config.debug ? 'debug' : 'info',
|
|
30
30
|
logProvider: () => logger
|
|
31
31
|
};
|
|
32
32
|
}
|
|
@@ -40,7 +40,8 @@ function createRequestHandler(routes) {
|
|
|
40
40
|
return (req, res, next) => {
|
|
41
41
|
for (const route of routes) {
|
|
42
42
|
if (req.path.startsWith(route.route)) {
|
|
43
|
-
|
|
43
|
+
route.handler(req, res, next);
|
|
44
|
+
return;
|
|
44
45
|
}
|
|
45
46
|
}
|
|
46
47
|
next();
|
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%3Aui5-proxy-middleware"
|
|
11
11
|
},
|
|
12
|
-
"version": "1.1.
|
|
12
|
+
"version": "1.1.12",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"!dist/**/*.map"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@sap-ux/logger": "0.3.
|
|
25
|
-
"@sap-ux/ui5-config": "0.15.
|
|
24
|
+
"@sap-ux/logger": "0.3.1",
|
|
25
|
+
"@sap-ux/ui5-config": "0.15.2",
|
|
26
26
|
"dotenv": "16.0.0",
|
|
27
27
|
"http-proxy-middleware": "2.0.1",
|
|
28
28
|
"https-proxy-agent": "5.0.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"node": ">= 14.16.0 < 15.0.0 || >=16.1.0 < 17.0.0 || >=18.0.0 < 19.0.0"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
|
-
"build": "pnpm clean && tsc",
|
|
47
|
+
"build": "pnpm clean && tsc -p tsconfig-build.json",
|
|
48
48
|
"clean": "rimraf dist",
|
|
49
49
|
"format": "prettier --write '**/*.{js,json,ts,yaml,yml}' --ignore-path ../../.prettierignore",
|
|
50
50
|
"lint": "eslint . --ext .ts",
|