File tree Expand file tree Collapse file tree 5 files changed +12
-12
lines changed
dynamodb-data-marshaller/src Expand file tree Collapse file tree 5 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,10 @@ import {
8686} from '@aws-sdk/client-dynamodb' ;
8787import { 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.
Original file line number Diff line number Diff line change 11import { Paginator as AbstractPaginator } from './Paginator' ;
22import { 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
68export abstract class Iterator <
79 T ,
Original file line number Diff line number Diff line change @@ -7,7 +7,10 @@ import {
77} from '@awslabs-community-fork/dynamodb-data-marshaller' ;
88import { 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
1215export abstract class Paginator < T > implements AsyncIterableIterator < Array < T > > {
1316 private readonly itemSchema : Schema ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 99 Marshaller ,
1010 NumberValueSet ,
1111} from '@awslabs-community-fork/dynamodb-auto-marshaller' ;
12- const bytes = require ( ' utf8-bytes' ) ;
12+ import * as bytes from " utf8-bytes" ;
1313
1414/**
1515 * Converts a JavaScript object into a DynamoDB Item.
You can’t perform that action at this time.
0 commit comments