@sap/cds-mtxs
Advanced tools
Comparing version 2.0.4 to 2.0.5
@@ -9,2 +9,10 @@ # Change Log | ||
## Version 2.0.5 - 2024-08-06 | ||
### Fixed | ||
- The server startup no longer yields the `WARNING: Package '@sap/cds' was loaded from different installations:` message in PNPM setups with `--global-bin-dir` on. This happened in BAS, for example on `cds watch/serve` etc. | ||
- Setting `HDI_DEPLOY_OPTIONS` to `'{"use_hdb": false}'` now works correctly for `@sap/hana-client` fallbacks. | ||
## Version 2.0.4 - 2024-07-31 | ||
@@ -11,0 +19,0 @@ |
const path = require('path') | ||
const cds = require('@sap/cds') | ||
// Use global cds as it's the local cds installation | ||
// Otherwise it could be a global installation which cause a double load. | ||
// This all happens because sap/cds/.../env/plugin.js calls out to here. | ||
// FIXME: should move this code to package.json as part of a plugin. | ||
const cds = global.cds || require('@sap/cds') | ||
const hana_mt = { kind: 'hana', | ||
@@ -5,0 +10,0 @@ "deploy-format": "hdbtable", |
{ | ||
"name": "@sap/cds-mtxs", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "SAP Cloud Application Programming Model - Multitenancy library", | ||
@@ -5,0 +5,0 @@ "homepage": "https://cap.cloud.sap/", |
@@ -53,3 +53,3 @@ const cds = require('@sap/cds/lib') | ||
_getAppUrl(context) { | ||
const { subscriptionPayload, subscriptionHeaders } = context.data | ||
const { subscriptionPayload, subscriptionHeaders } = context?.data ?? {} | ||
return subscriptionHeaders?.application_url | ||
@@ -56,0 +56,0 @@ ?? process.env.SUBSCRIPTION_URL?.replace(`\${tenant_subdomain}`, subscriptionPayload.subscribedSubdomain) |
@@ -76,2 +76,3 @@ const { join } = require('path') | ||
if (hdi_opts.use_hdb !== false) hdi_opts.use_hdb = true | ||
if (hdi_opts.use_hdb === false) hdi_opts.use_hdb = undefined | ||
env.HDI_DEPLOY_OPTIONS = JSON.stringify (hdi_opts) | ||
@@ -78,0 +79,0 @@ return env |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
254684
4690