code: function updateView(id, viewID, viewObj) {
    return updateItem(id, item => {
      const pos = item.views.findIndex(e => e.viewID === viewID);
      if (_.isFunction(viewObj)) {
        viewObj(item.views[pos]);
      } else {
        item.views[pos] = viewObj;
      }
    });
  }
docs: Update view
  @param {string} id - Package instance ID
  @param {string} viewID - view ID
  @param {object} viewObj - view object or update function