client/src/modules/helpers.js
/**
 * Hash a query object for versioning purposes
 * @param {Object} query the query
 */
Hash a query object for versioning purposes
@param {Object} query the query
Hash a query object for versioning purposes @param { Object } query the query
function hash(query = {}) {
	const qstring = qs.stringify(query);
	const qhash = crypto.MD5(qstring).toString(crypto.enc.Hex);
	return { qhash, qstring };
}
function hash ( query = { } ) { const qstring = qs . stringify ( query ) ; const qhash = crypto . MD5 ( qstring ) . toString ( crypto . enc . Hex ) ; return { qhash , qstring } ; }
Hash a query object for versioning purposes
 @param {Object} query the query
Hash a query object for versioning purposes @param { Object } query the query