Skip to content

Commit 58f0dd6

Browse files
Apply suggestions from code review
Co-authored-by: hyperlint-ai[bot] <154288675+hyperlint-ai[bot]@users.noreply.github.com>
1 parent 8399376 commit 58f0dd6

File tree

13 files changed

+20
-20
lines changed

13 files changed

+20
-20
lines changed

src/content/docs/workers/miniflare/core/fetch.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ Whenever an HTTP request is made, a `Request` object is dispatched to your worke
1414
[`cf` object](/workers/runtime-apis/request#incomingrequestcfproperties).
1515
Miniflare will log the method, path, status, and the time it took to respond.
1616

17-
If the worker throws an error whilst generating a response, an error page
17+
If the Worker throws an error whilst generating a response, an error page
1818
containing the stack trace is returned instead. You can use
1919
[🗺 Source Maps](/developing/source-maps) to make these point to your source
2020
files.
2121

2222
## Dispatching Events
2323

2424
When using the API, the `dispatchFetch` function can be used to dispatch `fetch`
25-
events to your worker. This can be used for testing responses. `dispatchFetch`
25+
events to your Worker. This can be used for testing responses. `dispatchFetch`
2626
has the same API as the regular `fetch` method: it either takes a `Request`
2727
object, or a URL and optional `RequestInit` object:
2828

src/content/docs/workers/miniflare/core/multiple-workers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ $ curl "http://localhost:8787/todos/update/1" -H "Host: api.mf"
107107
```
108108

109109
When using the API, Miniflare will use the request's URL to determine which
110-
worker to dispatch to.
110+
Worker to dispatch to.
111111

112112
```js
113113
// Dispatches to the "api" worker

src/content/docs/workers/miniflare/core/queues.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ order: 8
33
title: "🚥 Queues"
44
---
55

6-
- [Queues Reference](https://developers.cloudflare.com/queues/)
6+
- [Queues Reference](/queues/)
77

88
## Producers
99

src/content/docs/workers/miniflare/core/scheduled.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $ curl "http://localhost:8787/cdn-cgi/mf/scheduled?cron=*+*+*+*+*"
3737
## Dispatching Events
3838

3939
When using the API, the `getWorker` function can be used to dispatch
40-
`scheduled` events to your worker. This can be used for testing responses. It
40+
`scheduled` events to your Worker. This can be used for testing responses. It
4141
takes optional `scheduledTime` and `cron` parameters, which default to the
4242
current time and the empty string respectively. It will return a promise which
4343
resolves to an array containing data returned by all waited promises:

src/content/docs/workers/miniflare/core/standards.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ title: "🕸 Web Standards"
1717
When using the API, Miniflare allows you to substitute custom `Response`s for
1818
`fetch()` calls using `undici`'s
1919
[`MockAgent` API](https://undici.nodejs.org/#/docs/api/MockAgent?id=mockagentgetorigin).
20-
This is useful for testing workers that make HTTP requests to other services. To
20+
This is useful for testing Workers that make HTTP requests to other services. To
2121
enable `fetch` mocking, create a
2222
[`MockAgent`](https://undici.nodejs.org/#/docs/api/MockAgent?id=mockagentgetorigin)
2323
using the `createFetchMock()` function, then set this using the `fetchMock`

src/content/docs/workers/miniflare/core/variables-secrets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ const mf = new Miniflare({
3030

3131
## Globals
3232

33-
Injecting arbitrary globals is not supported by [workerd](https://github.com/cloudflare/workerd). If you're using a service worker, bindings will be injected as globals, but these must be JSON-serialisable.
33+
Injecting arbitrary globals is not supported by [workerd](https://github.com/cloudflare/workerd). If you're using a service Worker, bindings will be injected as globals, but these must be JSON-serialisable.

src/content/docs/workers/miniflare/core/web-sockets.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ title: "✉️ WebSockets"
88

99
## Server
1010

11-
Miniflare will always upgrade Web Socket connections. The worker must respond
11+
Miniflare will always upgrade Web Socket connections. The Worker must respond
1212
with a status `101 Switching Protocols` response including a `webSocket`. For
13-
example, the worker below implements an echo WebSocket server:
13+
example, the Worker below implements an echo WebSocket server:
1414

1515
```js
1616
export default {

src/content/docs/workers/miniflare/developing/debugger.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: "🐛 Attaching a Debugger"
77
This documentation describes breakpoint debugging when using Miniflare directly, which is only relevant for advanced use cases. Instead, most users should refer to the [Workers Observability documentation for how to set this up when using Wrangler](/workers/observability/dev-tools/breakpoints/).
88
:::
99

10-
You can use regular Node.js tools to debug your workers. Setting breakpoints,
10+
You can use regular Node.js tools to debug your Workers. Setting breakpoints,
1111
watching values and inspecting the call stack are all examples of things you can
1212
do with a debugger.
1313

@@ -63,5 +63,5 @@ debugging.
6363
## DevTools
6464

6565
Breakpoints can also be added via the Workers DevTools. For more information,
66-
[read the guide](https://developers.cloudflare.com/workers/observability/local-development-and-testing/#devtools)
66+
[read the guide](/workers/observability/local-development-and-testing/#devtools)
6767
in the Cloudflare Workers docs.

src/content/docs/workers/miniflare/developing/live-reload.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ order: 2
33
title: ⚡️ Live Reload
44
---
55

6-
Miniflare automatically refreshes your browser when your worker script
6+
Miniflare automatically refreshes your browser when your Worker script
77
changes when `liveReload` is set to `true`.
88

99
```js

src/content/docs/workers/miniflare/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ This documentation describes the Miniflare API, which is only relevant for advan
1818
[**Cloudflare Workers**](https://workers.cloudflare.com/). It's written in
1919
TypeScript, and runs your code in a sandbox implementing Workers' runtime APIs.
2020

21-
- 🎉 **Fun:** develop workers easily with detailed logging, file watching and
21+
- 🎉 **Fun:** develop Workers easily with detailed logging, file watching and
2222
pretty error pages supporting source maps.
2323
- 🔋 **Full-featured:** supports most Workers features, including KV, Durable
2424
Objects, WebSockets, modules and more.
25-
-**Fully-local:** test and develop Workers without an internet connection.
25+
-**Fully-local:** test and develop Workers without an Internet connection.
2626
Reload code on change quickly.
2727

2828
<LinkButton href="https://github.com/cloudflare/workers-sdk/tree/main/packages/miniflare">

0 commit comments

Comments
 (0)