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