node-vault-client
Advanced tools
Comparing version 0.6.0 to 0.6.1
{ | ||
"name": "node-vault-client", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"description": "A Vault Client implemented in pure javascript for HashiCorp Vault. It supports variety of Auth Backends and performs lease renewal for issued auth token.", | ||
@@ -5,0 +5,0 @@ "repository": "github:namecheap/node-vault-client", |
@@ -168,3 +168,3 @@ 'use strict'; | ||
getHeaders() { | ||
getHeaders(token) { | ||
if (this.__namespace) { | ||
@@ -188,3 +188,3 @@ return { | ||
return this.__auth.getAuthToken() | ||
.then(token => this.__api.makeRequest('GET', path, null, this.getHeaders())) | ||
.then(token => this.__api.makeRequest('GET', path, null, this.getHeaders(token))) | ||
.then(res => { | ||
@@ -209,3 +209,3 @@ this.__log.debug('receive secret %s', path); | ||
return this.__auth.getAuthToken() | ||
.then(token => this.__api.makeRequest('LIST', path, null, this.getHeaders())) | ||
.then(token => this.__api.makeRequest('LIST', path, null, this.getHeaders(token))) | ||
.then(res => { | ||
@@ -231,3 +231,3 @@ this.__log.debug('got secrets list %s', path); | ||
return this.__auth.getAuthToken() | ||
.then((token) => this.__api.makeRequest('POST', path, data, this.getHeaders())) | ||
.then((token) => this.__api.makeRequest('POST', path, data, this.getHeaders(token))) | ||
.then((response) => { | ||
@@ -234,0 +234,0 @@ this.__log.debug('secret %s was written', path); |
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
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
49161
0
0