Skip to content

Commit 13f303a

Browse files
Merge pull request #251 from shelfio/feature/INT-11-upgrade-aws-sdk-pckgs
INT-11 upgrade @AWS-SDK pckgs
2 parents b06ad20 + 2bb4b40 commit 13f303a

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ commands:
1414
steps:
1515
- node/install-packages:
1616
pkg-manager: yarn
17-
cache-version: v1-all
17+
cache-version: v2-all
1818
cache-only-lockfile: true
1919
app-dir: ~/repo
2020
override-ci-command: yarn install --pure-lockfile --no-progress

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
"p-map": "4.0.0"
5151
},
5252
"devDependencies": {
53-
"@aws-sdk/client-dynamodb": "3.358.0",
54-
"@aws-sdk/lib-dynamodb": "3.358.0",
53+
"@aws-sdk/client-dynamodb": "3.538.0",
54+
"@aws-sdk/lib-dynamodb": "3.535.0",
5555
"@babel/cli": "7.23.0",
5656
"@babel/core": "7.23.2",
5757
"@shelf/babel-config": "2.0.1",
@@ -65,7 +65,6 @@
6565
"@types/lodash.clonedeep": "4.5.8",
6666
"@types/lodash.times": "4.3.8",
6767
"@types/node": "16",
68-
"@types/p-map": "2.0.0",
6968
"eslint": "8.52.0",
7069
"husky": "8.0.3",
7170
"jest": "29.7.0",

src/ddb.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
import {DescribeTableCommand, DynamoDBClient} from '@aws-sdk/client-dynamodb';
2-
import {BatchWriteCommand, DynamoDBDocumentClient, ScanCommand} from '@aws-sdk/lib-dynamodb';
1+
import {DescribeTableCommand} from '@aws-sdk/client-dynamodb';
2+
import {BatchWriteCommand, ScanCommand} from '@aws-sdk/lib-dynamodb';
3+
import type {DynamoDBClient} from '@aws-sdk/client-dynamodb';
4+
import type {DynamoDBDocumentClient} from '@aws-sdk/lib-dynamodb';
35
import type {
46
BatchWriteCommandInput,
57
BatchWriteCommandOutput,
@@ -13,10 +15,7 @@ export type Credentials = {
1315
sessionToken: string;
1416
};
1517

16-
export function scan(
17-
params: ScanCommandInput,
18-
client: DynamoDBClient
19-
): Promise<ScanCommandOutput> {
18+
export function scan(params: ScanCommandInput, client: DynamoDBClient): Promise<ScanCommandOutput> {
2019
const command = new ScanCommand(params);
2120

2221
// @ts-ignore

src/parallel-scan-stream.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ jest.setTimeout(25000);
33
import {uniq} from 'lodash';
44
import * as ddbHelpers from './ddb';
55
import {parallelScanAsStream} from './parallel-scan-stream';
6-
import {ddbv3DocClient} from './clients'
6+
import {ddbv3DocClient} from './clients';
77

88
function delay(ms: number) {
99
return new Promise(r => {

0 commit comments

Comments
 (0)