@directus/storage-driver-s3 11.0.1 → 11.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/dist/index.d.ts +2 -2
- package/dist/index.js +2 -1
- package/package.json +8 -8
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ObjectCannedACL, ServerSideEncryption } from '@aws-sdk/client-s3';
|
|
2
|
-
import { TusDriver,
|
|
2
|
+
import { TusDriver, ReadOptions, ChunkedUploadContext } from '@directus/storage';
|
|
3
3
|
import { Readable } from 'node:stream';
|
|
4
4
|
|
|
5
5
|
type DriverS3Config = {
|
|
@@ -28,7 +28,7 @@ declare class DriverS3 implements TusDriver {
|
|
|
28
28
|
constructor(config: DriverS3Config);
|
|
29
29
|
private getClient;
|
|
30
30
|
private fullPath;
|
|
31
|
-
read(filepath: string,
|
|
31
|
+
read(filepath: string, options?: ReadOptions): Promise<Readable>;
|
|
32
32
|
stat(filepath: string): Promise<{
|
|
33
33
|
size: number;
|
|
34
34
|
modified: Date;
|
package/dist/index.js
CHANGED
|
@@ -86,7 +86,8 @@ var DriverS3 = class {
|
|
|
86
86
|
fullPath(filepath) {
|
|
87
87
|
return normalizePath(join(this.root, filepath));
|
|
88
88
|
}
|
|
89
|
-
async read(filepath,
|
|
89
|
+
async read(filepath, options) {
|
|
90
|
+
const { range } = options ?? {};
|
|
90
91
|
const commandInput = {
|
|
91
92
|
Key: this.fullPath(filepath),
|
|
92
93
|
Bucket: this.config.bucket
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@directus/storage-driver-s3",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.2",
|
|
4
4
|
"description": "S3 file storage abstraction for `@directus/storage`",
|
|
5
5
|
"homepage": "https://directus.io",
|
|
6
6
|
"repository": {
|
|
@@ -21,19 +21,19 @@
|
|
|
21
21
|
"dist"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@aws-sdk/client-s3": "3.
|
|
25
|
-
"@aws-sdk/lib-storage": "3.
|
|
24
|
+
"@aws-sdk/client-s3": "3.668.0",
|
|
25
|
+
"@aws-sdk/lib-storage": "3.668.0",
|
|
26
26
|
"@shopify/semaphore": "3.1.0",
|
|
27
27
|
"@smithy/node-http-handler": "3.2.4",
|
|
28
|
-
"@tus/utils": "0.
|
|
29
|
-
"@directus/storage": "11.0.
|
|
30
|
-
"@directus/utils": "12.0.
|
|
28
|
+
"@tus/utils": "0.4.0",
|
|
29
|
+
"@directus/storage": "11.0.1",
|
|
30
|
+
"@directus/utils": "12.0.2"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@ngneat/falso": "7.2.0",
|
|
34
34
|
"@vitest/coverage-v8": "2.1.2",
|
|
35
|
-
"tsup": "8.
|
|
36
|
-
"typescript": "5.6.
|
|
35
|
+
"tsup": "8.3.0",
|
|
36
|
+
"typescript": "5.6.3",
|
|
37
37
|
"vitest": "2.1.2",
|
|
38
38
|
"@directus/tsconfig": "2.0.0"
|
|
39
39
|
},
|