@sap-ux/ui5-config
Advanced tools
Comparing version 0.23.0 to 0.23.1
@@ -22,5 +22,6 @@ import type { FioriToolsProxyConfigBackend, CustomMiddleware, FioriAppReloadConfig, FioriToolsProxyConfig, MockserverConfig, FioriToolsProxyConfigUI5 } from './types'; | ||
* @param ui5 UI5 configuration | ||
* @param afterMiddleware middleware after which fiori-tools-proxy middleware will be started | ||
* @returns {{config, comments}} configuration and comments | ||
*/ | ||
export declare function getFioriToolsProxyMiddlewareConfig(backends?: FioriToolsProxyConfigBackend[], ui5?: Partial<FioriToolsProxyConfigUI5>): { | ||
export declare function getFioriToolsProxyMiddlewareConfig(backends?: FioriToolsProxyConfigBackend[], ui5?: Partial<FioriToolsProxyConfigUI5>, afterMiddleware?: string): { | ||
config: CustomMiddleware<FioriToolsProxyConfig>; | ||
@@ -27,0 +28,0 @@ comments: NodeComment<CustomMiddleware<FioriToolsProxyConfig>>[]; |
@@ -45,8 +45,9 @@ "use strict"; | ||
* @param ui5 UI5 configuration | ||
* @param afterMiddleware middleware after which fiori-tools-proxy middleware will be started | ||
* @returns {{config, comments}} configuration and comments | ||
*/ | ||
function getFioriToolsProxyMiddlewareConfig(backends, ui5) { | ||
function getFioriToolsProxyMiddlewareConfig(backends, ui5, afterMiddleware = 'compression') { | ||
const fioriToolsProxy = { | ||
name: 'fiori-tools-proxy', | ||
afterMiddleware: 'compression', | ||
afterMiddleware, | ||
configuration: { | ||
@@ -53,0 +54,0 @@ ignoreCertError: false |
@@ -113,6 +113,7 @@ import type { BspApp, AbapTarget, Configuration, CustomMiddleware, CustomTask, FioriToolsProxyConfig, FioriToolsProxyConfigBackend, FioriToolsProxyConfigUI5, Ui5Document, Adp, MockserverConfig, ServeStaticPath } from './types'; | ||
* @param proxyConfig proxy configuration containing an optional array of backend and an option UI5 host configuration | ||
* @param afterMiddleware middleware after which fiori-tools-proxy middleware will be started | ||
* @returns {UI5Config} the UI5Config instance | ||
* @memberof UI5Config | ||
*/ | ||
addFioriToolsProxydMiddleware(proxyConfig: FioriToolsProxyConfig): UI5Config; | ||
addFioriToolsProxydMiddleware(proxyConfig: FioriToolsProxyConfig, afterMiddleware?: string): UI5Config; | ||
/** | ||
@@ -119,0 +120,0 @@ * Adds a backend configuration to an existing fiori-tools-proxy middleware. If the config does not contain a fiori-tools-proxy middleware, an error is thrown. |
@@ -194,7 +194,8 @@ "use strict"; | ||
* @param proxyConfig proxy configuration containing an optional array of backend and an option UI5 host configuration | ||
* @param afterMiddleware middleware after which fiori-tools-proxy middleware will be started | ||
* @returns {UI5Config} the UI5Config instance | ||
* @memberof UI5Config | ||
*/ | ||
addFioriToolsProxydMiddleware(proxyConfig) { | ||
const { config, comments } = (0, middlewares_1.getFioriToolsProxyMiddlewareConfig)(proxyConfig.backend, proxyConfig.ui5); | ||
addFioriToolsProxydMiddleware(proxyConfig, afterMiddleware) { | ||
const { config, comments } = (0, middlewares_1.getFioriToolsProxyMiddlewareConfig)(proxyConfig.backend, proxyConfig.ui5, afterMiddleware); | ||
this.document.appendTo({ | ||
@@ -201,0 +202,0 @@ path: 'server.customMiddleware', |
@@ -12,3 +12,3 @@ { | ||
}, | ||
"version": "0.23.0", | ||
"version": "0.23.1", | ||
"license": "Apache-2.0", | ||
@@ -15,0 +15,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
63493
1276