@stacksjs/ts-cloud 0.2.22 → 0.2.24
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/dist/aws/s3.d.ts +17 -0
- package/dist/bin/cli.js +583 -567
- package/dist/deploy/site-target.d.ts +3 -3
- package/dist/drivers/hetzner/driver.d.ts +5 -4
- package/dist/drivers/index.d.ts +0 -1
- package/dist/drivers/shared/compute-deploy.d.ts +1 -1
- package/dist/drivers/shared/deploy-script.d.ts +3 -3
- package/dist/index.d.ts +3 -1
- package/dist/index.js +226 -213
- package/dist/object-storage/index.d.ts +1 -0
- package/dist/object-storage/migrate.d.ts +125 -0
- package/package.json +3 -3
- package/dist/drivers/shared/caddyfile.d.ts +0 -46
package/dist/aws/s3.d.ts
CHANGED
|
@@ -130,6 +130,23 @@ export declare class S3Client {
|
|
|
130
130
|
* Returns raw content as string (not parsed as XML)
|
|
131
131
|
*/
|
|
132
132
|
getObject(bucket: string, key: string): Promise<string>;
|
|
133
|
+
/**
|
|
134
|
+
* Get object as raw bytes (binary-safe).
|
|
135
|
+
*
|
|
136
|
+
* {@link getObject} decodes the response as UTF-8 text, which corrupts binary
|
|
137
|
+
* payloads (images, archives, mail attachments). This issues a SigV4-signed
|
|
138
|
+
* GET and reads the body via `arrayBuffer()`, preserving every byte. It also
|
|
139
|
+
* returns the `content-type` header so a copy can faithfully reproduce it.
|
|
140
|
+
*
|
|
141
|
+
* Works against any S3-compatible provider (AWS, Backblaze, Hetzner) — it
|
|
142
|
+
* signs against the same virtual-hosted/path-style host the client is
|
|
143
|
+
* configured for.
|
|
144
|
+
*/
|
|
145
|
+
getObjectBytes(bucket: string, key: string): Promise<{
|
|
146
|
+
body: Uint8Array;
|
|
147
|
+
contentType?: string;
|
|
148
|
+
contentLength?: number;
|
|
149
|
+
}>;
|
|
133
150
|
/**
|
|
134
151
|
* Copy object within S3 (server-side copy)
|
|
135
152
|
*/
|