@crvouga/mockingbird-service-s3 1.0.0 → 1.0.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.
- package/CHANGELOG.md +13 -4
- package/dist/{chunk-X47ACTY4.js → chunk-DP6UMZUI.js} +12 -3
- package/dist/chunk-DP6UMZUI.js.map +7 -0
- package/dist/{chunk-RS4E75VA.js → chunk-PMFSRCIY.js} +5 -3
- package/dist/chunk-PMFSRCIY.js.map +7 -0
- package/dist/cli.js +2 -2
- package/dist/index.d.ts +129 -101
- package/dist/index.js +1 -1
- package/dist/server.d.ts +233 -177
- package/dist/server.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-RS4E75VA.js.map +0 -7
- package/dist/chunk-X47ACTY4.js.map +0 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
# Changelog — @crvouga/mockingbird-service-s3
|
|
2
2
|
|
|
3
|
+
## 1.0.2 (2026-09-26)
|
|
4
|
+
|
|
5
|
+
### Fixes and improvements
|
|
6
|
+
|
|
7
|
+
- treat enum [""] branches as unset markers in form coercion ([7177835](https://github.com/crvouga/mockingbird/commit/7177835cc510e14245d6648ad2821daa694bb80c))
|
|
8
|
+
|
|
9
|
+
## 1.0.1 (2026-09-25)
|
|
10
|
+
|
|
11
|
+
### Fixes and improvements
|
|
12
|
+
|
|
13
|
+
- take the rejected-request byte count from content-length, never by reading the body ([a0e5fb2](https://github.com/crvouga/mockingbird/commit/a0e5fb2fc80ab725c3552b612f3f091fd6c857fb))
|
|
14
|
+
- reject a present body by media type, and log what a rejected request sent ([12e351a](https://github.com/crvouga/mockingbird/commit/12e351aba53cfb7b41e31a7809419455fc2902eb))
|
|
15
|
+
|
|
3
16
|
## 1.0.0 (2026-09-24)
|
|
4
17
|
|
|
5
18
|
### ⚠️ Breaking changes
|
|
6
19
|
|
|
7
20
|
- vendor branding for every service; purge internal mocks and consumer names ([f689534](https://github.com/crvouga/mockingbird/commit/f6895343543550dafcb7d76b426cae7635e03226))
|
|
8
21
|
|
|
9
|
-
### Dependencies
|
|
10
|
-
|
|
11
|
-
- `@crvouga/mockingbird-service-sqlite`
|
|
12
|
-
|
|
13
22
|
## 0.1.0 (2026-09-22)
|
|
14
23
|
|
|
15
24
|
Initial release.
|
|
@@ -1437,7 +1437,7 @@ var restoreNamespace = (sqlite, namespace, snapshot) => {
|
|
|
1437
1437
|
};
|
|
1438
1438
|
|
|
1439
1439
|
// ../core/dist/version.js
|
|
1440
|
-
var PACKAGE_VERSION = true ? "1.0.
|
|
1440
|
+
var PACKAGE_VERSION = true ? "1.0.2" : UNRELEASED_VERSION;
|
|
1441
1441
|
|
|
1442
1442
|
// ../core/dist/signing.js
|
|
1443
1443
|
var encoder = new TextEncoder();
|
|
@@ -2197,8 +2197,15 @@ var createRuntime = (options) => {
|
|
|
2197
2197
|
const started = monotonicNow();
|
|
2198
2198
|
const url = new URL(request.url);
|
|
2199
2199
|
const operationId = operationIdFor(request, url.pathname);
|
|
2200
|
+
const contentLength = request.headers.get("content-length");
|
|
2201
|
+
const received = {
|
|
2202
|
+
contentType: request.headers.get("content-type"),
|
|
2203
|
+
bodyBytes: contentLength !== null && /^\d+$/.test(contentLength) ? Number(contentLength) : null,
|
|
2204
|
+
transferEncoding: request.headers.get("transfer-encoding")
|
|
2205
|
+
};
|
|
2200
2206
|
const log = (status, faultId, response2) => {
|
|
2201
2207
|
const noted = response2 ? responseNotes(response2) : void 0;
|
|
2208
|
+
const rejected = status >= 400 && faultId === void 0;
|
|
2202
2209
|
const entry = {
|
|
2203
2210
|
service: options.name,
|
|
2204
2211
|
namespace,
|
|
@@ -2210,7 +2217,9 @@ var createRuntime = (options) => {
|
|
|
2210
2217
|
unmatched: options.document !== void 0 && operationId === void 0,
|
|
2211
2218
|
...faultId !== void 0 ? { faultId } : {},
|
|
2212
2219
|
...noted?.ids && Object.keys(noted.ids).length > 0 ? { ids: noted.ids } : {},
|
|
2213
|
-
...noted?.adopted ? { adopted: true } : {}
|
|
2220
|
+
...noted?.adopted ? { adopted: true } : {},
|
|
2221
|
+
...rejected ? { request: { ...received } } : {},
|
|
2222
|
+
...rejected && noted?.issues && noted.issues.length > 0 ? { issues: noted.issues.map((issue) => ({ ...issue })) } : {}
|
|
2214
2223
|
};
|
|
2215
2224
|
metrics.record(entry);
|
|
2216
2225
|
journal.record({ ...entry, at: new Date(clock.now()).toISOString() });
|
|
@@ -2951,4 +2960,4 @@ export {
|
|
|
2951
2960
|
accessKeyCredential,
|
|
2952
2961
|
S3API
|
|
2953
2962
|
};
|
|
2954
|
-
//# sourceMappingURL=chunk-
|
|
2963
|
+
//# sourceMappingURL=chunk-DP6UMZUI.js.map
|