server: fix plugin information. publish/

This commit is contained in:
Koushik Dutta
2022-03-07 12:57:05 -08:00
parent ac30cd644f
commit dc2f83cda9
3 changed files with 7 additions and 9 deletions

View File

@@ -1,12 +1,12 @@
{
"name": "@scrypted/server",
"version": "0.0.149",
"version": "0.0.150",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@scrypted/server",
"version": "0.0.149",
"version": "0.0.150",
"license": "ISC",
"dependencies": {
"@mapbox/node-pre-gyp": "^1.0.8",

View File

@@ -1,6 +1,6 @@
{
"name": "@scrypted/server",
"version": "0.0.149",
"version": "0.0.150",
"description": "",
"dependencies": {
"@mapbox/node-pre-gyp": "^1.0.8",

View File

@@ -1,6 +1,6 @@
import { Level } from './level';
import { PluginHost } from './plugin/plugin-host';
import { ScryptedNativeId, Device, EngineIOHandler, HttpRequest, HttpRequestHandler, OauthClient, PushHandler, ScryptedDevice, ScryptedInterface, ScryptedInterfaceProperty } from '@scrypted/types';
import { ScryptedNativeId, Device, EngineIOHandler, HttpRequest, HttpRequestHandler, OauthClient, PushHandler, ScryptedDevice, ScryptedInterface, ScryptedInterfaceProperty, DeviceInformation } from '@scrypted/types';
import { PluginDeviceProxyHandler } from './plugin/plugin-device';
import { Plugin, PluginDevice, ScryptedAlert } from './db-types';
import { getState, ScryptedStateManager, setState } from './state';
@@ -750,11 +750,9 @@ export class ScryptedRuntime extends PluginHttp<HttpPluginData> {
try {
const pluginDevice = this.findPluginDevice(plugin._id);
setState(pluginDevice, ScryptedInterfaceProperty.info, {
info: {
manufacturer: plugin.packageJson.name,
version: plugin.packageJson.version,
}
} as Device);
manufacturer: plugin.packageJson.name,
version: plugin.packageJson.version,
} as DeviceInformation);
this.runPlugin(plugin);
}
catch (e) {