diff options
author | isaacs <i@izs.me> | 2020-07-23 20:58:04 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2020-07-29 21:53:42 +0300 |
commit | ad5e07d8bd86d1dbe2b03dc142f8c8d6f4828ffe (patch) | |
tree | 97b66f97d77f35774f10a5e3e9957b1897d150bb /node_modules/signal-exit | |
parent | a16994cfdd2f255016f3d8ee60d03473d80eabd8 (diff) |
Full dependency reboot
Reinstall everything from a clean node_modules and package-lock.json
state.
Re-generate list of bundleDependencies and node_modules/.gitignore with
a script that does the right thing based on actual dependency state.
Diffstat (limited to 'node_modules/signal-exit')
-rw-r--r-- | node_modules/signal-exit/CHANGELOG.md | 10 | ||||
-rw-r--r-- | node_modules/signal-exit/README.md | 1 | ||||
-rw-r--r-- | node_modules/signal-exit/index.js | 6 | ||||
-rw-r--r-- | node_modules/signal-exit/package.json | 28 |
4 files changed, 30 insertions, 15 deletions
diff --git a/node_modules/signal-exit/CHANGELOG.md b/node_modules/signal-exit/CHANGELOG.md index e2f70d225..ed104f41b 100644 --- a/node_modules/signal-exit/CHANGELOG.md +++ b/node_modules/signal-exit/CHANGELOG.md @@ -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) diff --git a/node_modules/signal-exit/README.md b/node_modules/signal-exit/README.md index 8ebccabec..9f8eb5917 100644 --- a/node_modules/signal-exit/README.md +++ b/node_modules/signal-exit/README.md @@ -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: diff --git a/node_modules/signal-exit/index.js b/node_modules/signal-exit/index.js index 337f691ed..6b6c43aca 100644 --- a/node_modules/signal-exit/index.js +++ b/node_modules/signal-exit/index.js @@ -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) } } diff --git a/node_modules/signal-exit/package.json b/node_modules/signal-exit/package.json index 50d559149..880d9231d 100644 --- a/node_modules/signal-exit/package.json +++ b/node_modules/signal-exit/package.json @@ -1,33 +1,35 @@ { - "_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": "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": [ + "/@iarna/cli", "/execa", "/foreground-child", "/gauge", "/lockfile", + "/nyc", "/restore-cursor", - "/tap", + "/spawn-wrap", "/write-file-atomic" ], - "_resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", - "_shasum": "b5fdc08f1287ea1178628e415e25132b73646c6d", - "_spec": "signal-exit@^3.0.2", - "_where": "/Users/rebecca/code/npm/node_modules/write-file-atomic", + "_resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", + "_shasum": "a1410c2edd8f077b08b4e253c8eacfcaf057461c", + "_spec": "signal-exit@^3.0.0", + "_where": "/Users/isaacs/dev/npm/cli/node_modules/gauge", "author": { "name": "Ben Coe", "email": "ben@npmjs.com" @@ -42,7 +44,7 @@ "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" }, @@ -68,5 +70,5 @@ "release": "standard-version", "test": "tap --timeout=240 ./test/*.js --cov" }, - "version": "3.0.2" + "version": "3.0.3" } |