We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85ab3d6 commit fb5af55Copy full SHA for fb5af55
lib/interceptor/dump.js
@@ -13,17 +13,13 @@ class DumpHandler extends DecoratorHandler {
13
#reason = null
14
#handler = null
15
16
- constructor ({ maxSize, timeout }, handler) {
+ constructor ({ maxSize }, handler) {
17
super(handler)
18
19
if (maxSize != null && (!Number.isFinite(maxSize) || maxSize < 1)) {
20
throw new InvalidArgumentError('maxSize must be a number greater than 0')
21
}
22
23
- if (timeout != null && (!Number.isFinite(timeout) || timeout < 1)) {
24
- throw new InvalidArgumentError('timeout must be a number greater than 0')
25
- }
26
-
27
this.#maxSize = maxSize ?? this.#maxSize
28
this.#handler = handler
29
0 commit comments