Skip to content

Commit f9ccfc1

Browse files
author
Daniel Bot
committed
chore: fix readme docs and unit test imports
1 parent 7b72026 commit f9ccfc1

File tree

4 files changed

+17
-13
lines changed

4 files changed

+17
-13
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Correlation Ids for aws-lambda-powertools
55

66
1. Middleware to enable injecting correlation ids from the request into the <i>AsyncLocalStorage</i>
77
```typescript
8-
import { enableCorrelationIds } from '@aws-lambda-powertools-correlation';
8+
import { enableCorrelationIds } from 'aws-lambda-powertools-correlation';
99
import middy from '@middy/core';
1010
import * as Lambda from 'aws-lambda';
1111

@@ -18,7 +18,7 @@ export const handler = (_handler: Lambda.APIGatewayProxyHandlerV2) => {
1818
2. Utility to extend the powertools logger with correlation ids: <i>injectCorrelationIds(logger)</i>
1919

2020
```typescript
21-
import { injectCorrelationIds } from '@aws-lambda-powertools-correlation';
21+
import { injectCorrelationIds } from 'aws-lambda-powertools-correlation';
2222
import { Logger } from '@aws-lambda-powertools/logger'
2323

2424
const logger = new Logger();
@@ -32,7 +32,7 @@ export const handler = (_handler: Lambda.APIGatewayProxyHandlerV2) => {
3232

3333
3. Utility to get correlation ids from the internal store: <i>getCorrelationIds()</i>
3434
```typescript
35-
import { useCorrelationIds } from '@aws-lambda-powertools-correlation';
35+
import { useCorrelationIds } from 'aws-lambda-powertools-correlation';
3636

3737
const correlationIds = useCorrelationIds();
3838

package-lock.json

Lines changed: 13 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"@aws-sdk/util-dynamodb": "^3.382.0"
3838
},
3939
"devDependencies": {
40-
"@middy/core": "^3.6.2",
40+
"@middy/core": "^4.7.0",
4141
"@types/aws-lambda": "^8.10.90",
4242
"@types/jest": "^29.2.4",
4343
"@types/node": "^18.16.18",

src/correlation.it.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import middy from '@middy/core';
32
import { APIGatewayProxyEventV2, Context, APIGatewayProxyStructuredResultV2 } from 'aws-lambda';
43
import { Logger as PowertoolsLogger } from '@aws-lambda-powertools/logger';

0 commit comments

Comments
 (0)