Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
10 changes: 5 additions & 5 deletions doc/api/buffer.md
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ added:
- v14.18.0
-->

* Type: {string}
* {string}

The content-type of the `Blob`.

Expand Down Expand Up @@ -5143,7 +5143,7 @@ added:
- v18.13.0
-->

* Type: {string}
* {string}

The name of the `File`.

Expand All @@ -5155,7 +5155,7 @@ added:
- v18.13.0
-->

* Type: {number}
* {number}

The last modified date of the `File`.

Expand Down Expand Up @@ -5221,7 +5221,7 @@ added:
- v18.15.0
-->

* input {Buffer | ArrayBuffer | TypedArray} The input to validate.
* `input` {Buffer | ArrayBuffer | TypedArray} The input to validate.
* Returns: {boolean}

This function returns `true` if `input` contains only valid ASCII-encoded data,
Expand All @@ -5237,7 +5237,7 @@ added:
- v18.14.0
-->

* input {Buffer | ArrayBuffer | TypedArray} The input to validate.
* `input` {Buffer | ArrayBuffer | TypedArray} The input to validate.
* Returns: {boolean}

This function returns `true` if `input` contains only valid UTF-8-encoded data,
Expand Down
42 changes: 21 additions & 21 deletions doc/api/crypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -2529,7 +2529,7 @@ added: v15.6.0
added: v15.6.0
-->

* Type: {boolean} Will be `true` if this is a Certificate Authority (CA)
* {boolean} Will be `true` if this is a Certificate Authority (CA)
certificate.

### `x509.checkEmail(email[, options])`
Expand Down Expand Up @@ -2687,7 +2687,7 @@ the given private key.
added: v15.6.0
-->

* Type: {string\[]}
* {string\[]}

An array detailing the key extended usages for this certificate.

Expand All @@ -2697,7 +2697,7 @@ An array detailing the key extended usages for this certificate.
added: v15.6.0
-->

* Type: {string}
* {string}

The SHA-1 fingerprint of this certificate.

Expand All @@ -2711,7 +2711,7 @@ certificates, consider using [`x509.fingerprint256`][] instead.
added: v15.6.0
-->

* Type: {string}
* {string}

The SHA-256 fingerprint of this certificate.

Expand All @@ -2723,7 +2723,7 @@ added:
- v16.14.0
-->

* Type: {string}
* {string}

The SHA-512 fingerprint of this certificate.

Expand All @@ -2746,7 +2746,7 @@ changes:
in response to CVE-2021-44532.
-->

* Type: {string}
* {string}

A textual representation of the certificate's authority information access
extension.
Expand All @@ -2767,7 +2767,7 @@ Third-party code should be prepared to handle both possible entry formats.
added: v15.6.0
-->

* Type: {string}
* {string}

The issuer identification included in this certificate.

Expand All @@ -2777,7 +2777,7 @@ The issuer identification included in this certificate.
added: v15.9.0
-->

* Type: {X509Certificate}
* {X509Certificate}

The issuer certificate or `undefined` if the issuer certificate is not
available.
Expand All @@ -2788,7 +2788,7 @@ available.
added: v15.6.0
-->

* Type: {KeyObject}
* {KeyObject}

The public key {KeyObject} for this certificate.

Expand All @@ -2798,7 +2798,7 @@ The public key {KeyObject} for this certificate.
added: v15.6.0
-->

* Type: {Buffer}
* {Buffer}

A `Buffer` containing the DER encoding of this certificate.

Expand All @@ -2808,7 +2808,7 @@ A `Buffer` containing the DER encoding of this certificate.
added: v15.6.0
-->

* Type: {string}
* {string}

The serial number of this certificate.

Expand All @@ -2822,7 +2822,7 @@ identifier instead.
added: v15.6.0
-->

* Type: {string}
* {string}

The complete subject of this certificate.

Expand All @@ -2839,7 +2839,7 @@ changes:
in response to CVE-2021-44532.
-->

* Type: {string}
* {string}

The subject alternative name specified for this certificate.

Expand All @@ -2864,7 +2864,7 @@ to handle both possible entry formats.
added: v15.6.0
-->

* Type: {string}
* {string}

There is no standard JSON encoding for X509 certificates. The
`toJSON()` method returns a string containing the PEM encoded
Expand All @@ -2876,7 +2876,7 @@ certificate.
added: v15.6.0
-->

* Type: {Object}
* {Object}

Returns information about this certificate using the legacy
[certificate object][] encoding.
Expand All @@ -2887,7 +2887,7 @@ Returns information about this certificate using the legacy
added: v15.6.0
-->

* Type: {string}
* {string}

Returns the PEM-encoded certificate.

Expand All @@ -2897,7 +2897,7 @@ Returns the PEM-encoded certificate.
added: v15.6.0
-->

* Type: {string}
* {string}

The date/time from which this certificate is valid.

Expand All @@ -2909,7 +2909,7 @@ added:
- v22.10.0
-->

* Type: {Date}
* {Date}

The date/time from which this certificate is valid, encapsulated in a `Date` object.

Expand All @@ -2919,7 +2919,7 @@ The date/time from which this certificate is valid, encapsulated in a `Date` obj
added: v15.6.0
-->

