Skip to content

Commit

Permalink
chore: fix some typos (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
striezel committed Feb 13, 2024
1 parent d4d3cd0 commit d494f89
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions packages/degenerator/README.md
Expand Up @@ -44,7 +44,7 @@ function myFn() {
}
```

Now we can compile this into an asyncronous function, implement the
Now we can compile this into an asynchronous function, implement the
async `get()` function, and finally evaluate it into a real JavaScript function
instance with the `vm` module:

Expand Down Expand Up @@ -87,4 +87,4 @@ API

### degenerator(code: string, names: Array<string|RegExp>): String

Returns a "degeneratorified" JavaScript string, with `async`/`await` transplanted.
Returns a "degeneratorified" JavaScript string, with `async`/`await` transplanted.
2 changes: 1 addition & 1 deletion packages/get-uri/README.md
Expand Up @@ -55,7 +55,7 @@ Cacheability

When calling `getUri()` with the same URI multiple times, the `get-uri` module
supports sending an indicator that the remote resource has not been modified
since the last time it has been retreived from that node process.
since the last time it has been retrieved from that node process.

To do this, define a `cache` property on the "options object" argument
with the value set to the `stream.Readable` instance that was previously
Expand Down
4 changes: 2 additions & 2 deletions packages/get-uri/src/index.ts
Expand Up @@ -47,10 +47,10 @@ export function isValidProtocol(p: string): p is keyof Protocols {
*
* For caching purposes, you can pass in a `stream` instance from a previous
* `getUri()` call as a `cache: stream` option, and if the destination has
* not changed since the last time the endpoint was retreived then the callback
* not changed since the last time the endpoint was retrieved then the callback
* will be invoked with an Error object with `code` set to "ENOTMODIFIED" and
* `null` for the "stream" instance argument. In this case, you can skip
* retreiving the file again and continue to use the previous payload.
* retrieving the file again and continue to use the previous payload.
*
* @param {String} uri URI to retrieve
* @param {Object} opts optional "options" object
Expand Down
2 changes: 1 addition & 1 deletion packages/pac-resolver/src/weekdayRange.ts
Expand Up @@ -7,7 +7,7 @@ const weekdays: Weekday[] = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT'];
* Only the first parameter is mandatory. Either the second, the third, or both
* may be left out.
*
* If only one parameter is present, the function yeilds a true value on the
* If only one parameter is present, the function yields a true value on the
* weekday that the parameter represents. If the string "GMT" is specified as
* a second parameter, times are taken to be in GMT, otherwise in local timezone.
*
Expand Down
4 changes: 2 additions & 2 deletions packages/proxy/src/proxy.ts
Expand Up @@ -91,7 +91,7 @@ async function onrequest(
if (!success) return requestAuthorization(req, res);
} catch (_err: unknown) {
const err = _err as Error;
// an error occured during login!
// an error occurred during login!
res.writeHead(500);
res.end((err.stack || err.message || err) + '\n');
return;
Expand Down Expand Up @@ -401,7 +401,7 @@ async function onconnect(
if (!success) return requestAuthorization(req, res);
} catch (_err) {
const err = _err as Error;
// an error occured during login!
// an error occurred during login!
res.writeHead(500);
res.end((err.stack || err.message || err) + '\n');
return;
Expand Down

0 comments on commit d494f89

Please sign in to comment.