summaryrefslogtreecommitdiff
path: root/node_modules/loud-rejection
diff options
context:
space:
mode:
authorLinuxWizard42 <computerwizard@linuxmail.org>2022-10-12 23:08:57 +0300
committerLinuxWizard42 <computerwizard@linuxmail.org>2022-10-12 23:08:57 +0300
commit726b81b19251674e149ccfbb1abacbd837fc6db0 (patch)
treefbdbb227dc01357eb76e8222d76185bc124c5ca6 /node_modules/loud-rejection
parent34f0890e175698940d49238097579f44e4d78c89 (diff)
downloadFlashRunner-726b81b19251674e149ccfbb1abacbd837fc6db0.tar.gz
FlashRunner-726b81b19251674e149ccfbb1abacbd837fc6db0.tar.zst
Removed files that should not have been included in git
Diffstat (limited to 'node_modules/loud-rejection')
-rw-r--r--node_modules/loud-rejection/api.js11
-rw-r--r--node_modules/loud-rejection/index.js36
-rw-r--r--node_modules/loud-rejection/license21
-rw-r--r--node_modules/loud-rejection/package.json59
-rw-r--r--node_modules/loud-rejection/readme.md68
-rw-r--r--node_modules/loud-rejection/register.js2
6 files changed, 0 insertions, 197 deletions
diff --git a/node_modules/loud-rejection/api.js b/node_modules/loud-rejection/api.js
deleted file mode 100644
index f6cd6a1..0000000
--- a/node_modules/loud-rejection/api.js
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict';
-var util = require('util');
-var currentlyUnhandled = require('currently-unhandled');
-
-// WARNING: This undocumented API is subject to change.
-
-module.exports = util.deprecate(function (process) {
- return {
- currentlyUnhandled: currentlyUnhandled(process)
- };
-}, 'loudRejection/api is deprecated. Use the currently-unhandled module instead.');
diff --git a/node_modules/loud-rejection/index.js b/node_modules/loud-rejection/index.js
deleted file mode 100644
index 319b945..0000000
--- a/node_modules/loud-rejection/index.js
+++ /dev/null
@@ -1,36 +0,0 @@
-'use strict';
-var util = require('util');
-var onExit = require('signal-exit');
-var currentlyUnhandled = require('currently-unhandled');
-
-var installed = false;
-
-module.exports = function (log) {
- if (installed) {
- return;
- }
-
- installed = true;
-
- log = log || console.error;
-
- var listUnhandled = currentlyUnhandled();
-
- onExit(function () {
- var unhandledRejections = listUnhandled();
-
- if (unhandledRejections.length > 0) {
- unhandledRejections.forEach(function (x) {
- var err = x.reason;
-
- if (!(err instanceof Error)) {
- err = new Error('Promise rejected with value: ' + util.inspect(err));
- }
-
- log(err.stack);
- });
-
- process.exitCode = 1;
- }
- });
-};
diff --git a/node_modules/loud-rejection/license b/node_modules/loud-rejection/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/loud-rejection/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/loud-rejection/package.json b/node_modules/loud-rejection/package.json
deleted file mode 100644
index da5adaf..0000000
--- a/node_modules/loud-rejection/package.json
+++ /dev/null
@@ -1,59 +0,0 @@
-{
- "name": "loud-rejection",
- "version": "1.6.0",
- "description": "Make unhandled promise rejections fail loudly instead of the default silent fail",
- "license": "MIT",
- "repository": "sindresorhus/loud-rejection",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "scripts": {
- "test": "xo && nyc ava",
- "coveralls": "nyc report --reporter=text-lcov | coveralls"
- },
- "files": [
- "index.js",
- "register.js",
- "api.js"
- ],
- "keywords": [
- "promise",
- "promises",
- "unhandled",
- "uncaught",
- "rejection",
- "loud",
- "fail",
- "catch",
- "throw",
- "handler",
- "exit",
- "debug",
- "debugging",
- "verbose"
- ],
- "dependencies": {
- "currently-unhandled": "^0.4.1",
- "signal-exit": "^3.0.0"
- },
- "devDependencies": {
- "ava": "*",
- "bluebird": "^3.0.5",
- "coveralls": "^2.11.4",
- "delay": "^1.0.0",
- "execa": "^0.4.0",
- "get-stream": "^2.0.0",
- "nyc": "^6.2.1",
- "xo": "*"
- },
- "nyc": {
- "exclude": [
- "fixture.js"
- ]
- }
-}
diff --git a/node_modules/loud-rejection/readme.md b/node_modules/loud-rejection/readme.md
deleted file mode 100644
index a973261..0000000
--- a/node_modules/loud-rejection/readme.md
+++ /dev/null
@@ -1,68 +0,0 @@
-# loud-rejection [![Build Status](https://travis-ci.org/sindresorhus/loud-rejection.svg?branch=master)](https://travis-ci.org/sindresorhus/loud-rejection) [![Coverage Status](https://coveralls.io/repos/github/sindresorhus/loud-rejection/badge.svg?branch=master)](https://coveralls.io/github/sindresorhus/loud-rejection?branch=master)
-
-> Make unhandled promise rejections fail loudly instead of the default [silent fail](https://gist.github.com/benjamingr/0237932cee84712951a2)
-
-By default, promises fail silently if you don't attach a `.catch()` handler to them.
-
-Use this in top-level things like tests, CLI tools, apps, etc, **but not in reusable modules.**<br>
-Not needed in the browser as unhandled promises are shown in the console.
-
-
-## Install
-
-```
-$ npm install --save loud-rejection
-```
-
-
-## Usage
-
-```js
-const loudRejection = require('loud-rejection');
-const promiseFn = require('promise-fn');
-
-// Install the unhandledRejection listeners
-loudRejection();
-
-promiseFn();
-```
-
-Without this module it's more verbose and you might even miss some that will fail silently:
-
-```js
-const promiseFn = require('promise-fn');
-
-function error(err) {
- console.error(err.stack);
- process.exit(1);
-}
-
-promiseFn().catch(error);
-```
-
-### Register script
-
-Alternatively to the above, you may simply require `loud-rejection/register` and the unhandledRejection listener will be automagically installed for you.
-
-This is handy for ES2015 imports:
-
-```js
-import 'loud-rejection/register';
-```
-
-
-## API
-
-### loudRejection([log])
-
-#### log
-
-Type: `Function`<br>
-Default: `console.error`
-
-Custom logging function to print the rejected promise. Receives the error stack.
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)
diff --git a/node_modules/loud-rejection/register.js b/node_modules/loud-rejection/register.js
deleted file mode 100644
index 2934812..0000000
--- a/node_modules/loud-rejection/register.js
+++ /dev/null
@@ -1,2 +0,0 @@
-'use strict';
-require('./')();