@iobroker/js-controller-common
Advanced tools
Comparing version 6.0.12-alpha.0-20240922-1ea0ace13 to 6.0.12-alpha.0-20240924-4e8189ae0
@@ -1,3 +0,3 @@ | ||
export { getStatesConstructor, statesDbHasServer, isLocalStatesDbServer, performStatesInterview } from './lib/common/states.js'; | ||
export { getObjectsConstructor, objectsDbHasServer, isLocalObjectsDbServer, performObjectsInterview } from './lib/common/objects.js'; | ||
export { getStatesConstructor, statesDbHasServer, isLocalStatesDbServer, performStatesInterview, } from './lib/common/states.js'; | ||
export { getObjectsConstructor, objectsDbHasServer, isLocalObjectsDbServer, performObjectsInterview, } from './lib/common/objects.js'; | ||
export { NotificationHandler } from './lib/common/notificationHandler.js'; | ||
@@ -4,0 +4,0 @@ export * as zipFiles from './lib/common/zipFiles.js'; |
@@ -132,3 +132,3 @@ "use strict"; | ||
} | ||
root += "/" + parts.shift(); | ||
root += `/${parts.shift()}`; | ||
try { | ||
@@ -203,6 +203,6 @@ await objects.readDirAsync(id, root, options); | ||
} catch { | ||
data.id = keys[f].replace(/\./g, "/").substring(rootId.length + 1) + ".json"; | ||
data.id = `${keys[f].replace(/\./g, "/").substring(rootId.length + 1)}.json`; | ||
} | ||
} else { | ||
data.id = keys[f].replace(/\./g, "/").substring(rootId.length + 1) + ".json"; | ||
data.id = `${keys[f].replace(/\./g, "/").substring(rootId.length + 1)}.json`; | ||
} | ||
@@ -209,0 +209,0 @@ if (typeof data.data === "object") { |
@@ -1,3 +0,3 @@ | ||
export { getStatesConstructor, statesDbHasServer, isLocalStatesDbServer, performStatesInterview } from './lib/common/states.js'; | ||
export { getObjectsConstructor, objectsDbHasServer, isLocalObjectsDbServer, performObjectsInterview } from './lib/common/objects.js'; | ||
export { getStatesConstructor, statesDbHasServer, isLocalStatesDbServer, performStatesInterview, } from './lib/common/states.js'; | ||
export { getObjectsConstructor, objectsDbHasServer, isLocalObjectsDbServer, performObjectsInterview, } from './lib/common/objects.js'; | ||
export { NotificationHandler } from './lib/common/notificationHandler.js'; | ||
@@ -4,0 +4,0 @@ export * as zipFiles from './lib/common/zipFiles.js'; |
@@ -1,3 +0,3 @@ | ||
export { getStatesConstructor, statesDbHasServer, isLocalStatesDbServer, performStatesInterview } from './lib/common/states.js'; | ||
export { getObjectsConstructor, objectsDbHasServer, isLocalObjectsDbServer, performObjectsInterview } from './lib/common/objects.js'; | ||
export { getStatesConstructor, statesDbHasServer, isLocalStatesDbServer, performStatesInterview, } from './lib/common/states.js'; | ||
export { getObjectsConstructor, objectsDbHasServer, isLocalObjectsDbServer, performObjectsInterview, } from './lib/common/objects.js'; | ||
export { NotificationHandler } from './lib/common/notificationHandler.js'; | ||
@@ -4,0 +4,0 @@ export * as zipFiles from './lib/common/zipFiles.js'; |
@@ -56,6 +56,6 @@ /** | ||
uk: 'Сповіщення', | ||
'zh-cn': '通知事项' | ||
} | ||
'zh-cn': '通知事项', | ||
}, | ||
}, | ||
native: {} | ||
native: {}, | ||
}); | ||
@@ -72,3 +72,3 @@ } | ||
startkey: 'system.adapter.', | ||
endkey: 'system.adapter.\u9999' | ||
endkey: 'system.adapter.\u9999', | ||
}); | ||
@@ -131,5 +131,5 @@ for (const entry of res.rows) { | ||
name: scopeObj.name, | ||
desc: scopeObj.description | ||
desc: scopeObj.description, | ||
}, | ||
native: {} | ||
native: {}, | ||
}); | ||
@@ -146,3 +146,3 @@ } | ||
description: scopeObj.description, | ||
categories: {} | ||
categories: {}, | ||
}; | ||
@@ -169,3 +169,3 @@ for (const categoryObj of scopeObj.categories) { | ||
severity: categoryObj.severity, | ||
description: categoryObj.description | ||
description: categoryObj.description, | ||
}; | ||
@@ -242,3 +242,3 @@ } | ||
val: JSON.stringify(stateVal), | ||
ack: true | ||
ack: true, | ||
}); | ||
@@ -265,3 +265,3 @@ } | ||
val: JSON.stringify(stateVal), | ||
ack: true | ||
ack: true, | ||
}); | ||
@@ -341,3 +341,3 @@ } | ||
description: this.setup[scope].description, | ||
name: this.setup[scope].name | ||
name: this.setup[scope].name, | ||
}; | ||
@@ -358,3 +358,3 @@ for (const category of Object.keys(this.currentNotifications[scope])) { | ||
name: categoryObj.name, | ||
severity: categoryObj.severity | ||
severity: categoryObj.severity, | ||
}; | ||
@@ -367,3 +367,3 @@ for (const instance of Object.keys(this.currentNotifications[scope][category])) { | ||
res[scope].categories[category].instances[instance] = { | ||
messages: this.currentNotifications[scope][category][instance] | ||
messages: this.currentNotifications[scope][category][instance], | ||
}; | ||
@@ -430,3 +430,3 @@ } | ||
val: JSON.stringify(stateVal), | ||
ack: true | ||
ack: true, | ||
}); | ||
@@ -433,0 +433,0 @@ } |
@@ -20,3 +20,3 @@ import { appName } from '@iobroker/js-controller-common-db/tools'; | ||
startkey: 'system.adapter.', | ||
endkey: 'system.adapter.\u9999' | ||
endkey: 'system.adapter.\u9999', | ||
}); | ||
@@ -23,0 +23,0 @@ } |
@@ -114,3 +114,3 @@ import { tools } from '@iobroker/js-controller-common'; | ||
} | ||
root += '/' + parts.shift(); | ||
root += `/${parts.shift()}`; | ||
try { | ||
@@ -195,7 +195,7 @@ await objects.readDirAsync(id, root, options); | ||
catch { | ||
data.id = keys[f].replace(/\./g, '/').substring(rootId.length + 1) + '.json'; | ||
data.id = `${keys[f].replace(/\./g, '/').substring(rootId.length + 1)}.json`; | ||
} | ||
} | ||
else { | ||
data.id = keys[f].replace(/\./g, '/').substring(rootId.length + 1) + '.json'; | ||
data.id = `${keys[f].replace(/\./g, '/').substring(rootId.length + 1)}.json`; | ||
} | ||
@@ -202,0 +202,0 @@ if (typeof data.data === 'object') { |
{ | ||
"name": "@iobroker/js-controller-common", | ||
"type": "module", | ||
"version": "6.0.12-alpha.0-20240922-1ea0ace13", | ||
"version": "6.0.12-alpha.0-20240924-4e8189ae0", | ||
"engines": { | ||
@@ -13,10 +13,11 @@ "node": ">=12.0.0" | ||
"dependencies": { | ||
"@iobroker/db-objects-file": "6.0.12-alpha.0-20240922-1ea0ace13", | ||
"@iobroker/db-objects-jsonl": "6.0.12-alpha.0-20240922-1ea0ace13", | ||
"@iobroker/db-objects-redis": "6.0.12-alpha.0-20240922-1ea0ace13", | ||
"@iobroker/db-states-file": "6.0.12-alpha.0-20240922-1ea0ace13", | ||
"@iobroker/db-states-jsonl": "6.0.12-alpha.0-20240922-1ea0ace13", | ||
"@iobroker/db-states-redis": "6.0.12-alpha.0-20240922-1ea0ace13", | ||
"@iobroker/js-controller-common-db": "6.0.12-alpha.0-20240922-1ea0ace13", | ||
"fs-extra": "^11.1.0" | ||
"@iobroker/db-objects-file": "6.0.12-alpha.0-20240924-4e8189ae0", | ||
"@iobroker/db-objects-jsonl": "6.0.12-alpha.0-20240924-4e8189ae0", | ||
"@iobroker/db-objects-redis": "6.0.12-alpha.0-20240924-4e8189ae0", | ||
"@iobroker/db-states-file": "6.0.12-alpha.0-20240924-4e8189ae0", | ||
"@iobroker/db-states-jsonl": "6.0.12-alpha.0-20240924-4e8189ae0", | ||
"@iobroker/db-states-redis": "6.0.12-alpha.0-20240924-4e8189ae0", | ||
"@iobroker/js-controller-common-db": "6.0.12-alpha.0-20240924-4e8189ae0", | ||
"fs-extra": "^11.1.0", | ||
"jszip": "^3.10.1" | ||
}, | ||
@@ -58,3 +59,3 @@ "keywords": [ | ||
], | ||
"gitHead": "f864a31b47322c8d4994b2a4336beaf44d364a55" | ||
"gitHead": "3540964b91b0991a6e81f1d6f9d6e90b9e46dbff" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
247444
11
+ Addedjszip@^3.10.1
+ Added@iobroker/db-base@6.0.12-alpha.0-20240924-4e8189ae0(transitive)
+ Added@iobroker/db-objects-file@6.0.12-alpha.0-20240924-4e8189ae0(transitive)
+ Added@iobroker/db-objects-jsonl@6.0.12-alpha.0-20240924-4e8189ae0(transitive)
+ Added@iobroker/db-objects-redis@6.0.12-alpha.0-20240924-4e8189ae0(transitive)
+ Added@iobroker/db-states-file@6.0.12-alpha.0-20240924-4e8189ae0(transitive)
+ Added@iobroker/db-states-jsonl@6.0.12-alpha.0-20240924-4e8189ae0(transitive)
+ Added@iobroker/db-states-redis@6.0.12-alpha.0-20240924-4e8189ae0(transitive)
+ Added@iobroker/js-controller-common-db@6.0.12-alpha.0-20240924-4e8189ae0(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addedimmediate@3.0.6(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedjszip@3.10.1(transitive)
+ Addedlie@3.3.0(transitive)
+ Addedpako@1.0.11(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedreadable-stream@2.3.8(transitive)
+ Addedsafe-buffer@5.1.2(transitive)
+ Addedsetimmediate@1.0.5(transitive)
+ Addedstring_decoder@1.1.1(transitive)
- Removed@iobroker/db-base@6.0.12-alpha.0-20240922-1ea0ace13(transitive)
- Removed@iobroker/db-objects-file@6.0.12-alpha.0-20240922-1ea0ace13(transitive)
- Removed@iobroker/db-objects-jsonl@6.0.12-alpha.0-20240922-1ea0ace13(transitive)
- Removed@iobroker/db-objects-redis@6.0.12-alpha.0-20240922-1ea0ace13(transitive)
- Removed@iobroker/db-states-file@6.0.12-alpha.0-20240922-1ea0ace13(transitive)
- Removed@iobroker/db-states-jsonl@6.0.12-alpha.0-20240922-1ea0ace13(transitive)
- Removed@iobroker/db-states-redis@6.0.12-alpha.0-20240922-1ea0ace13(transitive)
- Removed@iobroker/js-controller-common-db@6.0.12-alpha.0-20240922-1ea0ace13(transitive)
- Removedstring_decoder@1.3.0(transitive)
Updated@iobroker/db-objects-file@6.0.12-alpha.0-20240924-4e8189ae0
Updated@iobroker/db-objects-jsonl@6.0.12-alpha.0-20240924-4e8189ae0
Updated@iobroker/db-objects-redis@6.0.12-alpha.0-20240924-4e8189ae0
Updated@iobroker/db-states-file@6.0.12-alpha.0-20240924-4e8189ae0
Updated@iobroker/db-states-jsonl@6.0.12-alpha.0-20240924-4e8189ae0
Updated@iobroker/db-states-redis@6.0.12-alpha.0-20240924-4e8189ae0
Updated@iobroker/js-controller-common-db@6.0.12-alpha.0-20240924-4e8189ae0