Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps-dev): bump chai-as-promised from 7.1.2 to 8.0.1 #68

Merged
merged 1 commit into from
Dec 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 29 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -46,7 +46,7 @@
"@typescript-eslint/eslint-plugin": "^8.16.0",
"@typescript-eslint/parser": "^8.16.0",
"chai": "^4.4.1",
"chai-as-promised": "^7.1.2",
"chai-as-promised": "^8.0.1",
"mocha": "^10.7.3",
"proxyquire": "^2.1.3",
"rimraf": "^5.0.10",

Unchanged files with check annotations Beta

}
if (objectDefinition.type !== 'state' || expandTree) {
let a = 0;
for (const k in data) {

Check warning on line 134 in src/lib/library.ts

GitHub Actions / check-and-lint

For-in loops over arrays skips holes, returns indices as strings, and may visit the prototype chain or other enumerable properties. Use a more robust iteration method such as for-of or array.forEach instead
const defChannel = this.getChannelObject(objectDefinition);
const dp = `${prefix}${`00${a++}`.slice(-2)}`;
* Get the ioBroker.Object out of stateDefinition
*
* @param key is the deep linking key to the definition
* @param def

Check warning on line 173 in src/lib/library.ts

GitHub Actions / check-and-lint

Missing JSDoc @param "def" description
* @param data is the definition dataset
* @returns ioBroker.ChannelObject | ioBroker.DeviceObject | ioBroker.StateObject
*/
/**
* Get a channel/device definition from property _channel out of a getObjectDefFromJson() result or a default definition.
*
* @param def the data coming from getObjectDefFromJson()

Check warning on line 241 in src/lib/library.ts

GitHub Actions / check-and-lint

Expected @param names to be "definition". Got "def, definition"
* @param definition

Check warning on line 242 in src/lib/library.ts

GitHub Actions / check-and-lint

Missing JSDoc @param "definition" description
* @returns ioBroker.ChannelObject | ioBroker.DeviceObject or a default channel obj
*/
getChannelObject(
if (dp && dp.split('.').length <= 2) {
return true;
}
for (const a in this.forbiddenDirs) {

Check warning on line 338 in src/lib/library.ts

GitHub Actions / check-and-lint

For-in loops over arrays skips holes, returns indices as strings, and may visit the prototype chain or other enumerable properties. Use a more robust iteration method such as for-of or array.forEach instead
if (dp.search(new RegExp(this.forbiddenDirs[a], 'g')) != -1) {
return false;
}
del = del.filter((item, pos, arr) => {
return arr.indexOf(item) == pos;
});
for (const a in del) {

Check warning on line 371 in src/lib/library.ts

GitHub Actions / check-and-lint

For-in loops over arrays skips holes, returns indices as strings, and may visit the prototype chain or other enumerable properties. Use a more robust iteration method such as for-of or array.forEach instead
await this.adapter.delObjectAsync(del[a], { recursive: true });
this.log.debug(`Clean up tree delete: ${del[a]}`);
}
*
* @param prefix String with which states begin that are reset.
* @param offset Time in ms since last update.
* @param del

Check warning on line 554 in src/lib/library.ts

GitHub Actions / check-and-lint

Missing JSDoc @param "del" description
* @returns void
*/
async garbageColleting(prefix: string, offset: number = 2000, del = false): Promise<void> {
/**
* Is called when adapter shuts down - callback has to be called under any circumstances!
*
* @param callback

Check warning on line 297 in src/main.ts

GitHub Actions / check-and-lint

Missing JSDoc @param "callback" description
*/
private onUnload(callback: () => void): void {
try {
/**
* Is called if a subscribed state changes
*
* @param id

Check warning on line 339 in src/main.ts

GitHub Actions / check-and-lint

Missing JSDoc @param "id" description
* @param state

Check warning on line 340 in src/main.ts

GitHub Actions / check-and-lint

Missing JSDoc @param "state" description
*/
private async onStateChange(id: string, state: ioBroker.State | null | undefined): Promise<void> {
if (state && !state.ack) {