vvauth 0.2.1 → 0.2.2

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.
Files changed (2) hide show
  1. package/index.js +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -80,7 +80,7 @@ class vvauth {
80
80
  _publish_env(env) {
81
81
  let cmds = [];
82
82
  for(let [k, v] of Object.entries(env)) {
83
- cmds.push(`export ${k}=${v}`);
83
+ cmds.push(`export ${k}="${v}"`);
84
84
  cmds.push(`echo export ${k}=[redacted] >&2`);
85
85
  }
86
86
  process.stdout.write(cmds.join("\n") + "\n");
@@ -126,7 +126,7 @@ class vvauth {
126
126
  async env(source = false) {
127
127
  let {profile} = await this._get_profile();
128
128
 
129
- let env = {VAULT_TOKEN : this.VAULT_TOKEN}, {env : {git, map}} = this.rc;
129
+ let env = {VAULT_TOKEN : this.VAULT_TOKEN}, {git, map} = this.rc.env || {};
130
130
  if(git) {
131
131
  map = {...map,
132
132
  "GIT_COMMITTER_NAME" : "VAUTH_USER_NAME",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vvauth",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Vault Auth helper",
5
5
  "main": "index.js",
6
6
  "bin": {