Socket
Socket
Sign inDemoInstall

@sap/cds-mtxs

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sap/cds-mtxs - npm Package Compare versions

Comparing version 2.0.4 to 2.0.5

8

CHANGELOG.md

@@ -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 @@

7

env.js
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",

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc