údržba
This commit is contained in:
		
							
								
								
									
										0
									
								
								CyLukTs/lukan/node_modules/human-signals/CHANGELOG.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								CyLukTs/lukan/node_modules/human-signals/CHANGELOG.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
								
								
									
										201
									
								
								CyLukTs/lukan/node_modules/human-signals/LICENSE
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										201
									
								
								CyLukTs/lukan/node_modules/human-signals/LICENSE
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,201 @@
 | 
			
		||||
                                 Apache License
 | 
			
		||||
                           Version 2.0, January 2004
 | 
			
		||||
                        http://www.apache.org/licenses/
 | 
			
		||||
 | 
			
		||||
   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
 | 
			
		||||
 | 
			
		||||
   1. Definitions.
 | 
			
		||||
 | 
			
		||||
      "License" shall mean the terms and conditions for use, reproduction,
 | 
			
		||||
      and distribution as defined by Sections 1 through 9 of this document.
 | 
			
		||||
 | 
			
		||||
      "Licensor" shall mean the copyright owner or entity authorized by
 | 
			
		||||
      the copyright owner that is granting the License.
 | 
			
		||||
 | 
			
		||||
      "Legal Entity" shall mean the union of the acting entity and all
 | 
			
		||||
      other entities that control, are controlled by, or are under common
 | 
			
		||||
      control with that entity. For the purposes of this definition,
 | 
			
		||||
      "control" means (i) the power, direct or indirect, to cause the
 | 
			
		||||
      direction or management of such entity, whether by contract or
 | 
			
		||||
      otherwise, or (ii) ownership of fifty percent (50%) or more of the
 | 
			
		||||
      outstanding shares, or (iii) beneficial ownership of such entity.
 | 
			
		||||
 | 
			
		||||
      "You" (or "Your") shall mean an individual or Legal Entity
 | 
			
		||||
      exercising permissions granted by this License.
 | 
			
		||||
 | 
			
		||||
      "Source" form shall mean the preferred form for making modifications,
 | 
			
		||||
      including but not limited to software source code, documentation
 | 
			
		||||
      source, and configuration files.
 | 
			
		||||
 | 
			
		||||
      "Object" form shall mean any form resulting from mechanical
 | 
			
		||||
      transformation or translation of a Source form, including but
 | 
			
		||||
      not limited to compiled object code, generated documentation,
 | 
			
		||||
      and conversions to other media types.
 | 
			
		||||
 | 
			
		||||
      "Work" shall mean the work of authorship, whether in Source or
 | 
			
		||||
      Object form, made available under the License, as indicated by a
 | 
			
		||||
      copyright notice that is included in or attached to the work
 | 
			
		||||
      (an example is provided in the Appendix below).
 | 
			
		||||
 | 
			
		||||
      "Derivative Works" shall mean any work, whether in Source or Object
 | 
			
		||||
      form, that is based on (or derived from) the Work and for which the
 | 
			
		||||
      editorial revisions, annotations, elaborations, or other modifications
 | 
			
		||||
      represent, as a whole, an original work of authorship. For the purposes
 | 
			
		||||
      of this License, Derivative Works shall not include works that remain
 | 
			
		||||
      separable from, or merely link (or bind by name) to the interfaces of,
 | 
			
		||||
      the Work and Derivative Works thereof.
 | 
			
		||||
 | 
			
		||||
      "Contribution" shall mean any work of authorship, including
 | 
			
		||||
      the original version of the Work and any modifications or additions
 | 
			
		||||
      to that Work or Derivative Works thereof, that is intentionally
 | 
			
		||||
      submitted to Licensor for inclusion in the Work by the copyright owner
 | 
			
		||||
      or by an individual or Legal Entity authorized to submit on behalf of
 | 
			
		||||
      the copyright owner. For the purposes of this definition, "submitted"
 | 
			
		||||
      means any form of electronic, verbal, or written communication sent
 | 
			
		||||
      to the Licensor or its representatives, including but not limited to
 | 
			
		||||
      communication on electronic mailing lists, source code control systems,
 | 
			
		||||
      and issue tracking systems that are managed by, or on behalf of, the
 | 
			
		||||
      Licensor for the purpose of discussing and improving the Work, but
 | 
			
		||||
      excluding communication that is conspicuously marked or otherwise
 | 
			
		||||
      designated in writing by the copyright owner as "Not a Contribution."
 | 
			
		||||
 | 
			
		||||
      "Contributor" shall mean Licensor and any individual or Legal Entity
 | 
			
		||||
      on behalf of whom a Contribution has been received by Licensor and
 | 
			
		||||
      subsequently incorporated within the Work.
 | 
			
		||||
 | 
			
		||||
   2. Grant of Copyright License. Subject to the terms and conditions of
 | 
			
		||||
      this License, each Contributor hereby grants to You a perpetual,
 | 
			
		||||
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
 | 
			
		||||
      copyright license to reproduce, prepare Derivative Works of,
 | 
			
		||||
      publicly display, publicly perform, sublicense, and distribute the
 | 
			
		||||
      Work and such Derivative Works in Source or Object form.
 | 
			
		||||
 | 
			
		||||
   3. Grant of Patent License. Subject to the terms and conditions of
 | 
			
		||||
      this License, each Contributor hereby grants to You a perpetual,
 | 
			
		||||
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
 | 
			
		||||
      (except as stated in this section) patent license to make, have made,
 | 
			
		||||
      use, offer to sell, sell, import, and otherwise transfer the Work,
 | 
			
		||||
      where such license applies only to those patent claims licensable
 | 
			
		||||
      by such Contributor that are necessarily infringed by their
 | 
			
		||||
      Contribution(s) alone or by combination of their Contribution(s)
 | 
			
		||||
      with the Work to which such Contribution(s) was submitted. If You
 | 
			
		||||
      institute patent litigation against any entity (including a
 | 
			
		||||
      cross-claim or counterclaim in a lawsuit) alleging that the Work
 | 
			
		||||
      or a Contribution incorporated within the Work constitutes direct
 | 
			
		||||
      or contributory patent infringement, then any patent licenses
 | 
			
		||||
      granted to You under this License for that Work shall terminate
 | 
			
		||||
      as of the date such litigation is filed.
 | 
			
		||||
 | 
			
		||||
   4. Redistribution. You may reproduce and distribute copies of the
 | 
			
		||||
      Work or Derivative Works thereof in any medium, with or without
 | 
			
		||||
      modifications, and in Source or Object form, provided that You
 | 
			
		||||
      meet the following conditions:
 | 
			
		||||
 | 
			
		||||
      (a) You must give any other recipients of the Work or
 | 
			
		||||
          Derivative Works a copy of this License; and
 | 
			
		||||
 | 
			
		||||
      (b) You must cause any modified files to carry prominent notices
 | 
			
		||||
          stating that You changed the files; and
 | 
			
		||||
 | 
			
		||||
      (c) You must retain, in the Source form of any Derivative Works
 | 
			
		||||
          that You distribute, all copyright, patent, trademark, and
 | 
			
		||||
          attribution notices from the Source form of the Work,
 | 
			
		||||
          excluding those notices that do not pertain to any part of
 | 
			
		||||
          the Derivative Works; and
 | 
			
		||||
 | 
			
		||||
      (d) If the Work includes a "NOTICE" text file as part of its
 | 
			
		||||
          distribution, then any Derivative Works that You distribute must
 | 
			
		||||
          include a readable copy of the attribution notices contained
 | 
			
		||||
          within such NOTICE file, excluding those notices that do not
 | 
			
		||||
          pertain to any part of the Derivative Works, in at least one
 | 
			
		||||
          of the following places: within a NOTICE text file distributed
 | 
			
		||||
          as part of the Derivative Works; within the Source form or
 | 
			
		||||
          documentation, if provided along with the Derivative Works; or,
 | 
			
		||||
          within a display generated by the Derivative Works, if and
 | 
			
		||||
          wherever such third-party notices normally appear. The contents
 | 
			
		||||
          of the NOTICE file are for informational purposes only and
 | 
			
		||||
          do not modify the License. You may add Your own attribution
 | 
			
		||||
          notices within Derivative Works that You distribute, alongside
 | 
			
		||||
          or as an addendum to the NOTICE text from the Work, provided
 | 
			
		||||
          that such additional attribution notices cannot be construed
 | 
			
		||||
          as modifying the License.
 | 
			
		||||
 | 
			
		||||
      You may add Your own copyright statement to Your modifications and
 | 
			
		||||
      may provide additional or different license terms and conditions
 | 
			
		||||
      for use, reproduction, or distribution of Your modifications, or
 | 
			
		||||
      for any such Derivative Works as a whole, provided Your use,
 | 
			
		||||
      reproduction, and distribution of the Work otherwise complies with
 | 
			
		||||
      the conditions stated in this License.
 | 
			
		||||
 | 
			
		||||
   5. Submission of Contributions. Unless You explicitly state otherwise,
 | 
			
		||||
      any Contribution intentionally submitted for inclusion in the Work
 | 
			
		||||
      by You to the Licensor shall be under the terms and conditions of
 | 
			
		||||
      this License, without any additional terms or conditions.
 | 
			
		||||
      Notwithstanding the above, nothing herein shall supersede or modify
 | 
			
		||||
      the terms of any separate license agreement you may have executed
 | 
			
		||||
      with Licensor regarding such Contributions.
 | 
			
		||||
 | 
			
		||||
   6. Trademarks. This License does not grant permission to use the trade
 | 
			
		||||
      names, trademarks, service marks, or product names of the Licensor,
 | 
			
		||||
      except as required for reasonable and customary use in describing the
 | 
			
		||||
      origin of the Work and reproducing the content of the NOTICE file.
 | 
			
		||||
 | 
			
		||||
   7. Disclaimer of Warranty. Unless required by applicable law or
 | 
			
		||||
      agreed to in writing, Licensor provides the Work (and each
 | 
			
		||||
      Contributor provides its Contributions) on an "AS IS" BASIS,
 | 
			
		||||
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
 | 
			
		||||
      implied, including, without limitation, any warranties or conditions
 | 
			
		||||
      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
 | 
			
		||||
      PARTICULAR PURPOSE. You are solely responsible for determining the
 | 
			
		||||
      appropriateness of using or redistributing the Work and assume any
 | 
			
		||||
      risks associated with Your exercise of permissions under this License.
 | 
			
		||||
 | 
			
		||||
   8. Limitation of Liability. In no event and under no legal theory,
 | 
			
		||||
      whether in tort (including negligence), contract, or otherwise,
 | 
			
		||||
      unless required by applicable law (such as deliberate and grossly
 | 
			
		||||
      negligent acts) or agreed to in writing, shall any Contributor be
 | 
			
		||||
      liable to You for damages, including any direct, indirect, special,
 | 
			
		||||
      incidental, or consequential damages of any character arising as a
 | 
			
		||||
      result of this License or out of the use or inability to use the
 | 
			
		||||
      Work (including but not limited to damages for loss of goodwill,
 | 
			
		||||
      work stoppage, computer failure or malfunction, or any and all
 | 
			
		||||
      other commercial damages or losses), even if such Contributor
 | 
			
		||||
      has been advised of the possibility of such damages.
 | 
			
		||||
 | 
			
		||||
   9. Accepting Warranty or Additional Liability. While redistributing
 | 
			
		||||
      the Work or Derivative Works thereof, You may choose to offer,
 | 
			
		||||
      and charge a fee for, acceptance of support, warranty, indemnity,
 | 
			
		||||
      or other liability obligations and/or rights consistent with this
 | 
			
		||||
      License. However, in accepting such obligations, You may act only
 | 
			
		||||
      on Your own behalf and on Your sole responsibility, not on behalf
 | 
			
		||||
      of any other Contributor, and only if You agree to indemnify,
 | 
			
		||||
      defend, and hold each Contributor harmless for any liability
 | 
			
		||||
      incurred by, or claims asserted against, such Contributor by reason
 | 
			
		||||
      of your accepting any such warranty or additional liability.
 | 
			
		||||
 | 
			
		||||
   END OF TERMS AND CONDITIONS
 | 
			
		||||
 | 
			
		||||
   APPENDIX: How to apply the Apache License to your work.
 | 
			
		||||
 | 
			
		||||
      To apply the Apache License to your work, attach the following
 | 
			
		||||
      boilerplate notice, with the fields enclosed by brackets "[]"
 | 
			
		||||
      replaced with your own identifying information. (Don't include
 | 
			
		||||
      the brackets!)  The text should be enclosed in the appropriate
 | 
			
		||||
      comment syntax for the file format. We also recommend that a
 | 
			
		||||
      file or class name and description of purpose be included on the
 | 
			
		||||
      same "printed page" as the copyright notice for easier
 | 
			
		||||
      identification within third-party archives.
 | 
			
		||||
 | 
			
		||||
   Copyright 2019 ehmicky <ehmicky@gmail.com>
 | 
			
		||||
 | 
			
		||||
   Licensed under the Apache License, Version 2.0 (the "License");
 | 
			
		||||
   you may not use this file except in compliance with the License.
 | 
			
		||||
   You may obtain a copy of the License at
 | 
			
		||||
 | 
			
		||||
       http://www.apache.org/licenses/LICENSE-2.0
 | 
			
		||||
 | 
			
		||||
   Unless required by applicable law or agreed to in writing, software
 | 
			
		||||
   distributed under the License is distributed on an "AS IS" BASIS,
 | 
			
		||||
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
			
		||||
   See the License for the specific language governing permissions and
 | 
			
		||||
   limitations under the License.
 | 
			
		||||
							
								
								
									
										155
									
								
								CyLukTs/lukan/node_modules/human-signals/README.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										155
									
								
								CyLukTs/lukan/node_modules/human-signals/README.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,155 @@
 | 
			
		||||
[](https://codecov.io/gh/ehmicky/human-signals)
 | 
			
		||||
[](https://travis-ci.org/ehmicky/human-signals)
 | 
			
		||||
[](https://www.npmjs.com/package/human-signals)
 | 
			
		||||
[](https://gitter.im/ehmicky/human-signals)
 | 
			
		||||
[](https://twitter.com/intent/follow?screen_name=ehmicky)
 | 
			
		||||
[](https://medium.com/@ehmicky)
 | 
			
		||||
 | 
			
		||||
Human-friendly process signals.
 | 
			
		||||
 | 
			
		||||
This is a map of known process signals with some information about each signal.
 | 
			
		||||
 | 
			
		||||
Unlike
 | 
			
		||||
[`os.constants.signals`](https://nodejs.org/api/os.html#os_signal_constants)
 | 
			
		||||
this includes:
 | 
			
		||||
 | 
			
		||||
- human-friendly [descriptions](#description)
 | 
			
		||||
- [default actions](#action), including whether they [can be prevented](#forced)
 | 
			
		||||
- whether the signal is [supported](#supported) by the current OS
 | 
			
		||||
 | 
			
		||||
# Example
 | 
			
		||||
 | 
			
		||||
```js
 | 
			
		||||
const { signalsByName, signalsByNumber } = require('human-signals')
 | 
			
		||||
 | 
			
		||||
console.log(signalsByName.SIGINT)
 | 
			
		||||
// {
 | 
			
		||||
//   name: 'SIGINT',
 | 
			
		||||
//   number: 2,
 | 
			
		||||
//   description: 'User interruption with CTRL-C',
 | 
			
		||||
//   supported: true,
 | 
			
		||||
//   action: 'terminate',
 | 
			
		||||
//   forced: false,
 | 
			
		||||
//   standard: 'ansi'
 | 
			
		||||
// }
 | 
			
		||||
 | 
			
		||||
console.log(signalsByNumber[8])
 | 
			
		||||
// {
 | 
			
		||||
//   name: 'SIGFPE',
 | 
			
		||||
//   number: 8,
 | 
			
		||||
//   description: 'Floating point arithmetic error',
 | 
			
		||||
//   supported: true,
 | 
			
		||||
//   action: 'core',
 | 
			
		||||
//   forced: false,
 | 
			
		||||
//   standard: 'ansi'
 | 
			
		||||
// }
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
# Install
 | 
			
		||||
 | 
			
		||||
```bash
 | 
			
		||||
npm install human-signals
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
# Usage
 | 
			
		||||
 | 
			
		||||
## signalsByName
 | 
			
		||||
 | 
			
		||||
_Type_: `object`
 | 
			
		||||
 | 
			
		||||
Object whose keys are signal [names](#name) and values are
 | 
			
		||||
[signal objects](#signal).
 | 
			
		||||
 | 
			
		||||
## signalsByNumber
 | 
			
		||||
 | 
			
		||||
_Type_: `object`
 | 
			
		||||
 | 
			
		||||
Object whose keys are signal [numbers](#number) and values are
 | 
			
		||||
[signal objects](#signal).
 | 
			
		||||
 | 
			
		||||
## signal
 | 
			
		||||
 | 
			
		||||
_Type_: `object`
 | 
			
		||||
 | 
			
		||||
Signal object with the following properties.
 | 
			
		||||
 | 
			
		||||
### name
 | 
			
		||||
 | 
			
		||||
_Type_: `string`
 | 
			
		||||
 | 
			
		||||
Standard name of the signal, for example `'SIGINT'`.
 | 
			
		||||
 | 
			
		||||
### number
 | 
			
		||||
 | 
			
		||||
_Type_: `number`
 | 
			
		||||
 | 
			
		||||
Code number of the signal, for example `2`. While most `number` are
 | 
			
		||||
cross-platform, some are different between different OS.
 | 
			
		||||
 | 
			
		||||
### description
 | 
			
		||||
 | 
			
		||||
_Type_: `string`
 | 
			
		||||
 | 
			
		||||
Human-friendly description for the signal, for example
 | 
			
		||||
`'User interruption with CTRL-C'`.
 | 
			
		||||
 | 
			
		||||
### supported
 | 
			
		||||
 | 
			
		||||
_Type_: `boolean`
 | 
			
		||||
 | 
			
		||||
Whether the current OS can handle this signal in Node.js using
 | 
			
		||||
[`process.on(name, handler)`](https://nodejs.org/api/process.html#process_signal_events).
 | 
			
		||||
 | 
			
		||||
The list of supported signals
 | 
			
		||||
[is OS-specific](https://github.com/ehmicky/cross-platform-node-guide/blob/master/docs/6_networking_ipc/signals.md#cross-platform-signals).
 | 
			
		||||
 | 
			
		||||
### action
 | 
			
		||||
 | 
			
		||||
_Type_: `string`<br>_Enum_: `'terminate'`, `'core'`, `'ignore'`, `'pause'`,
 | 
			
		||||
`'unpause'`
 | 
			
		||||
 | 
			
		||||
What is the default action for this signal when it is not handled.
 | 
			
		||||
 | 
			
		||||
### forced
 | 
			
		||||
 | 
			
		||||
_Type_: `boolean`
 | 
			
		||||
 | 
			
		||||
Whether the signal's default action cannot be prevented. This is `true` for
 | 
			
		||||
`SIGTERM`, `SIGKILL` and `SIGSTOP`.
 | 
			
		||||
 | 
			
		||||
### standard
 | 
			
		||||
 | 
			
		||||
_Type_: `string`<br>_Enum_: `'ansi'`, `'posix'`, `'bsd'`, `'systemv'`, `'other'`
 | 
			
		||||
 | 
			
		||||
Which standard defined that signal.
 | 
			
		||||
 | 
			
		||||
# Support
 | 
			
		||||
 | 
			
		||||
If you found a bug or would like a new feature, _don't hesitate_ to
 | 
			
		||||
[submit an issue on GitHub](../../issues).
 | 
			
		||||
 | 
			
		||||
For other questions, feel free to
 | 
			
		||||
[chat with us on Gitter](https://gitter.im/ehmicky/human-signals).
 | 
			
		||||
 | 
			
		||||
Everyone is welcome regardless of personal background. We enforce a
 | 
			
		||||
[Code of conduct](CODE_OF_CONDUCT.md) in order to promote a positive and
 | 
			
		||||
inclusive environment.
 | 
			
		||||
 | 
			
		||||
# Contributing
 | 
			
		||||
 | 
			
		||||
This project was made with ❤️. The simplest way to give back is by starring and
 | 
			
		||||
sharing it online.
 | 
			
		||||
 | 
			
		||||
If the documentation is unclear or has a typo, please click on the page's `Edit`
 | 
			
		||||
button (pencil icon) and suggest a correction.
 | 
			
		||||
 | 
			
		||||
If you would like to help us fix a bug or add a new feature, please check our
 | 
			
		||||
[guidelines](CONTRIBUTING.md). Pull requests are welcome!
 | 
			
		||||
 | 
			
		||||
<!-- Thanks go to our wonderful contributors: -->
 | 
			
		||||
 | 
			
		||||
<!-- ALL-CONTRIBUTORS-LIST:START -->
 | 
			
		||||
<!-- prettier-ignore -->
 | 
			
		||||
<table><tr><td align="center"><a href="https://twitter.com/ehmicky"><img src="https://avatars2.githubusercontent.com/u/8136211?v=4" width="100px;" alt="ehmicky"/><br /><sub><b>ehmicky</b></sub></a><br /><a href="https://github.com/ehmicky/human-signals/commits?author=ehmicky" title="Code">💻</a> <a href="#design-ehmicky" title="Design">🎨</a> <a href="#ideas-ehmicky" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/ehmicky/human-signals/commits?author=ehmicky" title="Documentation">📖</a></td></tr></table>
 | 
			
		||||
 | 
			
		||||
<!-- ALL-CONTRIBUTORS-LIST:END -->
 | 
			
		||||
							
								
								
									
										273
									
								
								CyLukTs/lukan/node_modules/human-signals/build/src/core.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										273
									
								
								CyLukTs/lukan/node_modules/human-signals/build/src/core.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,273 @@
 | 
			
		||||
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.SIGNALS=void 0;
 | 
			
		||||
 | 
			
		||||
const SIGNALS=[
 | 
			
		||||
{
 | 
			
		||||
name:"SIGHUP",
 | 
			
		||||
number:1,
 | 
			
		||||
action:"terminate",
 | 
			
		||||
description:"Terminal closed",
 | 
			
		||||
standard:"posix"},
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
name:"SIGINT",
 | 
			
		||||
number:2,
 | 
			
		||||
action:"terminate",
 | 
			
		||||
description:"User interruption with CTRL-C",
 | 
			
		||||
standard:"ansi"},
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
name:"SIGQUIT",
 | 
			
		||||
number:3,
 | 
			
		||||
action:"core",
 | 
			
		||||
description:"User interruption with CTRL-\\",
 | 
			
		||||
standard:"posix"},
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
name:"SIGILL",
 | 
			
		||||
number:4,
 | 
			
		||||
action:"core",
 | 
			
		||||
description:"Invalid machine instruction",
 | 
			
		||||
standard:"ansi"},
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
name:"SIGTRAP",
 | 
			
		||||
number:5,
 | 
			
		||||
action:"core",
 | 
			
		||||
description:"Debugger breakpoint",
 | 
			
		||||
standard:"posix"},
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
name:"SIGABRT",
 | 
			
		||||
number:6,
 | 
			
		||||
action:"core",
 | 
			
		||||
description:"Aborted",
 | 
			
		||||
standard:"ansi"},
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
name:"SIGIOT",
 | 
			
		||||
number:6,
 | 
			
		||||
action:"core",
 | 
			
		||||
description:"Aborted",
 | 
			
		||||
standard:"bsd"},
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
name:"SIGBUS",
 | 
			
		||||
number:7,
 | 
			
		||||
action:"core",
 | 
			
		||||
description:
 | 
			
		||||
"Bus error due to misaligned, non-existing address or paging error",
 | 
			
		||||
standard:"bsd"},
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
name:"SIGEMT",
 | 
			
		||||
number:7,
 | 
			
		||||
action:"terminate",
 | 
			
		||||
description:"Command should be emulated but is not implemented",
 | 
			
		||||
standard:"other"},
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
name:"SIGFPE",
 | 
			
		||||
number:8,
 | 
			
		||||
action:"core",
 | 
			
		||||
description:"Floating point arithmetic error",
 | 
			
		||||
standard:"ansi"},
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
name:"SIGKILL",
 | 
			
		||||
number:9,
 | 
			
		||||
action:"terminate",
 | 
			
		||||
description:"Forced termination",
 | 
			
		||||
standard:"posix",
 | 
			
		||||
forced:true},
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
name:"SIGUSR1",
 | 
			
		||||
number:10,
 | 
			
		||||
action:"terminate",
 | 
			
		||||
description:"Application-specific signal",
 | 
			
		||||
standard:"posix"},
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
name:"SIGSEGV",
 | 
			
		||||
number:11,
 | 
			
		||||
action:"core",
 | 
			
		||||
description:"Segmentation fault",
 | 
			
		||||
standard:"ansi"},
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
name:"SIGUSR2",
 | 
			
		||||
number:12,
 | 
			
		||||
action:"terminate",
 | 
			
		||||
description:"Application-specific signal",
 | 
			
		||||
standard:"posix"},
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
name:"SIGPIPE",
 | 
			
		||||
number:13,
 | 
			
		||||
action:"terminate",
 | 
			
		||||
description:"Broken pipe or socket",
 | 
			
		||||
standard:"posix"},
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
name:"SIGALRM",
 | 
			
		||||
number:14,
 | 
			
		||||
action:"terminate",
 | 
			
		||||
description:"Timeout or timer",
 | 
			
		||||
standard:"posix"},
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
name:"SIGTERM",
 | 
			
		||||
number:15,
 | 
			
		||||
action:"terminate",
 | 
			
		||||
description:"Termination",
 | 
			
		||||
standard:"ansi"},
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
name:"SIGSTKFLT",
 | 
			
		||||
number:16,
 | 
			
		||||
action:"terminate",
 | 
			
		||||
description:"Stack is empty or overflowed",
 | 
			
		||||
standard:"other"},
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
name:"SIGCHLD",
 | 
			
		||||
number:17,
 | 
			
		||||
action:"ignore",
 | 
			
		||||
description:"Child process terminated, paused or unpaused",
 | 
			
		||||
standard:"posix"},
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
name:"SIGCLD",
 | 
			
		||||
