1
|
'use strict';
|
2
|
|
3
|
Object.defineProperty(exports, "__esModule", {
|
4
|
value: true
|
5
|
});
|
6
|
|
7
|
var _consoleFunc = require('./internal/consoleFunc');
|
8
|
|
9
|
var _consoleFunc2 = _interopRequireDefault(_consoleFunc);
|
10
|
|
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
12
|
|
13
|
/**
|
14
|
* Logs the result of an [`async` function]{@link AsyncFunction} to the
|
15
|
* `console` using `console.dir` to display the properties of the resulting object.
|
16
|
* Only works in Node.js or in browsers that support `console.dir` and
|
17
|
* `console.error` (such as FF and Chrome).
|
18
|
* If multiple arguments are returned from the async function,
|
19
|
* `console.dir` is called on each argument in order.
|
20
|
*
|
21
|
* @name dir
|
22
|
* @static
|
23
|
* @memberOf module:Utils
|
24
|
* @method
|
25
|
* @category Util
|
26
|
* @param {AsyncFunction} function - The function you want to eventually apply
|
27
|
* all arguments to.
|
28
|
* @param {...*} arguments... - Any number of arguments to apply to the function.
|
29
|
* @example
|
30
|
*
|
31
|
* // in a module
|
32
|
* var hello = function(name, callback) {
|
33
|
* setTimeout(function() {
|
34
|
* callback(null, {hello: name});
|
35
|
* }, 1000);
|
36
|
* };
|
37
|
*
|
38
|
* // in the node repl
|
39
|
* node> async.dir(hello, 'world');
|
40
|
* {hello: 'world'}
|
41
|
*/
|
42
|
exports.default = (0, _consoleFunc2.default)('dir');
|
43
|
module.exports = exports['default'];
|