@sap-ux/ui5-proxy-middleware 1.5.4 → 1.5.5

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.
@@ -59,13 +59,6 @@ export declare const getHtmlFile: (url: string) => string;
59
59
  * @returns Name of the YAML file
60
60
  */
61
61
  export declare const getYamlFile: (args: string[]) => string;
62
- /**
63
- * Gets the path to the webapp folder from the YAML file.
64
- *
65
- * @param ui5YamlPath - path to the yaml file
66
- * @returns Path to the webapp folder
67
- */
68
- export declare const getWebAppFolderFromYaml: (ui5YamlPath: string) => Promise<string>;
69
62
  /**
70
63
  * Sends HTML content as a response.
71
64
  * Ensure compliance with common APIs in express and connect.
@@ -1,14 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.filterCompressedHtmlFiles = exports.injectScripts = exports.sendResponse = exports.getWebAppFolderFromYaml = exports.getYamlFile = exports.getHtmlFile = exports.hideProxyCredentials = exports.getCorporateProxyServer = exports.proxyRequestHandler = exports.proxyResponseHandler = void 0;
3
+ exports.filterCompressedHtmlFiles = exports.injectScripts = exports.sendResponse = exports.getYamlFile = exports.getHtmlFile = exports.hideProxyCredentials = exports.getCorporateProxyServer = exports.proxyRequestHandler = exports.proxyResponseHandler = void 0;
4
4
  exports.updateProxyEnv = updateProxyEnv;
5
5
  exports.resolveUI5Version = resolveUI5Version;
6
6
  exports.injectUI5Url = injectUI5Url;
7
7
  exports.proxyErrorHandler = proxyErrorHandler;
8
8
  exports.directLoadProxy = directLoadProxy;
9
9
  const project_access_1 = require("@sap-ux/project-access");
10
- const ui5_config_1 = require("@sap-ux/ui5-config");
11
- const fs_1 = require("fs");
12
10
  const constants_1 = require("./constants");
13
11
  const i18n_1 = require("../i18n");
14
12
  /**
@@ -146,22 +144,6 @@ const getYamlFile = (args) => {
146
144
  return yaml;
147
145
  };
148
146
  exports.getYamlFile = getYamlFile;
149
- /**
150
- * Gets the path to the webapp folder from the YAML file.
151
- *
152
- * @param ui5YamlPath - path to the yaml file
153
- * @returns Path to the webapp folder
154
- */
155
- const getWebAppFolderFromYaml = async (ui5YamlPath) => {
156
- if ((0, fs_1.existsSync)(ui5YamlPath)) {
157
- const ui5Config = await ui5_config_1.UI5Config.newInstance((0, fs_1.readFileSync)(ui5YamlPath, { encoding: 'utf8' }));
158
- return ui5Config.getConfiguration().paths?.webapp ?? 'webapp';
159
- }
160
- else {
161
- return 'webapp';
162
- }
163
- };
164
- exports.getWebAppFolderFromYaml = getWebAppFolderFromYaml;
165
147
  /**
166
148
  * Sends HTML content as a response.
167
149
  * Ensure compliance with common APIs in express and connect.
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.5.4",
12
+ "version": "1.5.5",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",
@@ -37,7 +37,7 @@
37
37
  "nock": "13.4.0",
38
38
  "supertest": "6.3.3",
39
39
  "yaml": "2.2.2",
40
- "@sap-ux/project-access": "1.30.4"
40
+ "@sap-ux/project-access": "1.30.5"
41
41
  },
42
42
  "ui5": {
43
43
  "dependencies": []