squarefi-bff-api-module 1.25.1 → 1.25.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.
@@ -17,7 +17,7 @@ const useSupabaseSubscription = ({ config, callback, enabled = true, key }) => {
17
17
  subscriptionRef.current = null;
18
18
  }
19
19
  const subscription = supabase_1.supabaseClient
20
- .channel(config.channelName)
20
+ .channel(key || config.channelName)
21
21
  .on('postgres_changes', Object.assign({ event: config.event || '*', schema: config.schema || 'public', table: config.table }, (config.filter && { filter: config.filter })), (payload) => callbackRef.current(payload))
22
22
  .subscribe();
23
23
  subscriptionRef.current = subscription;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarefi-bff-api-module",
3
- "version": "1.25.1",
3
+ "version": "1.25.2",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -23,7 +23,7 @@ export const useSupabaseSubscription = ({ config, callback, enabled = true, key
23
23
  }
24
24
 
25
25
  const subscription = supabaseClient
26
- .channel(config.channelName)
26
+ .channel(key || config.channelName)
27
27
  .on(
28
28
  'postgres_changes' as any,
29
29
  {