Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

daemonix

Package Overview
Dependencies
Maintainers
2
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

daemonix - npm Package Compare versions

Comparing version 3.0.7 to 3.0.8

2

package.json
{
"name": "daemonix",
"description": "Daemonix is an awesome tool for managing NodeJS processes/clusters as a daemon in Linux/Unix environments.",
"version": "3.0.7",
"version": "3.0.8",
"author": "Anthony Hildoer <anthony@bluerival.com>",

@@ -6,0 +6,0 @@ "repository": {

declare module 'daemonix' {
// Defining interfaces
interface App {
new(env: string): App;
export interface App {
init(done: (err?: Error | null) => void): void;

@@ -12,17 +10,20 @@

interface LogFn {
// Here typeof AppInterface is used to represent a Class that implements the AppInterface
export type AppClass = new (env: string) => App;
export interface LogFn {
(level: string, message: string, meta?: Record<string, unknown>): void;
}
interface WorkersOptions {
count: number | 'auto';
restartTimeout: number;
shutdownTimeout: number;
exitOnException: boolean;
export interface WorkersOptions {
count?: number | 'auto';
restartTimeout?: number;
shutdownTimeout?: number;
exitOnException?: boolean;
}
interface DaemonixOptions {
app: App;
log: LogFn;
workers: WorkersOptions;
export interface DaemonixOptions {
app: AppClass; // Now App represents a Class type
log?: LogFn;
workers?: WorkersOptions;
}

@@ -32,2 +33,2 @@

export default daemonix;
}
}
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