goblin-laboratory 2.0.3 → 2.1.1

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": "2.0.3",
3
+ "version": "2.1.1",
4
4
  "description": "Laboratory",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -783,12 +783,9 @@ class Widget extends React.Component {
783
783
 
784
784
  cmd(cmd, args) {
785
785
  if (!this.registry[cmd]) {
786
- console.warn(
787
- '%cGoblins Warning',
788
- 'font-weight: bold;',
789
- `Command not impl. ${cmd}`
786
+ throw new Error(
787
+ `Command ${cmd} not implemented or authorized by the zepplin firewall`
790
788
  );
791
- return;
792
789
  }
793
790
  const state = this.getState().backend;
794
791
 
@@ -1155,8 +1152,10 @@ class Widget extends React.Component {
1155
1152
 
1156
1153
  setUserSettings(questName, payload) {
1157
1154
  const state = this.getState().backend;
1158
- payload.id = state.get(window.labId).get('clientSessionId');
1159
- this.cmd(`client-session.${questName}`, payload);
1155
+ const serviceId = state.get(window.labId).get('clientSessionId');
1156
+ payload.id = serviceId;
1157
+ const service = serviceId.split('@', 1)[0];
1158
+ this.cmd(`${service}.${questName}`, payload);
1160
1159
  }
1161
1160
 
1162
1161
  static getUserSession(state) {