@luigi-project/testing-utilities 2.29.1-dev.202603260051 → 2.29.1-dev.202603270053

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.
@@ -41,9 +41,9 @@ export class LuigiMockEngine {
41
41
  // vizualise retrieved event data
42
42
  LuigiMockEngine.visualize(JSON.stringify(e.data));
43
43
  // Check and run mocked callback if it exists
44
- const mockListener = window.luigiMockEnvironment.mockListeners[e.data.msg];
45
- if (mockListener) {
46
- mockListener(e);
44
+ const mockListeners = window.luigiMockEnvironment.mockListeners;
45
+ if (Object.hasOwn(mockListeners, e.data.msg)) {
46
+ mockListeners[e.data.msg](e);
47
47
  }
48
48
  }
49
49
  },
package/package.json CHANGED
@@ -19,7 +19,7 @@
19
19
  "microfrontends",
20
20
  "testing"
21
21
  ],
22
- "version": "2.29.1-dev.202603260051",
22
+ "version": "2.29.1-dev.202603270053",
23
23
  "engines": {
24
24
  "node": ">=20.19.0"
25
25
  }