@crvouga/mockingbird-service-livekit 1.0.0 → 1.0.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.
package/CHANGELOG.md CHANGED
@@ -1,15 +1,18 @@
1
1
  # Changelog — @crvouga/mockingbird-service-livekit
2
2
 
3
+ ## 1.0.1 (2026-09-26)
4
+
5
+ ### Fixes and improvements
6
+
7
+ - take the rejected-request byte count from content-length, never by reading the body ([a0e5fb2](https://github.com/crvouga/mockingbird/commit/a0e5fb2fc80ab725c3552b612f3f091fd6c857fb))
8
+ - reject a present body by media type, and log what a rejected request sent ([12e351a](https://github.com/crvouga/mockingbird/commit/12e351aba53cfb7b41e31a7809419455fc2902eb))
9
+
3
10
  ## 1.0.0 (2026-09-24)
4
11
 
5
12
  ### ⚠️ Breaking changes
6
13
 
7
14
  - vendor branding for every service; purge internal mocks and consumer names ([f689534](https://github.com/crvouga/mockingbird/commit/f6895343543550dafcb7d76b426cae7635e03226))
8
15
 
9
- ### Dependencies
10
-
11
- - `@crvouga/mockingbird-service-sqlite`
12
-
13
16
  ## 0.1.0 (2026-09-22)
14
17
 
15
18
  Initial release.
@@ -1429,7 +1429,7 @@ var restoreNamespace = (sqlite, namespace, snapshot) => {
1429
1429
  };
1430
1430
 
1431
1431
  // ../core/dist/version.js
1432
- var PACKAGE_VERSION = true ? "1.0.0" : UNRELEASED_VERSION;
1432
+ var PACKAGE_VERSION = true ? "1.0.1" : UNRELEASED_VERSION;
1433
1433
 
1434
1434
  // ../core/dist/signing.js
1435
1435
  var encoder = new TextEncoder();
@@ -2187,8 +2187,15 @@ var createRuntime = (options) => {
2187
2187
  const started = monotonicNow();
2188
2188
  const url = new URL(request.url);
2189
2189
  const operationId = operationIdFor(request, url.pathname);
2190
+ const contentLength = request.headers.get("content-length");
2191
+ const received = {
2192
+ contentType: request.headers.get("content-type"),
2193
+ bodyBytes: contentLength !== null && /^\d+$/.test(contentLength) ? Number(contentLength) : null,
2194
+ transferEncoding: request.headers.get("transfer-encoding")
2195
+ };
2190
2196
  const log = (status, faultId, response2) => {
2191
2197
  const noted = response2 ? responseNotes(response2) : void 0;
2198
+ const rejected = status >= 400 && faultId === void 0;
2192
2199
  const entry = {
2193
2200
  service: options.name,
2194
2201
  namespace,
@@ -2200,7 +2207,9 @@ var createRuntime = (options) => {
2200
2207
  unmatched: options.document !== void 0 && operationId === void 0,
2201
2208
  ...faultId !== void 0 ? { faultId } : {},
2202
2209
  ...noted?.ids && Object.keys(noted.ids).length > 0 ? { ids: noted.ids } : {},
2203
- ...noted?.adopted ? { adopted: true } : {}
2210
+ ...noted?.adopted ? { adopted: true } : {},
2211
+ ...rejected ? { request: { ...received } } : {},
2212
+ ...rejected && noted?.issues && noted.issues.length > 0 ? { issues: noted.issues.map((issue) => ({ ...issue })) } : {}
2204
2213
  };
2205
2214
  metrics.record(entry);
2206
2215
  journal.record({ ...entry, at: new Date(clock.now()).toISOString() });
@@ -2960,4 +2969,4 @@ export {
2960
2969
  LIVEKIT_NAMESPACE,
2961
2970
  LiveKitAPI
2962
2971
  };
2963
- //# sourceMappingURL=chunk-4Y4K4CKO.js.map
2972
+ //# sourceMappingURL=chunk-7ZW474B4.js.map