Socket
Socket
Sign inDemoInstall

@sap/hdi-deploy

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/hdi-deploy - npm Package Compare versions

Comparing version 3.11.15 to 4.0.1

13

CHANGELOG.md

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

## 4.0.1
Fixes:
- use @sap/xsenv@3.1.0 for full node 14 support
## 4.0.0
Features:
- use @sap/hdi@3.0.1
- use @sap/hana-client@2.7.16
- Node 14.x support
Removed:
- Node 6.x support
## 3.11.15

@@ -2,0 +15,0 @@ Fixes:

11

lib/hana-helper.js

@@ -252,6 +252,13 @@ 'use strict';

if (Array.isArray(dbhosts)) {
credentials.hosts = dbhosts;
credentials.hosts = dbhosts.map(entry => {
if(entry.port) {
entry.port = `${entry.port}`;
}
return entry;
});
} else {
credentials.host = host;
credentials.port = port;
// hana-client@2.7.16 requires this to be a string.
credentials.port = `${port}`;
}

@@ -258,0 +265,0 @@

@@ -235,6 +235,13 @@ 'use strict';

if (Array.isArray(creds.db_hosts)) {
hdiCreds.hosts = creds.db_hosts;
hdiCreds.hosts = creds.db_hosts.map(entry => {
if(entry.port) {
entry.port = `${entry.port}`;
}
return entry;
});
} else {
hdiCreds.host = creds.host;
hdiCreds.port = creds.port;
// hana-client@2.7.16 requires this to be a string.
hdiCreds.port = `${creds.port}`;
}

@@ -241,0 +248,0 @@

12

