js-kompo-utils 1.0.6 → 1.0.7

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.
@@ -350,8 +350,9 @@ export class KompoJsInitializer {
350
350
 
351
351
  bootBroadcastingIfRequired() {
352
352
  if (this.config.includeBroadcasting) {
353
- const Echo = require("laravel-echo");
354
- this.window.Pusher = require('pusher-js'); // We usually use pusher, but if user want can set another way
353
+ const EchoModule = require("laravel-echo");
354
+ const Echo = EchoModule.default || EchoModule;
355
+ this.window.Pusher = require('pusher-js');
355
356
 
356
357
  this.window.Echo = new Echo(this.config.echoBroadcasterConfig);
357
358
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "js-kompo-utils",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "",
5
5
  "main": "app.js",
6
6
  "scripts": {