lib/index.js
function fromRawDoc(pouchDoc) {
    var obj = pouchDoc.data;
    obj.id = deserialize(pouchDoc._id);
    obj.rev = pouchDoc._rev;
    if (pouchDoc._attachments) {
      obj.attachments = pouchDoc._attachments;
    }
    return obj;
  }
function fromRawDoc(pouchDoc) {
    var obj = pouchDoc.data;
    obj.id = deserialize(pouchDoc._id);
    obj.rev = pouchDoc._rev;
    if (pouchDoc._attachments) {
      obj.attachments = pouchDoc._attachments;
    }
    return obj;
  }
function fromRawDoc ( pouchDoc ) { var obj = pouchDoc . data ; obj . id = deserialize ( pouchDoc . _id ) ; obj . rev = pouchDoc . _rev ; if ( pouchDoc . _attachments ) { obj . attachments = pouchDoc . _attachments ; } return obj ; }
Transform a PouchDB doc into a relational object.
Transform a PouchDB doc into a relational object .