ados-rcm 1.0.371 → 1.0.372

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/dist/index.es.js CHANGED
@@ -5948,12 +5948,17 @@ const Q_ = (n) => {
5948
5948
  ] });
5949
5949
  };
5950
5950
  function Wu(n, r, i) {
5951
- const a = [];
5952
- for (let c = 0; c < 12; c++) {
5953
- const f = new Date(i, c, 1);
5954
- f >= n && f <= r && a.push(c);
5955
- }
5956
- return a;
5951
+ if (!(n instanceof Date) || !(r instanceof Date))
5952
+ throw new Error("minDate and maxDate must be valid Date objects");
5953
+ if (typeof i != "number" || isNaN(i) || !Number.isInteger(i))
5954
+ throw new Error("Year must be a valid integer");
5955
+ const a = n.getFullYear() === i ? n.getMonth() : 0, c = r.getFullYear() === i ? r.getMonth() : 11;
5956
+ if (i < n.getFullYear() || i > r.getFullYear())
5957
+ return [];
5958
+ const f = [];
5959
+ for (let d = a; d <= c; d++)
5960
+ f.push(d);
5961
+ return f;
5957
5962
  }
5958
5963
  function Im(n, r) {
5959
5964
  const i = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ados-rcm",
3
- "version": "1.0.371",
3
+ "version": "1.0.372",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "type": "module",