This commit is contained in:
David Kale
2020-09-08 13:25:36 -04:00
parent e4246d2b5b
commit 91fcbb0108
4227 changed files with 416837 additions and 457884 deletions

View File

@@ -1,7 +1,15 @@
# Change Log
# Changelog
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
### [3.0.3](https://github.com/tapjs/signal-exit/compare/v3.0.2...v3.0.3) (2020-03-26)
### Bug Fixes
* patch `SIGHUP` to `SIGINT` when on Windows ([cfd1046](https://github.com/tapjs/signal-exit/commit/cfd1046079af4f0e44f93c69c237a09de8c23ef2))
* **ci:** use Travis for Windows builds ([007add7](https://github.com/tapjs/signal-exit/commit/007add793d2b5ae3c382512103adbf321768a0b8))
<a name="3.0.1"></a>
## [3.0.1](https://github.com/tapjs/signal-exit/compare/v3.0.0...v3.0.1) (2016-09-08)

1
node_modules/signal-exit/README.md generated vendored
View File

@@ -3,7 +3,6 @@
[![Build Status](https://travis-ci.org/tapjs/signal-exit.png)](https://travis-ci.org/tapjs/signal-exit)
[![Coverage](https://coveralls.io/repos/tapjs/signal-exit/badge.svg?branch=master)](https://coveralls.io/r/tapjs/signal-exit?branch=master)
[![NPM version](https://img.shields.io/npm/v/signal-exit.svg)](https://www.npmjs.com/package/signal-exit)
[![Windows Tests](https://img.shields.io/appveyor/ci/bcoe/signal-exit/master.svg?label=Windows%20Tests)](https://ci.appveyor.com/project/bcoe/signal-exit)
[![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version)
When you want to fire an event no matter how a process exits:

6
node_modules/signal-exit/index.js generated vendored
View File

@@ -3,6 +3,7 @@
// ignored, since we can never get coverage for them.
var assert = require('assert')
var signals = require('./signals.js')
var isWin = /^win/i.test(process.platform)
var EE = require('events')
/* istanbul ignore if */
@@ -92,6 +93,11 @@ signals.forEach(function (sig) {
/* istanbul ignore next */
emit('afterexit', null, sig)
/* istanbul ignore next */
if (isWin && sig === 'SIGHUP') {
// "SIGHUP" throws an `ENOSYS` error on Windows,
// so use a supported signal instead
sig = 'SIGINT'
}
process.kill(process.pid, sig)
}
}

View File

@@ -1,33 +1,28 @@
{
"_args": [
[
"signal-exit@3.0.2",
"C:\\Users\\damccorm\\Documents\\labeler"
]
],
"_from": "signal-exit@3.0.2",
"_id": "signal-exit@3.0.2",
"_from": "signal-exit@^3.0.0",
"_id": "signal-exit@3.0.3",
"_inBundle": false,
"_integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=",
"_integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==",
"_location": "/signal-exit",
"_phantomChildren": {},
"_requested": {
"type": "version",
"type": "range",
"registry": true,
"raw": "signal-exit@3.0.2",
"raw": "signal-exit@^3.0.0",
"name": "signal-exit",
"escapedName": "signal-exit",
"rawSpec": "3.0.2",
"rawSpec": "^3.0.0",
"saveSpec": null,
"fetchSpec": "3.0.2"
"fetchSpec": "^3.0.0"
},
"_requiredBy": [
"/execa",
"/write-file-atomic"
],
"_resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz",
"_spec": "3.0.2",
"_where": "C:\\Users\\damccorm\\Documents\\labeler",
"_resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz",
"_shasum": "a1410c2edd8f077b08b4e253c8eacfcaf057461c",
"_spec": "signal-exit@^3.0.0",
"_where": "/Users/dakale/dev/GitHub/actions/labeler/node_modules/execa",
"author": {
"name": "Ben Coe",
"email": "ben@npmjs.com"
@@ -35,12 +30,14 @@
"bugs": {
"url": "https://github.com/tapjs/signal-exit/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "when you want to fire an event no matter how a process exits.",
"devDependencies": {
"chai": "^3.5.0",
"coveralls": "^2.11.10",
"nyc": "^8.1.0",
"standard": "^7.1.2",
"standard": "^8.1.0",
"standard-version": "^2.3.0",
"tap": "^8.0.1"
},
@@ -66,5 +63,5 @@
"release": "standard-version",
"test": "tap --timeout=240 ./test/*.js --cov"
},
"version": "3.0.2"
"version": "3.0.3"
}