node-vault
Advanced tools
Comparing version 0.7.1 to 0.8.0
{ | ||
"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 @@ } |
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
35706
1318