diff --git a/CHANGELOG.md b/CHANGELOG.md index 6fd677e..2b3b705 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,16 @@ +## [1.2.1](https://github.com/SmartOperatingBlock/operating-block-gateway/compare/1.2.0...1.2.1) (2023-06-01) + + +### Bug Fixes + +* handle empty json from serial ([5610e3f](https://github.com/SmartOperatingBlock/operating-block-gateway/commit/5610e3fdf0fa2649dbf4ecdad90ed13ea373e421)) + + +### Dependency updates + +* **deps:** update dependency semantic-release-preconfigured-conventional-commits to v1.1.27 ([044ae80](https://github.com/SmartOperatingBlock/operating-block-gateway/commit/044ae80cc63a3adcddab09bac72db44be4fd7222)) +* **deps:** update dependency semantic-release-preconfigured-conventional-commits to v1.1.30 ([8a3d483](https://github.com/SmartOperatingBlock/operating-block-gateway/commit/8a3d4831403d570f957b6223dbebd11ef251409e)) + ## [1.2.0](https://github.com/SmartOperatingBlock/operating-block-gateway/compare/1.1.3...1.2.0) (2023-05-30) diff --git a/data/flows.json b/data/flows.json index cefd745..76aab6b 100644 --- a/data/flows.json +++ b/data/flows.json @@ -893,7 +893,7 @@ "type": "function", "z": "09012e75c72a4968", "name": "setSerial", - "func": "msg.serial_id = \"/dev/ttyUSB0\"\nmsg.payload = JSON.parse(msg.payload)\nreturn msg;", + "func": "msg.serial_id = \"/dev/ttyUSB0\"\nmsg.payload = parseJson(msg.payload)\n\nfunction parseJson(string) {\n return string === \"\" ? JSON.parse(\"{}\") : JSON.parse(string)\n}\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", @@ -1033,7 +1033,8 @@ "y": 180, "wires": [ [ - "ead8458e27835fd5" + "ead8458e27835fd5", + "df4e2787b740a95d" ] ] }, @@ -1936,8 +1937,8 @@ "y": 1440, "wires": [ [ - "ad7cbc939ce76248", - "d84f8fb891cfb581" + "d84f8fb891cfb581", + "ad7cbc939ce76248" ] ] }, @@ -1994,8 +1995,24 @@ "name": "Success: No content", "statusCode": "204", "headers": {}, - "x": 2720, + "x": 2780, "y": 1500, "wires": [] + }, + { + "id": "df4e2787b740a95d", + "type": "debug", + "z": "09012e75c72a4968", + "name": "debug 1", + "active": true, + "tosidebar": true, + "console": false, + "tostatus": false, + "complete": "false", + "statusVal": "", + "statusType": "auto", + "x": 360, + "y": 140, + "wires": [] } ] diff --git a/package.json b/package.json index a15eeb6..c6f6510 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "devDependencies": { - "semantic-release-preconfigured-conventional-commits": "1.1.26" + "semantic-release-preconfigured-conventional-commits": "1.1.30" }, "engines": { "node": "18.16"