Socket
Socket
Sign inDemoInstall

@sap/xsenv

Package Overview
Dependencies
8
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.3.1 to 3.3.2

5

CHANGELOG.md

@@ -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 @@

21

lib/serviceBindingService.js

@@ -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 @@

2

npm-shrinkwrap.json
{
"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": {},

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc