mos-connection
Advanced tools
Comparing version 0.6.2 to 0.6.3
@@ -5,2 +5,13 @@ # Change Log | ||
<a name="0.6.3"></a> | ||
## [0.6.3](https://github.com/nrkno/tv-automation-mos-connection/compare/0.6.2...0.6.3) (2018-11-06) | ||
### Bug Fixes | ||
* method called with wrong context ([4768757](https://github.com/nrkno/tv-automation-mos-connection/commit/4768757)) | ||
* proper handling of empty string ([22d8da6](https://github.com/nrkno/tv-automation-mos-connection/commit/22d8da6)) | ||
<a name="0.6.2"></a> | ||
@@ -7,0 +18,0 @@ ## [0.6.2](https://github.com/nrkno/tv-automation-mos-connection/compare/0.6.1...0.6.2) (2018-10-11) |
@@ -33,5 +33,5 @@ /** Config object for creating a MOS-device */ | ||
accepsConnectionsFrom: string[]; | ||
debug?: boolean; | ||
openRelay?: boolean; | ||
offspecFailover?: boolean; | ||
debug: boolean; | ||
openRelay: boolean; | ||
offspecFailover: boolean; | ||
private _profiles; | ||
@@ -38,0 +38,0 @@ constructor(init: IConnectionConfig); |
@@ -64,3 +64,3 @@ "use strict"; | ||
this._client.on('data', (data) => this._onData(data)); | ||
this._client.on('error', this._onError); | ||
this._client.on('error', (error) => this._onError(error)); | ||
} | ||
@@ -67,0 +67,0 @@ // connect: |
@@ -6,4 +6,12 @@ "use strict"; | ||
constructor(str) { | ||
if (typeof str === 'object' && str.text) { | ||
this.string = str.text; | ||
if (typeof str === 'object') { | ||
if (str.text) { | ||
this.string = str.text; | ||
} | ||
else if (Object.keys(str).length === 0) { // is empty? | ||
this.string = ''; | ||
} | ||
else { | ||
this.string = JSON.stringify(str); | ||
} | ||
} | ||
@@ -10,0 +18,0 @@ else { |
{ | ||
"name": "mos-connection", | ||
"version": "0.6.2", | ||
"version": "0.6.3", | ||
"description": "MOS compliant TCP/IP Socket connection.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
331397
4516