(options)
| 132 | } |
| 133 | |
| 134 | function _dotenvKey (options) { |
| 135 | // prioritize developer directly setting options.DOTENV_KEY |
| 136 | if (options && options.DOTENV_KEY && options.DOTENV_KEY.length > 0) { |
| 137 | return options.DOTENV_KEY |
| 138 | } |
| 139 | |
| 140 | // secondary infra already contains a DOTENV_KEY environment variable |
| 141 | if (process.env.DOTENV_KEY && process.env.DOTENV_KEY.length > 0) { |
| 142 | return process.env.DOTENV_KEY |
| 143 | } |
| 144 | |
| 145 | // fallback to empty string |
| 146 | return '' |
| 147 | } |
| 148 | |
| 149 | function _instructions (result, dotenvKey) { |
| 150 | // Parse DOTENV_KEY. Format is a URI |
no outgoing calls
no test coverage detected
searching dependent graphs…