@directus/storage-driver-supabase 5.0.0 → 5.0.1
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 +3 -3
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -74,8 +74,8 @@ var DriverSupabase = class {
|
|
|
74
74
|
const file = await this.find(filepath);
|
|
75
75
|
if (!file) throw new Error("File not found");
|
|
76
76
|
return {
|
|
77
|
-
size: file.metadata["contentLength"] ?? 0,
|
|
78
|
-
modified: new Date(file.metadata["lastModified"] ||
|
|
77
|
+
size: file.metadata?.["contentLength"] ?? 0,
|
|
78
|
+
modified: new Date(file.metadata?.["lastModified"] || 0)
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
81
|
async exists(filepath) {
|
|
@@ -106,7 +106,7 @@ var DriverSupabase = class {
|
|
|
106
106
|
async *listGenerator(prefix) {
|
|
107
107
|
const limit = 1e3;
|
|
108
108
|
let offset = 0;
|
|
109
|
-
let itemCount
|
|
109
|
+
let itemCount;
|
|
110
110
|
const isDirectory = prefix.endsWith("/");
|
|
111
111
|
const prefixDirectory = isDirectory ? prefix : dirname(prefix);
|
|
112
112
|
const search = isDirectory ? "" : prefix.split("/").pop() ?? "";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@directus/storage-driver-supabase",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.1",
|
|
4
4
|
"description": "Supabase file storage abstraction for `@directus/storage`",
|
|
5
5
|
"homepage": "https://directus.com",
|
|
6
6
|
"repository": {
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"dist"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@supabase/storage-js": "2.
|
|
24
|
+
"@supabase/storage-js": "2.112.3",
|
|
25
25
|
"tus-js-client": "4.3.1",
|
|
26
26
|
"undici": "7.29.0",
|
|
27
27
|
"@directus/constants": "14.4.1",
|
|
28
|
-
"@directus/
|
|
29
|
-
"@directus/
|
|
28
|
+
"@directus/storage": "13.0.0",
|
|
29
|
+
"@directus/utils": "13.5.4"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@directus/tsconfig": "4.0.0",
|