@softistx/s3 0.13.1 → 0.13.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.
|
@@ -250,7 +250,7 @@ for a size, a `type` of the wrong shape, an `expiresIn`, an `acl` or a
|
|
|
250
250
|
### What the service answers
|
|
251
251
|
|
|
252
252
|
Measured against SeaweedFS 4.47's S3 gateway, each one pinned in
|
|
253
|
-
[`presign-post.spec.ts`](https://github.com/softistx/
|
|
253
|
+
[`presign-post.spec.ts`](https://github.com/softistx/data/blob/develop/packages/s3/src/bucket/operations/presign-post.spec.ts) in the repository:
|
|
254
254
|
|
|
255
255
|
| The upload | Status | `<Code>` | `<Message>` |
|
|
256
256
|
| --- | --- | --- | --- |
|
package/docs/roadmap.md
CHANGED
|
@@ -112,5 +112,5 @@ _Nothing queued._
|
|
|
112
112
|
are checked before the request goes out, and its one error is `S3Error` —
|
|
113
113
|
0.1.0.
|
|
114
114
|
|
|
115
|
-
Everything released is in [`CHANGELOG.md`](https://github.com/softistx/
|
|
115
|
+
Everything released is in [`CHANGELOG.md`](https://github.com/softistx/data/blob/develop/packages/s3/CHANGELOG.md) — it is not in
|
|
116
116
|
the published package, only in the repository.
|
package/docs/troubleshooting.md
CHANGED
|
@@ -576,7 +576,7 @@ refused by the service only when a browser posts it. So `presignPost` checks
|
|
|
576
576
|
its secret against the signature Bun itself put on a throwaway URL, and
|
|
577
577
|
refuses before signing anything when they differ — measured in a process
|
|
578
578
|
started with the variable set, in
|
|
579
|
-
[`post-signer.spec.ts`](https://github.com/softistx/
|
|
579
|
+
[`post-signer.spec.ts`](https://github.com/softistx/data/blob/develop/packages/s3/src/bucket/operations/post-signer.spec.ts).
|
|
580
580
|
**Fix:** pass the secret to `bindBucket` rather than changing the environment
|
|
581
581
|
of a running process:
|
|
582
582
|
|
|
@@ -597,7 +597,7 @@ none. A `TypeError`, measured the same way.
|
|
|
597
597
|
its own back. This package keeps it beside the bucket's context, never on
|
|
598
598
|
it, so printing the context, the bucket or the form never shows it —
|
|
599
599
|
measured with a marker secret, in
|
|
600
|
-
[`post-signer.spec.ts`](https://github.com/softistx/
|
|
600
|
+
[`post-signer.spec.ts`](https://github.com/softistx/data/blob/develop/packages/s3/src/bucket/operations/post-signer.spec.ts). With no secret anywhere,
|
|
601
601
|
Bun's own `ERR_S3_MISSING_CREDENTIALS` comes first (next section).
|
|
602
602
|
**Fix:** give `bindBucket` a `secretAccessKey`.
|
|
603
603
|
|
|
@@ -615,7 +615,7 @@ that key, and the region and access key are in `X-Amz-Credential`. A URL
|
|
|
615
615
|
without either would post the form somewhere else, or sign it as nobody, so
|
|
616
616
|
it is refused rather than guessed.
|
|
617
617
|
**Fix:** use Bun 1.4.2, the version this package was measured on, and
|
|
618
|
-
[open an issue](https://github.com/softistx/
|
|
618
|
+
[open an issue](https://github.com/softistx/data/issues) naming the Bun version that produced it.
|
|
619
619
|
|
|
620
620
|
## Testing
|
|
621
621
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@softistx/s3",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.2",
|
|
4
4
|
"description": "S3 on Bun's own client: buckets described once, keys built by a typed function, uploads refused before they are sent, and presigned URLs from the same definition",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
],
|
|
36
36
|
"repository": {
|
|
37
37
|
"type": "git",
|
|
38
|
-
"url": "git+https://github.com/softistx/
|
|
38
|
+
"url": "git+https://github.com/softistx/data.git",
|
|
39
39
|
"directory": "packages/s3"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
]
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@types/bun": "^1.4.
|
|
57
|
+
"@types/bun": "^1.4.5"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"typescript": "^6.0.3 || ^7.0.0"
|