@8ms/helpers 2.0.23 → 2.0.24

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.
Binary file
@@ -39,7 +39,7 @@ export declare const getDatesBetween: (start: InputDate, end: InputDate) => Date
39
39
  /**
40
40
  * Get an array of DateTime objects representing the 1st of each month between start and end dates.
41
41
  */
42
- export declare const getMonthlyDatesArray: (start: InputDate, end: InputDate) => DateTime<boolean>[];
42
+ export declare const getMonthsBetween: (start: InputDate, end: InputDate) => DateTime<boolean>[];
43
43
  /**
44
44
  * If a given date is beyond the maximum, return the maximum.
45
45
  */
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isLastWeek = exports.isThisWeek = exports.getYesterday = exports.getWeeksAgo = exports.getToday = exports.getTwoWeeksAgo = exports.getThisWeek = exports.getLastWeek = exports.getSunday = exports.getMonday = exports.getMin = exports.getMax = exports.getMonthlyDatesArray = exports.getDatesBetween = exports.differenceInBusinessDays = exports.differenceInMinutes = exports.isWeekend = exports.isSunday = exports.isSaturday = exports.isFriday = exports.isThursday = exports.isWednesday = exports.isTuesday = exports.isMonday = exports.getDate = exports.getUnix = void 0;
3
+ exports.isLastWeek = exports.isThisWeek = exports.getYesterday = exports.getWeeksAgo = exports.getToday = exports.getTwoWeeksAgo = exports.getThisWeek = exports.getLastWeek = exports.getSunday = exports.getMonday = exports.getMin = exports.getMax = exports.getMonthsBetween = exports.getDatesBetween = exports.differenceInBusinessDays = exports.differenceInMinutes = exports.isWeekend = exports.isSunday = exports.isSaturday = exports.isFriday = exports.isThursday = exports.isWednesday = exports.isTuesday = exports.isMonday = exports.getDate = exports.getUnix = void 0;
4
4
  const luxon_1 = require("luxon");
5
5
  const getUnix = (input) => {
6
6
  return (0, exports.getDate)(input)
@@ -133,7 +133,7 @@ exports.getDatesBetween = getDatesBetween;
133
133
  /**
134
134
  * Get an array of DateTime objects representing the 1st of each month between start and end dates.
135
135
  */
136
- const getMonthlyDatesArray = (start, end) => {
136
+ const getMonthsBetween = (start, end) => {
137
137
  const months = [];
138
138
  const endDate = (0, exports.getDate)(end)
139
139
  .startOf("month");
@@ -146,7 +146,7 @@ const getMonthlyDatesArray = (start, end) => {
146
146
  }
147
147
  return months;
148
148
  };
149
- exports.getMonthlyDatesArray = getMonthlyDatesArray;
149
+ exports.getMonthsBetween = getMonthsBetween;
150
150
  /**
151
151
  * If a given date is beyond the maximum, return the maximum.
152
152
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@8ms/helpers",
3
3
  "license": "UNLICENSED",
4
- "version": "2.0.23",
4
+ "version": "2.0.24",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/8millionstories-organisation/8ms-helpers-ts.git"