(value: string)
| 305 | let nextAbortSignalId = 0; |
| 306 | |
| 307 | function fingerprintFetchCacheSecret(value: string) { |
| 308 | return { |
| 309 | __promptfooSecretFingerprint: crypto |
| 310 | .createHmac('sha256', FETCH_CACHE_SECRET_HMAC_SALT) |
| 311 | .update(FETCH_CACHE_SECRET_HMAC_CONTEXT) |
| 312 | .update('\0') |
| 313 | .update(value) |
| 314 | .digest('hex'), |
| 315 | }; |
| 316 | } |
| 317 | |
| 318 | function isSensitiveFetchCacheString(value: string, fieldName?: string) { |
| 319 | return (fieldName && isSecretField(fieldName)) || looksLikeSecret(value); |
no test coverage detected
searching dependent graphs…