Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
1d03df4
crypto: add Hash.prototype.copy() method
bnoordhuis Oct 9, 2019
a63f7e7
dgram: add source-specific multicast support
Oct 2, 2017
39070bb
doc: make YAML matter consistent in crypto.md
Trott Oct 18, 2019
5ca5864
cli: add --trace-uncaught flag
addaleax Oct 18, 2019
f01c5c5
inspector: turn platform tasks that outlive Agent into no-ops
addaleax Oct 18, 2019
5ba842b
build: python3 support for configure
rvagg Oct 21, 2019
8b75aab
crypto: guard with OPENSSL_NO_GOST
codebytere Oct 21, 2019
0d9ae1b
deps: V8: cherry-pick ed40ab1
targos Oct 22, 2019
edfbee3
module: resolve self-references
hybrist Aug 20, 2019
1cfa98c
deps: V8: cherry-pick c721203
targos Oct 22, 2019
a03809d
test: verify npm compatibility with releases
targos Oct 23, 2019
ea9d125
doc: add legendecas to collaborators
legendecas Oct 25, 2019
fd0aded
src: allow inspector without v8 platform
codebytere Oct 21, 2019
cedad02
build: prefer python 3 over 2 for configure
sam-github Oct 23, 2019
8980d8c
build: vcbuild uses default Python, not Py2
joaocgreis Oct 24, 2019
1d9f427
test: use arrow functions for callbacks
mpark86 Oct 22, 2019
93b1bb8
n-api,doc: add info about building n-api addons
jschlight Oct 18, 2019
4458378
async_hooks: only emit `after` for AsyncResource if stack not empty
addaleax Oct 23, 2019
45c70a9
doc: remove dashes
Trott Oct 24, 2019
381c6cd
doc: delete "a number of" things in the docs
Trott Oct 23, 2019
32a5389
doc,n-api: sort bottom-of-the-page references
Oct 25, 2019
9a71091
doc: revise os.md
Trott Oct 23, 2019
f3d00c5
deps: V8: backport 777fa98
targos Oct 22, 2019
d78e317
src: fix crash with SyntheticModule#setExport
targos Oct 22, 2019
621eaf9
doc: remove "it is important to" phrasing
Trott Oct 24, 2019
a375754
tools: doc: improve async workflow of generate.js
tpoisseau Oct 24, 2019
d91d270
doc: claim NODE_MODULE_VERSION=80 for Electron 9
MarshallOfSound Oct 21, 2019
3c23224
doc: adjust code sample for stream.finished
imcotton Oct 15, 2019
e4ab6fc
doc: remove incorrect and outdated example
tniessen Oct 26, 2019
07b5584
fs: add `bufferSize` option to `fs.opendir()`
addaleax Oct 25, 2019
d549a34
tools: update ESLint to 6.6.0
cjihrig Oct 25, 2019
d05f67c
cli: whitelist new V8 flag in NODE_OPTIONS
codebytere Oct 23, 2019
87f14e1
stream: extract Readable.from in its own file
mcollina Oct 26, 2019
98c8f76
src: split up InitializeContext
codebytere Oct 22, 2019
403a648
doc: fix numbering in require algorithm
hybrist Oct 25, 2019
978946e
doc,meta: prefer aliases and stubs over Runtime Deprecations
Trott Oct 28, 2019
2505f67
http: support readable hwm in IncomingMessage
cjihrig Oct 26, 2019
dfb4a24
doc: fix an error in resolution algorithm steps
Oct 11, 2019
a48d179
doc: add options description for send APIs
dev-script Oct 7, 2019
3709b5c
doc: move inactive Collaborators to emeriti
Trott Oct 30, 2019
e312448
deps: update npm to 6.12.1
Oct 29, 2019
1499a72
doc: improve doc Http2Session:Timeout
dev-script Oct 29, 2019
b255688
build: fix pkg-config search for libnghttp2
bnoordhuis Oct 27, 2019
ae81360
doc: update AUTHORS list
targos Oct 27, 2019
ec7b69f
src: change env.h includes for forward declarations
alferpal Oct 26, 2019
14981f5
tools: git rm -r tools/v8_gypfiles/broken
cclauss Oct 27, 2019
5469811
build: find Python syntax errors in dependencies
cclauss Oct 27, 2019
104bfb9
deps: V8: cherry-pick e5dbc95
Oct 30, 2019
bcbcce5
tools: undefined name opts -> args in gyptest.py
cclauss Oct 27, 2019
e2fb353
tools: use print() function in buildbot_run.py
cclauss Oct 27, 2019
348ec69
tools: fix Python 3 syntax error in mac_tool.py
cclauss Oct 27, 2019
f8fb2c0
doc: linkify `.fork()` in cluster documentation
addaleax Oct 29, 2019
050efeb
meta: use contact_links instead of issue templates
targos Oct 30, 2019
a0df91c
src: expose granular SetIsolateUpForNode
codebytere Oct 26, 2019
cc1cd2b
src: isolate->Dispose() order consistency
codebytere Oct 30, 2019
03827dd
build: allow Python 3.8
targos Oct 31, 2019
b7070f3
doc: explain http2 aborted event callback
dev-script Oct 30, 2019
201a60e
doc: linkify `.setupMaster()` in cluster doc
trivikr Nov 1, 2019
fc407bb
doc: add missing hash for header link
nschonni Oct 31, 2019
68e4b5a
tools: fix Python 3 deprecation warning in test.py
Hellzed Nov 1, 2019
46c9194
deps: V8: cherry-pick a7dffcd767be
cclauss Nov 3, 2019
8860bd6
buffer: improve performance caused by primordials
jizusun Nov 3, 2019
49e7f04
build: add workaround for WSL
gengjiawen Nov 2, 2019
1bded98
build: fix detection of Visual Studio 2017
richardlau Oct 25, 2019
64eacd8
2019-11-05, Version 13.1.0 (Current)
targos Nov 5, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
doc: remove dashes
The use of dashes -- in general, but especially in our docs -- can be
problematic. It is used inconsistently and there is always another form
of punctuation that is as good or better for the situation. In an effort
to reduce the number of variations we use to display the same types of
information, remove the various uses of dashes from the documentation.

