@nxtedition/lib 23.3.32 → 23.3.33

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": "@nxtedition/lib",
3
- "version": "23.3.32",
3
+ "version": "23.3.33",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "type": "module",
@@ -537,10 +537,10 @@ export default function ({ ds, proxify, compiler, logger }) {
537
537
 
538
538
  dueTime = Number.isFinite(dueTime) ? dueTime : new Date(dueTime).valueOf()
539
539
 
540
- const timeout = dueTime - Date.now()
540
+ const delay = dueTime - Date.now()
541
541
 
542
- if (Number.isFinite(dueTime) && timeout > 0) {
543
- this._getEntry(key, TimerEntry, timeout)
542
+ if (Number.isFinite(dueTime) && delay > 0 && delay < 2 ** 31 - 1) {
543
+ this._getEntry(key, TimerEntry, delay)
544
544
  if (suspend ?? this._errored) {
545
545
  throw kSuspend
546
546
  } else {