@emulators/aws 0.4.1 → 0.6.0

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @emulators/aws
2
2
 
3
- S3, SQS, IAM, and STS emulation with REST-style S3 paths and query-style SQS/IAM/STS endpoints. All responses use AWS-compatible XML.
3
+ S3, SQS, IAM, and STS emulation with AWS SDK-compatible S3 paths and query-style SQS/IAM/STS endpoints. All responses use AWS-compatible XML.
4
4
 
5
5
  Part of [emulate](https://github.com/vercel-labs/emulate) — local drop-in replacement services for CI and no-network sandboxes.
6
6
 
@@ -13,15 +13,19 @@ npm install @emulators/aws
13
13
  ## Endpoints
14
14
 
15
15
  ### S3
16
- - `GET /s3/` — list all buckets
17
- - `PUT /s3/:bucket` create bucket
18
- - `DELETE /s3/:bucket` — delete bucket
19
- - `HEAD /s3/:bucket`check existence
20
- - `GET /s3/:bucket` — list objects (prefix, delimiter, max-keys)
21
- - `PUT /s3/:bucket/:key` — put object (supports copy via `x-amz-copy-source`)
22
- - `GET /s3/:bucket/:key` — get object
23
- - `HEAD /s3/:bucket/:key` — head object
24
- - `DELETE /s3/:bucket/:key` — delete object
16
+
17
+ S3 routes use root paths matching the real AWS S3 wire format, so the official AWS SDK works out of the box with `forcePathStyle: true`. Legacy `/s3/` prefixed paths are also supported for backward compatibility.
18
+
19
+ - `GET /`list all buckets
20
+ - `PUT /:bucket` — create bucket
21
+ - `DELETE /:bucket` — delete bucket
22
+ - `HEAD /:bucket` — check existence
23
+ - `GET /:bucket` — list objects (prefix, delimiter, max-keys, continuation-token, start-after)
24
+ - `POST /:bucket` — presigned POST upload (browser-style multipart form with policy validation)
25
+ - `PUT /:bucket/:key` — put object (supports copy via `x-amz-copy-source`)
26
+ - `GET /:bucket/:key` — get object
27
+ - `HEAD /:bucket/:key` — head object
28
+ - `DELETE /:bucket/:key` — delete object
25
29
 
26
30
  ### SQS
27
31
  All operations via `POST /sqs/` with `Action` parameter:
Binary file