From 726b81b19251674e149ccfbb1abacbd837fc6db0 Mon Sep 17 00:00:00 2001 From: LinuxWizard42 Date: Wed, 12 Oct 2022 23:08:57 +0300 Subject: Removed files that should not have been included in git --- node_modules/currently-unhandled/core.js | 33 -------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 node_modules/currently-unhandled/core.js (limited to 'node_modules/currently-unhandled/core.js') diff --git a/node_modules/currently-unhandled/core.js b/node_modules/currently-unhandled/core.js deleted file mode 100644 index 73db22e..0000000 --- a/node_modules/currently-unhandled/core.js +++ /dev/null @@ -1,33 +0,0 @@ -'use strict'; -var arrayFindIndex = require('array-find-index'); - -module.exports = function () { - var unhandledRejections = []; - - function onUnhandledRejection(reason, promise) { - unhandledRejections.push({reason: reason, promise: promise}); - } - - function onRejectionHandled(promise) { - var index = arrayFindIndex(unhandledRejections, function (x) { - return x.promise === promise; - }); - - unhandledRejections.splice(index, 1); - } - - function currentlyUnhandled() { - return unhandledRejections.map(function (entry) { - return { - reason: entry.reason, - promise: entry.promise - }; - }); - } - - return { - onUnhandledRejection: onUnhandledRejection, - onRejectionHandled: onRejectionHandled, - currentlyUnhandled: currentlyUnhandled - }; -}; -- cgit v1.2.3-86-g962b