@sap/cds 6.6.1 → 6.6.2

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/CHANGELOG.md CHANGED
@@ -4,7 +4,14 @@
4
4
  - The format is based on [Keep a Changelog](http://keepachangelog.com/).
5
5
  - This project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
- ## Version 6.6.1 2023-03-09
7
+ ## Version 6.6.2 - 2023-03-17
8
+
9
+ ### Fixed
10
+
11
+ - Exception during `cds deploy` without mtx
12
+ - Service name specified with `cds deploy --to hana:serviceName` takes precedence over environment variables.
13
+
14
+ ## Version 6.6.1 - 2023-03-09
8
15
 
9
16
  ### Added
10
17
 
@@ -72,7 +72,7 @@ class HanaDeployer {
72
72
  }
73
73
 
74
74
  const hasVCAPEnv = Object.keys(vcapEnv).length > 0;
75
- if (hasVCAPEnv) {
75
+ if (!serviceName && hasVCAPEnv) {
76
76
  await fs.mkdir(currentModelFolder, { recursive: true });
77
77
  } else {
78
78
  const { cfServiceInstanceName, cfServiceInstanceKeyName, serviceKey } =
@@ -143,7 +143,7 @@ Add it either as a devDependency using 'npm install -D ${this.deployerName}' or
143
143
  }
144
144
  return resolve();
145
145
  }, callbacks);
146
- }).finally(() => writeStream.end());
146
+ }).finally(() => writeStream?.end());
147
147
  }
148
148
  }
149
149
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap/cds",
3
- "version": "6.6.1",
3
+ "version": "6.6.2",
4
4
  "description": "SAP Cloud Application Programming Model - CDS for Node.js",
5
5
  "homepage": "https://cap.cloud.sap/",
6
6
  "keywords": [