New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

watchers

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

watchers - npm Package Compare versions

Comparing version 0.3.26 to 0.3.28

25

lib/watchers.js

@@ -8,3 +8,2 @@ //Ver: https://github.com/bevry/watchr

var connectedIns = false;
var lastPort = null;
var Faye = require('faye');

@@ -16,2 +15,3 @@ var portscanner = require('portscanner');

var serverPort = 35729;
var lastPort = serverPort+1;

@@ -22,3 +22,3 @@

exports.watchers = function(path2watch, ignore, only, watch_interval, inject, name){
console.log("\nwatchers v0.3.26");
console.log("\nwatchers v0.3.28");

@@ -87,3 +87,3 @@ var watcherOptions =

console.log('\n[MEGASERVER SUBSCRIBE]' + clientId );
megaServerTrans.publish('/'+serverDefaultChannel, {port:port, init:true});
megaServerTrans.publish('/'+serverDefaultChannel, {port:port, init:true, server_version:"v0.3.28"});
});

@@ -117,4 +117,7 @@

function createWatcher(options){
console.log('------------!createWatcher');
console.log(options);
if (true){
console.log('\n______________ create Watcher [external]:');
console.log(options);
console.log('\n');
}
options.port = lastPort;

@@ -208,2 +211,10 @@ addServerWatcher(options);

var options4save = {
name:name,
path2watch:path2watch,
ignore:ignore,
only:only,
watch_interval:watch_interval,
inject:inject
}

@@ -213,3 +224,3 @@

FayeSenderListener = new Faye.Client("http://localhost" +':'+ port +'/');
FayeSenderListener.publish('/'+defaultChannel, {ver:versionChange, port:port, injectcss:null, refresh:false, init:true, name:lastName});
FayeSenderListener.publish('/'+defaultChannel, {ver:versionChange, port:port, options4save:options4save, injectcss:null, refresh:false, init:true, name:lastName});
FayeSenderListener.subscribe('/'+defaultChannel+"toServer", function(message) {

@@ -227,3 +238,3 @@ if (message === null) return;

console.log('\n [WServer SUBSCRIBE]' + clientId + " | watcher name: "+ name +" / in port: " + port);
FayeSenderListener.publish('/'+defaultChannel, {ver:versionChange, port:port, injectcss:null, refresh:false, init:true, name:lastName});
FayeSenderListener.publish('/'+defaultChannel, {ver:versionChange, port:port, options4save:options4save, injectcss:null, refresh:false, init:true, name:lastName});
});

@@ -230,0 +241,0 @@

{
"name": "watchers",
"version": "0.3.26",
"version": "0.3.28",
"description": "Watch file changes and refresh site in browser",

@@ -5,0 +5,0 @@ "main": "lib/main.js",

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