@js-joda/core 5.3.0 → 5.3.2

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": "@js-joda/core",
3
- "version": "5.3.0",
3
+ "version": "5.3.2",
4
4
  "description": "a date and time library for javascript",
5
5
  "repository": {
6
6
  "type": "git",
@@ -48,5 +48,5 @@
48
48
  "sourceMap": false,
49
49
  "instrument": false
50
50
  },
51
- "gitHead": "de4c9adcfddc2d1c06dc4d4b748580134ccd6a0f"
51
+ "gitHead": "9b15fdaae1f66b31aebb9e2ceadc90293d66dbec"
52
52
  }
package/src/YearMonth.js CHANGED
@@ -881,6 +881,7 @@ export class YearMonth extends Temporal {
881
881
  * @see #isValidDay(int)
882
882
  */
883
883
  atDay(dayOfMonth) {
884
+ requireNonNull(dayOfMonth, 'dayOfMonth');
884
885
  return LocalDate.of(this._year, this._month, dayOfMonth);
885
886
  }
886
887
 
package/src/ZoneRegion.js CHANGED
@@ -29,7 +29,6 @@ import { ZoneRulesProvider } from './zone/ZoneRulesProvider';
29
29
  */
30
30
  export class ZoneRegion extends ZoneId {
31
31
  /**
32
- * not yet implemented
33
32
  * @param {string} zoneId
34
33
  * @return {ZoneId}
35
34
  */
package/src/js-joda.js CHANGED
@@ -150,7 +150,7 @@ const jsJodaExports = {
150
150
  /**
151
151
  * @private
152
152
  *
153
- * @type {function(*=): *}
153
+ * @type { function(function(jsJoda: JsJoda) }
154
154
  */
155
155
  const use = bindUse(jsJodaExports);
156
156
  jsJodaExports.use = use;
package/src/use.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * @private
3
3
  *
4
4
  * @param jsJoda
5
- * @returns {function(*=): *}
5
+ * @returns { function(jsJoda: JsJoda) }
6
6
  */
7
7
  export function bindUse(jsJoda) {
8
8
  const used = [];