Skip to content

Commit add0fdb

Browse files
committed
Fix typos
1 parent 83f7ddc commit add0fdb

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

dist/index.mjs

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ class Summary {
756756
/**
757757
* If the summary buffer is empty
758758
*
759-
* @returns {boolen} true if the buffer is empty
759+
* @returns {boolean} true if the buffer is empty
760760
*/
761761
isEmptyBuffer() {
762762
return this._buffer.length === 0;
@@ -845,10 +845,10 @@ class Summary {
845845
return this.addRaw(element).addEOL();
846846
}
847847
/**
848-
* Adds a collapsable HTML details element to the summary buffer
848+
* Adds a collapsible HTML details element to the summary buffer
849849
*
850850
* @param {string} label text for the closed state
851-
* @param {string} content collapsable content
851+
* @param {string} content collapsible content
852852
*
853853
* @returns {Summary} summary instance
854854
*/
@@ -5915,7 +5915,7 @@ class Client extends DispatcherBase {
59155915
}
59165916

59175917
if (maxConcurrentStreams != null && (typeof maxConcurrentStreams !== 'number' || maxConcurrentStreams < 1)) {
5918-
throw new InvalidArgumentError('maxConcurrentStreams must be a possitive integer, greater than 0')
5918+
throw new InvalidArgumentError('maxConcurrentStreams must be a positive integer, greater than 0')
59195919
}
59205920

59215921
if (typeof connect !== 'function') {
@@ -5962,7 +5962,7 @@ class Client extends DispatcherBase {
59625962
? null
59635963
: {
59645964
// streams: null, // Fixed queue of streams - For future support of `push`
5965-
openStreams: 0, // Keep track of them to decide wether or not unref the session
5965+
openStreams: 0, // Keep track of them to decide whether or not unref the session
59665966
maxConcurrentStreams: maxConcurrentStreams != null ? maxConcurrentStreams : 100 // Max peerConcurrentStreams for a Node h2 server
59675967
}
59685968
this[kHost] = `${this[kUrl].hostname}${this[kUrl].port ? `:${this[kUrl].port}` : ''}`
@@ -7372,7 +7372,7 @@ function writeH2 (client, session, request) {
73727372
}
73737373

73747374
// https://tools.ietf.org/html/rfc7540#section-8.3
7375-
// :path and :scheme headers must be omited when sending CONNECT
7375+
// :path and :scheme headers must be omitted when sending CONNECT
73767376

73777377
headers[HTTP2_HEADER_PATH] = path
73787378
headers[HTTP2_HEADER_SCHEME] = 'https'
@@ -7499,7 +7499,7 @@ function writeH2 (client, session, request) {
74997499
// })
75007500

75017501
// stream.on('push', headers => {
7502-
// // TODO(HTTP/2): Suppor push
7502+
// // TODO(HTTP/2): Support push
75037503
// })
75047504

75057505
// stream.on('trailers', headers => {
@@ -10712,7 +10712,7 @@ function extractBody (object, keepalive = false) {
1071210712

1071310713
// Set action to this step: run the multipart/form-data
1071410714
// encoding algorithm, with object’s entry list and UTF-8.
10715-
// - This ensures that the body is immutable and can't be changed afterwords
10715+
// - This ensures that the body is immutable and can't be changed afterwards
1071610716
// - That the content-length is calculated in advance.
1071710717
// - And that all parts are pre-encoded and ready to be sent.
1071810718

@@ -11279,7 +11279,7 @@ const requestDuplex = [
1127911279
'half'
1128011280
]
1128111281

11282-
// http://fetch.spec.whatwg.org/#forbidden-method
11282+
// https://fetch.spec.whatwg.org/#forbidden-method
1128311283
const forbiddenMethods = ['CONNECT', 'TRACE', 'TRACK']
1128411284
const forbiddenMethodsSet = new Set(forbiddenMethods)
1128511285

@@ -11908,7 +11908,7 @@ function serializeAMimeType (mimeType) {
1190811908
// 4. If value does not solely contain HTTP token code
1190911909
// points or value is the empty string, then:
1191011910
if (!HTTP_TOKEN_CODEPOINTS.test(value)) {
11911-
// 1. Precede each occurence of U+0022 (") or
11911+
// 1. Precede each occurrence of U+0022 (") or
1191211912
// U+005C (\) in value with U+005C (\).
1191311913
value = value.replace(/(\\|")/g, '\\$1')
1191411914

@@ -13669,9 +13669,9 @@ function fetching ({
1366913669
// 5. Let timingInfo be a new fetch timing info whose start time and
1367013670
// post-redirect start time are the coarsened shared current time given
1367113671
// crossOriginIsolatedCapability.
13672-
const currenTime = coarsenedSharedCurrentTime(crossOriginIsolatedCapability)
13672+
const currentTime = coarsenedSharedCurrentTime(crossOriginIsolatedCapability)
1367313673
const timingInfo = createOpaqueTimingInfo({
13674-
startTime: currenTime
13674+
startTime: currentTime
1367513675
})
1367613676

1367713677
// 6. Let fetchParams be a new fetch params whose
@@ -16093,7 +16093,7 @@ class Request {
1609316093
}
1609416094

1609516095
// Returns a boolean indicating whether or not request is for a history
16096-
// navigation (a.k.a. back-foward navigation).
16096+
// navigation (a.k.a. back-forward navigation).
1609716097
get isHistoryNavigation () {
1609816098
webidl.brandCheck(this, Request)
1609916099

@@ -20064,8 +20064,8 @@ class RedirectHandler {
2006420064

2006520065
For status 300, which is "Multiple Choices", the spec mentions both generating a Location
2006620066
response header AND a response body with the other possible location to follow.
20067-
Since the spec explicitily chooses not to specify a format for such body and leave it to
20068-
servers and browsers implementors, we ignore the body as there is no specified way to eventually parse it.
20067+
Since the spec explicitly chooses not to specify a format for such body and leave it to
20068+
servers and browsers implementers, we ignore the body as there is no specified way to eventually parse it.
2006920069
*/
2007020070
} else {
2007120071
return this.handler.onData(chunk)
@@ -20080,7 +20080,7 @@ class RedirectHandler {
2008020080
TLDR: undici always ignores 3xx response trailers as they are not expected in case of redirections
2008120081
and neither are useful if present.
2008220082

20083-
See comment on onData method above for more detailed informations.
20083+
See comment on onData method above for more detailed information.
2008420084
*/
2008520085

2008620086
this.location = null
@@ -24911,7 +24911,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
2491124911
// **`v1()` - Generate time-based UUID**
2491224912
//
2491324913
// Inspired by https://github.com/LiosK/UUID.js
24914-
// and http://docs.python.org/library/uuid.html
24914+
// and https://docs.python.org/library/uuid.html
2491524915
let _nodeId;
2491624916

2491724917
let _clockseq; // Previous uuid creation time
@@ -26237,7 +26237,7 @@ module.exports.Dicer = Dicer
2623726237
// TODO:
2623826238
// * support 1 nested multipart level
2623926239
// (see second multipart example here:
26240-
// http://www.w3.org/TR/html401/interact/forms.html#didx-multipartform-data)
26240+
// https://www.w3.org/TR/html401/interact/forms.html#didx-multipartform-data)
2624126241
// * support limits.fieldNameSize
2624226242
// -- this will require modifications to utils.parseParams
2624326243

0 commit comments

Comments
 (0)