decodeVersionId - decode the version id from a query object * @param {object} [reqQuery] - request query object * @param {string} [reqQuery.versionId] - version ID sent in request query * @return {(Error|string|undefined)} - return Invalid Argument if decryption * fails due to improper format, o
(reqQuery)
| 45 | * fails due to improper format, otherwise undefined or the decoded version id |
| 46 | */ |
| 47 | function decodeVersionId(reqQuery) { |
| 48 | if (!reqQuery || !reqQuery.versionId) { |
| 49 | return undefined; |
| 50 | } |
| 51 | return decodeVID(reqQuery.versionId); |
| 52 | } |
| 53 | |
| 54 | /** getVersionIdResHeader - return encrypted version ID if appropriate |
| 55 | * @param {object} [verCfg] - bucket versioning configuration |
no test coverage detected