npm-shrinkwrap.json
{
"name": "@sap/hdi-deploy",
"version": "3.11.15",
"version": "4.0.1",
"lockfileVersion": 1,

@@ -8,3 +8,3 @@ "requires": true,

"@sap/hana-client": {
"version": "2.4.202",
"version": "2.7.16",
"requires": {

@@ -26,5 +26,5 @@ "debug": "3.1.0"

"@sap/hdi": {
"version": "2.2.7",
"version": "3.0.1",
"requires": {
"@sap/hana-client": "2.4.202",
"@sap/hana-client": "2.7.16",
"async": "3.1.0"

@@ -34,3 +34,3 @@ }

"@sap/xsenv": {
"version": "2.2.0",
"version": "3.1.0",
"requires": {

@@ -84,3 +84,3 @@ "debug": "3.1.0",

"uglify-js": {
"version": "3.11.4",
"version": "3.12.4",
"optional": true

@@ -87,0 +87,0 @@ },

{
"name": "@sap/hdi-deploy",
"description": "HDI content deployment",
"version": "3.11.15",
"version": "4.0.1",
"license": "See LICENSE file",

@@ -9,5 +9,5 @@ "repository": {},

"dependencies": {
"@sap/hdi": "2.2.7",
"@sap/hana-client": "2.4.202",
"@sap/xsenv": "2.2.0",
"@sap/hdi": "3.0.1",
"@sap/hana-client": "2.7.16",
"@sap/xsenv": "3.1.0",
"async": "3.1.0",

@@ -33,3 +33,3 @@ "handlebars": "4.7.6"

"engines": {
"node": "^6.9.1 || ^8.0.0 || ^10.0.0 || ^12.0.0"
"node": "^8.0.0 || ^10.0.0 || ^12.0.0 || ^14.0.0"
},

@@ -49,4 +49,4 @@ "files": [

"start": "node deploy.js",
"wrap": "rm -rf node_modules && rm npm-shrinkwrap.json && npm install && npm dedupe && npm shrinkwrap && clean-shrinkwrap",
"prepare-release": "clean-packages && npm prune --production && ls -al",
"wrap": "rm -rf node_modules && rm npm-shrinkwrap.json && npm install && npm dedupe && npm shrinkwrap --production && clean-shrinkwrap",
"prepare-release": "clean-packages && npm prune --production && ls -al && cat npm-shrinkwrap.json",
"lint": "jshint *.js lib/ test/",

@@ -61,4 +61,6 @@ "eslint": "eslint *.js lib/",

"test-all-filtered": "test/test-all-filtered.sh",
"test-all-filtered.win": "test\\test-all-filtered.bat"
"test-all-filtered.win": "test\\test-all-filtered.bat",
"backup-shrinkwrap": "cp npm-shrinkwrap.json backup-npm-shrinkwrap.json",
"restore-shrinkwrap": "mv backup-npm-shrinkwrap.json npm-shrinkwrap.json"
}
}

@@ -104,3 +104,3 @@ @sap/hdi-deploy

"dependencies": {
"@sap/hdi-deploy": "3.11.15"
"@sap/hdi-deploy": "4.0.1"
},

@@ -356,3 +356,3 @@ "scripts": {

When an HDI container service instance is created by the HANA Service Broker, e.g. service instance `foo` with schema name `FOO`, the broker creates an HDI container `FOO` (consisting of the runtime schema `FOO`, the HDI metadata and API schema `FOO#DI`, and the object owner `FOO#OO`) and a global access role `FOO::access_role` for the runtime schema. This access role is equipped with a default permission set for the runtime schema which consists of `SELECT`, `INSERT`, `UPDATE`, `DELETE`, `EXECUTE`, `CREATE TEMPORARY TABLE`, and `SELECT CDS METADATA` on the runtime schema `FOO`.
When an HDI container service instance is created by the HANA Service Broker, e.g. service instance `foo` with schema name `FOO`, the broker creates an HDI container `FOO` (consisting of the runtime schema `FOO`, the HDI metadata and API schema `FOO#DI`, and the object owner `FOO#OO`) and a global access role `FOO::access_role` for the runtime schema. This access role is equipped with a default permission set for the runtime schema which consists of `SELECT`, `INSERT`, `UPDATE`, `DELETE`, `EXECUTE`, `CREATE TEMPORARY TABLE`, and `SELECT CDS METADATA` (not on HANA Cloud) on the runtime schema `FOO`.

@@ -411,3 +411,3 @@ Every time the service instance is bound to an application, the broker creates 2 new users which are specific to this binding. The first user is the application user who is named `user` in the instance's credentials. This user is used by the application to access the HDI container's runtime schema `FOO`. This user is equipped with the service instance's global access role `FOO::access_role`. The second user is the HDI API user who is named `hdi_user` in the credentials. This user is equipped with privileges for the container's APIs in the `FOO#DI` schema.

If a role definition file exists at the path `src/defaults/default_access_role.hdbrole`, and this file defines a role named `default_access_role`, and this file is included in the deployment (e.g. not excluded via `include-filter`), then the HDI Deployer grants the deployed `default_access_role` role to the service instance's global access role (e.g. `FOO::access_role`). In addition, the HDI Deployer revokes all default permissions (e.g. `SELECT`, `INSERT`, `UPDATE`, `DELETE`, `EXECUTE`, `CREATE TEMPORARY TABLE`, and `SELECT CDS METADATA` on the runtime schema `FOO`) from the global access role. If the `default_access_role` is undeployed, the default permission set for the runtime schema will be restored.
If a role definition file exists at the path `src/defaults/default_access_role.hdbrole`, and this file defines a role named `default_access_role`, and this file is included in the deployment (e.g. not excluded via `include-filter`), then the HDI Deployer grants the deployed `default_access_role` role to the service instance's global access role (e.g. `FOO::access_role`). In addition, the HDI Deployer revokes all default permissions (e.g. `SELECT`, `INSERT`, `UPDATE`, `DELETE`, `EXECUTE`, `CREATE TEMPORARY TABLE`, and `SELECT CDS METADATA` (not on HANA Cloud) on the runtime schema `FOO`) from the global access role. If the `default_access_role` is undeployed, the default permission set for the runtime schema will be restored.

@@ -467,2 +467,4 @@ Note: If you use a `.hdinamespace` file in `src/` which defines a real namespace prefix for subfolders, then you need to put a `.hdinamespace` file with the empty namespace `"name" : ""` at `src/defaults/` to ensure that the role can be named `default_access_role`.

On HANA Cloud, "SELECT CDS METADATA" is not granted.
## The development_debug_role Role

@@ -522,3 +524,3 @@

"dependencies": {
"@sap/hdi-deploy": "3.11.15",
"@sap/hdi-deploy": "4.0.1",
"module1": "1.3.1",

@@ -1049,3 +1051,3 @@ "module2": "1.7.0"

"name": "@sap/hdi-deploy",
"version": "3.11.15",
"version": "4.0.1",
"features": {

@@ -1052,0 +1054,0 @@ "info": 2,

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