@gscdump/nuxt 0.21.1 → 0.21.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.
@@ -244,8 +244,13 @@ function createSnapshotAnalyzerInstance(
244
244
  qs.set('start', range.start)
245
245
  qs.set('end', range.end)
246
246
  }
247
- return $fetch<FileResolutionResponse>(`/api/sites/${siteId}/analysis-sources?${qs}`, {
247
+ // Hit the `__gsc` layer surface (session-backed, credentialed) on the
248
+ // gscdump data origin — not a bare relative path, which would resolve
249
+ // against the embedding app's own origin and 404.
250
+ const apiBase = (useGscAnalyticsConfig().apiBase ?? '').replace(/\/+$/, '')
251
+ return $fetch<FileResolutionResponse>(`${apiBase}/api/__gsc/sites/${siteId}/analysis-sources?${qs}`, {
248
252
  headers: { 'cache-control': 'no-cache' },
253
+ credentials: 'include',
249
254
  signal,
250
255
  })
251
256
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gscdump/nuxt",
3
3
  "type": "module",
4
- "version": "0.21.1",
4
+ "version": "0.21.2",
5
5
  "description": "Nuxt layer: GSC analytics UI + DuckDB-WASM integration. Frontend-only; server primitives live in @gscdump/analysis, @gscdump/engine-sqlite, @gscdump/cloudflare, and host apps.",
6
6
  "author": {
7
7
  "name": "Harlan Wilton",
@@ -55,12 +55,12 @@
55
55
  "defu": "^6.1.7",
56
56
  "ofetch": "^1.5.1",
57
57
  "tailwindcss": "^4.3.0",
58
- "@gscdump/contracts": "0.21.1",
59
- "@gscdump/engine": "0.21.1",
60
- "@gscdump/engine-duckdb-wasm": "0.21.1",
61
- "@gscdump/sdk": "0.21.1",
62
- "@gscdump/analysis": "0.21.1",
63
- "gscdump": "0.21.1"
58
+ "@gscdump/analysis": "0.21.2",
59
+ "@gscdump/contracts": "0.21.2",
60
+ "@gscdump/engine": "0.21.2",
61
+ "@gscdump/engine-duckdb-wasm": "0.21.2",
62
+ "@gscdump/sdk": "0.21.2",
63
+ "gscdump": "0.21.2"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@nuxt/kit": "^4.4.6",