* Type: {string}
* {string}

The date/time until which this certificate is valid.

Expand All @@ -2931,7 +2931,7 @@ added:
- v22.10.0
-->

* Type: {Date}
* {Date}

The date/time until which this certificate is valid, encapsulated in a `Date` object.

Expand Down Expand Up @@ -5467,7 +5467,7 @@ If the `callback` function is provided this function uses libuv's threadpool.
added: v17.4.0
-->

* Type: {SubtleCrypto}
* {SubtleCrypto}

A convenient alias for [`crypto.webcrypto.subtle`][].

Expand Down
34 changes: 17 additions & 17 deletions doc/api/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -1984,11 +1984,11 @@ same options as `EventEmitter` and `AsyncResource` themselves.

### `eventemitterasyncresource.asyncId`

* Type: {number} The unique `asyncId` assigned to the resource.
* {number} The unique `asyncId` assigned to the resource.

### `eventemitterasyncresource.asyncResource`

* Type: The underlying {AsyncResource}.
* The underlying {AsyncResource}.

The returned `AsyncResource` object has an additional `eventEmitter` property
that provides a reference to this `EventEmitterAsyncResource`.
Expand All @@ -2002,7 +2002,7 @@ never be called.

### `eventemitterasyncresource.triggerAsyncId`

* Type: {number} The same `triggerAsyncId` that is passed to the
* {number} The same `triggerAsyncId` that is passed to the
`AsyncResource` constructor.

<a id="event-target-and-event-api"></a>
Expand Down Expand Up @@ -2159,7 +2159,7 @@ are created internally by Node.js.
added: v14.5.0
-->

* Type: {boolean} Always returns `false`.
* {boolean} Always returns `false`.

This is not used in Node.js and is provided purely for completeness.

Expand All @@ -2171,7 +2171,7 @@ added: v14.5.0

> Stability: 3 - Legacy: Use [`event.stopPropagation()`][] instead.

* Type: {boolean}
* {boolean}

Alias for `event.stopPropagation()` if set to `true`. This is not used
in Node.js and is provided purely for completeness.
Expand All @@ -2182,15 +2182,15 @@ in Node.js and is provided purely for completeness.
added: v14.5.0
-->

* Type: {boolean} True if the event was created with the `cancelable` option.
* {boolean} True if the event was created with the `cancelable` option.

#### `event.composed`

<!-- YAML
added: v14.5.0
-->

* Type: {boolean} Always returns `false`.
* {boolean} Always returns `false`.

This is not used in Node.js and is provided purely for completeness.

Expand All @@ -2210,7 +2210,7 @@ Node.js and is provided purely for completeness.
added: v14.5.0
-->

* Type: {EventTarget} The `EventTarget` dispatching the event.
* {EventTarget} The `EventTarget` dispatching the event.

Alias for `event.target`.

Expand All @@ -2220,7 +2220,7 @@ Alias for `event.target`.
added: v14.5.0
-->

* Type: {boolean}
* {boolean}

Is `true` if `cancelable` is `true` and `event.preventDefault()` has been
called.
Expand All @@ -2231,7 +2231,7 @@ called.
added: v14.5.0
-->

* Type: {number} Returns `0` while an event is not being dispatched, `2` while
* {number} Returns `0` while an event is not being dispatched, `2` while
it is being dispatched.

This is not used in Node.js and is provided purely for completeness.
Expand All @@ -2258,7 +2258,7 @@ This is not used in Node.js and is provided purely for completeness.
added: v14.5.0
-->

* Type: {boolean}
* {boolean}

The {AbortSignal} `"abort"` event is emitted with `isTrusted` set to `true`. The
value is `false` in all other cases.
Expand All @@ -2279,7 +2279,7 @@ added: v14.5.0

> Stability: 3 - Legacy: Use [`event.defaultPrevented`][] instead.

* Type: {boolean} True if the event has not been canceled.
* {boolean} True if the event has not been canceled.

The value of `event.returnValue` is always the opposite of `event.defaultPrevented`.
This is not used in Node.js and is provided purely for completeness.
Expand All @@ -2292,7 +2292,7 @@ added: v14.5.0

> Stability: 3 - Legacy: Use [`event.target`][] instead.

* Type: {EventTarget} The `EventTarget` dispatching the event.
* {EventTarget} The `EventTarget` dispatching the event.

Alias for `event.target`.

Expand All @@ -2318,15 +2318,15 @@ This is not used in Node.js and is provided purely for completeness.
added: v14.5.0
-->

* Type: {EventTarget} The `EventTarget` dispatching the event.
* {EventTarget} The `EventTarget` dispatching the event.

#### `event.timeStamp`

<!-- YAML
added: v14.5.0
-->

* Type: {number}
* {number}

The millisecond timestamp when the `Event` object was created.

Expand All @@ -2336,7 +2336,7 @@ The millisecond timestamp when the `Event` object was created.
added: v14.5.0
-->

* Type: {string}
* {string}

The event type identifier.

Expand Down Expand Up @@ -2467,7 +2467,7 @@ changes:
description: CustomEvent is now stable.
-->

* Type: {any} Returns custom data passed when initializing.
* {any} Returns custom data passed when initializing.

Read-only.

Expand Down
Loading
Loading