Skip to content

Commit

Permalink
Merge pull request #182 from Grizzelbee/Development
Browse files Browse the repository at this point in the history
V2.3.2 (2022-03-04) (Fairytale of doom)
  • Loading branch information
Grizzelbee authored Mar 4, 2022
2 parents 06b2c40 + 89dff67 commit 9052ba8
Show file tree
Hide file tree
Showing 6 changed files with 354 additions and 272 deletions.
71 changes: 71 additions & 0 deletions .github/workflows/codeQL.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
schedule:
- cron: '30 14 * * 4'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
16 changes: 14 additions & 2 deletions io-package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
{
"common": {
"name": "dysonairpurifier",
"version": "2.3.1",
"version": "2.3.2",
"news": {
"2.3.2": {
"en": "Fixed sentry-error DYSONAIRPURIFIER-D\nupdated dependencies",
"de": "Sentry-Fehler DYSONAIRPURIFIER-D behoben\nAbhängigkeiten aktualisiert",
"ru": "Исправлена ​​ошибка Sentry-DYSONAIRPURIFIER-D\nобновлены зависимости",
"pt": "Corrigido o erro de sentinela DYSONAIRPURIFIER-D \n dependências atualizadas",
"nl": "Vaste schildwachtfout DYSONAIRPURIFIER-D\nbijgewerkte afhankelijkheden",
"fr": "Correction de l'erreur sentinelle DYSONAIRPURIFIER-D \n dépendances mises à jour",
"it": "Risolto errore di sentinella DYSONAIRPURIFIER-D\ndipendenze aggiornate",
"es": "Se corrigió el error de centinela DYSONAIRPURIFIER-D \n Dependencias actualizadas",
"pl": "Naprawiono błąd wartownika DYSONAIRPURIFIER-D \n zaktualizowane zależności",
"zh-cn": "修复了哨兵错误 DYSONAIRPURIFIER-D\n 更新了依赖项"
},
"2.3.1": {
"en": "Updated documentation\nupdated dependecies",
"en": "Updated documentation\nupdated dependencies",
"de": "Aktualisierte Dokumentation\naktualisierte Abhängigkeiten",
"ru": "Обновленная документация\nобновленные зависимости",
"pt": "Documentação atualizada\ndependências atualizadas",
Expand Down
8 changes: 4 additions & 4 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,17 @@ class dysonAirPurifier extends utils.Adapter {
dysonUtils.getDyson2faMail(this, msg.message.email, msg.message.password, msg.message.country, msg.message.locale)
.then((response) => this.sendTo(msg.from, msg.command, response, msg.callback))
.catch((e) => {
this.log.warn(`Couldn't handle getDyson2faMail message: ${e}`);
this.sendTo(msg.from, msg.command, { error: e || 'No data' }, msg.callback);
adapter.log.warn(`Couldn't handle getDyson2faMail message: ${e}`);
adapter.sendTo(msg.from, msg.command, { error: e || 'No data' }, msg.callback);
});
}
if (msg.command === 'getDysonToken') {
this.log.debug('OnMessage: getting Dyson-Token');
dysonUtils.getDysonToken(this, msg.message.email, msg.message.password,msg.message.country, msg.message.challengeId, msg.message.PIN)
.then((response) => this.sendTo(msg.from, msg.command, response, msg.callback))
.catch((e) => {
this.log.warn(`Couldn't handle getDysonToken message: ${e}`);
this.sendTo(msg.from, msg.command, { error: e || 'No data' }, msg.callback);
adapter.log.warn(`Couldn't handle getDysonToken message: ${e}`);
adapter.sendTo(msg.from, msg.command, { error: e || 'No data' }, msg.callback);
});
}
}
Expand Down
Loading

0 comments on commit 9052ba8

Please sign in to comment.