@toa.io/extensions.configuration 0.20.0-dev.15 → 0.20.0-dev.17

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toa.io/extensions.configuration",
3
- "version": "0.20.0-dev.15",
3
+ "version": "0.20.0-dev.17",
4
4
  "description": "Toa Configuration",
5
5
  "author": "temich <tema.gurtovoy@gmail.com>",
6
6
  "homepage": "https://github.com/toa-io/toa#readme",
@@ -16,11 +16,11 @@
16
16
  "access": "public"
17
17
  },
18
18
  "dependencies": {
19
- "@toa.io/core": "0.20.0-dev.15",
20
- "@toa.io/generic": "0.20.0-dev.15",
21
- "@toa.io/schema": "0.20.0-dev.15",
22
- "@toa.io/yaml": "0.20.0-dev.15",
19
+ "@toa.io/core": "0.20.0-dev.17",
20
+ "@toa.io/generic": "0.20.0-dev.17",
21
+ "@toa.io/schema": "0.20.0-dev.17",
22
+ "@toa.io/yaml": "0.20.0-dev.17",
23
23
  "clone-deep": "4.0.1"
24
24
  },
25
- "gitHead": "59b98b392985c2fb6ed8714e160f75a61c65d4b8"
25
+ "gitHead": "cafb719d8e80d3e78a00904dc6ab6d6b0d5b568b"
26
26
  }
@@ -109,9 +109,7 @@ class Provider extends Connector {
109
109
  return secrets(object, (variable) => {
110
110
  if (!(variable in process.env)) throw new Error(`Configuration secret value ${variable} is not set`)
111
111
 
112
- const base64 = process.env[variable]
113
-
114
- return decode(base64)
112
+ return process.env[variable]
115
113
  })
116
114
  }
117
115
  }
@@ -108,7 +108,7 @@ function setEnv (configuration, secrets) {
108
108
  for (const [key, value] of Object.entries(secrets)) {
109
109
  const variable = PREFIX + '_' + key
110
110
 
111
- process.env[variable] = encode(value)
111
+ process.env[variable] = value
112
112
  usedVariables.push(variable)
113
113
  }
114
114
  }