spine-framework 0.3.28 → 0.3.30

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.
@@ -47,7 +47,7 @@ for (let i = 0; i < args.length; i++) {
47
47
  if (args[i] === '--service-role-key' && args[i + 1]) childEnv.SUPABASE_SERVICE_ROLE_KEY = args[++i]
48
48
  }
49
49
 
50
- const entry = resolve(pkgRoot, 'bin/ws-shim.ts')
50
+ const entry = resolve(pkgRoot, 'bin/ws-shim.mts')
51
51
 
52
52
  // Find tsx: prefer consuming project's copy, fall back to our own
53
53
  const tsxPaths = [
@@ -0,0 +1,10 @@
1
+ // Entry point for the CLI on Node < 22.
2
+ // Sets globalThis.WebSocket before any supabase-js module is imported,
3
+ // preventing the "Node.js 20 detected without native WebSocket" crash.
4
+ import { WebSocket } from 'ws'
5
+ if (typeof globalThis.WebSocket === 'undefined') {
6
+ ;(globalThis as any).WebSocket = WebSocket
7
+ }
8
+
9
+ // Now import the real CLI — all supabase createClient() calls happen after this point
10
+ import('../.framework/cli/index.ts')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spine-framework",
3
- "version": "0.3.28",
3
+ "version": "0.3.30",
4
4
  "description": "Multi-tenant, modular application platform for modern SaaS systems",
5
5
  "bin": {
6
6
  "spine-framework": "bin/spine-framework.js"
@@ -74,6 +74,8 @@
74
74
  "docs": "typedoc --entryPoints .framework/functions/_shared/index.ts --out docs/generated"
75
75
  },
76
76
  "dependencies": {
77
+ "tsx": "^4.21.0",
78
+ "ws": "^8.18.0",
77
79
  "@base-ui/react": "^1.4.1",
78
80
  "@fontsource-variable/inter": "^5.2.8",
79
81
  "@heroicons/react": "^2.2.0",