@gscdump/cloudflare 0.35.12 → 0.36.1

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.
@@ -380,13 +380,15 @@ function createServerTailDispatcher(config) {
380
380
  async function runOn(engine, query) {
381
381
  if (engine === "r2-sql") {
382
382
  const res = await config.r2Sql.runArchetype(query);
383
+ const { rows, totalRows } = extractTotal(res.rows);
383
384
  return {
384
385
  archetype: query.archetype,
385
- rows: res.rows,
386
+ rows,
386
387
  source: sourceFor("r2-sql"),
387
388
  meta: {
388
- rowCount: res.rows.length,
389
- queryMs: res.queryMs
389
+ rowCount: rows.length,
390
+ queryMs: res.queryMs,
391
+ ...totalRows !== void 0 ? { totalRows } : {}
390
392
  }
391
393
  };
392
394
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gscdump/cloudflare",
3
3
  "type": "module",
4
- "version": "0.35.12",
4
+ "version": "0.36.1",
5
5
  "description": "Cloudflare-Workers-flavored helpers for the gscdump analytics stack: AnalyticsEnv binding contract, R2 SigV4 presigner, size-hint HMAC, DuckDB Workers shims, engine factory.",
6
6
  "author": {
7
7
  "name": "Harlan Wilton",
@@ -46,10 +46,10 @@
46
46
  "dependencies": {
47
47
  "@uwdata/flechette": "^2.5.0",
48
48
  "aws4fetch": "^1.0.20",
49
- "@gscdump/contracts": "0.35.12",
50
- "@gscdump/engine": "0.35.12",
51
- "@gscdump/engine-sqlite": "0.35.12",
52
- "gscdump": "0.35.12"
49
+ "@gscdump/contracts": "0.36.1",
50
+ "@gscdump/engine": "0.36.1",
51
+ "@gscdump/engine-sqlite": "0.36.1",
52
+ "gscdump": "0.36.1"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@cloudflare/vitest-pool-workers": "^0.18.0",