Skip to content

Commit 1fffc51

Browse files
authored
Merge pull request #3 from magieno/update-sdk-3.0
Update.
2 parents 851b7af + c8b0d43 commit 1fffc51

File tree

12 files changed

+44790
-92
lines changed

12 files changed

+44790
-92
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ jobs:
5252
node-version: ${{ matrix.node-version }}
5353
registry-url: https://registry.npmjs.org
5454
scope: '@awslabs-community-fork'
55+
- run: npm install -g npm@latest
5556
- run: npm ci
5657
env:
5758
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
},
1717
"license": "Apache-2.0",
1818
"devDependencies": {
19+
"@aws-sdk/client-dynamodb": "^3.10.0",
1920
"@types/jest": "^26.0.22",
2021
"@types/node": "^14",
21-
"@aws-sdk/client-dynamodb": "^3.10.0",
2222
"jest": "^26.6.3",
2323
"lerna": "^4.0.0",
24-
"typedoc": "^0.20.35",
2524
"ts-jest": "^26.5.4",
25+
"typedoc": "^0.20.35",
2626
"typescript": "^4.2"
2727
},
2828
"dependencies": {

packages/dynamodb-batch-iterator/package-lock.json

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

packages/dynamodb-data-mapper-annotations/package-lock.json

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

packages/dynamodb-data-mapper/src/DataMapper.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,10 @@ import {
8686
} from '@aws-sdk/client-dynamodb';
8787
import { DynamoDB } from "@aws-sdk/client-dynamodb";
8888

89-
require('./asyncIteratorSymbolPolyfill');
89+
if (Symbol && !Symbol.asyncIterator) {
90+
(Symbol as any).asyncIterator = Symbol.for("__@@asyncIterator__");
91+
}
92+
9093

9194
/**
9295
* Object mapper for domain object interaction with DynamoDB.

packages/dynamodb-data-mapper/src/Iterator.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import { Paginator as AbstractPaginator } from './Paginator';
22
import { ConsumedCapacity } from '@aws-sdk/client-dynamodb';
33

4-
require('./asyncIteratorSymbolPolyfill');
4+
if (Symbol && !Symbol.asyncIterator) {
5+
(Symbol as any).asyncIterator = Symbol.for("__@@asyncIterator__");
6+
}
57

68
export abstract class Iterator<
79
T,

packages/dynamodb-data-mapper/src/Paginator.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ import {
77
} from '@awslabs-community-fork/dynamodb-data-marshaller';
88
import { ConsumedCapacity } from '@aws-sdk/client-dynamodb';
99

10-
require('./asyncIteratorSymbolPolyfill');
10+
if (Symbol && !Symbol.asyncIterator) {
11+
(Symbol as any).asyncIterator = Symbol.for("__@@asyncIterator__");
12+
}
13+
1114

1215
export abstract class Paginator<T> implements AsyncIterableIterator<Array<T>> {
1316
private readonly itemSchema: Schema;

packages/dynamodb-data-mapper/src/asyncIteratorSymbolPolyfill.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)