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.3.1 to 0.4.0

11

dist/adeiu.js

@@ -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

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