()
| 202 | } |
| 203 | |
| 204 | function getAllowUnauthorized() { |
| 205 | const allowUnauthorized = process.env.NODE_TLS_REJECT_UNAUTHORIZED === '0'; |
| 206 | |
| 207 | if (allowUnauthorized && warnOnAllowUnauthorized) { |
| 208 | warnOnAllowUnauthorized = false; |
| 209 | process.emitWarning( |
| 210 | 'Setting the NODE_TLS_REJECT_UNAUTHORIZED ' + |
| 211 | 'environment variable to \'0\' makes TLS connections ' + |
| 212 | 'and HTTPS requests insecure by disabling ' + |
| 213 | 'certificate verification.'); |
| 214 | } |
| 215 | return allowUnauthorized; |
| 216 | } |
| 217 | |
| 218 | module.exports = { |
| 219 | getCLIOptionsInfo: getCLIOptionsInfoFromBinding, |
no outgoing calls
no test coverage detected
searching dependent graphs…