import { encodeVersion } from './encode_version' ; /**
 * Helper for encoding a version from a "hit" (hits.hits[#] from _search) or
 * "doc" (body from GET, update, etc) object
 */ export function encodeHitVersion ( response ) { return encodeVersion ( response . _seq_no , response . _primary_term ) ; }