goblin-laboratory 4.2.4 → 4.2.5

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "goblin-laboratory",
3
- "version": "4.2.4",
3
+ "version": "4.2.5",
4
4
  "description": "Laboratory",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -102,18 +102,18 @@ Goblin.registerQuest(goblinName, 'create', function* (
102
102
 
103
103
  const themeContexts = config.themeContexts || ['theme'];
104
104
 
105
+ const promises = [];
105
106
  for (const ctx of themeContexts) {
106
107
  const composerId = `theme-composer@${ctx}`;
107
- quest.create(
108
- 'theme-composer',
109
- {
108
+ promises.push(
109
+ quest.create('theme-composer', {
110
110
  id: composerId,
111
111
  desktopId: desktopId,
112
- },
113
- next.parallel()
112
+ })
114
113
  );
115
114
  config.feeds.push(composerId);
116
115
  }
116
+ yield Promise.all(promises);
117
117
 
118
118
  const id = quest.goblin.id;
119
119
 
@@ -75,10 +75,10 @@ const Laboratory = Widget.connect((state, props) => {
75
75
  const hasOverlay = state.get('network.hasOverlay');
76
76
  if (hasOverlay) {
77
77
  const hordes = state.get('network.hordes');
78
- const payload = hordes.find(({overlay}) => overlay);
78
+ const payload = hordes.find((horde) => horde.get('overlay'));
79
79
  if (payload) {
80
- overlay = payload.overlay;
81
- message = payload.message;
80
+ overlay = payload.get('overlay');
81
+ message = payload.get('message');
82
82
  }
83
83
  }
84
84
 
@@ -25,7 +25,9 @@ export default (state = initialState, action = {}) => {
25
25
  );
26
26
  }
27
27
 
28
- const hasOverlay = state.get('hordes').some(({overlay}) => overlay);
28
+ const hasOverlay = state
29
+ .get('hordes')
30
+ .some((horde) => horde.get('overlay'));
29
31
  return state.set('hasOverlay', hasOverlay);
30
32
  }
31
33