triangle-utils 1.4.95 → 1.4.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/UtilsDynamoDB.js +12 -4
- package/package.json +1 -1
- package/src/UtilsDynamoDB.ts +12 -4
|
@@ -135,7 +135,9 @@ export class UtilsDynamoDB {
|
|
|
135
135
|
Limit: options.max_num_items,
|
|
136
136
|
ExclusiveStartKey: options.last_key !== undefined ? convert_input(options.last_key)?.M : undefined
|
|
137
137
|
};
|
|
138
|
-
|
|
138
|
+
if (options.print === true) {
|
|
139
|
+
console.log(request);
|
|
140
|
+
}
|
|
139
141
|
iterators.push(compile_pages(request, (request) => this.dynamodb.scan(request), compile));
|
|
140
142
|
}
|
|
141
143
|
const segments = await Promise.all(iterators);
|
|
@@ -236,7 +238,9 @@ export class UtilsDynamoDB {
|
|
|
236
238
|
Limit: options.max_num_items,
|
|
237
239
|
ExclusiveStartKey: options.last_key !== undefined ? convert_input(options.last_key)?.M : undefined
|
|
238
240
|
};
|
|
239
|
-
|
|
241
|
+
if (options.print === true) {
|
|
242
|
+
console.log(request);
|
|
243
|
+
}
|
|
240
244
|
const items = await compile_pages(request, (request) => this.dynamodb.query(request), compile);
|
|
241
245
|
// .then(async items => index_name === undefined || !project ? items :
|
|
242
246
|
// await Promise.all(items.map(async item => {
|
|
@@ -299,7 +303,9 @@ export class UtilsDynamoDB {
|
|
|
299
303
|
Limit: options.max_num_items,
|
|
300
304
|
ExclusiveStartKey: options.last_key !== undefined ? convert_input(options.last_key)?.M : undefined
|
|
301
305
|
};
|
|
302
|
-
|
|
306
|
+
if (options.print === true) {
|
|
307
|
+
console.log(request);
|
|
308
|
+
}
|
|
303
309
|
const items = await compile_pages(request, (request) => this.dynamodb.query(request), compile);
|
|
304
310
|
// .then(async items => index_name === undefined || !project ? items :
|
|
305
311
|
// await Promise.all(items.map(async item => {
|
|
@@ -365,7 +371,9 @@ export class UtilsDynamoDB {
|
|
|
365
371
|
Limit: options.max_num_items,
|
|
366
372
|
ExclusiveStartKey: options.last_key !== undefined ? convert_input(options.last_key)?.M : undefined
|
|
367
373
|
};
|
|
368
|
-
|
|
374
|
+
if (options.print === true) {
|
|
375
|
+
console.log(request);
|
|
376
|
+
}
|
|
369
377
|
const items = await compile_pages(request, (request) => this.dynamodb.query(request), compile);
|
|
370
378
|
// .then(async items => index_name === undefined || !project ? items :
|
|
371
379
|
// await Promise.all(items.map(async item => {
|
package/package.json
CHANGED
package/src/UtilsDynamoDB.ts
CHANGED
|
@@ -160,7 +160,9 @@ export class UtilsDynamoDB {
|
|
|
160
160
|
Limit : options.max_num_items,
|
|
161
161
|
ExclusiveStartKey : options.last_key !== undefined ? convert_input(options.last_key)?.M : undefined
|
|
162
162
|
}
|
|
163
|
-
|
|
163
|
+
if (options.print === true) {
|
|
164
|
+
console.log(request)
|
|
165
|
+
}
|
|
164
166
|
iterators.push(compile_pages(request, (request : ScanCommandInput) => this.dynamodb.scan(request), compile))
|
|
165
167
|
}
|
|
166
168
|
const segments = await Promise.all(iterators)
|
|
@@ -293,7 +295,9 @@ export class UtilsDynamoDB {
|
|
|
293
295
|
Limit : options.max_num_items,
|
|
294
296
|
ExclusiveStartKey : options.last_key !== undefined ? convert_input(options.last_key)?.M : undefined
|
|
295
297
|
}
|
|
296
|
-
|
|
298
|
+
if (options.print === true) {
|
|
299
|
+
console.log(request)
|
|
300
|
+
}
|
|
297
301
|
const items = await compile_pages(request, (request) => this.dynamodb.query(request), compile)
|
|
298
302
|
// .then(async items => index_name === undefined || !project ? items :
|
|
299
303
|
// await Promise.all(items.map(async item => {
|
|
@@ -375,7 +379,9 @@ export class UtilsDynamoDB {
|
|
|
375
379
|
Limit : options.max_num_items,
|
|
376
380
|
ExclusiveStartKey : options.last_key !== undefined ? convert_input(options.last_key)?.M : undefined
|
|
377
381
|
}
|
|
378
|
-
|
|
382
|
+
if (options.print === true) {
|
|
383
|
+
console.log(request)
|
|
384
|
+
}
|
|
379
385
|
const items = await compile_pages(request, (request) => this.dynamodb.query(request), compile)
|
|
380
386
|
// .then(async items => index_name === undefined || !project ? items :
|
|
381
387
|
// await Promise.all(items.map(async item => {
|
|
@@ -460,7 +466,9 @@ export class UtilsDynamoDB {
|
|
|
460
466
|
Limit : options.max_num_items,
|
|
461
467
|
ExclusiveStartKey : options.last_key !== undefined ? convert_input(options.last_key)?.M : undefined
|
|
462
468
|
}
|
|
463
|
-
|
|
469
|
+
if (options.print === true) {
|
|
470
|
+
console.log(request)
|
|
471
|
+
}
|
|
464
472
|
const items = await compile_pages(request, (request) => this.dynamodb.query(request), compile)
|
|
465
473
|
// .then(async items => index_name === undefined || !project ? items :
|
|
466
474
|
// await Promise.all(items.map(async item => {
|