@directus/storage-driver-gcs 9.22.0 → 9.22.3
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.js +1 -1
- package/dist/index.test.js +0 -4
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -15,7 +15,7 @@ export class DriverGCS {
|
|
|
15
15
|
return normalizePath(join(this.root, filepath));
|
|
16
16
|
}
|
|
17
17
|
file(filepath) {
|
|
18
|
-
return this.bucket.file(
|
|
18
|
+
return this.bucket.file(filepath);
|
|
19
19
|
}
|
|
20
20
|
async read(filepath, range) {
|
|
21
21
|
return this.file(this.fullPath(filepath)).createReadStream(range);
|
package/dist/index.test.js
CHANGED
|
@@ -109,10 +109,6 @@ describe('#file', () => {
|
|
|
109
109
|
file: vi.fn().mockReturnValue(mockFile),
|
|
110
110
|
};
|
|
111
111
|
});
|
|
112
|
-
test('Uses fullPath to inject root', () => {
|
|
113
|
-
driver['file'](sample.path.input);
|
|
114
|
-
expect(driver['fullPath']).toHaveBeenCalledWith(sample.path.input);
|
|
115
|
-
});
|
|
116
112
|
test('Returns file instance', () => {
|
|
117
113
|
const file = driver['file']('/path/to/file');
|
|
118
114
|
expect(file).toBe(mockFile);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@directus/storage-driver-gcs",
|
|
3
|
-
"version": "9.22.
|
|
3
|
+
"version": "9.22.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "GCS file storage abstraction for `@directus/storage`",
|
|
6
6
|
"repository": {
|
|
@@ -24,16 +24,16 @@
|
|
|
24
24
|
"access": "public"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@google-cloud/storage": "6.
|
|
28
|
-
"@directus/storage": "9.22.
|
|
29
|
-
"@directus/utils": "9.22.
|
|
27
|
+
"@google-cloud/storage": "6.8.0",
|
|
28
|
+
"@directus/storage": "9.22.3",
|
|
29
|
+
"@directus/utils": "9.22.3"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@directus/tsconfig": "0.0.6",
|
|
33
|
-
"@ngneat/falso": "6.3.
|
|
34
|
-
"@vitest/coverage-c8": "0.
|
|
35
|
-
"typescript": "4.9.
|
|
36
|
-
"vitest": "0.
|
|
33
|
+
"@ngneat/falso": "6.3.2",
|
|
34
|
+
"@vitest/coverage-c8": "0.26.2",
|
|
35
|
+
"typescript": "4.9.4",
|
|
36
|
+
"vitest": "0.26.2"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "tsc --build",
|