Skip to content

Commit ae65018

Browse files
authored
[Workers] Remove trailing spaces (#20070)
1 parent d0b76a9 commit ae65018

File tree

14 files changed

+17
-17
lines changed

14 files changed

+17
-17
lines changed

src/content/docs/workers/platform/known-issues.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ You will notice that all examples trigger Worker B. This includes the final exam
3333
When adding a wildcard on a subdomain, here are how the following URLs will be resolved:
3434

3535
```
36-
// (A) *.example.com/a
37-
// (B) a.example.com/*
36+
// (A) *.example.com/a
37+
// (B) a.example.com/*
3838
3939
"a.example.com/a"
4040
// -> B

src/content/docs/workers/reference/security-model.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ The values of `start` and `end` will always be exactly the same. The attacker ca
178178

179179
:::note
180180

181-
This measure was implemented in mid-2017, before Spectre was announced. This measure was implemented because Cloudflare was already concerned about side channel timing attacks. The Workers team has designed the system with side channels in mind.
181+
This measure was implemented in mid-2017, before Spectre was announced. This measure was implemented because Cloudflare was already concerned about side channel timing attacks. The Workers team has designed the system with side channels in mind.
182182
:::
183183

184184
Similarly, multi-threading and shared memory are not permitted in Workers. Everything related to the processing of one event happens on the same thread. Otherwise, one would be able to race threads in order to guess and check the underlying timer. Multiple Workers are not allowed to operate on the same request concurrently. For example, if you have installed a Cloudflare App on your zone which is implemented using Workers, and your zone itself also uses Workers, then a request to your zone may actually be processed by two Workers in sequence. These run in the same thread.
@@ -187,7 +187,7 @@ At this point, measuring code execution time locally is prevented. However, it c
187187

188188
:::note
189189

190-
It has been suggested that if Workers reset its execution environment on every request, that Workers would be in a much safer position against timing attacks. Unfortunately, it is not so simple. The execution state could be stored in a client — not the Worker itself — allowing a Worker to resume its previous state on every new request.
190+
It has been suggested that if Workers reset its execution environment on every request, that Workers would be in a much safer position against timing attacks. Unfortunately, it is not so simple. The execution state could be stored in a client — not the Worker itself — allowing a Worker to resume its previous state on every new request.
191191
:::
192192

193193
In adversarial testing and with help from leading Spectre experts, Cloudflare has not been able to develop a remote timing attack that works in production. However, the lack of a working attack does not mean that Workers should stop building defenses. Instead, the Workers team is currently testing some more advanced measures.

src/content/docs/workers/runtime-apis/context.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Context is exposed via the following places:
2727

2828
If you are using `waitUntil()` to emit logs or exceptions, we recommend using [Tail Workers](/workers/observability/logs/tail-workers/) instead. Even if your Worker throws an uncaught exception, the Tail Worker will execute, ensuring that you can emit logs or exceptions regardless of the Worker's invocation status.
2929

30-
[Cloudflare Queues](/queues/) is purpose-built for performing work out-of-band, without blocking returning a response back to the client Worker.
30+
[Cloudflare Queues](/queues/) is purpose-built for performing work out-of-band, without blocking returning a response back to the client Worker.
3131
:::
3232

3333
You can call `waitUntil()` multiple times. Similar to `Promise.allSettled`, even if a promise passed to one `waitUntil` call is rejected, promises passed to other `waitUntil()` calls will still continue to execute.
@@ -60,7 +60,7 @@ export default {
6060

6161
The Workers Runtime uses streaming for request and response bodies. It does not buffer the body. Hence, if an exception occurs after the body has been consumed, `passThroughOnException()` cannot send the body again.
6262

63-
If this causes issues, we recommend cloning the request body and handling exceptions in code. This will protect against uncaught code exceptions. However some exception times such as exceed CPU or memory limits will not be mitigated.
63+
If this causes issues, we recommend cloning the request body and handling exceptions in code. This will protect against uncaught code exceptions. However some exception times such as exceed CPU or memory limits will not be mitigated.
6464
:::
6565

6666
The `passThroughOnException` method allows a Worker to [fail open](https://community.microfocus.com/cyberres/b/sws-22/posts/security-fundamentals-part-1-fail-open-vs-fail-closed), and pass a request through to an origin server when a Worker throws an unhandled exception. This can be useful when using Workers as a layer in front of an existing service, allowing the service behind the Worker to handle any unexpected error cases that arise in your Worker.

src/content/docs/workers/runtime-apis/handlers/tail.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export default {
109109
Outcome is equivalent to the exit status of a script and an indicator of whether it has fully run to completion. A Worker outcome may differ from a response code if, for example:
110110

111111
* a script successfully processes a request but is logically designed to return a `4xx`/`5xx` response.
112-
* a script sends a successful `200` response but an asynchronous task registered via `waitUntil()` later exceeds CPU or memory limits.
112+
* a script sends a successful `200` response but an asynchronous task registered via `waitUntil()` later exceeds CPU or memory limits.
113113
:::
114114

115115
### `FetchEventInfo`

src/content/docs/workers/runtime-apis/nodejs/string-decoder.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { Render } from "~/components"
1111
The [`node:string_decoder`](https://nodejs.org/api/string_decoder.html) is a legacy utility module that predates the WHATWG standard [TextEncoder](/workers/runtime-apis/encoding/#textencoder) and [TextDecoder](/workers/runtime-apis/encoding/#textdecoder) API. In most cases, you should use `TextEncoder` and `TextDecoder` instead. `StringDecoder` is available in the Workers runtime primarily for compatibility with existing npm packages that rely on it. `StringDecoder` can be accessed using:
1212

1313
```js
14-
const { StringDecoder } = require('node:string_decoder');
14+
const { StringDecoder } = require('node:string_decoder');
1515
const decoder = new StringDecoder('utf8');
1616

1717
const cent = Buffer.from([0xC2, 0xA2]);

src/content/docs/workers/runtime-apis/nodejs/util.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ types.isAsyncFunction(async function foo() {}); // Returns true
7373

7474
:::caution
7575

76-
The Workers implementation currently does not provide implementations of the `util.types.isExternal()`, `util.types.isProxy()`, `util.types.isKeyObject()`, or `util.type.isWebAssemblyCompiledModule()` APIs.
76+
The Workers implementation currently does not provide implementations of the `util.types.isExternal()`, `util.types.isProxy()`, `util.types.isKeyObject()`, or `util.type.isWebAssemblyCompiledModule()` APIs.
7777
:::
7878

7979
For more about `util.types`, refer to the [Node.js documentation for `util.types`](https://nodejs.org/dist/latest-v19.x/docs/api/util.html#utiltypes).

src/content/docs/workers/runtime-apis/response.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ let response = new Response(body, init);
3636

3737

3838

39-
Valid options for the `options` object include:
39+
Valid options for the `options` object include:
4040

4141
* `cf` any | null
4242
* An object that contains Cloudflare-specific information. This object is not part of the Fetch API standard and is only available in Cloudflare Workers. This field is only used by consumers of the Response for informational purposes and does not have any impact on Workers behavior.

src/content/docs/workers/runtime-apis/streams/readablestreamdefaultreader.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const reader = readable.getReader();
4646

4747
:::caution[Warning]
4848

49-
Any data not yet read is lost.
49+
Any data not yet read is lost.
5050
:::
5151

5252
* `releaseLock()` : void

src/content/docs/workers/runtime-apis/streams/writablestream.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Refer to the [WritableStreamDefaultWriter](/workers/runtime-apis/streams/writabl
4646

4747
:::caution[Warning]
4848

49-
Any data not yet written is lost upon abort.
49+
Any data not yet written is lost upon abort.
5050
:::
5151

5252
* `getWriter()` : WritableStreamDefaultWriter

src/content/docs/workers/runtime-apis/streams/writablestreamdefaultwriter.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ writeArrayToStream([1, 2, 3, 4, 5], writableStream)
5050

5151
:::caution[Warning]
5252

53-
Any data not yet written is lost upon abort.
53+
Any data not yet written is lost upon abort.
5454
:::
5555

5656
* `close()` : Promise\<void>

0 commit comments

Comments
 (0)