Socket
Socket
Sign inDemoInstall

@sap/cds-hana

Package Overview
Dependencies
Maintainers
3
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sap/cds-hana - npm Package Compare versions

Comparing version 1.18.1 to 1.21.0

30

CHANGELOG.md

@@ -9,2 +9,32 @@ # Changelog

## Version 1.21.0 - 2019-12-10
### Changed
- Updated version of @sap/cds-sql to 1.21.0
## Version 1.20.1 - 2019-11-29
### Changed
- Updated version of @sap/cds-sql to 1.20.1
## Version 1.20.0 - 2019-11-19
### Added
- Method to set session context
## Version 1.19.1 - 2019-10-30
### Changed
- Updated version of @sap/cds-sql to 1.19.1
## Version 1.19.0 - 2019-10-29
### Removed
- `npm-shrinkwrap.json`
## Version 1.18.1 - 2019-10-16

@@ -11,0 +41,0 @@

23

lib/client/Client.js

@@ -355,3 +355,3 @@ const hanaClient = require('./hanaClient')

return cdsSql.composition
.selectDeepUpdateData(this._csn && this._csn.definitions, cqn, this._execute.bind(this))
.selectDeepUpdateData(this._csn && this._csn.definitions, cqn, this._execute.bind(this), this._context)
.then(selectData => {

@@ -508,7 +508,17 @@ return this.processNestedCQNs(

this.setSessionContext('LOCALE', this._locale)
}
/**
* Sets a session context on the database
*
* @param contextName name of the session context
* @param value value of the session context
*/
setSessionContext (contextName, value) {
if (this._dbc._connection) {
// Works, but bad practise to access an internal scope
this._dbc._connection.getClientInfo().setProperty('LOCALE', this._locale)
this._dbc._connection.getClientInfo().setProperty(contextName, value)
} else {
this._dbc.setClientInfo('LOCALE', this._locale)
this._dbc.setClientInfo(contextName, value)
}

@@ -527,8 +537,3 @@ }

if (this._dbc._connection) {
// Works, but bad practise to access an internal scope
this._dbc._connection.getClientInfo().setProperty('XS_APPLICATIONUSER', this._user)
} else {
this._dbc.setClientInfo('XS_APPLICATIONUSER', this._user)
}
this.setSessionContext('XS_APPLICATIONUSER', this._user)
}

@@ -535,0 +540,0 @@

@@ -1,1 +0,1 @@

{"bundleDependencies":false,"dependencies":{"@sap/cds-sql":"1.18.1"},"deprecated":false,"description":"Driver package for access to hana database, including setting up the client, configuring all the necessary options to initiate the connection and handling database specifics so that they can be processed on our end.","engines":{"node":">= 8.9.0"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"{lib,test}/**/*.js":["prettier-standard","standard --fix","git add"]},"main":"lib/index.js","name":"@sap/cds-hana","version":"1.18.1","license":"SEE LICENSE IN developer-license-3.1.txt"}
{"bundleDependencies":false,"dependencies":{"@sap/cds-sql":"1.21.0"},"deprecated":false,"description":"Driver package for access to hana database, including setting up the client, configuring all the necessary options to initiate the connection and handling database specifics so that they can be processed on our end.","engines":{"node":">= 8.9.0"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"{lib,test}/**/*.js":["prettier-standard","standard --fix","git add"]},"main":"lib/index.js","name":"@sap/cds-hana","version":"1.21.0","license":"SEE LICENSE IN developer-license-3.1.txt"}

Sorry, the diff of this file is not supported yet

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