Comparing version 0.0.2 to 0.0.3
17
index.js
@@ -271,9 +271,16 @@ var ansi = require('ansi'); | ||
Monitor.prototype._monitorFn = function(socket, name, value) { | ||
if (value !== undefined) { | ||
socket._monitor[name] = value; | ||
if (typeof arguments[1] === 'object') { | ||
socket._monitor = arguments[1]; | ||
if (this.running) { | ||
this.dirty = true; | ||
} | ||
} else { | ||
return socket._monitor[name]; | ||
} else if (typeof arguments[1] === 'string') { | ||
if (value === undefined) { | ||
return socket._monitor[name]; | ||
} else { | ||
socket._monitor[name] = value; | ||
if (this.running) { | ||
this.dirty = true; | ||
} | ||
} | ||
} | ||
@@ -431,3 +438,3 @@ }; | ||
commaFlag = true, | ||
exitText = '(Ctrl + C to exit)', | ||
exitText = '(ctrl + c to exit)', | ||
windowWidth = this._getWindowSize().width, | ||
@@ -434,0 +441,0 @@ whiteSpace = Array(windowWidth - title.length - exitText.length).join(' '); |
{ | ||
"name": "monitor.io", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "description": "remote monitoring and debugging for socket.io", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15292
475