(options)
| 2087 | } |
| 2088 | } |
| 2089 | function config8(options) { |
| 2090 | if (_dotenvKey(options).length === 0) { |
| 2091 | return DotenvModule.configDotenv(options); |
| 2092 | } |
| 2093 | const vaultPath = _vaultPath(options); |
| 2094 | if (!vaultPath) { |
| 2095 | _warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${vaultPath}. Did you forget to build it?`); |
| 2096 | return DotenvModule.configDotenv(options); |
| 2097 | } |
| 2098 | return DotenvModule._configVault(options); |
| 2099 | } |
| 2100 | function decrypt(encrypted, keyStr) { |
| 2101 | const key = Buffer.from(keyStr.slice(-64), "hex"); |
| 2102 | let ciphertext = Buffer.from(encrypted, "base64"); |
nothing calls this directly
no test coverage detected
searching dependent graphs…