Skip to content

Commit

Permalink
Merge pull request #251 from shelfio/feature/INT-11-upgrade-aws-sdk-p…
Browse files Browse the repository at this point in the history
…ckgs

INT-11 upgrade @AWS-SDK pckgs
  • Loading branch information
yuriiLevantovych authored Mar 22, 2024
2 parents b06ad20 + 2bb4b40 commit 13f303a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ commands:
steps:
- node/install-packages:
pkg-manager: yarn
cache-version: v1-all
cache-version: v2-all
cache-only-lockfile: true
app-dir: ~/repo
override-ci-command: yarn install --pure-lockfile --no-progress
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
"p-map": "4.0.0"
},
"devDependencies": {
"@aws-sdk/client-dynamodb": "3.358.0",
"@aws-sdk/lib-dynamodb": "3.358.0",
"@aws-sdk/client-dynamodb": "3.538.0",
"@aws-sdk/lib-dynamodb": "3.535.0",
"@babel/cli": "7.23.0",
"@babel/core": "7.23.2",
"@shelf/babel-config": "2.0.1",
Expand All @@ -65,7 +65,6 @@
"@types/lodash.clonedeep": "4.5.8",
"@types/lodash.times": "4.3.8",
"@types/node": "16",
"@types/p-map": "2.0.0",
"eslint": "8.52.0",
"husky": "8.0.3",
"jest": "29.7.0",
Expand Down
11 changes: 5 additions & 6 deletions src/ddb.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import {DescribeTableCommand, DynamoDBClient} from '@aws-sdk/client-dynamodb';
import {BatchWriteCommand, DynamoDBDocumentClient, ScanCommand} from '@aws-sdk/lib-dynamodb';
import {DescribeTableCommand} from '@aws-sdk/client-dynamodb';
import {BatchWriteCommand, ScanCommand} from '@aws-sdk/lib-dynamodb';
import type {DynamoDBClient} from '@aws-sdk/client-dynamodb';
import type {DynamoDBDocumentClient} from '@aws-sdk/lib-dynamodb';
import type {
BatchWriteCommandInput,
BatchWriteCommandOutput,
Expand All @@ -13,10 +15,7 @@ export type Credentials = {
sessionToken: string;
};

export function scan(
params: ScanCommandInput,
client: DynamoDBClient
): Promise<ScanCommandOutput> {
export function scan(params: ScanCommandInput, client: DynamoDBClient): Promise<ScanCommandOutput> {
const command = new ScanCommand(params);

// @ts-ignore
Expand Down
2 changes: 1 addition & 1 deletion src/parallel-scan-stream.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ jest.setTimeout(25000);
import {uniq} from 'lodash';
import * as ddbHelpers from './ddb';
import {parallelScanAsStream} from './parallel-scan-stream';
import {ddbv3DocClient} from './clients'
import {ddbv3DocClient} from './clients';

function delay(ms: number) {
return new Promise(r => {
Expand Down

0 comments on commit 13f303a

Please sign in to comment.