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 d1c3aec

Browse files
committedFeb 5, 2024
feat(commons): add esmodule support (#1735)
* chore(logger): adapt logger to commons exports * feat(commons): add esmodule support * chore: address sonar findings * chore(commons): exported version * chore: fixed imports in examples * chore(parameters): fixed imports * chore(metrics): fixed imports * chore(tracer): fixed imports * chore(idempotency): fixed imports * chore(commons): test coverage * chore(batch): fix imports
1 parent da523b8 commit d1c3aec

File tree

73 files changed

+248
-192
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+248
-192
lines changed
 

‎examples/cdk/functions/common/powertools.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Logger } from '@aws-lambda-powertools/logger';
22
import { Metrics } from '@aws-lambda-powertools/metrics';
33
import { Tracer } from '@aws-lambda-powertools/tracer';
4-
import { PT_VERSION } from '@aws-lambda-powertools/commons/lib/version';
4+
import { PT_VERSION } from '@aws-lambda-powertools/commons';
55

66
const defaultValues = {
77
region: process.env.AWS_REGION || 'N/A',

‎examples/cdk/functions/get-all-items.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { injectLambdaContext } from '@aws-lambda-powertools/logger';
1+
import { injectLambdaContext } from '@aws-lambda-powertools/logger/middleware';
22
import { logMetrics } from '@aws-lambda-powertools/metrics';
33
import { captureLambdaHandler } from '@aws-lambda-powertools/tracer';
44
import { ScanCommand } from '@aws-sdk/lib-dynamodb';

0 commit comments

Comments
 (0)
Please sign in to comment.