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

@darkobits/adeiu

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@darkobits/adeiu - npm Package Compare versions

Comparing version 0.2.16 to 0.3.0

10

dist/adeiu.d.ts

@@ -18,6 +18,2 @@ /// <reference types="node" />

/**
* List of default POSIX signals to register handlers for.
*/
export declare const SIGNALS: Array<NodeJS.Signals>;
/**
* Provided a function, registers a callback with several common POSIX signals

@@ -28,2 +24,6 @@ * that will invoke the function upon receipt of any of the signals.

*/
export default function adeiu(cb: AdeiuCallback, { signals }?: AdeiuOptions): () => void;
declare function adeiu(cb: AdeiuCallback, { signals }?: AdeiuOptions): () => void;
declare namespace adeiu {
var SIGNALS: NodeJS.Signals[];
}
export default adeiu;
"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const chalk = require("chalk");

@@ -70,4 +69,4 @@ const ow = require("ow");

}
exports.SIGNALS = SIGNALS;
exports.default = adeiu;
adeiu.SIGNALS = SIGNALS;
module.exports = adeiu;
//# sourceMappingURL=adeiu.js.map
{
"name": "@darkobits/adeiu",
"version": "0.2.16",
"version": "0.3.0",
"description": "Yet another POSIX signal handler.",

@@ -5,0 +5,0 @@ "license": "WTFPL",

@@ -88,3 +88,3 @@ <a href="#top" id="top">

```ts
import adeiu, { SIGNALS } from '@darkobits/adeiu';
import adeiu from '@darkobits/adeiu';

@@ -94,3 +94,3 @@ // Register callback with the default signals _and_ SIGUSR1:

// Custom cleanup tasks.
}, [...SIGNALS, 'SIGUSR1']);
}, [...adeiu.SIGNALS, 'SIGUSR1']);
```

@@ -97,0 +97,0 @@

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