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

node-vault

Package Overview
Dependencies
Maintainers
6
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-vault - npm Package Compare versions

Comparing version 0.7.1 to 0.8.0

2

package.json
{
"name": "node-vault",
"version": "0.7.1",
"version": "0.8.0",
"description": "Javascript client for HashiCorp's Vault",

@@ -5,0 +5,0 @@ "main": "./src/index.js",

@@ -327,7 +327,46 @@ const sealStatusResponse = {

method: 'PUT',
path: '/sys/renew/{{lease_id}}',
path: '/sys/leases/renew',
schema: {
req: {
type: 'object',
properties: {
lease_id: {
type: 'string',
},
increment: {
type: 'integer',
},
},
required: ['lease_id'],
},
res: {
type: 'object',
properties: {
lease_id: {
type: 'string',
},
renewable: {
type: 'boolean',
},
lease_duration: {
type: 'integer',
},
},
},
},
},
revoke: {
method: 'PUT',
path: '/sys/revoke/{{lease_id}}',
path: '/sys/leases/revoke',
schema: {
req: {
type: 'object',
properties: {
lease_id: {
type: 'string',
},
},
required: ['lease_id'],
},
},
},

@@ -334,0 +373,0 @@ revokePrefix: {

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

options.headers = options.headers || {};
if (client.token !== undefined || client.token !== null || client.token !== '') {
if (typeof client.token === 'string' && client.token.length) {
options.headers['X-Vault-Token'] = client.token;

@@ -76,0 +76,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