Bump version to 1.7.3

This commit is contained in:
Shivam Mathur
2020-01-17 13:45:04 +05:30
parent 320474a245
commit d2b233e45f
3 changed files with 939 additions and 281 deletions

9
dist/index.js vendored
View File

@ -1297,13 +1297,20 @@ class Command {
let cmdStr = CMD_STRING + this.command;
if (this.properties && Object.keys(this.properties).length > 0) {
cmdStr += ' ';
let first = true;
for (const key in this.properties) {
if (this.properties.hasOwnProperty(key)) {
const val = this.properties[key];
if (val) {
if (first) {
first = false;
}
else {
cmdStr += ',';
}
// safely append the val - avoid blowing up when attempting to
// call .replace() if message is not a string for some reason
cmdStr += `${key}=${escape(`${val || ''}`)},`;
cmdStr += `${key}=${escape(`${val || ''}`)}`;
}
}
}