@iobroker/js-controller-cli 4.1.0-alpha.5-20220304-1487dea8 → 4.1.0-alpha.8-20220307-e82d97a2
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/lib/cli/cliStates.js +5 -0
- package/package.json +4 -4
package/lib/cli/cliStates.js
CHANGED
|
@@ -161,6 +161,11 @@ module.exports = class CLIStates extends CLICommand {
|
|
|
161
161
|
const { callback, dbConnect } = this.options;
|
|
162
162
|
const id = args[1];
|
|
163
163
|
|
|
164
|
+
if (!id) {
|
|
165
|
+
CLI.error.stateNotFound(id);
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
|
|
164
169
|
dbConnect(async (objects, states) => {
|
|
165
170
|
if (id.startsWith(ALIAS_STARTS_WITH)) {
|
|
166
171
|
objects.getObject(id, (err, targetObj) => {
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iobroker/js-controller-cli",
|
|
3
|
-
"version": "4.1.0-alpha.
|
|
3
|
+
"version": "4.1.0-alpha.8-20220307-e82d97a2",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=12.0.0"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@iobroker/js-controller-common": "4.1.0-alpha.
|
|
9
|
-
"@iobroker/js-controller-common-db": "4.1.0-alpha.
|
|
8
|
+
"@iobroker/js-controller-common": "4.1.0-alpha.8-20220307-e82d97a2",
|
|
9
|
+
"@iobroker/js-controller-common-db": "4.1.0-alpha.8-20220307-e82d97a2",
|
|
10
10
|
"chokidar": "^3.5.3",
|
|
11
11
|
"daemonize2": "^0.4.2",
|
|
12
12
|
"debug": "^4.3.3",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"lib/",
|
|
39
39
|
"index.js"
|
|
40
40
|
],
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "d40110f736e91e2cff4db623cc1b726fb7d4fe69"
|
|
42
42
|
}
|