Skip to content

Commit 0ec3208

Browse files
committed
fix(batch): declare the @aws-lambda-powertools/commons dependency
1 parent 9118bbf commit 0ec3208

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

package-lock.json

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

packages/batch/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@
8080
"serverless",
8181
"nodejs"
8282
],
83+
"dependencies": {
84+
"@aws-lambda-powertools/commons": "2.26.0"
85+
},
8386
"devDependencies": {
8487
"@aws-lambda-powertools/testing-utils": "file:../testing",
8588
"@aws-lambda-powertools/parser": "2.26.0"

packages/batch/src/BasePartialBatchProcessor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
import type { GenericLogger } from '@aws-lambda-powertools/commons/types';
12
import { getStringFromEnv } from '@aws-lambda-powertools/commons/utils/env';
23
import type {
34
DynamoDBRecord,
45
KinesisStreamRecord,
56
SQSRecord,
67
} from 'aws-lambda';
7-
import type { GenericLogger } from '../../commons/lib/esm/types/GenericLogger.js';
88
import { BasePartialProcessor } from './BasePartialProcessor.js';
99
import {
1010
DATA_CLASS_MAPPING,

packages/batch/src/types.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import type { GenericLogger } from '@aws-lambda-powertools/commons/types';
12
import type { StandardSchemaV1 } from '@standard-schema/spec';
23
import type {
34
Context,
@@ -7,9 +8,7 @@ import type {
78
StreamRecord,
89
} from 'aws-lambda';
910
import type { ZodType } from 'zod';
10-
import type { GenericLogger } from '../../commons/lib/esm/types/GenericLogger.js';
1111
import type { BasePartialBatchProcessor } from './BasePartialBatchProcessor.js';
12-
import type { BatchProcessor } from './BatchProcessor.js';
1312
import type { parser } from './parser.js';
1413
import type { SqsFifoPartialProcessor } from './SqsFifoPartialProcessor.js';
1514
import type { SqsFifoPartialProcessorAsync } from './SqsFifoPartialProcessorAsync.js';

0 commit comments

Comments
 (0)