turf-common 1.2.1-beta.29 → 1.2.1-beta.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -87,7 +87,7 @@ var DateUtilService = /** @class */ (function () {
87
87
  * @returns {string} A string representing the resulting date in YYMM format.
88
88
  */
89
89
  DateUtilService.prototype.addNMonth = function (dateCode, N) {
90
- var date = (0, date_fns_1.parse)("20".concat(dateCode), "yyyyMMdd", new Date());
90
+ var date = (0, date_fns_1.parse)("20".concat(dateCode), "yyyyMM", new Date());
91
91
  var resultDate = N >= 0 ? (0, date_fns_1.addMonths)(date, N) : (0, date_fns_1.subMonths)(date, Math.abs(N));
92
92
  return (0, date_fns_1.format)(resultDate, "yyMM");
93
93
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turf-common",
3
- "version": "1.2.1-beta.29",
3
+ "version": "1.2.1-beta.30",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",