@innertia-solutions/innertia-nuxt 0.1.26 → 0.1.27
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.
|
@@ -27,7 +27,8 @@ export function useRealtime() {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
const PusherModule = await import('pusher-js')
|
|
30
|
-
|
|
30
|
+
// Interop CJS/ESM: el constructor puede estar en .default, .default.default o el módulo
|
|
31
|
+
const Pusher = PusherModule.default?.default ?? PusherModule.default ?? PusherModule
|
|
31
32
|
|
|
32
33
|
// Build auth headers from all registered interceptors (auth token, X-Tenant-Id, etc.)
|
|
33
34
|
const { run } = useRequestInterceptors()
|