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

luster

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

luster - npm Package Compare versions

Comparing version 0.1.7 to 0.2.0-pre1

lib/legacy.js

8

bin/luster.js
#!/usr/bin/env node
var domain = require('domain').create();
var legacy = require('../lib/legacy'),
domain = require('domain').create();
domain.on('error', function(error) {
var fs = require('fs'),
os = require('os'),
path = require('path'),
dumpFilePath = path.resolve(
os.tmpdir(),
legacy.tmpdir(),
'luster-dump-' + process.pid + '-' +

@@ -28,2 +28,2 @@ (new Date()).toISOString().replace(/[^\dTZ]/g, '-'));

luster.configure(require(configFilePath), true, path.dirname(configFilePath)).run();
});
});
var cluster = require('cluster'),
legacy = require('./legacy'),
path = require('path'),

@@ -141,3 +142,3 @@ RPC = require('./rpc'),

if (this._initialized) {
setImmediate(fn.bind(this));
legacy.setImmediate(fn.bind(this));
} else {

@@ -219,2 +220,2 @@ this.once('initialized', fn.bind(this));

module.exports = ClusterProcess;
module.exports = ClusterProcess;
var cluster = require('cluster'),
legacy = require('./legacy'),
RPC = require('./rpc'),

@@ -340,4 +341,2 @@ EventEmitterEx = require('./event_emitter_ex'),

WorkerWrapper.prototype._onStateStopped = function() {
var self = this;
// clear stopTimeout

@@ -366,5 +365,3 @@ if (this.stopTimeout) {

if (this.options.persistent || this.restarting && ! this.dead) {
setImmediate(function() {
self.run();
});
legacy.setImmediate(this.run.bind(this));
}

@@ -432,3 +429,3 @@ };

setImmediate(function() {
legacy.setImmediate(function() {
var debugPort = self.options.debugPort;

@@ -483,3 +480,3 @@

setImmediate(function() {
legacy.setImmediate(function() {
self._worker.disconnect();

@@ -486,0 +483,0 @@ });

{
"name" : "luster",
"version" : "0.1.7",
"version" : "0.2.0-pre1",
"description" : "Node.js cluster wrapper",

@@ -44,4 +44,4 @@ "main" : "./lib/luster.js",

"engines" : {
"node" : ">=0.10"
"node" : ">=0.8"
}
}

@@ -91,4 +91,4 @@ # luster

extensions : {
// luster-log-files extension example
"luster-log-files" : {
// luster-log-file extension example
"luster-log-file" : {
stdout : "/var/log/luster/app.stdout.log",

@@ -95,0 +95,0 @@ stderr : "/var/log/luster/app.stderr.log"

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