Socket
Socket
Sign inDemoInstall

master-cluster

Package Overview
Dependencies
2
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.1 to 0.3.2

2

master-cluster.js

@@ -11,3 +11,3 @@ 'use strict';

var setup = {};
var noop = function () {}
var noop = function () {};

@@ -14,0 +14,0 @@ function start (options) {

@@ -5,6 +5,5 @@ {

"description": "Facilitate using cluster and domain modules, live reload application in development mode on code change.",
"version": "0.3.1",
"version": "0.3.2",
"dependencies": {
"debug": "^2.0.0",
"moment": "~1.6.2"
"debug": "^2.0.0"
},

@@ -30,4 +29,4 @@ "repository": {

],
"license": "BSD",
"license": "BSD-2-Clause",
"types": "master-cluster.d.ts"
}

@@ -8,3 +8,3 @@ 'use strict';

, cooldown = 100
, last = moment()
, last = Date.now()
;

@@ -70,4 +70,5 @@

function skipFile (filename, rg) {
var skip = moment().diff(last) < cooldown || ! rg.test(filename);
if (! skip) last = moment();
var now = Date.now();
var skip = now - last < cooldown || ! rg.test(filename);
if (! skip) last = now;
return skip;

@@ -74,0 +75,0 @@ }

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc