Skip to content

Commit 8cfcccd

Browse files
Grmiadesdangol
andauthored
fix(batch): declare the @aws-lambda-powertools/commons dependency (#4484)
Co-authored-by: Swopnil Dangol <[email protected]>
1 parent 9118bbf commit 8cfcccd

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-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: 2 additions & 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,7 +8,6 @@ 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';
1212
import type { BatchProcessor } from './BatchProcessor.js';
1313
import type { parser } from './parser.js';
@@ -111,7 +111,7 @@ type PartialItemFailureResponse = { batchItemFailures: PartialItemFailures[] };
111111
*
112112
* You can optionally pass a `logger` for debug and warning messages.
113113
*
114-
* @note `innerSchema` supports only Zod schemas, while `schema` supports any Standard Schema-compatible parsing library.
114+
* Note: `innerSchema` supports only Zod schemas, while `schema` supports any Standard Schema-compatible parsing library.
115115
*
116116
* @property parser - Required when using schema parsing (import from `@aws-lambda-powertools/batch/parser`)
117117
* @property schema - Complete event schema (mutually exclusive with innerSchema)

0 commit comments

Comments
 (0)