vvauth 2.0.3 → 2.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,22 @@
1
+ name: publish-npm
2
+ on:
3
+ create:
4
+ tags:
5
+ - 'v*'
6
+
7
+ permissions:
8
+ id-token: write
9
+ contents: read
10
+
11
+ jobs:
12
+ publish-npm:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ - uses: actions/setup-node@v4
17
+ with:
18
+ node-version: '24.x'
19
+ registry-url: 'https://registry.npmjs.org'
20
+ - run: npm install
21
+ - run: npm run eslint
22
+ - run: npm publish
package/index.js CHANGED
@@ -86,7 +86,7 @@ class vvauth {
86
86
  }
87
87
 
88
88
 
89
- this.VAULT_ADDR = this.rc.vault_addr; //might be null
89
+ this.VAULT_ADDR = this.rc.vault_addr || process.env.VAULT_ADDR; //might be null
90
90
  this.VAULT_TOKEN = process.env.VAULT_TOKEN;
91
91
 
92
92
  if(this.VAULT_ADDR)
@@ -180,7 +180,7 @@ class vvauth {
180
180
  if(this.VAULT_TOKEN)
181
181
  env.VAULT_TOKEN = this.VAULT_TOKEN;
182
182
  if(this.VAULT_ADDR)
183
- env.VAULT_TOKEN = this.VAULT_ADDR;
183
+ env.VAULT_ADDR = this.VAULT_ADDR;
184
184
 
185
185
 
186
186
  let {'ssh-agent-crypt' : agent } = this.rc;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vvauth",
3
- "version": "2.0.3",
3
+ "version": "2.0.6",
4
4
  "description": "Vault Auth helper",
5
5
  "main": "index.js",
6
6
  "bin": {