@nxtedition/lib 23.3.32 → 23.3.34

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/couch.d.ts CHANGED
@@ -14,6 +14,8 @@ export interface CouchRequestOptions<Stream extends boolean = false> {
14
14
  headers?: Record<string, string>
15
15
  method?: string
16
16
  body?: unknown
17
+ headersTimeout?: number
18
+ bodyTimeout?: number
17
19
  query?: {
18
20
  startkey?: string
19
21
  endkey?: string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/lib",
3
- "version": "23.3.32",
3
+ "version": "23.3.34",
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 {