Skip to content

Commit

Permalink
chore: release v5.2.9
Browse files Browse the repository at this point in the history
Make sure day of weeks is an array (Sentry IOBROKER-JAVASCRIPT-7Y)
Report to sentry is disabled in GUI if sentry is deactivated
Fixed many GitHub issues
  • Loading branch information
GermanBluefox committed Sep 2, 2021
1 parent 68b0fa3 commit 83a3de2
Show file tree
Hide file tree
Showing 48 changed files with 1,081 additions and 906 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG_OLD.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
The newest change log is in README.md

## 5.2.2 (2021-07-06)
* (Apollon77) Add support to install npm packages as defined version (name@version)

## 5.2.1 (2021-07-05)
* (Apollon77) Adjust logging for "array"/"object" type handling

Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ And then call `npm run build`.

## Changelog

### __WORK IN PROGRESS__
### 5.2.9 (2021-09-02)
* (Apollon77) Make sure day of weeks is an array (Sentry IOBROKER-JAVASCRIPT-7Y)
* (bluefox) Report to sentry is disabled in GUI if sentry is deactivated
* (bluefox) Fixed many GitHub issues

### 5.2.8 (2021-07-22)
* (bluefox) Fixed the debug of scripts
Expand All @@ -55,9 +57,6 @@ And then call `npm run build`.
### 5.2.3 (2021-07-08)
* (agross) Fix imports like "rxjs/operators" for versioned npm modules

### 5.2.2 (2021-07-06)
* (Apollon77) Add support to install npm packages as defined version (name@version)

## License

The MIT License (MIT)
Expand Down
20 changes: 10 additions & 10 deletions admin/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
{
"files": {
"main.css": "/static/css/main.1a464464.chunk.css",
"main.js": "/static/js/main.b673e3ef.chunk.js",
"main.js.map": "/static/js/main.b673e3ef.chunk.js.map",
"main.js": "/static/js/main.5a90a260.chunk.js",
"main.js.map": "/static/js/main.5a90a260.chunk.js.map",
"runtime-main.js": "/static/js/runtime-main.02a8da94.js",
"runtime-main.js.map": "/static/js/runtime-main.02a8da94.js.map",
"static/css/2.1c4297c9.chunk.css": "/static/css/2.1c4297c9.chunk.css",
"static/js/2.0ffea560.chunk.js": "/static/js/2.0ffea560.chunk.js",
"static/js/2.0ffea560.chunk.js.map": "/static/js/2.0ffea560.chunk.js.map",
"static/css/2.a442f2b4.chunk.css": "/static/css/2.a442f2b4.chunk.css",
"static/js/2.51fc61e6.chunk.js": "/static/js/2.51fc61e6.chunk.js",
"static/js/2.51fc61e6.chunk.js.map": "/static/js/2.51fc61e6.chunk.js.map",
"index.html": "/index.html",
"static/css/2.1c4297c9.chunk.css.map": "/static/css/2.1c4297c9.chunk.css.map",
"static/css/2.a442f2b4.chunk.css.map": "/static/css/2.a442f2b4.chunk.css.map",
"static/css/main.1a464464.chunk.css.map": "/static/css/main.1a464464.chunk.css.map",
"static/js/2.0ffea560.chunk.js.LICENSE.txt": "/static/js/2.0ffea560.chunk.js.LICENSE.txt",
"static/js/2.51fc61e6.chunk.js.LICENSE.txt": "/static/js/2.51fc61e6.chunk.js.LICENSE.txt",
"static/media/hysteresis.04ebd02c.png": "/static/media/hysteresis.04ebd02c.png"
},
"entrypoints": [
"static/js/runtime-main.02a8da94.js",
"static/css/2.1c4297c9.chunk.css",
"static/js/2.0ffea560.chunk.js",
"static/css/2.a442f2b4.chunk.css",
"static/js/2.51fc61e6.chunk.js",
"static/css/main.1a464464.chunk.css",
"static/js/main.b673e3ef.chunk.js"
"static/js/main.5a90a260.chunk.js"
]
}

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

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions admin/static/js/2.0ffea560.chunk.js

