@sap-ux/backend-proxy-middleware 0.6.20 → 0.6.21
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/base/config.js +2 -1
- package/package.json +2 -2
package/dist/base/config.js
CHANGED
|
@@ -31,7 +31,7 @@ exports.getCorporateProxyServer = getCorporateProxyServer;
|
|
|
31
31
|
* @param url - url to be checked
|
|
32
32
|
* @returns true if host is excluded from user's corporate server, false otherwise
|
|
33
33
|
*/
|
|
34
|
-
|
|
34
|
+
const isHostExcludedFromProxy = (url) => {
|
|
35
35
|
const noProxyConfig = process.env.no_proxy || process.env.npm_config_noproxy;
|
|
36
36
|
if (noProxyConfig === '*') {
|
|
37
37
|
return true;
|
|
@@ -42,4 +42,5 @@ exports.isHostExcludedFromProxy = (url) => {
|
|
|
42
42
|
return !!noProxyList.find((entry) => entry.startsWith('.') ? host.endsWith(entry) : host.endsWith(`.${entry}`));
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
|
+
exports.isHostExcludedFromProxy = isHostExcludedFromProxy;
|
|
45
46
|
//# sourceMappingURL=config.js.map
|
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%3Abackend-proxy-middleware"
|
|
11
11
|
},
|
|
12
|
-
"version": "0.6.
|
|
12
|
+
"version": "0.6.21",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@sap-ux/axios-extension": "0.9.7",
|
|
25
25
|
"@sap-ux/btp-utils": "0.11.1",
|
|
26
26
|
"@sap-ux/logger": "0.3.0",
|
|
27
|
-
"@sap-ux/store": "0.3.
|
|
27
|
+
"@sap-ux/store": "0.3.4",
|
|
28
28
|
"chalk": "4.1.2",
|
|
29
29
|
"dotenv": "16.0.0",
|
|
30
30
|
"express": "4.17.2",
|