number:17,
 | 
			
		||||
action:"ignore",
 | 
			
		||||
description:"Child process terminated, paused or unpaused",
 | 
			
		||||
standard:"other"},
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
name:"SIGCONT",
 | 
			
		||||
number:18,
 | 
			
		||||
action:"unpause",
 | 
			
		||||
description:"Unpaused",
 | 
			
		||||
standard:"posix",
 | 
			
		||||
forced:true},
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
name:"SIGSTOP",
 | 
			
		||||
number:19,
 | 
			
		||||
action:"pause",
 | 
			
		||||
description:"Paused",
 | 
			
		||||
standard:"posix",
 | 
			
		||||
forced:true},
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
name:"SIGTSTP",
 | 
			
		||||
number:20,
 | 
			
		||||
action:"pause",
 | 
			
		||||
description:"Paused using CTRL-Z or \"suspend\"",
 | 
			
		||||
standard:"posix"},
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
name:"SIGTTIN",
 | 
			
		||||
number:21,
 | 
			
		||||
action:"pause",
 | 
			
		||||
description:"Background process cannot read terminal input",
 | 
			
		||||
standard:"posix"},
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
name:"SIGBREAK",
 | 
			
		||||
number:21,
 | 
			
		||||
action:"terminate",
 | 
			
		||||
