@iobroker/socket-classes 1.1.2 → 1.1.3
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/README.md +3 -0
- package/lib/socketCommands.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -888,6 +888,9 @@ Read all instances of the given adapter, or all instances of all adapters if ada
|
|
|
888
888
|
-->
|
|
889
889
|
|
|
890
890
|
## Changelog
|
|
891
|
+
### 1.1.3 (2023-03-12)
|
|
892
|
+
* (bluefox) Treat `json5` as `json`
|
|
893
|
+
|
|
891
894
|
### 1.1.2 (2023-03-03)
|
|
892
895
|
* (bluefox) Allow deletion of fullcalendar objects
|
|
893
896
|
|
package/lib/socketCommands.js
CHANGED
|
@@ -850,7 +850,7 @@ class SocketCommands {
|
|
|
850
850
|
let data64;
|
|
851
851
|
if (buffer) {
|
|
852
852
|
try {
|
|
853
|
-
if (type === 'application/json') {
|
|
853
|
+
if (type === 'application/json' || type === 'application/json5' || fileName.toLowerCase().endsWith('.json5')) {
|
|
854
854
|
data64 = Buffer.from(encodeURIComponent(buffer)).toString('base64');
|
|
855
855
|
} else {
|
|
856
856
|
if (typeof buffer === 'string') {
|