@scrypted/server 0.7.71 → 0.7.72

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.

Potentially problematic release.


This version of @scrypted/server might be problematic. Click here for more details.

package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrypted/server",
3
- "version": "0.7.71",
3
+ "version": "0.7.72",
4
4
  "description": "",
5
5
  "dependencies": {
6
6
  "@mapbox/node-pre-gyp": "^1.0.10",
@@ -352,6 +352,16 @@ class PluginRemote:
352
352
  newValue = await c(proxyId, portSecret)
353
353
  if not newValue:
354
354
  raise Exception('ipc object not found?')
355
+ properties = getattr(value, rpc.RpcPeer.PROPERTY_PROXY_PROPERTIES)
356
+ if not properties:
357
+ properties = {}
358
+ setattr(value, rpc.RpcPeer.PROPERTY_PROXY_PROPERTIES, properties)
359
+ # reassign the cluster identity in case this object gets passed back into the cluster.
360
+ properties['__cluster'] = {
361
+ 'id': clusterId,
362
+ 'proxyId': proxyId,
363
+ 'port': clusterPort,
364
+ }
355
365
  return newValue
356
366
  except Exception as e:
357
367
  return value