@teamscala/service-boot 0.23.521 → 0.23.523

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
@@ -5,7 +5,7 @@
5
5
  "edit": "edit src/ — dependencies and exports derive from imports; everything else preserved"
6
6
  },
7
7
  "dependencies": {
8
- "@orpc/server": "1.15.4",
8
+ "@orpc/server": "*",
9
9
  "@teamscala/agreement-generation": "*",
10
10
  "@teamscala/auth": "*",
11
11
  "@teamscala/cache": "*",
@@ -31,15 +31,15 @@
31
31
  "@teamscala/timing": "*",
32
32
  "@teamscala/tool-executor": "*",
33
33
  "@teamscala/watchdog": "*",
34
- "hono": "4.13.11",
35
- "pg-boss": "12.35.0",
36
- "tailwindcss": "4.3.3",
37
- "valibot": "1.5.0"
34
+ "hono": "*",
35
+ "pg-boss": "*",
36
+ "tailwindcss": "*",
37
+ "valibot": "*"
38
38
  },
39
39
  "devDependencies": {
40
- "@happy-dom/global-registrator": "20.14.5",
41
- "@testing-library/react": "16.3.3",
42
- "bun-types": "1.4.2"
40
+ "@happy-dom/global-registrator": "*",
41
+ "@testing-library/react": "*",
42
+ "bun-types": "*"
43
43
  },
44
44
  "exports": {
45
45
  "./agreement-gate": "./src/agreement-gate.ts",
@@ -302,5 +302,5 @@
302
302
  "repository": "https://github.com/teamgbg/service-boot",
303
303
  "sideEffects": false,
304
304
  "type": "module",
305
- "version": "0.23.521"
305
+ "version": "0.23.523"
306
306
  }
@@ -4,7 +4,7 @@
4
4
  * ./apply-logger-config declares 1 runtime export(s) and 3 declared behaviour vector(s);
5
5
  * this suite asserts the import resolves, the runtime surface matches
6
6
  * exactly, and every export carries its declared kind. Regenerate from
7
- * inputs/bun-server-service-boot/api_smoke.json (scala-test-suites) — hand edits are
7
+ * inputs/server-service-boot-ts/api_smoke.json (scala-test-suites) — hand edits are
8
8
  * overwritten.
9
9
  */
10
10
 
@@ -7,8 +7,12 @@
7
7
  * Streams objects from the configured S3 bucket, converting PNG/JPEG
8
8
  * to WebP/AVIF when the browser declares support via Accept header.
9
9
  * Returns 404 for missing keys, 502 for S3 failures. Never redirects.
10
+ * Every non-2xx exit records which stage failed through the app logger:
11
+ * a 404 and a 502 are indistinguishable at the socket, so the fault plane
12
+ * (credential resolution vs store side) is only observable in the log.
10
13
  */
11
14
 
15
+ import { getAppLogger } from "@teamscala/logger/app-loggers";
12
16
  import { getClient } from "@teamscala/object-storage/create/client/get-client";
