Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hmcts/properties-volume

Package Overview
Dependencies
Maintainers
19
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hmcts/properties-volume - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

13

lib/Properties.js

@@ -5,2 +5,3 @@ "use strict";

const merge = require("lodash.merge");
const path = require("path");
const fs = require("fs");

@@ -10,4 +11,4 @@ const log = nodejs_logging_1.Logger.getLogger('applicationRunner');

log.info(`Reading properties from volume: '${mountPoint}'`);
const prefix = getPrefix(mountPoint.toString());
const properties = readVaults(mountPoint);
const prefix = getPrefix(mountPoint.toString());
config[prefix] = merge(config[prefix] || {}, properties);

@@ -17,4 +18,8 @@ return config;

exports.addTo = addTo;
function getPrefix(path) {
return path.substr(path.lastIndexOf('/') + 1);
function getPrefix(aPath) {
const prefixFolder = path.basename(aPath);
if (prefixFolder.length === 0) {
throw new Error(`Invalid properties mount point supplied: '${aPath}'`);
}
return prefixFolder;
}

@@ -38,2 +43,2 @@ function addDir(dir, obj, mountPoint) {

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJvcGVydGllcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9Qcm9wZXJ0aWVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMERBQThDO0FBQzlDLHNDQUFzQztBQUN0Qyx5QkFBd0I7QUFFeEIsTUFBTSxHQUFHLEdBQUcsdUJBQU0sQ0FBQyxTQUFTLENBQUMsbUJBQW1CLENBQUMsQ0FBQTtBQUVqRCxlQUF1QixNQUFXLEVBQUUsYUFBMEIsZUFBZTtJQUMzRSxHQUFHLENBQUMsSUFBSSxDQUFDLG9DQUFvQyxVQUFVLEdBQUcsQ0FBQyxDQUFBO0lBQzNELE1BQU0sVUFBVSx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DLElBQUksRUFBRSxDQUFBO0lBQ3JELE9BQU8sTUFBTSxDQUFBO0FBQ2YsQ0FBQztBQUVELGtCQUFtQixVQUF1QixFQUFFLEdBQVcsRUFBRSxJQUFZO0lBQ25FLE9BQU8sRUFBRSxDQUFDLFlBQVksQ0FBQyxVQUFVLEdBQUcsR0FBRyxHQUFHLEdBQUcsR0FBRyxHQUFHLEdBQUcsSUFBSSxFQUFFLE1BQU0sQ0FBQyxDQUFBO0FBQ3JFLENBQUM7QUFFRCx5QkFBMEIsVUFBdUIsRUFBRSxHQUFXO0lBQzVELE9BQU8sRUFBRSxDQUFDLFdBQVcsQ0FBQyxVQUFVLEdBQUcsR0FBRyxHQUFHLEdBQUcsQ0FBQyxDQUFBO0FBQy9DLENBQUM7QUFFRCxvQkFBcUIsVUFBdUI7SUFDMUMsT0FBTyxFQUFFLENBQUMsV0FBVyxDQUFDLFVBQVUsRUFBRSxJQUFJLENBQUMsQ0FBQyxNQUFNLENBQUMsQ0FBQyxHQUFHLEVBQUUsR0FBRyxFQUFFLEVBQUUsQ0FBQyxNQUFNLENBQUMsR0FBRyxFQUFFLEdBQUcsRUFBRSxVQUFVLENBQUMsRUFBRSxFQUFFLENBQUMsQ0FBQTtBQUNoRyxDQUFDIn0=
{
"name": "@hmcts/properties-volume",
"version": "0.0.5",
"version": "0.0.6",
"description": "Azure key-vault flex volume to express properties integration",

@@ -28,3 +28,4 @@ "license": "MIT",

"@types/lodash.merge": "^4.6.5",
"lodash.merge": "^4.6.1"
"lodash.merge": "^4.6.1",
"path":"^0.12.7"
},

@@ -31,0 +32,0 @@ "devDependencies": {

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