Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sap-ux/ui5-config

Package Overview
Dependencies
Maintainers
0
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sap-ux/ui5-config - npm Package Compare versions

Comparing version 0.23.0 to 0.23.1

3

dist/middlewares.d.ts

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc