@scrypted/server 0.0.96 → 0.0.100

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.

@@ -29,8 +29,10 @@ export class PluginComponent {
29
29
  const pluginDevice = this.scrypted.findPluginDeviceById(id);
30
30
  this.scrypted.stateManager.setPluginDeviceState(pluginDevice, ScryptedInterfaceProperty.mixins, [...new Set(mixins)] || []);
31
31
  await this.scrypted.datastore.upsert(pluginDevice);
32
- const device = this.scrypted.invalidatePluginDeviceMixins(id);
33
- await device?.handler.ensureProxy();
32
+ // device may not exist, so force creation.
33
+ this.scrypted.rebuildPluginDeviceMixinTable(id);
34
+ this.scrypted.getDevice(id);
35
+ await this.scrypted.devices[id]?.handler?.ensureProxy();
34
36
  }
35
37
  async getMixins(id: string) {
36
38
  console.warn('legacy use of getMixins, use the mixins property');