@ultimat3/db 31.16.0 → 31.17.0

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": "@ultimat3/db",
3
- "version": "31.16.0",
3
+ "version": "31.17.0",
4
4
  "description": "Postgres access, transactions, migrations and drift detection",
5
5
  "keywords": [
6
6
  "ultimate",
@@ -45,7 +45,7 @@
45
45
  "test": "bun test"
46
46
  },
47
47
  "dependencies": {
48
- "@ultimat3/core": "31.16.0"
48
+ "@ultimat3/core": "31.17.0"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "@electric-sql/pglite": ">=0.5.0"
@@ -71,8 +71,9 @@ function lineOf(
71
71
  * never reach the line: the event's `values` is not read at all.
72
72
  */
73
73
  export function slowStatementLog(options: SlowStatementLogOptions): () => void {
74
- const { thresholdMs } = options;
75
- if (!(thresholdMs > 0)) return () => undefined;
74
+ // Screened, never read for truthiness: `NaN` compared false here and switched the line off.
75
+ const thresholdMs = finiteOption('slowStatementLog', 'thresholdMs', options.thresholdMs);
76
+ if (thresholdMs <= 0) return () => undefined;
76
77
  const windowMs = finiteOption(
77
78
  'slowStatementLog',
78
79
  'windowMs',