@things-factory/edge-client 7.0.1-beta.1 → 7.0.1-beta.10

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": "@things-factory/edge-client",
3
- "version": "7.0.1-beta.1",
3
+ "version": "7.0.1-beta.10",
4
4
  "main": "dist-server/index.js",
5
5
  "things-factory": true,
6
6
  "license": "MIT",
@@ -22,10 +22,10 @@
22
22
  "clean": "npm run clean:server"
23
23
  },
24
24
  "dependencies": {
25
- "@things-factory/auth-base": "^7.0.1-beta.1",
26
- "@things-factory/integration-base": "^7.0.1-beta.1",
27
- "@things-factory/lock-client": "^7.0.1-beta.1",
28
- "@things-factory/shell": "^7.0.1-beta.1"
25
+ "@things-factory/auth-base": "^7.0.1-beta.10",
26
+ "@things-factory/integration-base": "^7.0.1-beta.10",
27
+ "@things-factory/lock-client": "^7.0.1-beta.10",
28
+ "@things-factory/shell": "^7.0.1-beta.10"
29
29
  },
30
- "gitHead": "f117e0029bfbd061d3f76caa067ed81305f6c2b7"
30
+ "gitHead": "facbff076fc6af507fa83d5e0b033ad88cdb2fc8"
31
31
  }
@@ -35,7 +35,9 @@ export class EdgeClientSubscription {
35
35
  }
36
36
 
37
37
  process.nextTick(async () => {
38
- const connections = Object.values(ConnectionManager.getConnectionInstanceEntities(domain)).filter(({ edgeId }) => edgeId == appliance.id)
38
+ const connections = Object.values(ConnectionManager.getConnectionInstanceEntities(domain)).filter(
39
+ ({ edgeId }) => edgeId == appliance.id
40
+ )
39
41
 
40
42
  if (connections.length > 0) {
41
43
  pubsub.publish('sync-connections', connections)
@@ -67,7 +69,7 @@ export class EdgeClientSubscription {
67
69
  ...connection,
68
70
  params: JSON.stringify(connection.params)
69
71
  }
70
- })
72
+ }) as any
71
73
  }
72
74
 
73
75
  @Subscription(type => [Connection], {
@@ -120,7 +122,7 @@ export class EdgeClientSubscription {
120
122
  ...connection,
121
123
  params: JSON.stringify(connection.params)
122
124
  }
123
- })
125
+ }) as any
124
126
  }
125
127
 
126
128
  @Subscription(type => [Connection], {
@@ -167,13 +169,13 @@ export class EdgeClientSubscription {
167
169
  )
168
170
  }
169
171
  })
170
- disconnectConnections(@Root() payload: Connection): Connection[] {
172
+ disconnectConnections(@Root() payload: Connection[]): Connection[] {
171
173
  return payload.map(connection => {
172
174
  return {
173
175
  ...connection,
174
176
  params: JSON.stringify(connection.params)
175
177
  }
176
- })
178
+ }) as any
177
179
  }
178
180
 
179
181
  @Subscription({