PR-URL: #30101
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
Trott authored and targos committed Oct 28, 2019
commit 45c70a9793afb62f7441684e063ea6ef9f578782
7 changes: 3 additions & 4 deletions doc/api/addons.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ provide an interface between JavaScript running in Node.js and C/C++ libraries.
There are three options for implementing Addons: N-API, nan, or direct
use of internal V8, libuv and Node.js libraries. Unless you need direct
access to functionality which is not exposed by N-API, use N-API.
Refer to the section [C/C++ Addons - N-API](n-api.html)
for more information on N-API.
Refer to [C/C++ Addons with N-API](n-api.html) for more information on N-API.

When not using N-API, implementing Addons is complicated,
involving knowledge of several components and APIs:
Expand Down Expand Up @@ -435,8 +434,8 @@ NAPI_MODULE(NODE_GYP_MODULE_NAME, init)
} // namespace demo
```

The functions available and how to use them are documented in the
section titled [C/C++ Addons - N-API](n-api.html).
The functions available and how to use them are documented in
[C/C++ Addons with N-API](n-api.html).

## Addon examples

Expand Down
20 changes: 10 additions & 10 deletions doc/api/buffer.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,28 +182,28 @@ console.log(Buffer.from('fhqwhgads', 'utf16le'));

The character encodings currently supported by Node.js include:

* `'ascii'` - For 7-bit ASCII data only. This encoding is fast and will strip
* `'ascii'`: For 7-bit ASCII data only. This encoding is fast and will strip
the high bit if set.

* `'utf8'` - Multibyte encoded Unicode characters. Many web pages and other
* `'utf8'`: Multibyte encoded Unicode characters. Many web pages and other
document formats use UTF-8.

* `'utf16le'` - 2 or 4 bytes, little-endian encoded Unicode characters.
* `'utf16le'`: 2 or 4 bytes, little-endian encoded Unicode characters.
Surrogate pairs (U+10000 to U+10FFFF) are supported.

* `'ucs2'` - Alias of `'utf16le'`.
* `'ucs2'`: Alias of `'utf16le'`.

* `'base64'` - Base64 encoding. When creating a `Buffer` from a string,
* `'base64'`: Base64 encoding. When creating a `Buffer` from a string,
this encoding will also correctly accept "URL and Filename Safe Alphabet" as
specified in [RFC 4648, Section 5][].

* `'latin1'` - A way of encoding the `Buffer` into a one-byte encoded string
* `'latin1'`: A way of encoding the `Buffer` into a one-byte encoded string
(as defined by the IANA in [RFC 1345][],
page 63, to be the Latin-1 supplement block and C0/C1 control codes).

* `'binary'` - Alias for `'latin1'`.
* `'binary'`: Alias for `'latin1'`.

* `'hex'` - Encode each byte as two hexadecimal characters.
* `'hex'`: Encode each byte as two hexadecimal characters.

Modern Web browsers follow the [WHATWG Encoding Standard][] which aliases
both `'latin1'` and `'ISO-8859-1'` to `'win-1252'`. This means that while doing
Expand Down Expand Up @@ -1003,8 +1003,8 @@ The index operator `[index]` can be used to get and set the octet at position
range is between `0x00` and `0xFF` (hex) or `0` and `255` (decimal).

This operator is inherited from `Uint8Array`, so its behavior on out-of-bounds
access is the same as `UInt8Array` - that is, getting returns `undefined` and
setting does nothing.
access is the same as `UInt8Array`. In other words, getting returns `undefined`
and setting does nothing.

```js
// Copy an ASCII string into a `Buffer` one byte at a time.
Expand Down
26 changes: 13 additions & 13 deletions doc/api/child_process.md
Original file line number Diff line number Diff line change
Expand Up @@ -599,21 +599,21 @@ equal to `['pipe', 'pipe', 'pipe']`.

