@5minds/node-red-contrib-processcube 1.7.4-feature-5965fd-m6ksznqa → 1.7.4-feature-a7b5bb-m6kzn6vh

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.
@@ -22,7 +22,7 @@
22
22
  }
23
23
  }
24
24
  },
25
- "menu-menu-item-sidebar": false,
25
+ "menu-menu-item-sidebar": true,
26
26
  "menu-menu-item-palette": true,
27
27
  "do": {
28
28
  "markNodes": true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@5minds/node-red-contrib-processcube",
3
- "version": "1.7.4-feature-5965fd-m6ksznqa",
3
+ "version": "1.7.4-feature-a7b5bb-m6kzn6vh",
4
4
  "license": "MIT",
5
5
  "description": "Node-RED nodes for ProcessCube",
6
6
  "scripts": {
@@ -4,14 +4,14 @@ module.exports = function (RED) {
4
4
  var node = this;
5
5
 
6
6
  node.engine = RED.nodes.getNode(config.engine);
7
- const isUser = !!msg._client?.user
8
- const userIdentity = isUser ? { userId: msg._client.user.id, token: msg._client.user.accessToken } : null;
9
7
 
10
8
  let subscription = null;
11
9
  let subscribe = null;
12
10
 
13
11
  node.on('input', async function (msg) {
14
12
  const client = node.engine.engineClient;
13
+ const isUser = !!msg._client?.user
14
+ const userIdentity = isUser ? { userId: msg._client.user.id, token: msg._client.user.accessToken } : null;
15
15
  subscribe = async () => {
16
16
  if (!client) {
17
17
  node.error('No engine configured.', msg);