Skip to content

Commit

Permalink
doc: add built-in dc for module loading
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGSS committed Jun 18, 2024
1 parent 08488a4 commit 484d6a1
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions doc/api/diagnostics_channel.md
Original file line number Diff line number Diff line change
Expand Up @@ -1117,6 +1117,64 @@ Emitted when server receives a request.

Emitted when server sends a response.

#### Modules

`module.require.start`

* `event` {Object} containing the following properties
* `id` - Argument passed to `require()`. Module name.
* `name` - Event name.
* `parentFilename` - Name of the module that attempted to require(id).

Emitted when `require()` is executed

`module.require.end`

* `event` {Object} containing the following properties
* `id` - Argument passed to `require()`. Module name.
* `name` - Event name.
* `parentFilename` - Name of the module that attempted to require(id).

Emitted when a `require()` call returns

`module.require.error`

* `event` {Object} containing the following properties
* `id` - Argument passed to `require()`. Module name.
* `name` - Event name.
* `parentFilename` - Name of the module that attempted to require(id).
* `error` {Error}

Emitted when a `require()` throws an error

`module.import.asyncStart`

* `event` {Object} containing the following properties
* `id` - Argument passed to `import()`. Module name.
* `name` - Event name.
* `parentURL` - URL object of the module that attempted to import(id).

Emitted when `import()` is invoked.

`module.import.asyncEnd`

* `event` {Object} containing the following properties
* `id` - Argument passed to `import()`. Module name.
* `name` - Event name.
* `parentURL` - URL object of the module that attempted to import(id).

Emitted when `import()` has completed.

`module.import.error`

* `event` {Object} containing the following properties
* `id` - Argument passed to `import()`. Module name.
* `name` - Event name.
* `parentURL` - URL object of the module that attempted to import(id).
* `error` {Error}

Emitted when a `import()` throws an error

#### NET

`net.client.socket`
Expand Down

0 comments on commit 484d6a1

Please sign in to comment.