module.exports = {
  swapProps: function (obj) {
    this.props.cursor.update(function (state) {
      return state.mergeDeep(obj);
    });
  }
};

module.exports = {
  swapProps: function (obj) {
    return this.props.cursor.update(function (state) {
      return state.mergeDeep(obj);
    });
  }
};

Add return of updated cursor in SwapProps
Add return of updated cursor in SwapProps
