@darkobits/adeiu
Advanced tools
Comparing version 0.2.16 to 0.3.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9725
98