Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dist/index.js: Fix typos discovered by codespell #36

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
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
38 changes: 19 additions & 19 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ class Summary {
/**
* If the summary buffer is empty
*
* @returns {boolen} true if the buffer is empty
* @returns {boolean} true if the buffer is empty
*/
isEmptyBuffer() {
return this._buffer.length === 0;
Expand Down Expand Up @@ -851,10 +851,10 @@ class Summary {
return this.addRaw(element).addEOL();
}
/**
* Adds a collapsable HTML details element to the summary buffer
* Adds a collapsible HTML details element to the summary buffer
*
* @param {string} label text for the closed state
* @param {string} content collapsable content
* @param {string} content collapsible content
*
* @returns {Summary} summary instance
*/
Expand Down Expand Up @@ -2573,7 +2573,7 @@ module.exports = function () {
get offset () { return _offset },
set offset (val) { _offset = val },

get encripted () { return (_flags & 1) === 1 },
get encrypted () { return (_flags & 1) === 1 },
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code change! Careful review, please.


get entryHeaderSize () {
return Constants.CENHDR + _fnameLen + _extraLen + _comLen;
Expand Down Expand Up @@ -3032,7 +3032,7 @@ module.exports = {
IBM_LZ77 : 19, //IBM LZ77 z

/* General purpose bit flag */
FLG_ENC : 0, // encripted file
FLG_ENC : 0, // encrypted file
FLG_COMP1 : 1, // compression option
FLG_COMP2 : 2, // compression option
FLG_DESC : 4, // data descriptor
Expand Down Expand Up @@ -9897,7 +9897,7 @@ class Client extends DispatcherBase {
}

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

if (typeof connect !== 'function') {
Expand Down Expand Up @@ -11140,7 +11140,7 @@ function write (client, request) {
// Sending a payload body on a request that does not
// expect it can cause undefined behavior on some
// servers and corrupt connection state. Do not
// re-use the connection for further requests.
// reuse the connection for further requests.

const expectsPayload = (
method === 'PUT' ||
Expand Down Expand Up @@ -11354,7 +11354,7 @@ function writeH2 (client, session, request) {
}

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

headers[HTTP2_HEADER_PATH] = path
headers[HTTP2_HEADER_SCHEME] = 'https'
Expand All @@ -11366,7 +11366,7 @@ function writeH2 (client, session, request) {
// Sending a payload body on a request that does not
// expect it can cause undefined behavior on some
// servers and corrupt connection state. Do not
// re-use the connection for further requests.
// reuse the connection for further requests.

const expectsPayload = (
method === 'PUT' ||
Expand Down Expand Up @@ -11481,7 +11481,7 @@ function writeH2 (client, session, request) {
// })

// stream.on('push', headers => {
// // TODO(HTTP/2): Suppor push
// // TODO(HTTP/2): Support push
// })

// stream.on('trailers', headers => {
Expand Down Expand Up @@ -12838,10 +12838,10 @@ const { InvalidArgumentError, ConnectTimeoutError } = __nccwpck_require__(8045)

let tls // include tls conditionally since it is not always available

// TODO: session re-use does not wait for the first
// TODO: session reuse does not wait for the first
// connection to resolve the session and might therefore
// resolve the same servername multiple times even when
// re-use is enabled.
// reuse is enabled.

let SessionCache
// FIXME: remove workaround when the Node bug is fixed
Expand Down Expand Up @@ -14297,7 +14297,7 @@ function validateHandler (handler, method, upgrade) {
}

// A body is disturbed if it has been read from and it cannot
// be re-used without losing state or data.
// be reused without losing state or data.
function isDisturbed (body) {
return !!(body && (
stream.isDisturbed
Expand Down Expand Up @@ -14843,7 +14843,7 @@ function extractBody (object, keepalive = false) {

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

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

Expand Down Expand Up @@ -24219,7 +24219,7 @@ class RedirectHandler {
!ArrayBuffer.isView(this.opts.body) &&
util.isIterable(this.opts.body)
) {
// TODO: Should we allow re-using iterable if !this.opts.idempotent
// TODO: Should we allow reusing iterable if !this.opts.idempotent
// or through some other flag?
this.opts.body = new BodyAsyncIterable(this.opts.body)
}
Expand Down Expand Up @@ -24287,8 +24287,8 @@ class RedirectHandler {

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

See comment on onData method above for more detailed informations.
See comment on onData method above for more detailed information.
*/

this.location = null
Expand Down