@dbsp/adapter-pgsql 1.0.1 → 1.0.2

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/dist/index.js CHANGED
@@ -15807,6 +15807,11 @@ var PgsqlAdapter = class _PgsqlAdapter {
15807
15807
  */
15808
15808
  stream(query, options) {
15809
15809
  const chunkSize = options?.chunkSize ?? 100;
15810
+ if (!Number.isSafeInteger(chunkSize) || chunkSize <= 0) {
15811
+ throw new Error(
15812
+ `Invalid stream chunkSize: ${chunkSize}. Must be a positive integer.`
15813
+ );
15814
+ }
15810
15815
  const adapter = this;
15811
15816
  async function* streamGenerator() {
15812
15817
  if (adapter.client) {