For convenience, `options.stdio` may be one of the following strings:

* `'pipe'` - equivalent to `['pipe', 'pipe', 'pipe']` (the default)
* `'ignore'` - equivalent to `['ignore', 'ignore', 'ignore']`
* `'inherit'` - equivalent to `['inherit', 'inherit', 'inherit']` or `[0, 1, 2]`
* `'pipe'`: equivalent to `['pipe', 'pipe', 'pipe']` (the default)
* `'ignore'`: equivalent to `['ignore', 'ignore', 'ignore']`
* `'inherit'`: equivalent to `['inherit', 'inherit', 'inherit']` or `[0, 1, 2]`

Otherwise, the value of `options.stdio` is an array where each index corresponds
to an fd in the child. The fds 0, 1, and 2 correspond to stdin, stdout,
and stderr, respectively. Additional fds can be specified to create additional
pipes between the parent and child. The value is one of the following:

1. `'pipe'` - Create a pipe between the child process and the parent process.
1. `'pipe'`: Create a pipe between the child process and the parent process.
The parent end of the pipe is exposed to the parent as a property on the
`child_process` object as [`subprocess.stdio[fd]`][`subprocess.stdio`]. Pipes
created for fds 0 - 2 are also available as [`subprocess.stdin`][],
created for fds 0, 1, and 2 are also available as [`subprocess.stdin`][],
[`subprocess.stdout`][] and [`subprocess.stderr`][], respectively.
2. `'ipc'` - Create an IPC channel for passing messages/file descriptors
2. `'ipc'`: Create an IPC channel for passing messages/file descriptors
between parent and child. A [`ChildProcess`][] may have at most one IPC
stdio file descriptor. Setting this option enables the
[`subprocess.send()`][] method. If the child is a Node.js process, the
Expand All @@ -624,25 +624,25 @@ pipes between the parent and child. The value is one of the following:
Accessing the IPC channel fd in any way other than [`process.send()`][]
or using the IPC channel with a child process that is not a Node.js instance
is not supported.
3. `'ignore'` - Instructs Node.js to ignore the fd in the child. While Node.js
will always open fds 0 - 2 for the processes it spawns, setting the fd to
`'ignore'` will cause Node.js to open `/dev/null` and attach it to the
3. `'ignore'`: Instructs Node.js to ignore the fd in the child. While Node.js
will always open fds 0, 1, and 2 for the processes it spawns, setting the fd
to `'ignore'` will cause Node.js to open `/dev/null` and attach it to the
child's fd.
4. `'inherit'` - Pass through the corresponding stdio stream to/from the
4. `'inherit'`: Pass through the corresponding stdio stream to/from the
parent process. In the first three positions, this is equivalent to
`process.stdin`, `process.stdout`, and `process.stderr`, respectively. In
any other position, equivalent to `'ignore'`.
5. {Stream} object - Share a readable or writable stream that refers to a tty,
5. {Stream} object: Share a readable or writable stream that refers to a tty,
file, socket, or a pipe with the child process. The stream's underlying
file descriptor is duplicated in the child process to the fd that
corresponds to the index in the `stdio` array. The stream must have an
underlying descriptor (file streams do not until the `'open'` event has
occurred).
6. Positive integer - The integer value is interpreted as a file descriptor
6. Positive integer: The integer value is interpreted as a file descriptor
that is currently open in the parent process. It is shared with the child
process, similar to how {Stream} objects can be shared. Passing sockets
is not supported on Windows.
7. `null`, `undefined` - Use default value. For stdio fds 0, 1, and 2 (in other
7. `null`, `undefined`: Use default value. For stdio fds 0, 1, and 2 (in other
words, stdin, stdout, and stderr) a pipe is created. For fd 3 and up, the
default is `'ignore'`.

Expand Down
2 changes: 1 addition & 1 deletion doc/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ For example, `--pending-deprecation` is equivalent to `--pending_deprecation`.
added: v8.0.0
-->

Alias for stdin, analogous to the use of - in other command line utilities,
Alias for stdin. Analogous to the use of `-` in other command line utilities,
meaning that the script will be read from stdin, and the rest of the options
are passed to that script.

Expand Down
16 changes: 8 additions & 8 deletions doc/api/crypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -1417,15 +1417,15 @@ If `privateKey` is not a [`KeyObject`][], this function behaves as if
`privateKey` had been passed to [`crypto.createPrivateKey()`][]. If it is an
object, the following additional properties can be passed:

* `padding`: {integer} - Optional padding value for RSA, one of the following:
* `padding` {integer} Optional padding value for RSA, one of the following:
* `crypto.constants.RSA_PKCS1_PADDING` (default)
* `crypto.constants.RSA_PKCS1_PSS_PADDING`

`RSA_PKCS1_PSS_PADDING` will use MGF1 with the same hash function
used to sign the message as specified in section 3.1 of [RFC 4055][], unless
an MGF1 hash function has been specified as part of the key in compliance with
section 3.3 of [RFC 4055][].
* `saltLength`: {integer} - salt length for when padding is
* `saltLength` {integer} Salt length for when padding is
`RSA_PKCS1_PSS_PADDING`. The special value
`crypto.constants.RSA_PSS_SALTLEN_DIGEST` sets the salt length to the digest
size, `crypto.constants.RSA_PSS_SALTLEN_MAX_SIGN` (default) sets it to the
Expand Down Expand Up @@ -1526,15 +1526,15 @@ If `object` is not a [`KeyObject`][], this function behaves as if
`object` had been passed to [`crypto.createPublicKey()`][]. If it is an
object, the following additional properties can be passed:

* `padding`: {integer} - Optional padding value for RSA, one of the following:
* `padding` {integer} Optional padding value for RSA, one of the following:
* `crypto.constants.RSA_PKCS1_PADDING` (default)
* `crypto.constants.RSA_PKCS1_PSS_PADDING`

`RSA_PKCS1_PSS_PADDING` will use MGF1 with the same hash function
used to verify the message as specified in section 3.1 of [RFC 4055][], unless
an MGF1 hash function has been specified as part of the key in compliance with
section 3.3 of [RFC 4055][].
* `saltLength`: {integer} - salt length for when padding is
* `saltLength` {integer} Salt length for when padding is
`RSA_PKCS1_PSS_PADDING`. The special value
`crypto.constants.RSA_PSS_SALTLEN_DIGEST` sets the salt length to the digest
size, `crypto.constants.RSA_PSS_SALTLEN_AUTO` (default) causes it to be
Expand Down Expand Up @@ -2891,13 +2891,13 @@ If `key` is not a [`KeyObject`][], this function behaves as if `key` had been
passed to [`crypto.createPrivateKey()`][]. If it is an object, the following
additional properties can be passed:

* `padding`: {integer} - Optional padding value for RSA, one of the following:
* `padding` {integer} Optional padding value for RSA, one of the following:
* `crypto.constants.RSA_PKCS1_PADDING` (default)
* `crypto.constants.RSA_PKCS1_PSS_PADDING`

`RSA_PKCS1_PSS_PADDING` will use MGF1 with the same hash function
used to sign the message as specified in section 3.1 of [RFC 4055][].
* `saltLength`: {integer} - salt length for when padding is
* `saltLength` {integer} Salt length for when padding is
`RSA_PKCS1_PSS_PADDING`. The special value
`crypto.constants.RSA_PSS_SALTLEN_DIGEST` sets the salt length to the digest
size, `crypto.constants.RSA_PSS_SALTLEN_MAX_SIGN` (default) sets it to the
Expand Down Expand Up @@ -2944,13 +2944,13 @@ If `key` is not a [`KeyObject`][], this function behaves as if `key` had been
passed to [`crypto.createPublicKey()`][]. If it is an object, the following
additional properties can be passed:

* `padding`: {integer} - Optional padding value for RSA, one of the following:
* `padding` {integer} Optional padding value for RSA, one of the following:
* `crypto.constants.RSA_PKCS1_PADDING` (default)
* `crypto.constants.RSA_PKCS1_PSS_PADDING`

`RSA_PKCS1_PSS_PADDING` will use MGF1 with the same hash function
used to sign the message as specified in section 3.1 of [RFC 4055][].
* `saltLength`: {integer} - salt length for when padding is
* `saltLength` {integer} Salt length for when padding is
`RSA_PKCS1_PSS_PADDING`. The special value
`crypto.constants.RSA_PSS_SALTLEN_DIGEST` sets the salt length to the digest
size, `crypto.constants.RSA_PSS_SALTLEN_MAX_SIGN` (default) sets it to the
Expand Down
44 changes: 22 additions & 22 deletions doc/api/debugger.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,21 +104,21 @@ To begin watching an expression, type `watch('my_expression')`. The command

### Stepping

* `cont`, `c` - Continue execution
* `next`, `n` - Step next
* `step`, `s` - Step in
* `out`, `o` - Step out
* `pause` - Pause running code (like pause button in Developer Tools)
* `cont`, `c`: Continue execution
* `next`, `n`: Step next
* `step`, `s`: Step in
* `out`, `o`: Step out
* `pause`: Pause running code (like pause button in Developer Tools)

### Breakpoints

* `setBreakpoint()`, `sb()` - Set breakpoint on current line
* `setBreakpoint(line)`, `sb(line)` - Set breakpoint on specific line
* `setBreakpoint('fn()')`, `sb(...)` - Set breakpoint on a first statement in
* `setBreakpoint()`, `sb()`: Set breakpoint on current line
* `setBreakpoint(line)`, `sb(line)`: Set breakpoint on specific line
* `setBreakpoint('fn()')`, `sb(...)`: Set breakpoint on a first statement in
functions body
* `setBreakpoint('script.js', 1)`, `sb(...)` - Set breakpoint on first line of
* `setBreakpoint('script.js', 1)`, `sb(...)`: Set breakpoint on first line of
`script.js`
* `clearBreakpoint('script.js', 1)`, `cb(...)` - Clear breakpoint in `script.js`
* `clearBreakpoint('script.js', 1)`, `cb(...)`: Clear breakpoint in `script.js`
on line 1

It is also possible to set a breakpoint in a file (module) that
Expand Down Expand Up @@ -147,26 +147,26 @@ debug>

### Information

* `backtrace`, `bt` - Print backtrace of current execution frame
* `list(5)` - List scripts source code with 5 line context (5 lines before and
* `backtrace`, `bt`: Print backtrace of current execution frame
* `list(5)`: List scripts source code with 5 line context (5 lines before and
after)
* `watch(expr)` - Add expression to watch list
* `unwatch(expr)` - Remove expression from watch list
* `watchers` - List all watchers and their values (automatically listed on each
* `watch(expr)`: Add expression to watch list
* `unwatch(expr)`: Remove expression from watch list
* `watchers`: List all watchers and their values (automatically listed on each
breakpoint)
* `repl` - Open debugger's repl for evaluation in debugging script's context
* `exec expr` - Execute an expression in debugging script's context
* `repl`: Open debugger's repl for evaluation in debugging script's context
* `exec expr`: Execute an expression in debugging script's context

### Execution control

* `run` - Run script (automatically runs on debugger's start)
* `restart` - Restart script
* `kill` - Kill script
* `run`: Run script (automatically runs on debugger's start)
* `restart`: Restart script
* `kill`: Kill script

### Various

* `scripts` - List all loaded scripts
* `version` - Display V8's version
* `scripts`: List all loaded scripts
* `version`: Display V8's version

## Advanced Usage

Expand Down
12 changes: 6 additions & 6 deletions doc/api/deprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,17 +141,17 @@ API usability issues that can lead to accidental security issues.
As an alternative, use one of the following methods of constructing `Buffer`
objects:

* [`Buffer.alloc(size[, fill[, encoding]])`][alloc] - Create a `Buffer` with
* [`Buffer.alloc(size[, fill[, encoding]])`][alloc]: Create a `Buffer` with
*initialized* memory.
* [`Buffer.allocUnsafe(size)`][alloc_unsafe_size] - Create a `Buffer` with
* [`Buffer.allocUnsafe(size)`][alloc_unsafe_size]: Create a `Buffer` with
*uninitialized* memory.
* [`Buffer.allocUnsafeSlow(size)`][] - Create a `Buffer` with *uninitialized*
* [`Buffer.allocUnsafeSlow(size)`][]: Create a `Buffer` with *uninitialized*
memory.
* [`Buffer.from(array)`][] - Create a `Buffer` with a copy of `array`
* [`Buffer.from(array)`][]: Create a `Buffer` with a copy of `array`
* [`Buffer.from(arrayBuffer[, byteOffset[, length]])`][from_arraybuffer] -
Create a `Buffer` that wraps the given `arrayBuffer`.
* [`Buffer.from(buffer)`][] - Create a `Buffer` that copies `buffer`.
* [`Buffer.from(string[, encoding])`][from_string_encoding] - Create a `Buffer`
* [`Buffer.from(buffer)`][]: Create a `Buffer` that copies `buffer`.
* [`Buffer.from(string[, encoding])`][from_string_encoding]: Create a `Buffer`
that copies `string`.

Without `--pending-deprecation`, runtime warnings occur only for code not in
Expand Down
8 changes: 4 additions & 4 deletions doc/api/dgram.md
Original file line number Diff line number Diff line change
Expand Up @@ -706,8 +706,8 @@ changes:
* `ipv6Only` {boolean} Setting `ipv6Only` to `true` will
disable dual-stack support, i.e., binding to address `::` won't make
`0.0.0.0` be bound. **Default:** `false`.
* `recvBufferSize` {number} - Sets the `SO_RCVBUF` socket value.
* `sendBufferSize` {number} - Sets the `SO_SNDBUF` socket value.
* `recvBufferSize` {number} Sets the `SO_RCVBUF` socket value.
* `sendBufferSize` {number} Sets the `SO_SNDBUF` socket value.
* `lookup` {Function} Custom lookup function. **Default:** [`dns.lookup()`][].
* `callback` {Function} Attached as a listener for `'message'` events. Optional.
* Returns: {dgram.Socket}
Expand All @@ -725,8 +725,8 @@ and port can be retrieved using [`socket.address().address`][] and
added: v0.1.99
-->

* `type` {string} - Either `'udp4'` or `'udp6'`.
* `callback` {Function} - Attached as a listener to `'message'` events.
* `type` {string} Either `'udp4'` or `'udp6'`.
* `callback` {Function} Attached as a listener to `'message'` events.
* Returns: {dgram.Socket}

Creates a `dgram.Socket` object of the specified `type`.
Expand Down
2 changes: 1 addition & 1 deletion doc/api/esm.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ throw when an attempt is made to import them:

```js
import submodule from 'es-module-package/private-module.js';
// Throws - Module not found
// Throws ERR_MODULE_NOT_FOUND
```

> Note: this is not a strong encapsulation as any private modules can still be
Expand Down
Loading