@darkobits/adeiu
Advanced tools
Comparing version 0.3.1 to 0.4.0
@@ -1,6 +0,3 @@ | ||
"use strict"; | ||
const interopImportDefault = require("@darkobits/interop-import-default"); | ||
const chalk = require("chalk"); | ||
const owExport = require("ow"); | ||
const ow = interopImportDefault.interopImportDefault(owExport); | ||
import chalk from "chalk"; | ||
import ow from "ow"; | ||
const SIGNALS = [ | ||
@@ -72,3 +69,5 @@ "SIGINT", | ||
adeiu.SIGNALS = SIGNALS; | ||
module.exports = adeiu; | ||
export { | ||
adeiu as default | ||
}; | ||
//# sourceMappingURL=adeiu.js.map |
{ | ||
"name": "@darkobits/adeiu", | ||
"version": "0.3.1", | ||
"version": "0.4.0", | ||
"description": "Yet another POSIX signal handler.", | ||
"license": "WTFPL", | ||
"license": "Hippocratic", | ||
"author": "darkobits", | ||
"type": "module", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/darkobits/adeiu.git" | ||
"url": "https://github.com/darkobits/adeiu.git" | ||
}, | ||
@@ -22,10 +23,10 @@ "engines": { | ||
"dependencies": { | ||
"@darkobits/interop-import-default": "^0.1.1", | ||
"chalk": "^4.1.2", | ||
"ow": "^0.27.0" | ||
"@darkobits/interop-import-default": "^1.0.0", | ||
"chalk": "^5.3.0", | ||
"ow": "^1.1.1" | ||
}, | ||
"devDependencies": { | ||
"@darkobits/ts": "^0.14.12", | ||
"emittery": "^0.9.2", | ||
"p-wait-for": "^3.2.0" | ||
"@darkobits/ts": "~0.18.8", | ||
"emittery": "^1.0.1", | ||
"p-wait-for": "^5.0.2" | ||
}, | ||
@@ -32,0 +33,0 @@ "keywords": [ |
@@ -1,12 +0,41 @@ | ||
<a href="#top" id="top"> | ||
<img src="https://user-images.githubusercontent.com/441546/101619135-b1407a00-39c7-11eb-8295-ea7d52a667bb.png" style="max-width: 100%;"> | ||
</a> | ||
<p align="center"> | ||
<a href="https://www.npmjs.com/package/@darkobits/adeiu"><img src="https://img.shields.io/npm/v/@darkobits/adeiu.svg?style=flat-square"></a> | ||
<a href="https://github.com/darkobits/adeiu/actions"><img src="https://img.shields.io/github/workflow/status/darkobits/adeiu/CI?style=flat-square"></a> | ||
<a href="https://app.codecov.io/gh/darkobits/adeiu/branch/master"><img src="https://img.shields.io/codecov/c/github/darkobits/adeiu/master?style=flat-square"></a> | ||
<a href="https://depfu.com/github/darkobits/adeiu"><img src="https://img.shields.io/depfu/darkobits/adeiu?style=flat-square"></a> | ||
<a href="https://bundlephobia.com/package/@darkobits/adeiu"><img src="https://img.shields.io/bundlephobia/minzip/@darkobits/adeiu?label=size&style=flat-square"></a> | ||
<a href="https://conventionalcommits.org"><img src="https://img.shields.io/static/v1?label=commits&message=conventional&style=flat-square&color=398AFB"></a> | ||
<picture> | ||
<source | ||
media="(prefers-color-scheme: dark)" | ||
srcset="https://github.com/darkobits/adeiu/assets/441546/5639dd58-3a6f-4015-98a9-14da5e22a97e" | ||
width="100%" | ||
> | ||
<img | ||
src="https://github.com/darkobits/adeiu/assets/441546/80c6679d-1419-4e15-a7f7-480e51c97511" | ||
width="100%" | ||
> | ||
</picture> | ||
</p> | ||
<p align="center"> | ||
<a | ||
href="https://www.npmjs.com/package/@darkobits/adeiu" | ||
><img | ||
src="https://img.shields.io/npm/v/@darkobits/adeiu.svg?style=flat-square" | ||
></a> | ||
<a | ||
href="https://github.com/darkobits/adeiu/actions?query=workflow%3Aci" | ||
><img | ||
src="https://img.shields.io/github/actions/workflow/status/darkobits/adeiu/ci.yml?style=flat-square" | ||
></a> | ||
<a | ||
href="https://depfu.com/repos/github/darkobits/adeiu" | ||
><img | ||
src="https://img.shields.io/depfu/darkobits/adeiu?style=flat-square" | ||
></a> | ||
<a | ||
href="https://conventionalcommits.org" | ||
><img | ||
src="https://img.shields.io/static/v1?label=commits&message=conventional&style=flat-square&color=398AFB" | ||
></a> | ||
<a | ||
href="https://firstdonoharm.dev" | ||
><img | ||
src="https://img.shields.io/static/v1?label=license&message=hippocratic&style=flat-square&color=753065" | ||
></a> | ||
</p> | ||
@@ -45,3 +74,3 @@ Yet another POSIX signal handler. | ||
adeiu(async signal => { | ||
console.log(`Hey, we got ${signal}. Exiting...`); | ||
console.log(`Received signal ${signal}; performing shut-down tasks...`); | ||
@@ -52,5 +81,2 @@ await someAsyncStuff(); | ||
}); | ||
// Un-register the callback. | ||
annuler(); | ||
``` | ||
@@ -76,5 +102,5 @@ | ||
Usually, responding to signals dynamically can be accomplished by inspecting the `signal` argument | ||
passed to your handler. However, if it is important that handlers are _only_ installed on a particular | ||
signal, or if you'd like to respond to signals other than the defaults, you may optionally provide a | ||
custom array of signals as a second argument: | ||
passed to your handler. However, if it is important that handlers are _only_ invoked for a particular | ||
signal, or if you'd like to respond to signals other than the defaults, you may optionally provide an | ||
array of signals as a second argument: | ||
@@ -81,0 +107,0 @@ ```ts |
Sorry, the diff of this file is not supported yet
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
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
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
28871
126
Yes
1
1
80
99
+ Added@darkobits/interop-import-default@1.0.0(transitive)
+ Added@sindresorhus/is@5.6.0(transitive)
+ Addedcallsites@4.2.0(transitive)
+ Addedchalk@5.4.1(transitive)
+ Addeddot-prop@7.2.0(transitive)
+ Addedow@1.1.1(transitive)
+ Addedtype-fest@2.19.0(transitive)
- Removed@darkobits/interop-import-default@0.1.1(transitive)
- Removed@sindresorhus/is@4.6.0(transitive)
- Removedansi-styles@4.3.0(transitive)
- Removedcallsites@3.1.0(transitive)
- Removedchalk@4.1.2(transitive)
- Removedcolor-convert@2.0.1(transitive)
- Removedcolor-name@1.1.4(transitive)
- Removeddot-prop@6.0.1(transitive)
- Removedhas-flag@4.0.0(transitive)
- Removedis-obj@2.0.0(transitive)
- Removedow@0.27.0(transitive)
- Removedsupports-color@7.2.0(transitive)
- Removedtype-fest@1.4.0(transitive)
Updatedchalk@^5.3.0
Updatedow@^1.1.1