lambda-toolkit 0.0.4-beta → 0.0.6-beta
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/index.js +68 -43
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
/******/
|
|
1
|
+
/******/ (() => { // webpackBootstrap
|
|
2
|
+
/******/ var __webpack_modules__ = ({
|
|
3
3
|
|
|
4
4
|
/***/ 8278:
|
|
5
5
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
@@ -1286,16 +1286,24 @@ const { QueryCommand } = __webpack_require__( 1671 );
|
|
|
1286
1286
|
const { camelize } = __webpack_require__( 5762 );
|
|
1287
1287
|
const parseItems = __webpack_require__( 7261 );
|
|
1288
1288
|
|
|
1289
|
-
|
|
1289
|
+
const query = async ( client, queryString, { prevItems = [], recursive, paginationToken, maxRows, rawResponse } ) => {
|
|
1290
1290
|
const response = await client.send( new QueryCommand( { QueryString: queryString, NextToken: paginationToken, MaxRows: maxRows } ) );
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1291
|
+
if ( !recursive && rawResponse ) {
|
|
1292
|
+
return response;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
const nextToken = response.NextToken;
|
|
1296
|
+
if ( nextToken && recursive ) {
|
|
1297
|
+
return query( client, queryString, { prevItems: parseItems( response ), recursive, paginationToken: nextToken, maxRows } );
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
const items = prevItems.concat( parseItems( response ) );
|
|
1301
|
+
return { nextToken, count: items.length, items, queryStatus: camelize( response.QueryStatus ) };
|
|
1297
1302
|
};
|
|
1298
1303
|
|
|
1304
|
+
module.exports = async ( client, queryString, { recursive = false, paginationToken = undefined, maxRows = undefined, rawResponse = false } = {} ) =>
|
|
1305
|
+
query( client, queryString, { recursive, paginationToken, maxRows, rawResponse } );
|
|
1306
|
+
|
|
1299
1307
|
|
|
1300
1308
|
/***/ }),
|
|
1301
1309
|
|
|
@@ -2392,6 +2400,7 @@ module.exports = raw =>
|
|
|
2392
2400
|
/***/ 3744:
|
|
2393
2401
|
/***/ ((module) => {
|
|
2394
2402
|
|
|
2403
|
+
"use strict";
|
|
2395
2404
|
module.exports = require("@aws-sdk/client-athena");
|
|
2396
2405
|
|
|
2397
2406
|
/***/ }),
|
|
@@ -2399,6 +2408,7 @@ module.exports = require("@aws-sdk/client-athena");
|
|
|
2399
2408
|
/***/ 4671:
|
|
2400
2409
|
/***/ ((module) => {
|
|
2401
2410
|
|
|
2411
|
+
"use strict";
|
|
2402
2412
|
module.exports = require("@aws-sdk/client-dynamodb");
|
|
2403
2413
|
|
|
2404
2414
|
/***/ }),
|
|
@@ -2406,6 +2416,7 @@ module.exports = require("@aws-sdk/client-dynamodb");
|
|
|
2406
2416
|
/***/ 5892:
|
|
2407
2417
|
/***/ ((module) => {
|
|
2408
2418
|
|
|
2419
|
+
"use strict";
|
|
2409
2420
|
module.exports = require("@aws-sdk/client-lambda");
|
|
2410
2421
|
|
|
2411
2422
|
/***/ }),
|
|
@@ -2413,6 +2424,7 @@ module.exports = require("@aws-sdk/client-lambda");
|
|
|
2413
2424
|
/***/ 5725:
|
|
2414
2425
|
/***/ ((module) => {
|
|
2415
2426
|
|
|
2427
|
+
"use strict";
|
|
2416
2428
|
module.exports = require("@aws-sdk/client-s3");
|
|
2417
2429
|
|
|
2418
2430
|
/***/ }),
|
|
@@ -2420,6 +2432,7 @@ module.exports = require("@aws-sdk/client-s3");
|
|
|
2420
2432
|
/***/ 9556:
|
|
2421
2433
|
/***/ ((module) => {
|
|
2422
2434
|
|
|
2435
|
+
"use strict";
|
|
2423
2436
|
module.exports = require("@aws-sdk/client-sesv2");
|
|
2424
2437
|
|
|
2425
2438
|
/***/ }),
|
|
@@ -2427,6 +2440,7 @@ module.exports = require("@aws-sdk/client-sesv2");
|
|
|
2427
2440
|
/***/ 7651:
|
|
2428
2441
|
/***/ ((module) => {
|
|
2429
2442
|
|
|
2443
|
+
"use strict";
|
|
2430
2444
|
module.exports = require("@aws-sdk/client-sns");
|
|
2431
2445
|
|
|
2432
2446
|
/***/ }),
|
|
@@ -2434,6 +2448,7 @@ module.exports = require("@aws-sdk/client-sns");
|
|
|
2434
2448
|
/***/ 1976:
|
|
2435
2449
|
/***/ ((module) => {
|
|
2436
2450
|
|
|
2451
|
+
"use strict";
|
|
2437
2452
|
module.exports = require("@aws-sdk/client-sqs");
|
|
2438
2453
|
|
|
2439
2454
|
/***/ }),
|
|
@@ -2441,6 +2456,7 @@ module.exports = require("@aws-sdk/client-sqs");
|
|
|
2441
2456
|
/***/ 4348:
|
|
2442
2457
|
/***/ ((module) => {
|
|
2443
2458
|
|
|
2459
|
+
"use strict";
|
|
2444
2460
|
module.exports = require("@aws-sdk/client-ssm");
|
|
2445
2461
|
|
|
2446
2462
|
/***/ }),
|
|
@@ -2448,6 +2464,7 @@ module.exports = require("@aws-sdk/client-ssm");
|
|
|
2448
2464
|
/***/ 1671:
|
|
2449
2465
|
/***/ ((module) => {
|
|
2450
2466
|
|
|
2467
|
+
"use strict";
|
|
2451
2468
|
module.exports = require("@aws-sdk/client-timestream-query");
|
|
2452
2469
|
|
|
2453
2470
|
/***/ }),
|
|
@@ -2455,6 +2472,7 @@ module.exports = require("@aws-sdk/client-timestream-query");
|
|
|
2455
2472
|
/***/ 8248:
|
|
2456
2473
|
/***/ ((module) => {
|
|
2457
2474
|
|
|
2475
|
+
"use strict";
|
|
2458
2476
|
module.exports = require("@aws-sdk/client-timestream-write");
|
|
2459
2477
|
|
|
2460
2478
|
/***/ }),
|
|
@@ -2462,6 +2480,7 @@ module.exports = require("@aws-sdk/client-timestream-write");
|
|
|
2462
2480
|
/***/ 3489:
|
|
2463
2481
|
/***/ ((module) => {
|
|
2464
2482
|
|
|
2483
|
+
"use strict";
|
|
2465
2484
|
module.exports = require("@aws-sdk/lib-dynamodb");
|
|
2466
2485
|
|
|
2467
2486
|
/***/ }),
|
|
@@ -2469,6 +2488,7 @@ module.exports = require("@aws-sdk/lib-dynamodb");
|
|
|
2469
2488
|
/***/ 4991:
|
|
2470
2489
|
/***/ ((module) => {
|
|
2471
2490
|
|
|
2491
|
+
"use strict";
|
|
2472
2492
|
module.exports = require("@aws-sdk/s3-request-presigner");
|
|
2473
2493
|
|
|
2474
2494
|
/***/ }),
|
|
@@ -2476,55 +2496,60 @@ module.exports = require("@aws-sdk/s3-request-presigner");
|
|
|
2476
2496
|
/***/ 6982:
|
|
2477
2497
|
/***/ ((module) => {
|
|
2478
2498
|
|
|
2479
|
-
|
|
2499
|
+
"use strict";
|
|
2500
|
+
module.exports = require("crypto");
|
|
2480
2501
|
|
|
2481
2502
|
/***/ }),
|
|
2482
2503
|
|
|
2483
2504
|
/***/ 5692:
|
|
2484
2505
|
/***/ ((module) => {
|
|
2485
2506
|
|
|
2486
|
-
|
|
2507
|
+
"use strict";
|
|
2508
|
+
module.exports = require("https");
|
|
2487
2509
|
|
|
2488
2510
|
/***/ }),
|
|
2489
2511
|
|
|
2490
2512
|
/***/ 3106:
|
|
2491
2513
|
/***/ ((module) => {
|
|
2492
2514
|
|
|
2493
|
-
|
|
2515
|
+
"use strict";
|
|
2516
|
+
module.exports = require("zlib");
|
|
2494
2517
|
|
|
2495
2518
|
/***/ })
|
|
2496
2519
|
|
|
2497
|
-
/******/
|
|
2520
|
+
/******/ });
|
|
2498
2521
|
/************************************************************************/
|
|
2499
|
-
/******/
|
|
2500
|
-
/******/
|
|
2501
|
-
/******/
|
|
2502
|
-
/******/
|
|
2503
|
-
/******/
|
|
2504
|
-
/******/
|
|
2505
|
-
/******/
|
|
2506
|
-
/******/
|
|
2507
|
-
/******/
|
|
2522
|
+
/******/ // The module cache
|
|
2523
|
+
/******/ var __webpack_module_cache__ = {};
|
|
2524
|
+
/******/
|
|
2525
|
+
/******/ // The require function
|
|
2526
|
+
/******/ function __webpack_require__(moduleId) {
|
|
2527
|
+
/******/ // Check if module is in cache
|
|
2528
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
2529
|
+
/******/ if (cachedModule !== undefined) {
|
|
2530
|
+
/******/ return cachedModule.exports;
|
|
2531
|
+
/******/ }
|
|
2532
|
+
/******/ // Create a new module (and put it into the cache)
|
|
2533
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
2534
|
+
/******/ // no module.id needed
|
|
2535
|
+
/******/ // no module.loaded needed
|
|
2536
|
+
/******/ exports: {}
|
|
2537
|
+
/******/ };
|
|
2538
|
+
/******/
|
|
2539
|
+
/******/ // Execute the module function
|
|
2540
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
2541
|
+
/******/
|
|
2542
|
+
/******/ // Return the exports of the module
|
|
2543
|
+
/******/ return module.exports;
|
|
2508
2544
|
/******/ }
|
|
2509
|
-
/******/
|
|
2510
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
2511
|
-
/******/ // no module.id needed
|
|
2512
|
-
/******/ // no module.loaded needed
|
|
2513
|
-
/******/ exports: {}
|
|
2514
|
-
/******/ };
|
|
2515
|
-
/******/
|
|
2516
|
-
/******/ // Execute the module function
|
|
2517
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
2518
|
-
/******/
|
|
2519
|
-
/******/ // Return the exports of the module
|
|
2520
|
-
/******/ return module.exports;
|
|
2521
|
-
/******/ }
|
|
2522
|
-
/******/
|
|
2545
|
+
/******/
|
|
2523
2546
|
/************************************************************************/
|
|
2524
|
-
/******/
|
|
2525
|
-
/******/
|
|
2526
|
-
/******/
|
|
2527
|
-
/******/
|
|
2528
|
-
/******/
|
|
2529
|
-
/******/
|
|
2530
|
-
/******/
|
|
2547
|
+
/******/
|
|
2548
|
+
/******/ // startup
|
|
2549
|
+
/******/ // Load entry module and return exports
|
|
2550
|
+
/******/ // This entry module is referenced by other modules so it can't be inlined
|
|
2551
|
+
/******/ var __webpack_exports__ = __webpack_require__(44);
|
|
2552
|
+
/******/ module.exports = __webpack_exports__;
|
|
2553
|
+
/******/
|
|
2554
|
+
/******/ })()
|
|
2555
|
+
;
|