dist/fhlog.js
/**
 * Checks that metadata supplied is the correct format.
 * @param  {Object} m
 */
Checks that metadata supplied is the correct format.
@param  {Object} m
Checks that metadata supplied is the correct format . @param { Object } m
function verifyMeta (m) {
  if (typeof m !== 'object') {
    throw new Error('Meta for logs must be a serialisable object.');
  }
  try {
    JSON.stringify(m);
  } catch (e) {
    throw new Error('Meta for logs must be a serialisable object.');
  }
}
function verifyMeta ( m ) { if ( typeof m !== 'object' ) { throw new Error ( 'Meta for logs must be a serialisable object.' ) ; } try { JSON . stringify ( m ) ; } catch ( e ) { throw new Error ( 'Meta for logs must be a serialisable object.' ) ; } }
Checks that metadata supplied is the correct format.
Checks that metadata supplied is the correct format .