Skip to content

Commit

Permalink
update jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
silkentrance committed Feb 3, 2020
1 parent 19febe2 commit 05d1b43
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 80 deletions.
44 changes: 22 additions & 22 deletions docs/global.html
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line322">line 322</a>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line320">line 320</a>
</li></ul></dd>


Expand Down Expand Up @@ -388,7 +388,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line350">line 350</a>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line348">line 348</a>
</li></ul></dd>


Expand Down Expand Up @@ -622,7 +622,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line242">line 242</a>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line240">line 240</a>
</li></ul></dd>


Expand Down Expand Up @@ -759,7 +759,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line295">line 295</a>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line293">line 293</a>
</li></ul></dd>


Expand Down Expand Up @@ -898,7 +898,7 @@ <h4 class="name" id="isEBADF"><span class="type-signature"></span>isEBADF<span c

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line519">line 519</a>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line517">line 517</a>
</li></ul></dd>


Expand Down Expand Up @@ -986,7 +986,7 @@ <h4 class="name" id="isENOENT"><span class="type-signature"></span>isENOENT<span

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line526">line 526</a>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line524">line 524</a>
</li></ul></dd>


Expand Down Expand Up @@ -1091,7 +1091,7 @@ <h4 class="name" id="isExpectedError"><span class="type-signature"></span>isExpe

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line550">line 550</a>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line548">line 548</a>
</li></ul></dd>


Expand Down Expand Up @@ -1179,7 +1179,7 @@ <h4 class="name" id="setGracefulCleanup"><span class="type-signature"></span>set

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line568">line 568</a>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line566">line 566</a>
</li></ul></dd>


Expand Down Expand Up @@ -1362,7 +1362,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line166">line 166</a>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line164">line 164</a>
</li></ul></dd>


Expand Down Expand Up @@ -1499,7 +1499,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line210">line 210</a>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line208">line 208</a>
</li></ul></dd>


Expand Down Expand Up @@ -1705,7 +1705,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line700">line 700</a>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line645">line 645</a>
</li></ul></dd>


Expand Down Expand Up @@ -1793,7 +1793,7 @@ <h4 class="name" id="cleanupCallbackSync"><span class="type-signature"></span>cl

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line707">line 707</a>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line652">line 652</a>
</li></ul></dd>


Expand Down Expand Up @@ -2000,7 +2000,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line686">line 686</a>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line631">line 631</a>
</li></ul></dd>


Expand Down Expand Up @@ -2207,7 +2207,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line693">line 693</a>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line638">line 638</a>
</li></ul></dd>


Expand Down Expand Up @@ -2364,7 +2364,7 @@ <h5 class="subsection-title">Properties:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line658">line 658</a>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line603">line 603</a>
</li></ul></dd>


Expand Down Expand Up @@ -2588,7 +2588,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line670">line 670</a>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line615">line 615</a>
</li></ul></dd>


Expand Down Expand Up @@ -2826,7 +2826,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line678">line 678</a>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line623">line 623</a>
</li></ul></dd>


Expand Down Expand Up @@ -3006,7 +3006,7 @@ <h5 class="subsection-title">Properties:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line651">line 651</a>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line596">line 596</a>
</li></ul></dd>


Expand Down Expand Up @@ -3326,7 +3326,7 @@ <h5 class="subsection-title">Properties:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line638">line 638</a>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line583">line 583</a>
</li></ul></dd>


Expand Down Expand Up @@ -3400,7 +3400,7 @@ <h4 class="name" id="simpleCallback"><span class="type-signature"></span>simpleC

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line713">line 713</a>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line658">line 658</a>
</li></ul></dd>


Expand Down Expand Up @@ -3583,7 +3583,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line664">line 664</a>
<a href="tmp.js.html">tmp.js</a>, <a href="tmp.js.html#line609">line 609</a>
</li></ul></dd>


Expand Down Expand Up @@ -3633,7 +3633,7 @@ <h2><a href="index.html">Home</a></h2><h3>Global</h3><ul><li><a href="global.htm
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.3</a> on Mon Feb 03 2020 13:41:00 GMT+0100 (GMT+01:00)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.3</a> on Mon Feb 03 2020 13:45:09 GMT+0100 (GMT+01:00)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ <h2><a href="index.html">Home</a></h2><h3>Global</h3><ul><li><a href="global.htm
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.3</a> on Mon Feb 03 2020 13:41:00 GMT+0100 (GMT+01:00)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.3</a> on Mon Feb 03 2020 13:45:09 GMT+0100 (GMT+01:00)
</footer>

<script> prettyPrint(); </script>
Expand Down
59 changes: 2 additions & 57 deletions docs/tmp.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ <h1 class="page-title">Source: tmp.js</h1>

EXIT = 'exit',

SIGINT = 'SIGINT',

// this will hold the objects need to be removed on exit
_removeObjects = [],

Expand Down Expand Up @@ -607,61 +605,8 @@ <h1 class="page-title">Source: tmp.js</h1>
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')
&amp;&amp; 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 &lt; 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 &lt; 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.
Expand Down Expand Up @@ -783,7 +728,7 @@ <h2><a href="index.html">Home</a></h2><h3>Global</h3><ul><li><a href="global.htm
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.3</a> on Mon Feb 03 2020 13:41:00 GMT+0100 (GMT+01:00)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.3</a> on Mon Feb 03 2020 13:45:09 GMT+0100 (GMT+01:00)
</footer>

<script> prettyPrint(); </script>
Expand Down

0 comments on commit 05d1b43

Please sign in to comment.