@sap/hdi-deploy
Advanced tools
Comparing version 4.9.2 to 5.0.1
@@ -0,1 +1,17 @@ | ||
## 5.0.1 | ||
Fixes: | ||
- hana-client dependency issue while using hdb | ||
## 5.0.0 | ||
Features: | ||
- Moved hana-client and hdb from dependencies to peerDependencies to allow choice of using either hana-client or hdb. | ||
- hana-client ^2 >= 2.6 support | ||
- hdb ^0 support | ||
- use dotenv@16.3.1 | ||
- use handlebars@4.7.8 | ||
- use micromatch@4.0.5 | ||
Removed: | ||
- Node 12.x, 14.x, and 16.x support | ||
## 4.9.2 | ||
@@ -2,0 +18,0 @@ Fixes: |
@@ -687,2 +687,15 @@ 'use strict'; | ||
function getClientVersion (client) { | ||
let clientVersion; | ||
if (pjson.dependencies[client]) { | ||
clientVersion = pjson.dependencies[client]; | ||
} else if (pjson.devDependencies[client]) { | ||
clientVersion = pjson.devDependencies[client]; | ||
} else { | ||
clientVersion = pjson.peerDependencies[client]; | ||
} | ||
return clientVersion; | ||
} | ||
function showVersionAndOtherInformation (cb) { | ||
@@ -701,5 +714,7 @@ try { | ||
if (logger.getHDBValue()) { | ||
logger.log(`Using hdb@${pjson.dependencies['hdb']} for connection`); | ||
const hdb_version = getClientVersion('hdb'); | ||
logger.log(`Using hdb@${hdb_version} for connection`); | ||
} else { | ||
logger.log(`Using @sap/hana-client@${pjson.dependencies['@sap/hana-client']} for connection`); | ||
const hana_client_version = getClientVersion('@sap/hana-client'); | ||
logger.log(`Using @sap/hana-client@${hana_client_version} for connection`); | ||
} | ||
@@ -706,0 +721,0 @@ // log that we couldn't get the version from the server (usually we don't have privileges for SYS.M_DATABASE) |
@@ -5,3 +5,2 @@ 'use strict'; | ||
const async = require('async'); | ||
const hana_util = require('@sap/hana-client/extension/Stream.js'); | ||
const {enrich_credentials_with_session_variables} = require('./client-info'); | ||
@@ -17,2 +16,3 @@ | ||
let hana_client; | ||
let hana_util; | ||
if (is_hdb_enabled) { | ||
@@ -22,2 +22,3 @@ hana_client = require('hdb'); | ||
hana_client = require('@sap/hana-client'); | ||
hana_util = require('@sap/hana-client/extension/Stream.js'); | ||
} | ||
@@ -24,0 +25,0 @@ |
{ | ||
"name": "@sap/hdi-deploy", | ||
"version": "4.9.2", | ||
"lockfileVersion": 1, | ||
"version": "5.0.1", | ||
"lockfileVersion": 2, | ||
"requires": true, | ||
"dependencies": { | ||
"@sap/hana-client": { | ||
"packages": { | ||
"": { | ||
"name": "@sap/hdi-deploy", | ||
"version": "5.0.1", | ||
"hasInstallScript": true, | ||
"license": "See LICENSE file", | ||
"dependencies": { | ||
"@sap/hdi": "4.5.2", | ||
"@sap/xsenv": "4.2.0", | ||
"async": "3.2.5", | ||
"dotenv": "16.3.1", | ||
"handlebars": "4.7.8", | ||
"micromatch": "4.0.5" | ||
}, | ||
"engines": { | ||
"node": "^18.0.0 || ^20.0.0" | ||
}, | ||
"peerDependencies": { | ||
"@sap/hana-client": "^2 >= 2.6", | ||
"hdb": "^0" | ||
}, | ||
"peerDependenciesMeta": { | ||
"@sap/hana-client": { | ||
"optional": true | ||
}, | ||
"hdb": { | ||
"optional": true | ||
} | ||
} | ||
}, | ||
"node_modules/@sap/hana-client": { | ||
"version": "2.19.21", | ||
"requires": { | ||
"devOptional": true, | ||
"hasInstallScript": true, | ||
"dependencies": { | ||
"debug": "3.1.0" | ||
}, | ||
"engines": { | ||
"node": ">=4.0.0" | ||
} | ||
}, | ||
"node_modules/@sap/hdi": { | ||
"version": "4.5.2", | ||
"dependencies": { | ||
"debug": { | ||
"version": "3.1.0", | ||
"requires": { | ||
"ms": "2.0.0" | ||
} | ||
"async": "3.2.3" | ||
}, | ||
"engines": { | ||
"node": ">=12 <=20" | ||
}, | ||
"peerDependencies": { | ||
"@sap/hana-client": "^2 >= 2.5", | ||
"hdb": "^0" | ||
}, | ||
"peerDependenciesMeta": { | ||
"@sap/hana-client": { | ||
"optional": true | ||
}, | ||
"ms": { | ||
"version": "2.0.0" | ||
"hdb": { | ||
"optional": true | ||
} | ||
} | ||
}, | ||
"node_modules/@sap/hdi/node_modules/async": { | ||
"version": "3.2.3" | ||
}, | ||
"node_modules/@sap/xsenv": { | ||
"version": "4.2.0", | ||
"dependencies": { | ||
"debug": "4.3.3", | ||
"node-cache": "^5.1.0", | ||
"verror": "1.10.0" | ||
}, | ||
"engines": { | ||
"node": "^12.0.0 || ^14.0.0 || ^16.0.0 || ^18.0.0 || ^20.0.0" | ||
} | ||
}, | ||
"node_modules/@sap/xsenv/node_modules/debug": { | ||
"version": "4.3.3", | ||
"dependencies": { | ||
"ms": "2.1.2" | ||
}, | ||
"engines": { | ||
"node": ">=6.0" | ||
}, | ||
"peerDependenciesMeta": { | ||
"supports-color": { | ||
"optional": true | ||
} | ||
} | ||
}, | ||
"node_modules/@sap/xsenv/node_modules/ms": { | ||
"version": "2.1.2" | ||
}, | ||
"node_modules/assert-plus": { | ||
"version": "1.0.0", | ||
"engines": { | ||
"node": ">=0.8" | ||
} | ||
}, | ||
"node_modules/async": { | ||
"version": "3.2.5" | ||
}, | ||
"node_modules/braces": { | ||
"version": "3.0.2", | ||
"dependencies": { | ||
"fill-range": "^7.0.1" | ||
}, | ||
"engines": { | ||
"node": ">=8" | ||
} | ||
}, | ||
"node_modules/clone": { | ||
"version": "2.1.2", | ||
"engines": { | ||
"node": ">=0.8" | ||
} | ||
}, | ||
"node_modules/core-util-is": { | ||
"version": "1.0.2" | ||
}, | ||
"node_modules/debug": { | ||
"version": "3.1.0", | ||
"devOptional": true, | ||
"dependencies": { | ||
"ms": "2.0.0" | ||
} | ||
}, | ||
"node_modules/dotenv": { | ||
"version": "16.3.1", | ||
"engines": { | ||
"node": ">=12" | ||
} | ||
}, | ||
"node_modules/extsprintf": { | ||
"version": "1.4.1", | ||
"engines": [ | ||
"node >=0.6.0" | ||
] | ||
}, | ||
"node_modules/fill-range": { | ||
"version": "7.0.1", | ||
"dependencies": { | ||
"to-regex-range": "^5.0.1" | ||
}, | ||
"engines": { | ||
"node": ">=8" | ||
} | ||
}, | ||
"node_modules/handlebars": { | ||
"version": "4.7.8", | ||
"dependencies": { | ||
"minimist": "^1.2.5", | ||
"neo-async": "^2.6.2", | ||
"source-map": "^0.6.1", | ||
"wordwrap": "^1.0.0" | ||
}, | ||
"bin": { | ||
"handlebars": "bin/handlebars" | ||
}, | ||
"engines": { | ||
"node": ">=0.4.7" | ||
}, | ||
"optionalDependencies": { | ||
"uglify-js": "^3.1.4" | ||
} | ||
}, | ||
"node_modules/hdb": { | ||
"version": "0.19.7", | ||
"devOptional": true, | ||
"dependencies": { | ||
"iconv-lite": "^0.4.18" | ||
}, | ||
"engines": { | ||
"node": ">= 0.12" | ||
} | ||
}, | ||
"node_modules/iconv-lite": { | ||
"version": "0.4.24", | ||
"devOptional": true, | ||
"dependencies": { | ||
"safer-buffer": ">= 2.1.2 < 3" | ||
}, | ||
"engines": { | ||
"node": ">=0.10.0" | ||
} | ||
}, | ||
"node_modules/is-number": { | ||
"version": "7.0.0", | ||
"engines": { | ||
"node": ">=0.12.0" | ||
} | ||
}, | ||
"node_modules/micromatch": { | ||
"version": "4.0.5", | ||
"dependencies": { | ||
"braces": "^3.0.2", | ||
"picomatch": "^2.3.1" | ||
}, | ||
"engines": { | ||
"node": ">=8.6" | ||
} | ||
}, | ||
"node_modules/minimist": { | ||
"version": "1.2.8" | ||
}, | ||
"node_modules/ms": { | ||
"version": "2.0.0", | ||
"devOptional": true | ||
}, | ||
"node_modules/neo-async": { | ||
"version": "2.6.2" | ||
}, | ||
"node_modules/node-cache": { | ||
"version": "5.1.2", | ||
"dependencies": { | ||
"clone": "2.x" | ||
}, | ||
"engines": { | ||
"node": ">= 8.0.0" | ||
} | ||
}, | ||
"node_modules/picomatch": { | ||
"version": "2.3.1", | ||
"engines": { | ||
"node": ">=8.6" | ||
} | ||
}, | ||
"node_modules/safer-buffer": { | ||
"version": "2.1.2", | ||
"devOptional": true | ||
}, | ||
"node_modules/source-map": { | ||
"version": "0.6.1", | ||
"engines": { | ||
"node": ">=0.10.0" | ||
} | ||
}, | ||
"node_modules/to-regex-range": { | ||
"version": "5.0.1", | ||
"dependencies": { | ||
"is-number": "^7.0.0" | ||
}, | ||
"engines": { | ||
"node": ">=8.0" | ||
} | ||
}, | ||
"node_modules/uglify-js": { | ||
"version": "3.17.4", | ||
"optional": true, | ||
"bin": { | ||
"uglifyjs": "bin/uglifyjs" | ||
}, | ||
"engines": { | ||
"node": ">=0.8.0" | ||
} | ||
}, | ||
"node_modules/verror": { | ||
"version": "1.10.0", | ||
"engines": [ | ||
"node >=0.6.0" | ||
], | ||
"dependencies": { | ||
"assert-plus": "^1.0.0", | ||
"core-util-is": "1.0.2", | ||
"extsprintf": "^1.2.0" | ||
} | ||
}, | ||
"node_modules/wordwrap": { | ||
"version": "1.0.0" | ||
} | ||
}, | ||
"dependencies": { | ||
"@sap/hana-client": { | ||
"version": "2.19.21", | ||
"devOptional": true, | ||
"requires": { | ||
"debug": "3.1.0" | ||
} | ||
}, | ||
"@sap/hdi": { | ||
@@ -28,2 +289,7 @@ "version": "4.5.2", | ||
"async": "3.2.3" | ||
}, | ||
"dependencies": { | ||
"async": { | ||
"version": "3.2.3" | ||
} | ||
} | ||
@@ -39,11 +305,2 @@ }, | ||
"dependencies": { | ||
"assert-plus": { | ||
"version": "1.0.0" | ||
}, | ||
"clone": { | ||
"version": "2.1.2" | ||
}, | ||
"core-util-is": { | ||
"version": "1.0.2" | ||
}, | ||
"debug": { | ||
@@ -55,26 +312,12 @@ "version": "4.3.3", | ||
}, | ||
"extsprintf": { | ||
"version": "1.4.1" | ||
}, | ||
"ms": { | ||
"version": "2.1.2" | ||
}, | ||
"node-cache": { | ||
"version": "5.1.2", | ||
"requires": { | ||
"clone": "2.x" | ||
} | ||
}, | ||
"verror": { | ||
"version": "1.10.0", | ||
"requires": { | ||
"assert-plus": "^1.0.0", | ||
"core-util-is": "1.0.2", | ||
"extsprintf": "^1.2.0" | ||
} | ||
} | ||
} | ||
}, | ||
"assert-plus": { | ||
"version": "1.0.0" | ||
}, | ||
"async": { | ||
"version": "3.2.3" | ||
"version": "3.2.5" | ||
}, | ||
@@ -87,5 +330,21 @@ "braces": { | ||
}, | ||
"clone": { | ||
"version": "2.1.2" | ||
}, | ||
"core-util-is": { | ||
"version": "1.0.2" | ||
}, | ||
"debug": { | ||
"version": "3.1.0", | ||
"devOptional": true, | ||
"requires": { | ||
"ms": "2.0.0" | ||
} | ||
}, | ||
"dotenv": { | ||
"version": "10.0.0" | ||
"version": "16.3.1" | ||
}, | ||
"extsprintf": { | ||
"version": "1.4.1" | ||
}, | ||
"fill-range": { | ||
@@ -98,6 +357,6 @@ "version": "7.0.1", | ||
"handlebars": { | ||
"version": "4.7.7", | ||
"version": "4.7.8", | ||
"requires": { | ||
"minimist": "^1.2.5", | ||
"neo-async": "^2.6.0", | ||
"neo-async": "^2.6.2", | ||
"source-map": "^0.6.1", | ||
@@ -109,3 +368,4 @@ "uglify-js": "^3.1.4", | ||
"hdb": { | ||
"version": "0.19.3", | ||
"version": "0.19.7", | ||
"devOptional": true, | ||
"requires": { | ||
@@ -117,2 +377,3 @@ "iconv-lite": "^0.4.18" | ||
"version": "0.4.24", | ||
"devOptional": true, | ||
"requires": { | ||
@@ -126,6 +387,6 @@ "safer-buffer": ">= 2.1.2 < 3" | ||
"micromatch": { | ||
"version": "4.0.4", | ||
"version": "4.0.5", | ||
"requires": { | ||
"braces": "^3.0.1", | ||
"picomatch": "^2.2.3" | ||
"braces": "^3.0.2", | ||
"picomatch": "^2.3.1" | ||
} | ||
@@ -136,5 +397,15 @@ }, | ||
}, | ||
"ms": { | ||
"version": "2.0.0", | ||
"devOptional": true | ||
}, | ||
"neo-async": { | ||
"version": "2.6.2" | ||
}, | ||
"node-cache": { | ||
"version": "5.1.2", | ||
"requires": { | ||
"clone": "2.x" | ||
} | ||
}, | ||
"picomatch": { | ||
@@ -144,3 +415,4 @@ "version": "2.3.1" | ||
"safer-buffer": { | ||
"version": "2.1.2" | ||
"version": "2.1.2", | ||
"devOptional": true | ||
}, | ||
@@ -160,2 +432,10 @@ "source-map": { | ||
}, | ||
"verror": { | ||
"version": "1.10.0", | ||
"requires": { | ||
"assert-plus": "^1.0.0", | ||
"core-util-is": "1.0.2", | ||
"extsprintf": "^1.2.0" | ||
} | ||
}, | ||
"wordwrap": { | ||
@@ -162,0 +442,0 @@ "version": "1.0.0" |
{ | ||
"name": "@sap/hdi-deploy", | ||
"description": "HDI content deployment", | ||
"version": "4.9.2", | ||
"version": "5.0.1", | ||
"license": "See LICENSE file", | ||
@@ -9,13 +9,42 @@ "repository": {}, | ||
"dependencies": { | ||
"@sap/hana-client": "2.19.21", | ||
"@sap/hdi": "4.5.2", | ||
"@sap/xsenv": "4.2.0", | ||
"async": "3.2.3", | ||
"dotenv": "10.0.0", | ||
"handlebars": "4.7.7", | ||
"hdb": "0.19.3", | ||
"micromatch": "4.0.4" | ||
"async": "3.2.5", | ||
"dotenv": "16.3.1", | ||
"handlebars": "4.7.8", | ||
"micromatch": "4.0.5" | ||
}, | ||
"peerDependencies": { | ||
"@sap/hana-client": "^2 >= 2.6", | ||
"hdb": "^0" | ||
}, | ||
"peerDependenciesMeta": { | ||
"@sap/hana-client": { | ||
"optional": true | ||
}, | ||
"hdb": { | ||
"optional": true | ||
} | ||
}, | ||
"devDependencies": { | ||
"@sap/hana-client": "~2.19.20", | ||
"hdb": "~0.19.3", | ||
"command-line-args": "^4.0.7", | ||
"command-line-usage": "^4.0.2", | ||
"eslint": "^7.20.0", | ||
"eslint-plugin-node": "^11.1.0", | ||
"filter-node-package": "^3.2.0", | ||
"istanbul": "0.4.5", | ||
"jshint": "2.9.4", | ||
"mocha": "3.1.2", | ||
"rewire": "2.5.2", | ||
"rimraf": "^3.0.2", | ||
"semver": "^6.1.1", | ||
"shelljs": "0.8.5", | ||
"should": "11.1.1", | ||
"sinon": "1.17.6", | ||
"uuid": "3.1.0" | ||
}, | ||
"engines": { | ||
"node": "^12.0.0 || ^14.0.0 || ^16.0.0 || ^18.0.0 || ^20.0.0" | ||
"node": "^18.0.0 || ^20.0.0" | ||
}, | ||
@@ -34,2 +63,16 @@ "files": [ | ||
"scripts": { | ||
"start": "node deploy.js", | ||
"postinstall": "node lib/check_client.js", | ||
"wrap": "rm -rf node_modules && rm npm-shrinkwrap.json && npm install && npm dedupe && npm shrinkwrap --production && npm ls", | ||
"prepare-release": "npm shrinkwrap && clean-packages -i", | ||
"jshint": "jshint *.js lib/ test/", | ||
"lint": "eslint *.js lib/ test/", | ||
"test": "test/test-quick.sh", | ||
"test.js": "node test-quick.js", | ||
"test-all.js": "node test-all-filtered.js", | ||
"test.win": "test\\test-quick.bat", | ||
"test-all": "test/test-all.sh", | ||
"test-all.win": "test\\test-all.bat", | ||
"test-all-filtered": "test/test-all-filtered.sh", | ||
"test-all-filtered.win": "test\\test-all-filtered.bat", | ||
"backup-shrinkwrap": "cp npm-shrinkwrap.json backup-npm-shrinkwrap.json", | ||
@@ -36,0 +79,0 @@ "restore-shrinkwrap": "mv backup-npm-shrinkwrap.json npm-shrinkwrap.json" |
Sorry, the diff of this file is too big to display
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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
517868
88
11089
1166
17
2
49
+ Addedasync@3.2.5(transitive)
+ Addedbraces@3.0.2(transitive)
+ Addeddotenv@16.3.1(transitive)
+ Addedfill-range@7.0.1(transitive)
+ Addedhandlebars@4.7.8(transitive)
+ Addedhdb@0.19.7(transitive)
+ Addedmicromatch@4.0.5(transitive)
+ Addeduglify-js@3.17.4(transitive)
- Removed@sap/hana-client@2.19.21
- Removedhdb@0.19.3
- Removedbraces@3.0.3(transitive)
- Removeddotenv@10.0.0(transitive)
- Removedfill-range@7.1.1(transitive)
- Removedhandlebars@4.7.7(transitive)
- Removedhdb@0.19.3(transitive)
- Removedmicromatch@4.0.4(transitive)
- Removeduglify-js@3.19.3(transitive)
Updatedasync@3.2.5
Updateddotenv@16.3.1
Updatedhandlebars@4.7.8
Updatedmicromatch@4.0.5