@supabase/lite 0.7.1-next.4 → 0.7.1-next.6

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.
@@ -777,29 +777,6 @@ declare const schema: s.ObjectSchema<{
777
777
  type Schema = s.Static<typeof schema>;
778
778
  type DefaultSchema = s.StaticCoerced<typeof schema>;
779
779
 
780
- type Where = Record<string, unknown>;
781
-
782
- type PolicyCommand = "SELECT" | "INSERT" | "UPDATE" | "DELETE" | "ALL";
783
- type PolicyRole = "anon" | "authenticated" | string;
784
- interface PolicyData {
785
- name: string;
786
- table: string;
787
- schema?: string;
788
- command: PolicyCommand;
789
- permissive: boolean;
790
- roles: PolicyRole[];
791
- using?: Where;
792
- withCheck?: Where;
793
- }
794
- declare class Policy {
795
- readonly data: PolicyData;
796
- constructor(data: PolicyData);
797
- appliesTo(cmd: "SELECT" | "INSERT" | "UPDATE" | "DELETE"): boolean;
798
- appliesToRole(role: string): boolean;
799
- toJSON(): PolicyData;
800
- static fromJSON(data: PolicyData): Policy;
801
- }
802
-
803
780
  interface UsersTable {
804
781
  id: string;
805
782
  aud: string;
@@ -1387,6 +1364,29 @@ type HonoContext = {
1387
1364
  };
1388
1365
  };
1389
1366
 
1367
+ type Where = Record<string, unknown>;
1368
+
1369
+ type PolicyCommand = "SELECT" | "INSERT" | "UPDATE" | "DELETE" | "ALL";
1370
+ type PolicyRole = "anon" | "authenticated" | string;
1371
+ interface PolicyData {
1372
+ name: string;
1373
+ table: string;
1374
+ schema?: string;
1375
+ command: PolicyCommand;
1376
+ permissive: boolean;
1377
+ roles: PolicyRole[];
1378
+ using?: Where;
1379
+ withCheck?: Where;
1380
+ }
1381
+ declare class Policy {
1382
+ readonly data: PolicyData;
1383
+ constructor(data: PolicyData);
1384
+ appliesTo(cmd: "SELECT" | "INSERT" | "UPDATE" | "DELETE"): boolean;
1385
+ appliesToRole(role: string): boolean;
1386
+ toJSON(): PolicyData;
1387
+ static fromJSON(data: PolicyData): Policy;
1388
+ }
1389
+
1390
1390
  type ServerOptions = {
1391
1391
  middlewares?: MiddlewareHandler<HonoContext>[];
1392
1392
  disableStudio?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supabase/lite",
3
- "version": "0.7.1-next.4",
3
+ "version": "0.7.1-next.6",
4
4
  "description": "Lightweight TypeScript-native Supabase implementation on SQLite (alpha). PostgREST + GoTrue compatible — use @supabase/supabase-js as-is.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",