Comparing version 0.3.17 to 0.3.18
10
index.js
@@ -319,7 +319,15 @@ "use strict"; | ||
const iter = { | ||
nextRows: Array(100), | ||
nextRowIndex: 100, | ||
next() { | ||
const row = rowsNext.call(rows); | ||
if (this.nextRowIndex === 100) { | ||
rowsNext.call(rows, this.nextRows); | ||
this.nextRowIndex = 0; | ||
} | ||
const row = this.nextRows[this.nextRowIndex]; | ||
this.nextRows[this.nextRowIndex] = undefined; | ||
if (!row) { | ||
return { done: true }; | ||
} | ||
this.nextRowIndex++; | ||
return { value: row, done: false }; | ||
@@ -326,0 +334,0 @@ }, |
{ | ||
"name": "libsql", | ||
"version": "0.3.17", | ||
"version": "0.3.18", | ||
"description": "A better-sqlite3 compatible API for libSQL that supports Bun, Deno, and Node", | ||
@@ -74,10 +74,10 @@ "os": [ | ||
"optionalDependencies": { | ||
"@libsql/darwin-arm64": "0.3.17", | ||
"@libsql/darwin-x64": "0.3.17", | ||
"@libsql/linux-arm64-gnu": "0.3.17", | ||
"@libsql/linux-arm64-musl": "0.3.17", | ||
"@libsql/linux-x64-gnu": "0.3.17", | ||
"@libsql/linux-x64-musl": "0.3.17", | ||
"@libsql/win32-x64-msvc": "0.3.17" | ||
"@libsql/darwin-arm64": "0.3.18", | ||
"@libsql/darwin-x64": "0.3.18", | ||
"@libsql/linux-arm64-gnu": "0.3.18", | ||
"@libsql/linux-arm64-musl": "0.3.18", | ||
"@libsql/linux-x64-gnu": "0.3.18", | ||
"@libsql/linux-x64-musl": "0.3.18", | ||
"@libsql/win32-x64-msvc": "0.3.18" | ||
} | ||
} |
@@ -321,7 +321,16 @@ "use strict"; | ||
const iter = { | ||
nextRows: Array(100), | ||
nextRowIndex: 100, | ||
next() { | ||
const row = rowsNext.call(rows); | ||
if (this.nextRowIndex === 100) { | ||
this.nextRows.fill(null); | ||
rowsNext.call(rows, this.nextRows); | ||
this.nextRowIndex = 0; | ||
} | ||
const row = this.nextRows[this.nextRowIndex]; | ||
this.nextRows[this.nextRowIndex] = null; | ||
if (!row) { | ||
return { done: true }; | ||
} | ||
this.nextRowIndex++; | ||
return { value: row, done: false }; | ||
@@ -328,0 +337,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36862
834