This file was deleted.

3 changes: 3 additions & 0 deletions admin/static/js/2.51fc61e6.chunk.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions admin/static/js/main.5a90a260.chunk.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions admin/static/js/main.5a90a260.chunk.js.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions admin/static/js/main.b673e3ef.chunk.js

This file was deleted.

1 change: 0 additions & 1 deletion admin/static/js/main.b673e3ef.chunk.js.map

This file was deleted.

2 changes: 1 addition & 1 deletion admin/tab.html

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions io-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,20 @@
"Apollon77 <[email protected]>",
"AlCalzone"
],
"version": "5.2.8",
"version": "5.2.9",
"news": {
"5.2.9": {
"en": "Make sure day of weeks is an array (Sentry IOBROKER-JAVASCRIPT-7Y)\nReport to sentry is disabled in GUI if sentry is deactivated\nFixed many GitHub issues",
"de": "Stellen Sie sicher, dass der Wochentag ein Array ist (Sentry IOBROKER-JAVASCRIPT-7Y)\nBericht an Wache ist in der GUI deaktiviert, wenn Wache deaktiviert ist\nViele GitHub-Probleme behoben",
"ru": "Убедитесь, что день недели - это массив (Sentry IOBROKER-JAVASCRIPT-7Y)\nОтчет для часовой отключен в графическом интерфейсе, если часовая отключена\nИсправлено множество проблем с GitHub.",
"pt": "Certifique-se de que o dia das semanas seja uma matriz (Sentry IOBROKER-JAVASCRIPT-7Y)\nO relatório para a sentinela é desativado na GUI se a sentinela estiver desativada\nMuitos problemas do GitHub corrigidos",
"nl": "Zorg ervoor dat de dag van de weken een array is (Sentry IOBROKER-JAVASCRIPT-7Y)\nRapporteren aan schildwacht is uitgeschakeld in GUI als schildwacht is gedeactiveerd\nVeel GitHub-problemen opgelost",
"fr": "Assurez-vous que le jour des semaines est un tableau (Sentry IOBROKER-JAVASCRIPT-7Y)\nLe rapport à sentinelle est désactivé dans l'interface graphique si sentinelle est désactivée\nCorrection de nombreux problèmes GitHub",
"it": "Assicurati che il giorno della settimana sia un array (Sentry IOBROKER-JAVASCRIPT-7Y)\nSegnala a sentinella è disabilitato nella GUI se sentinella è disattivata\nRisolti molti problemi con GitHub",
"es": "Asegúrese de que el día de las semanas sea una matriz (Sentry IOBROKER-JAVASCRIPT-7Y)\nInformar al centinela está deshabilitado en la GUI si el centinela está desactivado\nSe corrigieron muchos problemas de GitHub",
"pl": "Upewnij się, że dzień tygodnia jest tablicą (Sentry IOBROKER-JAVASCRIPT-7Y)\nRaport do wartownika jest wyłączony w GUI, jeśli działko jest wyłączone\nNaprawiono wiele problemów z GitHub",
"zh-cn": "确保星期几是一个数组 (Sentry IOBROKER-JAVASCRIPT-7Y)\n如果哨兵被停用,则在 GUI 中禁用向哨兵报告\n修复了许多 GitHub 问题"
},
"5.2.8": {
"en": "Fixed the debug of scripts",
"de": "Fehler bei Skripten behoben",
Expand Down Expand Up @@ -249,18 +261,6 @@
"es": "Traducciones\nSe agregó el bloque \"establecer estado con retraso\".",
"pl": "Tłumaczenia\nDodano blok „ustawianie stanu z opóźnieniem”",
"zh-cn": "笔译\n添加了“带有延迟的设置状态”块"
},
"5.0.7": {
"en": "Added the pushsafer block",
"de": "Der Pushsafer-Block wurde hinzugefügt",
"ru": "Добавлен блок pushsafer",
"pt": "Adicionado o bloco pushsafer",
"nl": "Het pushsafer-blok toegevoegd",
"fr": "Ajout du bloc pushsafer",
"it": "Aggiunto il blocco pushsafer",
"es": "Añadido el bloque pushsafer",
"pl": "Dodano blok pushsafer",
"zh-cn": "添加了pushsafer块"
}
},
"desc": {
Expand Down
82 changes: 72 additions & 10 deletions lib/protectFs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ const nodeFS = require('fs');
const path = require('path');

const ProtectFs = function (log) {

function checkObjectsJson(file) {
if (path.normalize(file).replace(/\\/g, '/').indexOf('-data/objects.json') !== -1) {
if (path.normalize(file).replace(/\\/g, '/').includes('-data/objects.json')) {
if (log) {
log.error('May not read ' + file);
} else {
Expand Down Expand Up @@ -194,14 +193,6 @@ const ProtectFs = function (log) {
checkObjectsJson(arguments[0]);
return nodeFS.rmdirSync.apply(this, arguments);
};
this.truncate = function () {
checkObjectsJson(arguments[0]);
return nodeFS.truncate.apply(this, arguments);
};
this.truncateSync = function () {
checkObjectsJson(arguments[0]);
return nodeFS.truncateSync.apply(this, arguments);
};
this.watch = function () {
checkObjectsJson(arguments[0]);
return nodeFS.watch.apply(this, arguments);
Expand All @@ -210,6 +201,77 @@ const ProtectFs = function (log) {
checkObjectsJson(arguments[0]);
return nodeFS.watchFile.apply(this, arguments);
};

this.promises = {
readFile: function () {
checkObjectsJson(arguments[0]);
return nodeFS.promises.readFile.apply(this, arguments);
},
writeFile: function () {
checkObjectsJson(arguments[0]);
return nodeFS.promises.writeFile.apply(this, arguments);
},
unlink: function () {
checkObjectsJson(arguments[0]);
return nodeFS.promises.unlink.apply(this, arguments);
},
appendFile: function () {
checkObjectsJson(arguments[0]);
return nodeFS.promises.appendFile.apply(this, arguments);
},
chmod: function () {
checkObjectsJson(arguments[0]);
return nodeFS.promises.chmod.apply(this, arguments);
},
chown: function () {
checkObjectsJson(arguments[0]);
return nodeFS.promises.chmodSync.apply(this, arguments);
},
copyFile: function () {
checkObjectsJson(arguments[0]);
checkObjectsJson(arguments[1]);
return nodeFS.promises.copyFile.apply(this, arguments);
},
rename: function () {
checkObjectsJson(arguments[0]);
checkObjectsJson(arguments[1]);
return nodeFS.promises.rename.apply(this, arguments);
},
open: function () {
checkObjectsJson(arguments[0]);
return nodeFS.promises.open.apply(this, arguments);
},
rename: function () {
checkObjectsJson(arguments[0]);
checkObjectsJson(arguments[1]);
return nodeFS.promises.rename.apply(this, arguments);
},
truncate: function () {
checkObjectsJson(arguments[0]);
return nodeFS.promises.truncate.apply(this, arguments);
},
stat: function () {
checkObjectsJson(arguments[0]);
return nodeFS.promises.stat.apply(this, arguments);
},
readdir: function () {
checkObjectsJson(arguments[0]);
return nodeFS.promises.readdir.apply(this, arguments);
},
lstat: function () {
checkObjectsJson(arguments[0]);
return nodeFS.promises.lstat.apply(this, arguments);
},
mkdir: function () {
checkObjectsJson(arguments[0]);
return nodeFS.promises.mkdir.apply(this, arguments);
},
rmdir: function () {
checkObjectsJson(arguments[0]);
return nodeFS.promises.rmdir.apply(this, arguments);
}
}

return this;
};

Expand Down
Loading

0 comments on commit 83a3de2

Please sign in to comment.