@directus/storage-driver-gcs 10.0.14 → 10.0.15
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 +3 -3
- package/dist/index.js +1 -1
- package/package.json +9 -9
package/dist/index.d.ts
CHANGED
|
@@ -16,8 +16,8 @@ declare class DriverGCS implements Driver {
|
|
|
16
16
|
write(filepath: string, content: Readable): Promise<void>;
|
|
17
17
|
delete(filepath: string): Promise<void>;
|
|
18
18
|
stat(filepath: string): Promise<{
|
|
19
|
-
size:
|
|
20
|
-
modified:
|
|
19
|
+
size: number;
|
|
20
|
+
modified: Date;
|
|
21
21
|
}>;
|
|
22
22
|
exists(filepath: string): Promise<boolean>;
|
|
23
23
|
move(src: string, dest: string): Promise<void>;
|
|
@@ -25,4 +25,4 @@ declare class DriverGCS implements Driver {
|
|
|
25
25
|
list(prefix?: string): AsyncGenerator<string, void, unknown>;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
export { DriverGCS, DriverGCSConfig, DriverGCS as default };
|
|
28
|
+
export { DriverGCS, type DriverGCSConfig, DriverGCS as default };
|
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ var DriverGCS = class {
|
|
|
36
36
|
}
|
|
37
37
|
async stat(filepath) {
|
|
38
38
|
const [{ size, updated }] = await this.file(this.fullPath(filepath)).getMetadata();
|
|
39
|
-
return { size, modified: updated };
|
|
39
|
+
return { size, modified: new Date(updated) };
|
|
40
40
|
}
|
|
41
41
|
async exists(filepath) {
|
|
42
42
|
return (await this.file(this.fullPath(filepath)).exists())[0];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@directus/storage-driver-gcs",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.15",
|
|
4
4
|
"description": "GCS file storage abstraction for `@directus/storage`",
|
|
5
5
|
"homepage": "https://directus.io",
|
|
6
6
|
"repository": {
|
|
@@ -21,16 +21,16 @@
|
|
|
21
21
|
"dist"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@google-cloud/storage": "
|
|
25
|
-
"@directus/storage": "10.0.
|
|
26
|
-
"@directus/utils": "11.0.
|
|
24
|
+
"@google-cloud/storage": "7.7.0",
|
|
25
|
+
"@directus/storage": "10.0.8",
|
|
26
|
+
"@directus/utils": "11.0.3"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@ngneat/falso": "
|
|
30
|
-
"@vitest/coverage-
|
|
31
|
-
"tsup": "
|
|
32
|
-
"typescript": "5.
|
|
33
|
-
"vitest": "
|
|
29
|
+
"@ngneat/falso": "7.1.1",
|
|
30
|
+
"@vitest/coverage-v8": "1.1.0",
|
|
31
|
+
"tsup": "8.0.1",
|
|
32
|
+
"typescript": "5.3.3",
|
|
33
|
+
"vitest": "1.1.0",
|
|
34
34
|
"@directus/tsconfig": "1.0.1"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|