description:"User interruption with CTRL-BREAK",
 | 
			
		||||
standard:"other"},
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
name:"SIGTTOU",
 | 
			
		||||
number:22,
 | 
			
		||||
action:"pause",
 | 
			
		||||
description:"Background process cannot write to terminal output",
 | 
			
		||||
standard:"posix"},
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
name:"SIGURG",
 | 
			
		||||
number:23,
 | 
			
		||||
action:"ignore",
 | 
			
		||||
description:"Socket received out-of-band data",
 | 
			
		||||
standard:"bsd"},
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
name:"SIGXCPU",
 | 
			
		||||
number:24,
 | 
			
		||||
action:"core",
 | 
			
		||||
description:"Process timed out",
 | 
			
		||||
standard:"bsd"},
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
name:"SIGXFSZ",
 | 
			
		||||
number:25,
 | 
			
		||||
action:"core",
 | 
			
		||||
description:"File too big",
 | 
			
		||||
standard:"bsd"},
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
name:"SIGVTALRM",
 | 
			
		||||
number:26,
 | 
			
		||||
action:"terminate",
 | 
			
		||||
description:"Timeout or timer",
 | 
			
		||||
standard:"bsd"},
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
name:"SIGPROF",
 | 
			
		||||
number:27,
 | 
			
		||||
