@iobroker/js-controller-common 4.0.10 → 4.0.13-alpha.1-20220219-041f837c

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.
@@ -83,7 +83,8 @@ const IoSeq =
83
83
  // we add own properties
84
84
  ioInfo.props.Hostname = tools.getHostName();
85
85
  if (ioInfo.message) {
86
- const msgParts = ioInfo.message.match(/^([^.]+\.[0-9]+) \(([^)]+)\) (.*)$/);
86
+ // handle as single line with s flag, to if message ends with CR, etc
87
+ const msgParts = ioInfo.message.match(/^([^.]+\.[0-9]+) \(([^)]+)\) (.*)$/s);
87
88
  if (msgParts) {
88
89
  ioInfo.props.Source = msgParts[1];
89
90
  ioInfo.props.Pid = msgParts[2];
@@ -2999,7 +2999,13 @@ function pipeLinewise(input, output) {
2999
2999
  input,
3000
3000
  crlfDelay: Infinity
3001
3001
  });
3002
- rl.on('line', line => output.write(line + os.EOL));
3002
+ rl.on('line', line => {
3003
+ try {
3004
+ output.write(line + os.EOL);
3005
+ } catch {
3006
+ // ignore
3007
+ }
3008
+ });
3003
3009
  rl.on('error', () => {}); // Ignore errors
3004
3010
  }
3005
3011
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iobroker/js-controller-common",
3
- "version": "4.0.10",
3
+ "version": "4.0.13-alpha.1-20220219-041f837c",
4
4
  "engines": {
5
5
  "node": ">=12.0.0"
6
6
  },
@@ -47,5 +47,5 @@
47
47
  "lib/",
48
48
  "index.js"
49
49
  ],
50
- "gitHead": "d334e640b26f5fec15277f6f55c2b46a46e4ae14"
50
+ "gitHead": "3cd3477239dd22c10ac42a0de5eb6761216071ae"
51
51
  }