turf-common 1.1.1-beta.71 → 1.1.1-beta.72

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.
@@ -11,5 +11,6 @@ export declare class DateUtilService {
11
11
  addNDaysToDateCode(dateCode: string, n: number): string;
12
12
  formatTimeSlotCode(timeSlot: string, both?: boolean, date?: Date | null): string;
13
13
  formatDateCode(dateCode: string): string;
14
+ getDateNDaysFromToday(n: number): Date;
14
15
  }
15
16
  export declare const dateUtilService: DateUtilService;
@@ -57,6 +57,12 @@ var DateUtilService = /** @class */ (function () {
57
57
  var d = (0, date_fns_1.format)(date, "dd-MMM (EE)");
58
58
  return d.slice(0, d.length - 2) + d.slice(d.length - 1);
59
59
  };
60
+ DateUtilService.prototype.getDateNDaysFromToday = function (n) {
61
+ var today = new Date();
62
+ var futureDate = new Date(today);
63
+ futureDate.setDate(today.getDate() + n);
64
+ return futureDate;
65
+ };
60
66
  return DateUtilService;
61
67
  }());
62
68
  exports.DateUtilService = DateUtilService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turf-common",
3
- "version": "1.1.1-beta.71",
3
+ "version": "1.1.1-beta.72",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",