@esm2cjs/human-signals
Advanced tools
Comparing version 4.0.0 to 4.1.0
@@ -0,1 +1,2 @@ | ||
"use strict"; | ||
var __defProp = Object.defineProperty; | ||
@@ -2,0 +3,0 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor; |
@@ -0,1 +1,2 @@ | ||
"use strict"; | ||
var __defProp = Object.defineProperty; | ||
@@ -2,0 +3,0 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor; |
@@ -0,1 +1,2 @@ | ||
"use strict"; | ||
var __defProp = Object.defineProperty; | ||
@@ -2,0 +3,0 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor; |
@@ -0,1 +1,2 @@ | ||
"use strict"; | ||
var __defProp = Object.defineProperty; | ||
@@ -2,0 +3,0 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor; |
/** | ||
* Object whose keys are signal names and values are signal objects. | ||
* What is the default action for this signal when it is not handled. | ||
*/ | ||
export declare const signalsByName: { [signalName: string]: Signal } | ||
export type SignalAction = 'terminate' | 'core' | 'ignore' | 'pause' | 'unpause' | ||
/** | ||
* Object whose keys are signal numbers and values are signal objects. | ||
* Which standard defined that signal. | ||
*/ | ||
export declare const signalsByNumber: { [signalNumber: string]: Signal } | ||
export type SignalStandard = 'ansi' | 'posix' | 'bsd' | 'systemv' | 'other' | ||
export declare type SignalAction = | ||
| 'terminate' | ||
| 'core' | ||
| 'ignore' | ||
| 'pause' | ||
| 'unpause' | ||
export declare type SignalStandard = | ||
| 'ansi' | ||
| 'posix' | ||
| 'bsd' | ||
| 'systemv' | ||
| 'other' | ||
/** | ||
* Standard name of the signal, for example 'SIGINT'. | ||
*/ | ||
export type SignalName = `SIG${string}` | ||
export declare type Signal = { | ||
/** | ||
* Code number of the signal, for example 2. | ||
* While most number are cross-platform, some are different between different | ||
* OS. | ||
*/ | ||
export type SignalNumber = number | ||
export type Signal = { | ||
/** | ||
* Standard name of the signal, for example 'SIGINT'. | ||
*/ | ||
name: string | ||
name: SignalName | ||
/** | ||
* Code number of the signal, for example 2. While most number are cross-platform, some are different between different OS. | ||
* Code number of the signal, for example 2. | ||
* While most number are cross-platform, some are different between different | ||
* OS. | ||
*/ | ||
number: number | ||
number: SignalNumber | ||
/** | ||
* Human-friendly description for the signal, for example 'User interruption with CTRL-C'. | ||
* Human-friendly description for the signal, for example | ||
* 'User interruption with CTRL-C'. | ||
*/ | ||
description: string | ||
/** | ||
* Whether the current OS can handle this signal in Node.js using process.on(name, handler). The list of supported signals is OS-specific. | ||
* Whether the current OS can handle this signal in Node.js using | ||
* `process.on(name, handler)`. The list of supported signals is OS-specific. | ||
*/ | ||
supported: boolean | ||
/** | ||
@@ -44,6 +52,9 @@ * What is the default action for this signal when it is not handled. | ||
action: SignalAction | ||
/** | ||
* Whether the signal's default action cannot be prevented. This is true for SIGTERM, SIGKILL and SIGSTOP. | ||
* Whether the signal's default action cannot be prevented. | ||
* This is true for SIGTERM, SIGKILL and SIGSTOP. | ||
*/ | ||
forced: boolean | ||
/** | ||
@@ -54,1 +65,11 @@ * Which standard defined that signal. | ||
} | ||
/** | ||
* Object whose keys are signal names and values are signal objects. | ||
*/ | ||
export declare const signalsByName: { [signalName: SignalName]: Signal } | ||
/** | ||
* Object whose keys are signal numbers and values are signal objects. | ||
*/ | ||
export declare const signalsByNumber: { [signalNumber: SignalNumber]: Signal } |
{ | ||
"name": "@esm2cjs/human-signals", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"exports": { | ||
@@ -12,2 +12,3 @@ ".": { | ||
"main": "build/cjs/main.js", | ||
"types": "build/esm/main.d.ts", | ||
"files": [ | ||
@@ -26,3 +27,2 @@ "build/esm/**/*.{js,d.ts,json}", | ||
"error-handling", | ||
"errors", | ||
"interrupts", | ||
@@ -39,2 +39,3 @@ "sigterm", | ||
"javascript", | ||
"typescript", | ||
"linux", | ||
@@ -58,7 +59,7 @@ "macos", | ||
}, | ||
"types": "build/esm/main.d.ts", | ||
"devDependencies": { | ||
"@ehmicky/dev-tasks": "^1.0.72", | ||
"ajv": "^6.12.6", | ||
"test-each": "^5.0.0" | ||
"@ehmicky/dev-tasks": "^1.0.77", | ||
"ajv": "^8.11.0", | ||
"test-each": "^5.0.0", | ||
"tsd": "^0.21.0" | ||
}, | ||
@@ -65,0 +66,0 @@ "engines": { |
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
34860
862
4