From 05d1b4371ab804069eaf7e9cf0d69f4b41c06995 Mon Sep 17 00:00:00 2001 From: Carsten Klein Date: Mon, 3 Feb 2020 13:45:18 +0100 Subject: [PATCH] update jsdoc --- docs/global.html | 44 ++++++++++++++++++------------------ docs/index.html | 2 +- docs/tmp.js.html | 59 ++---------------------------------------------- 3 files changed, 25 insertions(+), 80 deletions(-) diff --git a/docs/global.html b/docs/global.html index fd5a9e5..3313e88 100644 --- a/docs/global.html +++ b/docs/global.html @@ -251,7 +251,7 @@
Parameters:
Source:
@@ -388,7 +388,7 @@
Parameters:
Source:
@@ -622,7 +622,7 @@
Parameters:
Source:
@@ -759,7 +759,7 @@
Parameters:
Source:
@@ -898,7 +898,7 @@

isEBADFSource:
@@ -986,7 +986,7 @@

isENOENTSource:
@@ -1091,7 +1091,7 @@

isExpe
Source:
@@ -1179,7 +1179,7 @@

set
Source:
@@ -1362,7 +1362,7 @@

Parameters:
Source:
@@ -1499,7 +1499,7 @@
Parameters:
Source:
@@ -1705,7 +1705,7 @@
Parameters:
Source:
@@ -1793,7 +1793,7 @@

cl
Source:
@@ -2000,7 +2000,7 @@

Parameters:
Source:
@@ -2207,7 +2207,7 @@
Parameters:
Source:
@@ -2364,7 +2364,7 @@
Properties:
Source:
@@ -2588,7 +2588,7 @@
Parameters:
Source:
@@ -2826,7 +2826,7 @@
Parameters:
Source:
@@ -3006,7 +3006,7 @@
Properties:
Source:
@@ -3326,7 +3326,7 @@
Properties:
Source:
@@ -3400,7 +3400,7 @@

simpleC
Source:
@@ -3583,7 +3583,7 @@

Parameters:
Source:
@@ -3633,7 +3633,7 @@

Home

Global

  • diff --git a/docs/index.html b/docs/index.html index 70d651f..1a4fdd7 100644 --- a/docs/index.html +++ b/docs/index.html @@ -315,7 +315,7 @@

    Home

    Global

    • diff --git a/docs/tmp.js.html b/docs/tmp.js.html index 53ecf67..5e6b4a5 100644 --- a/docs/tmp.js.html +++ b/docs/tmp.js.html @@ -67,8 +67,6 @@

      Source: tmp.js

      EXIT = 'exit', - SIGINT = 'SIGINT', - // this will hold the objects need to be removed on exit _removeObjects = [], @@ -607,61 +605,8 @@

      Source: tmp.js

      return os.tmpdir(); } -/** - * If there are multiple different versions of tmp in place, make sure that - * we recognize the old listeners. - * - * @param {Function} listener - * @private - * @returns {Boolean} true whether listener is a legacy listener - */ -function _is_legacy_listener(listener) { - return (listener.name === '_exit' || listener.name === '_uncaughtExceptionThrown') - && listener.toString().indexOf('_garbageCollector();') > -1; -} - -/** - * Safely install SIGINT listener. - * - * NOTE: this will only work on OSX and Linux. - * - * @private - */ -function _safely_install_sigint_listener() { - - const listeners = process.listeners(SIGINT); - const existingListeners = []; - for (let i = 0, length = listeners.length; i < length; i++) { - const lstnr = listeners[i]; - /* istanbul ignore else */ - if (lstnr.name === '_tmp$sigint_listener') { - existingListeners.push(lstnr); - process.removeListener(SIGINT, lstnr); - } - } - process.on(SIGINT, function _tmp$sigint_listener(doExit) { - for (let i = 0, length = existingListeners.length; i < length; i++) { - // let the existing listener do the garbage collection (e.g. jest sandbox) - try { - existingListeners[i](false); - } catch (err) { - // ignore - } - } - try { - // force the garbage collector even it is called again in the exit listener - _garbageCollector(); - } finally { - if (!!doExit) { - process.exit(0); - } - } - }); -} - // Install process exit listener -//process.addListener(EXIT, _garbageCollector); -//_safely_install_sigint_listener(); +process.addListener(EXIT, _garbageCollector); /** * Configuration options. @@ -783,7 +728,7 @@

      Home

      Global