@sap/xsenv
Advanced tools
Comparing version 3.3.1 to 3.3.2
@@ -8,2 +8,7 @@ # Change Log | ||
## 3.3.2 - 2022-06-17 | ||
### Fixed | ||
- service bindings for Kubernetes: bindings were not read because of symlinks | ||
## 3.3.1 - 2022-06-08 | ||
@@ -10,0 +15,0 @@ |
@@ -15,4 +15,4 @@ 'use strict'; | ||
for (const dirEntry of fs.readdirSync(dirPath, { withFileTypes: true })) { | ||
if (dirEntry.isFile()) { | ||
const filePath = path.join(dirPath, dirEntry.name); | ||
const filePath = path.join(dirPath, dirEntry.name); | ||
if (isFile(filePath, dirEntry)) { | ||
result[dirEntry.name] = fs.readFileSync(filePath, 'utf8'); | ||
@@ -24,2 +24,19 @@ } | ||
function isFile(p, entry) { | ||
if (entry.isFile()) { | ||
return true; | ||
} | ||
if (entry.isSymbolicLink()) { | ||
// Kubernetes credentials use symlinks | ||
const target = fs.realpathSync(p); | ||
const targetStat = fs.statSync(target); | ||
if (targetStat.isFile()) { | ||
return true; | ||
} | ||
} | ||
return false; | ||
} | ||
const DEFAULT_META_DATA_PROPERTIES = { type: true, provider: true }; | ||
@@ -26,0 +43,0 @@ |
{ | ||
"name": "@sap/xsenv", | ||
"version": "3.3.1", | ||
"version": "3.3.2", | ||
"lockfileVersion": 1, | ||
@@ -5,0 +5,0 @@ "requires": true, |
{ | ||
"name": "@sap/xsenv", | ||
"version": "3.3.1", | ||
"version": "3.3.2", | ||
"description": "Utility for easy setup and access of SAP HANA XS Advanced environment variables", | ||
@@ -5,0 +5,0 @@ "repository": {}, |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
55457
524
0