Compare commits

...

1 Commits

Author SHA1 Message Date
Dora Korpar cf1976ec1b [test] logs 2018-10-09 15:18:47 -07:00
1 changed files with 5 additions and 0 deletions

View File

@ -86,6 +86,7 @@ class Delimiter extends Extension {
this.continueMarker = parameters.v2 ? 'continuationToken' : 'marker';
this.nextContinueMarker = parameters.v2 ?
'NextContinuationToken' : 'NextMarker';
console.log(`\n\n------NEXT CONTINUE MARKER: ${this.nextContinueMarker}`);
if (this.delimiter !== undefined &&
this[this.nextContinueMarker] !== undefined &&
@ -140,10 +141,12 @@ class Delimiter extends Extension {
*/
addContents(key, value) {
if (this._reachedMaxKeys()) {
console.log(`\n\n-----REACHED MAX KEYS \n`);
return FILTER_END;
}
this.Contents.push({ key, value });
this[this.nextContinueMarker] = key;
console.log(`\n\n-----AFTER THIS.NEXTCONTINUEMARKER SHOULD HAVVE BEEN SET`);
++this.keys;
return FILTER_ACCEPT;
}
@ -230,6 +233,8 @@ class Delimiter extends Extension {
Delimiter: this.delimiter,
};
if (this.parameters.v2) {
console.log(`\n\n-------IN PARAMETERS.V2 CONDITIONAL`);
console.log(`\n\n-----THIS.NEXTCONTINUATIONTOKEN: ${this.NextContinuationToken}\n`);
result.NextContinuationToken = this.IsTruncated
? this.NextContinuationToken : undefined;
} else {