Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a0e6e05

Browse files
committedJul 23, 2024
chore(maintenance): fixes references in documentation to line numbers
1 parent 2784fe7 commit a0e6e05

File tree

6 files changed

+15
-22
lines changed

6 files changed

+15
-22
lines changed
 

‎docs/core/tracer.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ You can quickly start by importing the `Tracer` class, initialize it outside the
176176

177177
=== "Manual"
178178

179-
```typescript hl_lines="9-15 18-19 23 26 29-34"
179+
```typescript hl_lines="10-16 19-20 24 27 30-35"
180180
--8<-- "examples/snippets/tracer/manual.ts"
181181
```
182182

@@ -239,7 +239,7 @@ You can trace other class methods using the `captureMethod` decorator or any arb
239239

240240
=== "Manual"
241241

242-
```typescript hl_lines="6-12 18 21 25-30"
242+
```typescript hl_lines="7-13 19 22 26-31"
243243
--8<-- "examples/snippets/tracer/captureMethodManual.ts"
244244
```
245245

‎docs/utilities/batch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ classDiagram
510510

511511
You can then use this class as a context manager, or pass it to `processPartialResponseSync` to process the records in your Lambda handler function.
512512

513-
```typescript hl_lines="21 35 56 61 73 86" title="Creating a custom batch processor"
513+
```typescript hl_lines="21 35 55 60 72 85" title="Creating a custom batch processor"
514514
--8<-- "examples/snippets/batch/customPartialProcessor.ts"
515515
```
516516

‎docs/utilities/idempotency.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ Below an example implementation of a custom persistence layer backed by a generi
723723

724724
=== "CustomPersistenceLayer"
725725

726-
```typescript hl_lines="9 19 28 34 50 90"
726+
```typescript hl_lines="9 19 28 35 52 95"
727727
--8<-- "examples/snippets/idempotency/advancedBringYourOwnPersistenceLayer.ts"
728728
```
729729

‎examples/snippets/batch/gettingStartedErrorHandling.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,13 @@ const recordHandler = async (record: SQSRecord): Promise<void> => {
2222
const item = JSON.parse(payload);
2323
logger.info('Processed item', { item });
2424
} else {
25-
// prettier-ignore
26-
throw new InvalidPayload(
27-
'Payload does not contain minimum required fields'
28-
); // (1)!
25+
// biome-ignore format:
26+
throw new InvalidPayload('Payload does not contain minimum required fields'); // (1)!
2927
}
3028
};
3129

3230
export const handler: SQSHandler = async (event, context) =>
33-
// prettier-ignore
34-
processPartialResponse(event, recordHandler, processor, {
35-
// (2)!
31+
// biome-ignore format:
32+
processPartialResponse(event, recordHandler, processor, { // (2)!
3633
context,
3734
});

‎examples/snippets/batch/gettingStartedSQS.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ import type { SQSHandler, SQSRecord } from 'aws-lambda';
99
const processor = new BatchProcessor(EventType.SQS); // (1)!
1010
const logger = new Logger();
1111

12-
// prettier-ignore
13-
const recordHandler = async (record: SQSRecord): Promise<void> => {
14-
// (2)!
12+
// biome-ignore format:
13+
const recordHandler = async (record: SQSRecord): Promise<void> => { // (2)!
1514
const payload = record.body;
1615
if (payload) {
1716
const item = JSON.parse(payload);
@@ -20,9 +19,8 @@ const recordHandler = async (record: SQSRecord): Promise<void> => {
2019
};
2120

2221
export const handler: SQSHandler = async (event, context) =>
23-
// prettier-ignore
24-
processPartialResponse(event, recordHandler, processor, {
25-
// (3)!
22+
// biome-ignore format:
23+
processPartialResponse(event, recordHandler, processor, { // (3)!
2624
context,
2725
});
2826

‎examples/snippets/jmespath/powertoolsCustomFunction.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,13 @@ import { Logger } from '@aws-lambda-powertools/logger';
66

77
const logger = new Logger();
88

9-
// prettier-ignore
9+
// biome-ignore format:
1010
class CustomFunctions extends PowertoolsFunctions {
11-
@PowertoolsFunctions.signature({
12-
// (1)!
11+
@PowertoolsFunctions.signature({ // (1)!
1312
argumentsSpecs: [['string']],
1413
variadic: false,
1514
})
16-
public funcDecodeBrotliCompression(value: string): string {
17-
// (2)!
15+
public funcDecodeBrotliCompression(value: string): string { // (2)!
1816
const encoded = fromBase64(value, 'base64');
1917
const uncompressed = brotliDecompressSync(encoded);
2018

0 commit comments

Comments
 (0)
Please sign in to comment.