@directus/storage-driver-supabase 2.0.1 → 2.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 CHANGED
@@ -1,4 +1,4 @@
1
- import { Driver, Range } from '@directus/storage';
1
+ import { Driver, ReadOptions } from '@directus/storage';
2
2
  import { Readable } from 'node:stream';
3
3
 
4
4
  type DriverSupabaseConfig = {
@@ -19,7 +19,7 @@ declare class DriverSupabase implements Driver {
19
19
  private getBucket;
20
20
  private fullPath;
21
21
  private getAuthenticatedUrl;
22
- read(filepath: string, range?: Range): Promise<Readable>;
22
+ read(filepath: string, options?: ReadOptions): Promise<Readable>;
23
23
  stat(filepath: string): Promise<{
24
24
  size: any;
25
25
  modified: Date;
package/dist/index.js CHANGED
@@ -45,7 +45,8 @@ var DriverSupabase = class {
45
45
  getAuthenticatedUrl(filepath) {
46
46
  return `${this.endpoint}/${join("object/authenticated", this.config.bucket, this.fullPath(filepath))}`;
47
47
  }
48
- async read(filepath, range) {
48
+ async read(filepath, options) {
49
+ const { range } = options || {};
49
50
  const requestInit = { method: "GET" };
50
51
  requestInit.headers = {
51
52
  Authorization: `Bearer ${this.config.serviceRole}`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@directus/storage-driver-supabase",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Supabase 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
- "@supabase/storage-js": "2.6.0",
25
- "undici": "6.19.5",
26
- "@directus/utils": "12.0.1",
27
- "@directus/storage": "11.0.0"
24
+ "@supabase/storage-js": "2.7.1",
25
+ "undici": "6.20.0",
26
+ "@directus/utils": "12.0.2",
27
+ "@directus/storage": "11.0.1"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@ngneat/falso": "7.2.0",
31
31
  "@vitest/coverage-v8": "2.1.2",
32
- "tsup": "8.2.4",
33
- "typescript": "5.6.2",
32
+ "tsup": "8.3.0",
33
+ "typescript": "5.6.3",
34
34
  "vitest": "2.1.2",
35
35
  "@directus/tsconfig": "2.0.0"
36
36
  },