Skip to content

feat(commons): add esmodule support #1735

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Oct 11, 2023
Prev Previous commit
Next Next commit
chore(parameters): fixed imports
  • Loading branch information
dreamorosi committed Oct 11, 2023
commit 0f13ef3b0074b69cd8d3a4150fa8c5bfee189ed9
2 changes: 1 addition & 1 deletion packages/parameters/src/base/transformValue.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { JSONValue } from '@aws-lambda-powertools/commons';
import type { JSONValue } from '@aws-lambda-powertools/commons/types';
import { isString } from '@aws-lambda-powertools/commons';
import { fromBase64 } from '@aws-sdk/util-base64-node';
import { TRANSFORM_METHOD_BINARY, TRANSFORM_METHOD_JSON } from '../constants';
Expand Down
2 changes: 1 addition & 1 deletion packages/parameters/src/dynamodb/DynamoDBProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import type {
QueryCommandInput,
} from '@aws-sdk/client-dynamodb';
import type { PaginationConfiguration } from '@aws-sdk/types';
import type { JSONValue } from '@aws-lambda-powertools/commons';
import type { JSONValue } from '@aws-lambda-powertools/commons/types';
import {
addUserAgentMiddleware,
isSdkClient,
Expand Down
2 changes: 1 addition & 1 deletion packages/parameters/src/types/AppConfigProvider.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { JSONValue } from '@aws-lambda-powertools/commons';
import type { JSONValue } from '@aws-lambda-powertools/commons/types';
import type {
AppConfigDataClient,
AppConfigDataClientConfig,
Expand Down
2 changes: 1 addition & 1 deletion packages/parameters/src/types/DynamoDBProvider.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { JSONValue } from '@aws-lambda-powertools/commons';
import type { JSONValue } from '@aws-lambda-powertools/commons/types';
import type {
DynamoDBClient,
DynamoDBClientConfig,
Expand Down
2 changes: 1 addition & 1 deletion packages/parameters/src/types/SSMProvider.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { JSONValue } from '@aws-lambda-powertools/commons';
import type { JSONValue } from '@aws-lambda-powertools/commons/types';
import type {
GetParameterCommandInput,
GetParametersByPathCommandInput,
Expand Down
2 changes: 1 addition & 1 deletion packages/parameters/src/types/SecretsProvider.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { JSONValue } from '@aws-lambda-powertools/commons';
import type { JSONValue } from '@aws-lambda-powertools/commons/types';
import type {
GetSecretValueCommandInput,
SecretsManagerClient,
Expand Down
2 changes: 1 addition & 1 deletion packages/parameters/tests/unit/getAppConfig.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { mockClient } from 'aws-sdk-client-mock';
import 'aws-sdk-client-mock-jest';
import { toBase64 } from '@aws-sdk/util-base64-node';
import { Uint8ArrayBlobAdapter } from '@smithy/util-stream';
import { JSONValue } from '@aws-lambda-powertools/commons';
import type { JSONValue } from '@aws-lambda-powertools/commons/types';

describe('Function: getAppConfig', () => {
const client = mockClient(AppConfigDataClient);
Expand Down