File tree Expand file tree Collapse file tree 5 files changed +26
-27
lines changed
frontend/internal-packages/db Expand file tree Collapse file tree 5 files changed +26
-27
lines changed Original file line number Diff line number Diff line change 1616 "@biomejs/biome" : " 2.2.4" ,
1717 "@liam-hq/configs" : " workspace:*" ,
1818 "eslint" : " 9.36.0" ,
19- "supabase" : " 2.40.6 " ,
19+ "supabase" : " 2.45.4 " ,
2020 "type-fest" : " 4.41.0" ,
2121 "typescript" : " 5.9.2" ,
2222 "vitest" : " 3.2.4"
Original file line number Diff line number Diff line change @@ -762,7 +762,7 @@ export type Database = {
762762 }
763763 l2_normalize : {
764764 Args : { '' : string } | { '' : unknown } | { '' : unknown }
765- Returns : string
765+ Returns : unknown
766766 }
767767 put_checkpoint : {
768768 Args : { p_blobs : Json ; p_checkpoint : Json }
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- # Execute the supabase status command and capture its output
4- STATUS_OUTPUT=$( pnpm --filter @liam-hq/db exec supabase status)
3+ # Execute the supabase status command with env output format and capture its output
4+ STATUS_OUTPUT=$( pnpm --filter @liam-hq/db exec supabase status -o env )
55
6- # Extract the first anon key from the output
7- # Using a more precise grep pattern to match only the anon key line
8- ANON_KEY_LINE=$( echo " $STATUS_OUTPUT " | grep -m 1 " anon key: " )
6+ # Extract the anon key from the output
7+ # Using grep to match the ANON_KEY line
8+ ANON_KEY_LINE=$( echo " $STATUS_OUTPUT " | grep " ^ANON_KEY= " )
99
10- # Clean up and extract just the key
11- # Remove "anon key: " prefix
12- ANON_KEY=$( echo " $ANON_KEY_LINE " | sed ' s/.*anon key: \(.*\)/\1/' | tr -d ' ' )
10+ # Clean up and extract just the key value
11+ # Remove ANON_KEY=" prefix and trailing "
12+ ANON_KEY=$( echo " $ANON_KEY_LINE " | sed ' s/^ANON_KEY=" \(.*\)"$ /\1/' )
1313
1414if [ -z " $ANON_KEY " ]; then
1515 echo " Failed to extract the anon key from Supabase status output"
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- # Execute the supabase status command and capture its output
4- STATUS_OUTPUT=$( pnpm --filter @liam-hq/db exec supabase status)
3+ # Execute the supabase status command with env output format and capture its output
4+ STATUS_OUTPUT=$( pnpm --filter @liam-hq/db exec supabase status -o env )
55
66# Extract the service role key from the output
7- # Using a precise grep pattern to match only the service role key line
8- SERVICE_KEY_LINE=$( echo " $STATUS_OUTPUT " | grep -m 1 " service_role key: " )
7+ # Using grep to match the SERVICE_ROLE_KEY line
8+ SERVICE_KEY_LINE=$( echo " $STATUS_OUTPUT " | grep " ^SERVICE_ROLE_KEY= " )
99
10- # Clean up and extract just the key
11- # Remove "service_role key: " prefix
12- SERVICE_KEY=$( echo " $SERVICE_KEY_LINE " | sed ' s/.*service_role key: \(.*\)/\1/' | tr -d ' ' )
10+ # Clean up and extract just the key value
11+ # Remove SERVICE_ROLE_KEY=" prefix and trailing "
12+ SERVICE_KEY=$( echo " $SERVICE_KEY_LINE " | sed ' s/^SERVICE_ROLE_KEY=" \(.*\)"$ /\1/' )
1313
1414if [ -z " $SERVICE_KEY " ]; then
1515 echo " Failed to extract the service role key from Supabase status output"
You can’t perform that action at this time.
0 commit comments