@bemoje/date 0.2.8 → 0.2.9

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bemoje/date",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "description": "Date related tools/util.",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {},
@@ -21,8 +21,9 @@ const isLeapYear_1 = require("./isLeapYear");
21
21
  */
22
22
  function numDaysInMonth(month, year) {
23
23
  (0, assertValidDateMonth_1.assertValidDateMonth)(month);
24
- const DAYS_IN_MONTH = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
25
24
  return month === 2 && year !== undefined && (0, isLeapYear_1.isLeapYear)(year) ? 29 : DAYS_IN_MONTH[month];
26
25
  }
27
26
  exports.numDaysInMonth = numDaysInMonth;
27
+ // The number of days there are in each month (except leap year).
28
+ const DAYS_IN_MONTH = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
28
29
  //# sourceMappingURL=numDaysInMonth.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"numDaysInMonth.js","sourceRoot":"","sources":["../../../../../packages/date/src/lib/numDaysInMonth.ts"],"names":[],"mappings":";;;AAAA,iEAA6D;AAC7D,6CAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,cAAc,CAAC,KAAa,EAAE,IAAa;IACzD,IAAA,2CAAoB,EAAC,KAAK,CAAC,CAAA;IAC3B,MAAM,aAAa,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAA;IACzE,OAAO,KAAK,KAAK,CAAC,IAAI,IAAI,KAAK,SAAS,IAAI,IAAA,uBAAU,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,CAAA;AAC1F,CAAC;AAJD,wCAIC"}
1
+ {"version":3,"file":"numDaysInMonth.js","sourceRoot":"","sources":["../../../../../packages/date/src/lib/numDaysInMonth.ts"],"names":[],"mappings":";;;AAAA,iEAA6D;AAC7D,6CAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,cAAc,CAAC,KAAa,EAAE,IAAa;IACzD,IAAA,2CAAoB,EAAC,KAAK,CAAC,CAAA;IAC3B,OAAO,KAAK,KAAK,CAAC,IAAI,IAAI,KAAK,SAAS,IAAI,IAAA,uBAAU,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,CAAA;AAC1F,CAAC;AAHD,wCAGC;AAED,iEAAiE;AACjE,MAAM,aAAa,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAA"}