Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sap/cds-mtxs

Package Overview
Dependencies
Maintainers
1
Versions
62
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 1.14.1 to 1.14.2

4

bin/cds-mtx.js

@@ -29,4 +29,4 @@ #!/usr/bin/env node

if (cds.db) {
await cds.db.disconnect(cds.requires.multitenancy.t0)
await cds.db.disconnect(tenant)
cds.db.disconnect(cds.requires.multitenancy.t0)
cds.db.disconnect(tenant)
}

@@ -33,0 +33,0 @@ }

@@ -9,2 +9,10 @@ # Change Log

## Version 1.14.2 - 2024-01-04
## Fixed
- `POST /-/model-provider/getEdmx` correctly ad-hoc compiles EDMX files for extended or toggled models.
- `POST /-/model-provider/getEdmx` re-compiles the EDMX if a `model` is passed.
- More resilient retry handling for 'authentication failed' errors in HANA deployments.
## Version 1.14.1 - 2023-12-21

@@ -11,0 +19,0 @@

{
"name": "@sap/cds-mtxs",
"version": "1.14.1",
"version": "1.14.2",
"description": "SAP Cloud Application Programming Model - Multitenancy library",

@@ -5,0 +5,0 @@ "homepage": "https://cap.cloud.sap/",

@@ -77,3 +77,3 @@ const crypto = require('crypto')

let precompiledEdmx = await _getPrebuiltBundle(tenant, toggles, service, flavor)
let precompiledEdmx = await _getPrebuiltBundle(tenant, toggles, service, flavor, model)

@@ -127,6 +127,6 @@ delete req.data.flavor // we need to delete the OData 'flavor' argument, as getCsn has a different CSN `flavor` argument

async function _getPrebuiltBundle(tenant, toggles, service, flavor) {
async function _getPrebuiltBundle(tenant, toggles, service, flavor, model) {
const { 'cds.xt.ModelProviderService': mp } = cds.services
const needsEdmxCompile = await mp.isExtended(tenant) || !!toggles?.length
if (needsEdmxCompile) {
const needsEdmxCompile = await mp.isExtended(tenant) || !!toggles?.length || model
if (!needsEdmxCompile) {
const edmxPath = path.join(main.root, 'srv/odata', flavor ?? cds.env.odata.version,`${service}.xml`)

@@ -133,0 +133,0 @@ if (exists(edmxPath)) {

@@ -278,3 +278,3 @@ const cds = require('@sap/cds/lib'), {db} = cds.env.requires

} catch (e) {
if (e.message === 'authentication failed' || /SSL certificate validation failed/.test(e.message)) {
if (/authentication failed/i.test(e.message) || /SSL certificate validation failed/i.test(e.message)) {
return hana.get(tenant, { disableCache: true })

@@ -281,0 +281,0 @@ } else {

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