// @ts-nocheck

/* eslint-disable */
import pad from "./pad.mjs";
/**
 * @param {String} value YYYY-MM format
 * @param {Number} sign -1 or +1
 */

export default ((value, sign) => {
  const [year, month] = value.split('-').map(Number);

  if (month + sign === 0) {
    return "".concat(year - 1, "-12");
  } else if (month + sign === 13) {
    return "".concat(year + 1, "-01");
  } else {
    return "".concat(year, "-").concat(pad(month + sign));
  }
});
//# sourceMappingURL=monthChange.mjs.map