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

node-vault-client

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-vault-client - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

package.json
{
"name": "node-vault-client",
"version": "0.1.0",
"version": "0.1.1",
"description": "",

@@ -5,0 +5,0 @@ "engines": {

@@ -33,3 +33,3 @@ 'use strict';

getAuthToken() {
if (this.__authToken === null || (this.__authToken.isExpired() && this._reauthenticationAllowed())) {
if (this.__authToken === null || (this.__authToken instanceof AuthToken && this.__authToken.isExpired() && this._reauthenticationAllowed())) {
if (this.__authToken !== null && this.__authToken.isExpired() && !this._reauthenticationAllowed()) {

@@ -39,3 +39,3 @@ throw new errors.AuthTokenExpiredError('Auth token has expired & cannot be refreshed since auth method doesn\'t support this.');

return this._authenticate().then(authToken => {
const tokenPromise = this._authenticate().then(authToken => {
this.__authToken = authToken;

@@ -47,2 +47,5 @@

});
this.__authToken = tokenPromise;
return tokenPromise;
}

@@ -49,0 +52,0 @@

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