spooder 4.4.4 → 4.4.5

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/api.ts +1 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "spooder",
3
3
  "type": "module",
4
- "version": "4.4.4",
4
+ "version": "4.4.5",
5
5
  "exports": {
6
6
  ".": {
7
7
  "bun": "./src/api.ts",
package/src/api.ts CHANGED
@@ -712,7 +712,7 @@ export function serve(port: number) {
712
712
  const request_time = Date.now() - request_start;
713
713
 
714
714
  const is_known_slow = slow_requests.has(req);
715
- if (slow_request_callback !== null && request_time > slow_request_threshold && is_known_slow)
715
+ if (slow_request_callback !== null && request_time > slow_request_threshold && !is_known_slow)
716
716
  slow_request_callback(req, request_time, url);
717
717
 
718
718
  if (is_known_slow)