Socket
Socket
Sign inDemoInstall

livereload

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

livereload - npm Package Compare versions

Comparing version 0.8.1 to 0.8.2

2

lib/command.js

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.12.7
// Generated by CoffeeScript 1.12.4
(function() {

@@ -3,0 +3,0 @@ var runner;

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.12.7
// Generated by CoffeeScript 1.12.4
(function() {

@@ -117,4 +117,7 @@ var EventEmitter, Server, chokidar, defaultExclusions, defaultExts, defaultPort, fs, http, https, path, protocol_version, url, ws,

});
return socket.send(data);
socket.send(data);
}
if (request.command === "info") {
return _this.debug("Server received client data. Not sending response.");
}
};

@@ -190,16 +193,12 @@ })(this));

Server.prototype.sendAllClients = function(data) {
var i, len, ref, results, socket;
ref = this.server.clients;
results = [];
for (i = 0, len = ref.length; i < len; i++) {
socket = ref[i];
results.push(socket.send(data, (function(_this) {
return function(error) {
return this.server.clients.forEach((function(_this) {
return function(socket) {
_this.debug("broadcasting to all clients: " + data);
return socket.send(data, function(error) {
if (error) {
return _this.debug(error);
}
};
})(this)));
}
return results;
});
};
})(this));
};

@@ -206,0 +205,0 @@

{
"name": "livereload",
"description": "LiveReload server",
"version": "0.8.1",
"version": "0.8.2",
"contributors": [

@@ -31,3 +31,3 @@ {

"devDependencies": {
"coffee-script": ">= 1.8.0",
"coffee-script": ">= 1.12",
"mocha": "^5.2.0",

@@ -34,0 +34,0 @@ "request": ">= 2.9.203",

@@ -175,2 +175,7 @@ node-livereload

### 0.8.2
* Fix regression in 0.8.1 where broadcasting failed due to incompatibility between arrays and sets
* Add debug message when broadcasting to each socket
* Add debug message for the `input` message from clients
### 0.8.1

@@ -177,0 +182,0 @@ * Update `ws` dependency to v6.2.1 to close security vulnerability

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc