@sap-ux/odata-service-writer 0.22.5 → 0.23.0

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/index.js CHANGED
@@ -92,7 +92,10 @@ async function generate(basePath, service, fs) {
92
92
  }
93
93
  catch (error) {
94
94
  if (error instanceof ui5_config_1.YAMLError && error.code === ui5_config_1.yamlErrorCode.nodeNotFound) {
95
- ui5Config.addFioriToolsProxydMiddleware({ backend: [service.previewSettings] });
95
+ ui5Config.addFioriToolsProxydMiddleware({
96
+ backend: [service.previewSettings],
97
+ ignoreCertError: service.ignoreCertError
98
+ });
96
99
  }
97
100
  else {
98
101
  throw error;
@@ -103,7 +106,10 @@ async function generate(basePath, service, fs) {
103
106
  ui5LocalConfigPath = (0, path_1.join)((0, path_1.dirname)(paths.ui5Yaml), 'ui5-local.yaml');
104
107
  if (fs.exists(ui5LocalConfigPath)) {
105
108
  ui5LocalConfig = await ui5_config_1.UI5Config.newInstance(fs.read(ui5LocalConfigPath));
106
- ui5LocalConfig.addFioriToolsProxydMiddleware({ backend: [service.previewSettings] });
109
+ ui5LocalConfig.addFioriToolsProxydMiddleware({
110
+ backend: [service.previewSettings],
111
+ ignoreCertError: service.ignoreCertError
112
+ });
107
113
  }
108
114
  }
109
115
  // Add mockserver entries
package/dist/types.d.ts CHANGED
@@ -68,5 +68,9 @@ export interface OdataService {
68
68
  annotations?: EdmxAnnotationsInfo | CdsAnnotationsInfo;
69
69
  localAnnotationsName?: string;
70
70
  previewSettings?: Partial<ProxyBackend>;
71
+ /**
72
+ * Indicates whether certificate errors should be ignored.
73
+ */
74
+ ignoreCertError?: boolean;
71
75
  }
72
76
  //# sourceMappingURL=types.d.ts.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%3Aodata-service-writer"
11
11
  },
12
- "version": "0.22.5",
12
+ "version": "0.23.0",
13
13
  "license": "Apache-2.0",
14
14
  "main": "dist/index.js",
15
15
  "files": [
@@ -27,8 +27,8 @@
27
27
  "mem-fs-editor": "9.4.0",
28
28
  "prettify-xml": "1.2.0",
29
29
  "semver": "7.5.4",
30
- "@sap-ux/mockserver-config-writer": "0.6.4",
31
- "@sap-ux/ui5-config": "0.24.1"
30
+ "@sap-ux/mockserver-config-writer": "0.6.5",
31
+ "@sap-ux/ui5-config": "0.25.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/ejs": "3.1.2",
@@ -38,7 +38,7 @@
38
38
  "@types/semver": "7.5.2",
39
39
  "fs-extra": "10.0.0",
40
40
  "lodash": "4.17.21",
41
- "@sap-ux/project-access": "1.27.1"
41
+ "@sap-ux/project-access": "1.27.4"
42
42
  },
43
43
  "engines": {
44
44
  "node": ">=18.x"