@sap-ux/preview-middleware 0.20.15 → 0.20.17

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.
@@ -109,7 +109,7 @@ export declare function sanitizeConfig(config: MiddlewareConfig, logger: ToolsLo
109
109
  * @param logger logger instance
110
110
  * @returns sanitized RTA configuration
111
111
  */
112
- export declare function sanitizeRtaConfig(deprecatedRtaConfig: MiddlewareConfig['rta'], logger: Logger): RtaConfig | undefined;
112
+ export declare function sanitizeRtaConfig(deprecatedRtaConfig: MiddlewareConfig['rta'], logger?: Logger): RtaConfig | undefined;
113
113
  /**
114
114
  * Add an application to the local FLP preview.
115
115
  *
@@ -155,7 +155,7 @@ function sanitizeRtaConfig(deprecatedRtaConfig, logger) {
155
155
  if (deprecatedRtaConfig) {
156
156
  const { editors, ...rta } = deprecatedRtaConfig;
157
157
  rtaConfig = { ...rta, endpoints: [...editors] };
158
- logger.warn(`The configuration option 'rta' is deprecated. Please use 'editors.rta' instead.`);
158
+ logger?.warn(`The configuration option 'rta' is deprecated. Please use 'editors.rta' instead.`);
159
159
  }
160
160
  return rtaConfig;
161
161
  }
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%3Apreview-middleware"
11
11
  },
12
- "version": "0.20.15",
12
+ "version": "0.20.17",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",
@@ -25,13 +25,13 @@
25
25
  "ejs": "3.1.10",
26
26
  "mem-fs": "2.1.0",
27
27
  "mem-fs-editor": "9.4.0",
28
- "@sap-ux/adp-tooling": "0.14.9",
28
+ "@sap-ux/adp-tooling": "0.14.11",
29
29
  "@sap-ux/btp-utils": "1.1.0",
30
- "@sap-ux/feature-toggle": "0.3.0",
31
30
  "@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.6.6",
31
+ "@sap-ux/feature-toggle": "0.3.0",
32
32
  "@sap-ux/logger": "0.7.0",
33
- "@sap-ux/system-access": "0.6.1",
34
- "@sap-ux/project-access": "1.30.1"
33
+ "@sap-ux/project-access": "1.30.2",
34
+ "@sap-ux/system-access": "0.6.1"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@sap-ux-private/playwright": "0.2.0",
@@ -50,10 +50,10 @@
50
50
  "npm-run-all2": "6.2.0",
51
51
  "supertest": "6.3.3",
52
52
  "@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.14.4",
53
- "@sap-ux/store": "1.1.0",
54
- "@sap-ux/ui5-info": "0.11.0",
55
53
  "@sap-ux/axios-extension": "1.21.1",
56
- "@sap-ux/i18n": "0.3.0"
54
+ "@sap-ux/i18n": "0.3.0",
55
+ "@sap-ux/store": "1.1.0",
56
+ "@sap-ux/ui5-info": "0.11.0"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "express": "4"