13
17
  import {
14
18
  buildEtag,
@@ -37,6 +41,9 @@ export async function handleAssetProxy(req: Request): Promise<Response> {
37
41
 
38
42
  const s3 = await getClient();
39
43
  if (!s3) {
44
+ getAppLogger().error("[asset-proxy] no storage client — credential resolution returned no client", {
45
+ key,
46
+ });
40
47
  return new Response("", { status: 502 });
41
48
  }
42
49
 
@@ -45,7 +52,11 @@ export async function handleAssetProxy(req: Request): Promise<Response> {
45
52
  let stats: Awaited<ReturnType<typeof file.stat>>;
46
53
  try {
47
54
  stats = await file.stat();
48
- } catch {
55
+ } catch (err) {
56
+ getAppLogger().error("[asset-proxy] store stat failed", {
57
+ error: err,
58
+ key,
59
+ });
49
60
  return new Response("Not Found", { status: 404 });
50
61
  }
51
62
 
@@ -117,7 +128,11 @@ export async function handleAssetProxy(req: Request): Promise<Response> {
117
128
  let body: ReadableStream<Uint8Array<ArrayBuffer>>;
118
129
  try {
119
130
  body = file.stream();
120
- } catch {
131
+ } catch (err) {
132
+ getAppLogger().error("[asset-proxy] store stream failed", {
133
+ error: err,
134
+ key,
135
+ });
121
136
  return new Response("", { status: 502 });
122
137
  }
123
138
 
@@ -4,7 +4,7 @@
4
4
  * ./error-page-logo declares 2 runtime export(s) and 6 declared behaviour vector(s);
5
5
  * this suite asserts the import resolves, the runtime surface matches
6
6
  * exactly, and every export carries its declared kind. Regenerate from
7
- * inputs/bun-server-service-boot/api_smoke.json (scala-test-suites) — hand edits are
7
+ * inputs/server-service-boot-ts/api_smoke.json (scala-test-suites) — hand edits are
8
8
  * overwritten.
9
9
  */
10
10
 
@@ -4,7 +4,7 @@
4
4
  * ./page-server-loader-graph declares 1 runtime export(s) and 1 declared behaviour vector(s);
5
5
  * this suite asserts the import resolves, the runtime surface matches
6
6
  * exactly, and every export carries its declared kind. Regenerate from
7
- * inputs/bun-server-service-boot/api_smoke.json (scala-test-suites) — hand edits are
7
+ * inputs/server-service-boot-ts/api_smoke.json (scala-test-suites) — hand edits are
8
8
  * overwritten.
9
9
  */
10
10
 
@@ -4,7 +4,7 @@
4
4
  * ./meta-title declares 3 runtime export(s) and 4 declared behaviour vector(s);
5
5
  * this suite asserts the import resolves, the runtime surface matches
6
6
  * exactly, and every export carries its declared kind. Regenerate from
7
- * inputs/bun-server-service-boot/api_smoke.json (scala-test-suites) — hand edits are
7
+ * inputs/server-service-boot-ts/api_smoke.json (scala-test-suites) — hand edits are
8
8
  * overwritten.
9
9
  */
10
10
 
@@ -4,7 +4,7 @@
4
4
  * ./resolve-brand-favicon declares 2 runtime export(s) and 5 declared behaviour vector(s);
5
5
  * this suite asserts the import resolves, the runtime surface matches
6
6
  * exactly, and every export carries its declared kind. Regenerate from
7
- * inputs/bun-server-service-boot/api_smoke.json (scala-test-suites) — hand edits are
7
+ * inputs/server-service-boot-ts/api_smoke.json (scala-test-suites) — hand edits are
8
8
  * overwritten.
9
9
  */
10
10
 
@@ -4,7 +4,7 @@
4
4
  * ./resolve-theme-mode declares 1 runtime export(s) + 1 type(s) and 5 declared behaviour vector(s);
5
5
  * this suite asserts the import resolves, the runtime surface matches
6
6
  * exactly, and every export carries its declared kind. Regenerate from
7
- * inputs/bun-server-service-boot/api_smoke.json (scala-test-suites) — hand edits are
7
+ * inputs/server-service-boot-ts/api_smoke.json (scala-test-suites) — hand edits are
8
8
  * overwritten.
9
9
  */
10
10
 
@@ -4,7 +4,7 @@
4
4
  * ./fetch-org-brand declares 1 runtime export(s) and 4 declared behaviour vector(s);
5
5
  * this suite asserts the import resolves, the runtime surface matches
6
6
  * exactly, and every export carries its declared kind. Regenerate from
7
- * inputs/bun-server-service-boot/api_smoke.json (scala-test-suites) — hand edits are
7
+ * inputs/server-service-boot-ts/api_smoke.json (scala-test-suites) — hand edits are
8
8
  * overwritten.
9
9
  */
10
10
 
@@ -4,7 +4,7 @@
4
4
  * ./website-by-host-map declares 1 runtime export(s) and 7 declared behaviour vector(s);
5
5
  * this suite asserts the import resolves, the runtime surface matches
6
6
  * exactly, and every export carries its declared kind. Regenerate from
7
- * inputs/bun-server-service-boot/api_smoke.json (scala-test-suites) — hand edits are
7
+ * inputs/server-service-boot-ts/api_smoke.json (scala-test-suites) — hand edits are
8
8
  * overwritten.
9
9
  */
10
10
 
@@ -4,7 +4,7 @@
4
4
  * ./run-boot-hook-list declares 1 runtime export(s) and 4 declared behaviour vector(s);
5
5
  * this suite asserts the import resolves, the runtime surface matches
6
6
  * exactly, and every export carries its declared kind. Regenerate from
7
- * inputs/bun-server-service-boot/api_smoke.json (scala-test-suites) — hand edits are
7
+ * inputs/server-service-boot-ts/api_smoke.json (scala-test-suites) — hand edits are
8
8
  * overwritten.
9
9
  */
10
10
 
@@ -4,7 +4,7 @@
4
4
  * ./run-boot-hooks declares 1 runtime export(s) + 2 type(s) and 5 declared behaviour vector(s);
5
5
  * this suite asserts the import resolves, the runtime surface matches
6
6
  * exactly, and every export carries its declared kind. Regenerate from
7
- * inputs/bun-server-service-boot/api_smoke.json (scala-test-suites) — hand edits are
7
+ * inputs/server-service-boot-ts/api_smoke.json (scala-test-suites) — hand edits are
8
8
  * overwritten.
9
9
  */
10
10
 
@@ -4,7 +4,7 @@
4
4
  * ./scala-tools-currency-watchdog declares 1 runtime export(s) and 2 declared behaviour vector(s);
5
5
  * this suite asserts the import resolves, the runtime surface matches
6
6
  * exactly, and every export carries its declared kind. Regenerate from
7
- * inputs/bun-server-service-boot/api_smoke.json (scala-test-suites) — hand edits are
7
+ * inputs/server-service-boot-ts/api_smoke.json (scala-test-suites) — hand edits are
8
8
  * overwritten.
9
9
  */
10
10
 
@@ -4,7 +4,7 @@
4
4
  * ./two-phase-minimal-app declares 1 runtime export(s) + 1 type(s);
5
5
  * this suite asserts the import resolves, the runtime surface matches
6
6
  * exactly, and every export carries its declared kind. Regenerate from
7
- * inputs/bun-server-service-boot/api_smoke.json (scala-test-suites) — hand edits are
7
+ * inputs/server-service-boot-ts/api_smoke.json (scala-test-suites) — hand edits are
8
8
  * overwritten.
9
9
  */
10
10
 
@@ -4,7 +4,7 @@
4
4
  * ./two-phase-readiness declares 6 runtime export(s) and 8 declared behaviour vector(s);
5
5
  * this suite asserts the import resolves, the runtime surface matches
6
6
  * exactly, and every export carries its declared kind. Regenerate from
7
- * inputs/bun-server-service-boot/api_smoke.json (scala-test-suites) — hand edits are
7
+ * inputs/server-service-boot-ts/api_smoke.json (scala-test-suites) — hand edits are
8
8
  * overwritten.
9
9
  */
10
10
 
package/src/types.test.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * ./types declares 0 runtime export(s) + 5 type(s);
5
5
  * this suite asserts the import resolves, the runtime surface matches
6
6
  * exactly, and every export carries its declared kind. Regenerate from
7
- * inputs/bun-server-service-boot/api_smoke.json (scala-test-suites) — hand edits are
7
+ * inputs/server-service-boot-ts/api_smoke.json (scala-test-suites) — hand edits are
8
8
  * overwritten.
9
9
  */
10
10
 
@@ -4,7 +4,7 @@
4
4
  * ./ui-service declares 1 runtime export(s) + 3 type(s);
5
5
  * this suite asserts the import resolves, the runtime surface matches
6
6
  * exactly, and every export carries its declared kind. Regenerate from
7
- * inputs/bun-server-service-boot/api_smoke.json (scala-test-suites) — hand edits are
7
+ * inputs/server-service-boot-ts/api_smoke.json (scala-test-suites) — hand edits are
8
8
  * overwritten.
9
9
  */
10
10
 
@@ -4,7 +4,7 @@
4
4
  * ./ws-boot-self-test declares 1 runtime export(s) and 3 declared behaviour vector(s);
5
5
  * this suite asserts the import resolves, the runtime surface matches
6
6
  * exactly, and every export carries its declared kind. Regenerate from
7
- * inputs/bun-server-service-boot/api_smoke.json (scala-test-suites) — hand edits are
7
+ * inputs/server-service-boot-ts/api_smoke.json (scala-test-suites) — hand edits are
8
8
  * overwritten.
9
9
  */
10
10