Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit

Permalink
Direct client wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwilcox committed Jan 5, 2017
1 parent 036e8fd commit f947648
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function createAndWrapKeyVaultClient(options) {
if (!options) {
throw new Error('No options provided for the key vault resolver.');
}
let client = typeof(options) === 'function' && options.getSecret ? options : options.client;
let client = options && options.getSecret && typeof(options.getSecret) === 'function' ? options : options.client;
if (options.credentials && !client) {
client = new azureKeyVault.KeyVaultClient(options.credentials);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ospo/keyvault-configuration-resolver",
"version": "0.9.2",
"version": "0.9.3",
"description": "Resolves custom keyvault:// URI values within an object graph using Azure KeyVault",
"main": "lib/index.js",
"engines": {
Expand Down

0 comments on commit f947648

Please sign in to comment.