action:"terminate",
 | 
			
		||||
description:"Timeout or timer",
 | 
			
		||||
standard:"bsd"},
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
name:"SIGWINCH",
 | 
			
		||||
number:28,
 | 
			
		||||
action:"ignore",
 | 
			
		||||
description:"Terminal window size changed",
 | 
			
		||||
standard:"bsd"},
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
name:"SIGIO",
 | 
			
		||||
number:29,
 | 
			
		||||
action:"terminate",
 | 
			
		||||
description:"I/O is available",
 | 
			
		||||
standard:"other"},
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
name:"SIGPOLL",
 | 
			
		||||
number:29,
 | 
			
		||||
action:"terminate",
 | 
			
		||||
description:"Watched event",
 | 
			
		||||
standard:"other"},
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
name:"SIGINFO",
 | 
			
		||||
number:29,
 | 
			
		||||
action:"ignore",
 | 
			
		||||
description:"Request for process information",
 | 
			
		||||
standard:"other"},
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
name:"SIGPWR",
 | 
			
		||||
number:30,
 | 
			
		||||
action:"terminate",
 | 
			
		||||
description:"Device running out of power",
 | 
			
		||||
standard:"systemv"},
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
name:"SIGSYS",
 | 
			
		||||
number:31,
 | 
			
		||||
action:"core",
 | 
			
		||||
description:"Invalid system call",
 | 
			
		||||
standard:"other"},
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
name:"SIGUNUSED",
 | 
			
		||||
number:31,
 | 
			
		||||
action:"terminate",
 | 
			
		||||
description:"Invalid system call",
 | 
			
		||||
standard:"other"}];exports.SIGNALS=SIGNALS;
 | 
			
		||||
//# sourceMappingURL=core.js.map
 | 
			
		||||
							
								
								
									
										1
									
								
								CyLukTs/lukan/node_modules/human-signals/build/src/core.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								CyLukTs/lukan/node_modules/human-signals/build/src/core.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										71
									
								
								CyLukTs/lukan/node_modules/human-signals/build/src/main.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										71
									
								
								CyLukTs/lukan/node_modules/human-signals/build/src/main.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,71 @@
 | 
			
		||||
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.signalsByNumber=exports.signalsByName=void 0;var _os=require("os");
 | 
			
		||||
 | 
			
		||||
var _signals=require("./signals.js");
 | 
			
		||||
