spine-framework 0.3.41 → 0.3.42

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.
@@ -15,6 +15,7 @@
15
15
  */
16
16
 
17
17
  import { createClient } from '@supabase/supabase-js'
18
+ import WebSocket from 'ws'
18
19
 
19
20
  // ─── ENVIRONMENT RESOLUTION ──────────────────────────────────────────────────
20
21
 
@@ -61,7 +62,8 @@ const dbSchema: string = _env.DB_SCHEMA || 'public'
61
62
  * ```
62
63
  */
63
64
  export const adminDb = createClient(supabaseUrl, supabaseServiceKey, {
64
- db: { schema: dbSchema }
65
+ db: { schema: dbSchema },
66
+ realtime: { transport: WebSocket as any }
65
67
  })
66
68
 
67
69
  // ─── CHUNK_START: SHARED_DB_GET_USER_DB ──────────────────────────────────────────────
@@ -81,7 +83,8 @@ export const adminDb = createClient(supabaseUrl, supabaseServiceKey, {
81
83
  export function getUserDb(jwt: string) {
82
84
  return createClient(supabaseUrl, supabaseAnonKey, {
83
85
  db: { schema: dbSchema },
84
- global: { headers: { Authorization: `Bearer ${jwt}` } }
86
+ global: { headers: { Authorization: `Bearer ${jwt}` } },
87
+ realtime: { transport: WebSocket as any }
85
88
  })
86
89
  }
87
90
  // ─── CHUNK_END: SHARED_DB_GET_USER_DB ────────────────────────────────────────────────
@@ -32,6 +32,7 @@
32
32
 
33
33
  import { getUserDb, adminDb } from './db'
34
34
  import { createClient } from '@supabase/supabase-js'
35
+ import WebSocket from 'ws'
35
36
 
36
37
  // ─── AUTH CLIENT ─────────────────────────────────────────────────────────────
37
38
 
@@ -43,10 +44,8 @@ const supabase = createClient(
43
44
  env.SUPABASE_URL || 'https://placeholder.supabase.co',
44
45
  env.SUPABASE_ANON_KEY || 'placeholder',
45
46
  {
46
- auth: {
47
- autoRefreshToken: false,
48
- persistSession: false
49
- }
47
+ auth: { autoRefreshToken: false, persistSession: false },
48
+ realtime: { transport: WebSocket as any }
50
49
  }
51
50
  )
52
51
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spine-framework",
3
- "version": "0.3.41",
3
+ "version": "0.3.42",
4
4
  "description": "Multi-tenant, modular application platform for modern SaaS systems",
5
5
  "type": "module",
6
6
  "bin": {