node-red-contrib-teamogy-api 0.0.1 → 0.0.2

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,19 +1,19 @@
1
1
  {
2
2
  "name": "node-red-contrib-teamogy-api",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
7
7
  },
8
8
  "keywords": [
9
- "node-red",
10
- "teamogy",
11
- "api"
12
- ],
13
- "repository": {
14
- "type": "git",
15
- "url": "https://github.com/teamogy-team/node-red-nodes"
16
- },
9
+ "node-red",
10
+ "teamogy",
11
+ "api"
12
+ ],
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "https://github.com/teamogy-team/node-red-nodes"
16
+ },
17
17
  "author": "",
18
18
  "license": "",
19
19
  "node-red": {
package/teamogy-client.js CHANGED
@@ -40,7 +40,7 @@ module.exports = function(RED) {
40
40
  this.config = RED.nodes.getNode(data.configuration);
41
41
 
42
42
  let token = this.config.credentials.token
43
- let host = this.config.host
43
+ let host = this.config.host.replace(/^https?:\/\//, '').split('/')[0];
44
44
  let unit = this.config.unit
45
45
 
46
46
  let clientid = data.id