var _realtime=require("./realtime.js");
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
const getSignalsByName=function(){
 | 
			
		||||
const signals=(0,_signals.getSignals)();
 | 
			
		||||
return signals.reduce(getSignalByName,{});
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
const getSignalByName=function(
 | 
			
		||||
signalByNameMemo,
 | 
			
		||||
{name,number,description,supported,action,forced,standard})
 | 
			
		||||
{
 | 
			
		||||
return{
 | 
			
		||||
...signalByNameMemo,
 | 
			
		||||
[name]:{name,number,description,supported,action,forced,standard}};
 | 
			
		||||
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
const signalsByName=getSignalsByName();exports.signalsByName=signalsByName;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
const getSignalsByNumber=function(){
 | 
			
		||||
const signals=(0,_signals.getSignals)();
 | 
			
		||||
const length=_realtime.SIGRTMAX+1;
 | 
			
		||||
const signalsA=Array.from({length},(value,number)=>
 | 
			
		||||
getSignalByNumber(number,signals));
 | 
			
		||||
 | 
			
		||||
return Object.assign({},...signalsA);
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
const getSignalByNumber=function(number,signals){
 | 
			
		||||
const signal=findSignalByNumber(number,signals);
 | 
			
		||||
 | 
			
		||||
if(signal===undefined){
 | 
			
		||||
return{};
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
const{name,description,supported,action,forced,standard}=signal;
 | 
			
		||||
return{
 | 
			
		||||
[number]:{
 | 
			
		||||
name,
 | 
			
		||||
number,
 | 
			
		||||
description,
 | 
			
		||||
supported,
 | 
			
		||||
action,
 | 
			
		||||
forced,
 | 
			
		||||
standard}};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
const findSignalByNumber=function(number,signals){
 | 
			
		||||
const signal=signals.find(({name})=>_os.constants.signals[name]===number);
 | 
			
		||||
 | 
			
		||||
if(signal!==undefined){
 | 
			
		||||
return signal;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
return signals.find(signalA=>signalA.number===number);
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
const signalsByNumber=getSignalsByNumber();exports.signalsByNumber=signalsByNumber;
 | 
			
		||||
//# sourceMappingURL=main.js.map
 | 
			
		||||
							
								
								
									
										1
									
								
								CyLukTs/lukan/node_modules/human-signals/build/src/main.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								CyLukTs/lukan/node_modules/human-signals/build/src/main.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
{"version":3,"sources":["../../src/main.js"],"names":["getSignalsByName","signals","reduce","getSignalByName","signalByNameMemo","name","number","description","supported","action","forced","standard","signalsByName","getSignalsByNumber","length","SIGRTMAX","signalsA","Array","from","value","getSignalByNumber","Object","assign","signal","findSignalByNumber","undefined","find","constants","signalA","signalsByNumber"],"mappings":"2HAAA;;AAEA;AACA;;;;AAIA,KAAMA,CAAAA,gBAAgB,CAAG,UAAW;AAClC,KAAMC,CAAAA,OAAO,CAAG,yBAAhB;AACA,MAAOA,CAAAA,OAAO,CAACC,MAAR,CAAeC,eAAf,CAAgC,EAAhC,CAAP;AACD,CAHD;;AAKA,KAAMA,CAAAA,eAAe,CAAG;AACtBC,gBADsB;AAEtB,CAAEC,IAAF,CAAQC,MAAR,CAAgBC,WAAhB,CAA6BC,SAA7B,CAAwCC,MAAxC,CAAgDC,MAAhD,CAAwDC,QAAxD,CAFsB;AAGtB;AACA,MAAO;AACL,GAAGP,gBADE;AAEL,CAACC,IAAD,EAAQ,CAAEA,IAAF,CAAQC,MAAR,CAAgBC,WAAhB,CAA6BC,SAA7B,CAAwCC,MAAxC,CAAgDC,MAAhD,CAAwDC,QAAxD,CAFH,CAAP;;AAID,CARD;;AAUO,KAAMC,CAAAA,aAAa,CAAGZ,gBAAgB,EAAtC,C;;;;;AAKP,KAAMa,CAAAA,kBAAkB,CAAG,UAAW;AACpC,KAAMZ,CAAAA,OAAO,CAAG,yBAAhB;AACA,KAAMa,CAAAA,MAAM,CAAGC,mBAAW,CAA1B;AACA,KAAMC,CAAAA,QAAQ,CAAGC,KAAK,CAACC,IAAN,CAAW,CAAEJ,MAAF,CAAX,CAAuB,CAACK,KAAD,CAAQb,MAAR;AACtCc,iBAAiB,CAACd,MAAD,CAASL,OAAT,CADF,CAAjB;;AAGA,MAAOoB,CAAAA,MAAM,CAACC,MAAP,CAAc,EAAd,CAAkB,GAAGN,QAArB,CAAP;AACD,CAPD;;AASA,KAAMI,CAAAA,iBAAiB,CAAG,SAASd,MAAT,CAAiBL,OAAjB,CAA0B;AAClD,KAAMsB,CAAAA,MAAM,CAAGC,kBAAkB,CAAClB,MAAD,CAASL,OAAT,CAAjC;;AAEA,GAAIsB,MAAM,GAAKE,SAAf,CAA0B;AACxB,MAAO,EAAP;AACD;;AAED,KAAM,CAAEpB,IAAF,CAAQE,WAAR,CAAqBC,SAArB,CAAgCC,MAAhC,CAAwCC,MAAxC,CAAgDC,QAAhD,EAA6DY,MAAnE;AACA,MAAO;AACL,CAACjB,MAAD,EAAU;AACRD,IADQ;AAERC,MAFQ;AAGRC,WAHQ;AAIRC,SAJQ;AAKRC,MALQ;AAMRC,MANQ;AAORC,QAPQ,CADL,CAAP;;;AAWD,CAnBD;;;;AAuBA,KAAMa,CAAAA,kBAAkB,CAAG,SAASlB,MAAT,CAAiBL,OAAjB,CAA0B;AACnD,KAAMsB,CAAAA,MAAM,CAAGtB,OAAO,CAACyB,IAAR,CAAa,CAAC,CAAErB,IAAF,CAAD,GAAcsB,cAAU1B,OAAV,CAAkBI,IAAlB,IAA4BC,MAAvD,CAAf;;AAEA,GAAIiB,MAAM,GAAKE,SAAf,CAA0B;AACxB,MAAOF,CAAAA,MAAP;AACD;;AAED,MAAOtB,CAAAA,OAAO,CAACyB,IAAR,CAAaE,OAAO,EAAIA,OAAO,CAACtB,MAAR,GAAmBA,MAA3C,CAAP;AACD,CARD;;AAUO,KAAMuB,CAAAA,eAAe,CAAGhB,kBAAkB,EAA1C,C","sourcesContent":["import { constants } from 'os'\n\nimport { getSignals } from './signals.js'\nimport { SIGRTMAX } from './realtime.js'\n\n// Retrieve `signalsByName`, an object mapping signal name to signal properties.\n// We make sure the object is sorted by `number`.\nconst getSignalsByName = function() {\n  const signals = getSignals()\n  return signals.reduce(getSignalByName, {})\n}\n\nconst getSignalByName = function(\n  signalByNameMemo,\n  { name, number, description, supported, action, forced, standard },\n) {\n  return {\n    ...signalByNameMemo,\n    [name]: { name, number, description, supported, action, forced, standard },\n  }\n}\n\nexport const signalsByName = getSignalsByName()\n\n// Retrieve `signalsByNumber`, an object mapping signal number to signal\n// properties.\n// We make sure the object is sorted by `number`.\nconst getSignalsByNumber = function() {\n  const signals = getSignals()\n  const length = SIGRTMAX + 1\n  const signalsA = Array.from({ length }, (value, number) =>\n    getSignalByNumber(number, signals),\n  )\n  return Object.assign({}, ...signalsA)\n}\n\nconst getSignalByNumber = function(number, signals) {\n  const signal = findSignalByNumber(number, signals)\n\n  if (signal === undefined) {\n    return {}\n  }\n\n  const { name, description, supported, action, forced, standard } = signal\n  return {\n    [number]: {\n      name,\n      number,\n      description,\n      supported,\n      action,\n      forced,\n      standard,\n    },\n  }\n}\n\n// Several signals might end up sharing the same number because of OS-specific\n// numbers, in which case those prevail.\nconst findSignalByNumber = function(number, signals) {\n  const signal = signals.find(({ name }) => constants.signals[name] === number)\n\n  if (signal !== undefined) {\n    return signal\n  }\n\n  return signals.find(signalA => signalA.number === number)\n}\n\nexport const signalsByNumber = getSignalsByNumber()\n"],"file":"src/main.js"}
 | 
			
		||||
							
								
								
									
										19
									
								
								CyLukTs/lukan/node_modules/human-signals/build/src/realtime.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								CyLukTs/lukan/node_modules/human-signals/build/src/realtime.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,19 @@
 | 
			
		||||
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.SIGRTMAX=exports.getRealtimeSignals=void 0;
 | 
			
		||||
const getRealtimeSignals=function(){
 | 
			
		||||
const length=SIGRTMAX-SIGRTMIN+1;
 | 
			
		||||
return Array.from({length},getRealtimeSignal);
 | 
			
		||||
};exports.getRealtimeSignals=getRealtimeSignals;
 | 
			
		||||
 | 
			
		||||
const getRealtimeSignal=function(value,index){
 | 
			
		||||
return{
 | 
			
		||||
name:`SIGRT${index+1}`,
 | 
			
		||||
number:SIGRTMIN+index,
 | 
			
		||||
action:"terminate",
 | 
			
		||||
description:"Application-specific signal (realtime)",
 | 
			
		||||
standard:"posix"};
 | 
			
		||||
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
const SIGRTMIN=34;
 | 
			
		||||
const SIGRTMAX=64;exports.SIGRTMAX=SIGRTMAX;
 | 
			
		||||
//# sourceMappingURL=realtime.js.map
 | 
			
		||||
							
								
								
									
										1
									
								
								CyLukTs/lukan/node_modules/human-signals/build/src/realtime.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								CyLukTs/lukan/node_modules/human-signals/build/src/realtime.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
{"version":3,"sources":["../../src/realtime.js"],"names":["getRealtimeSignals","length","SIGRTMAX","SIGRTMIN","Array","from","getRealtimeSignal","value","index","name","number","action","description","standard"],"mappings":";AACO,KAAMA,CAAAA,kBAAkB,CAAG,UAAW;AAC3C,KAAMC,CAAAA,MAAM,CAAGC,QAAQ,CAAGC,QAAX,CAAsB,CAArC;AACA,MAAOC,CAAAA,KAAK,CAACC,IAAN,CAAW,CAAEJ,MAAF,CAAX,CAAuBK,iBAAvB,CAAP;AACD,CAHM,C;;AAKP,KAAMA,CAAAA,iBAAiB,CAAG,SAASC,KAAT,CAAgBC,KAAhB,CAAuB;AAC/C,MAAO;AACLC,IAAI,CAAG,QAAOD,KAAK,CAAG,CAAE,EADnB;AAELE,MAAM,CAAEP,QAAQ,CAAGK,KAFd;AAGLG,MAAM,CAAE,WAHH;AAILC,WAAW,CAAE,wCAJR;AAKLC,QAAQ,CAAE,OALL,CAAP;;AAOD,CARD;;AAUA,KAAMV,CAAAA,QAAQ,CAAG,EAAjB;AACO,KAAMD,CAAAA,QAAQ,CAAG,EAAjB,C","sourcesContent":["// List of realtime signals with information about them\nexport const getRealtimeSignals = function() {\n  const length = SIGRTMAX - SIGRTMIN + 1\n  return Array.from({ length }, getRealtimeSignal)\n}\n\nconst getRealtimeSignal = function(value, index) {\n  return {\n    name: `SIGRT${index + 1}`,\n    number: SIGRTMIN + index,\n    action: 'terminate',\n    description: 'Application-specific signal (realtime)',\n    standard: 'posix',\n  }\n}\n\nconst SIGRTMIN = 34\nexport const SIGRTMAX = 64\n"],"file":"src/realtime.js"}
 | 
			
		||||
							
								
								
									
										35
									
								
								CyLukTs/lukan/node_modules/human-signals/build/src/signals.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								CyLukTs/lukan/node_modules/human-signals/build/src/signals.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,35 @@
 | 
			
		||||
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.getSignals=void 0;var _os=require("os");
 | 
			
		||||
 | 
			
		||||
var _core=require("./core.js");
 | 
			
		||||
var _realtime=require("./realtime.js");
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
const getSignals=function(){
 | 
			
		||||
const realtimeSignals=(0,_realtime.getRealtimeSignals)();
 | 
			
		||||
const signals=[..._core.SIGNALS,...realtimeSignals].map(normalizeSignal);
 | 
			
		||||
return signals;
 | 
			
		||||
};exports.getSignals=getSignals;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
const normalizeSignal=function({
 | 
			
		||||
name,
 | 
			
		||||
number:defaultNumber,
 | 
			
		||||
description,
 | 
			
		||||
action,
 | 
			
		||||
forced=false,
 | 
			
		||||
standard})
 | 
			
		||||
{
 | 
			
		||||
const{
 | 
			
		||||
signals:{[name]:constantSignal}}=
 | 
			
		||||
_os.constants;
 | 
			
		||||
const supported=constantSignal!==undefined;
 | 
			
		||||
const number=supported?constantSignal:defaultNumber;
 | 
			
		||||
return{name,number,description,supported,action,forced,standard};
 | 
			
		||||
};
 | 
			
		||||
//# sourceMappingURL=signals.js.map
 | 
			
		||||
							
								
								
									
										1
									
								
								CyLukTs/lukan/node_modules/human-signals/build/src/signals.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								CyLukTs/lukan/node_modules/human-signals/build/src/signals.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
{"version":3,"sources":["../../src/signals.js"],"names":["getSignals","realtimeSignals","signals","SIGNALS","map","normalizeSignal","name","number","defaultNumber","description","action","forced","standard","constantSignal","constants","supported","undefined"],"mappings":"gGAAA;;AAEA;AACA;;;;AAIO,KAAMA,CAAAA,UAAU,CAAG,UAAW;AACnC,KAAMC,CAAAA,eAAe,CAAG,kCAAxB;AACA,KAAMC,CAAAA,OAAO,CAAG,CAAC,GAAGC,aAAJ,CAAa,GAAGF,eAAhB,EAAiCG,GAAjC,CAAqCC,eAArC,CAAhB;AACA,MAAOH,CAAAA,OAAP;AACD,CAJM,C;;;;;;;;AAYP,KAAMG,CAAAA,eAAe,CAAG,SAAS;AAC/BC,IAD+B;AAE/BC,MAAM,CAAEC,aAFuB;AAG/BC,WAH+B;AAI/BC,MAJ+B;AAK/BC,MAAM,CAAG,KALsB;AAM/BC,QAN+B,CAAT;AAOrB;AACD,KAAM;AACJV,OAAO,CAAE,CAAE,CAACI,IAAD,EAAQO,cAAV,CADL;AAEFC,aAFJ;AAGA,KAAMC,CAAAA,SAAS,CAAGF,cAAc,GAAKG,SAArC;AACA,KAAMT,CAAAA,MAAM,CAAGQ,SAAS,CAAGF,cAAH,CAAoBL,aAA5C;AACA,MAAO,CAAEF,IAAF,CAAQC,MAAR,CAAgBE,WAAhB,CAA6BM,SAA7B,CAAwCL,MAAxC,CAAgDC,MAAhD,CAAwDC,QAAxD,CAAP;AACD,CAdD","sourcesContent":["import { constants } from 'os'\n\nimport { SIGNALS } from './core.js'\nimport { getRealtimeSignals } from './realtime.js'\n\n// Retrieve list of know signals (including realtime) with information about\n// them\nexport const getSignals = function() {\n  const realtimeSignals = getRealtimeSignals()\n  const signals = [...SIGNALS, ...realtimeSignals].map(normalizeSignal)\n  return signals\n}\n\n// Normalize signal:\n//  - `number`: signal numbers are OS-specific. This is taken into account by\n//    `os.constants.signals`. However we provide a default `number` since some\n//     signals are not defined for some OS.\n//  - `forced`: set default to `false`\n//  - `supported`: set value\nconst normalizeSignal = function({\n  name,\n  number: defaultNumber,\n  description,\n  action,\n  forced = false,\n  standard,\n}) {\n  const {\n    signals: { [name]: constantSignal },\n  } = constants\n  const supported = constantSignal !== undefined\n  const number = supported ? constantSignal : defaultNumber\n  return { name, number, description, supported, action, forced, standard }\n}\n"],"file":"src/signals.js"}
 | 
			
		||||
							
								
								
									
										64
									
								
								CyLukTs/lukan/node_modules/human-signals/package.json
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										64
									
								
								CyLukTs/lukan/node_modules/human-signals/package.json
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,64 @@
 | 
			
		||||
{
 | 
			
		||||
  "name": "human-signals",
 | 
			
		||||
  "version": "1.1.1",
 | 
			
		||||
  "main": "build/src/main.js",
 | 
			
		||||
  "files": [
 | 
			
		||||
    "build/src",
 | 
			
		||||
    "!~"
 | 
			
		||||
  ],
 | 
			
		||||
  "scripts": {
 | 
			
		||||
    "test": "gulp test"
 | 
			
		||||
  },
 | 
			
		||||
  "husky": {
 | 
			
		||||
    "hooks": {
 | 
			
		||||
      "pre-push": "gulp check --full"
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  "description": "Human-friendly process signals",
 | 
			
		||||
  "keywords": [
 | 
			
		||||
    "signal",
 | 
			
		||||
    "signals",
 | 
			
		||||
    "handlers",
 | 
			
		||||
    "error-handling",
 | 
			
		||||
    "errors",
 | 
			
		||||
    "interrupts",
 | 
			
		||||
    "sigterm",
 | 
			
		||||
    "sigint",
 | 
			
		||||
    "irq",
 | 
			
		||||
    "process",
 | 
			
		||||
    "exit",
 | 
			
		||||
    "exit-code",
 | 
			
		||||
    "status",
 | 
			
		||||
    "operating-system",
 | 
			
		||||
    "es6",
 | 
			
		||||
    "javascript",
 | 
			
		||||
    "linux",
 | 
			
		||||
    "macos",
 | 
			
		||||
    "windows",
 | 
			
		||||
    "nodejs"
 | 
			
		||||
  ],
 | 
			
		||||
  "license": "Apache-2.0",
 | 
			
		||||
  "homepage": "https://git.io/JeluP",
 | 
			
		||||
  "repository": "ehmicky/human-signals",
 | 
			
		||||
  "bugs": {
 | 
			
		||||
    "url": "https://github.com/ehmicky/human-signals/issues"
 | 
			
		||||
  },
 | 
			
		||||
  "author": "ehmicky <ehmicky@gmail.com> (https://github.com/ehmicky)",
 | 
			
		||||
  "directories": {
 | 
			
		||||
    "lib": "src",
 | 
			
		||||
    "test": "test"
 | 
			
		||||
  },
 | 
			
		||||
  "dependencies": {},
 | 
			
		||||
  "devDependencies": {
 | 
			
		||||
    "@ehmicky/dev-tasks": "^0.30.48",
 | 
			
		||||
    "ajv": "^6.10.2",
 | 
			
		||||
    "ava": "^2.4.0",
 | 
			
		||||
    "fast-deep-equal": "^2.0.1",
 | 
			
		||||
    "gulp": "^4.0.2",
 | 
			
		||||
    "husky": "^3.0.9",
 | 
			
		||||
    "test-each": "^1.7.2"
 | 
			
		||||
  },
 | 
			
		||||
  "engines": {
 | 
			
		||||
    "node": ">=8.12.0"
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user