@aws-sdk/lib-dynamodb 3.494.0 → 3.496.0

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.
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ module.exports = require("../index.js");
@@ -1,28 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.paginateQuery = void 0;
4
- const QueryCommand_1 = require("../commands/QueryCommand");
5
- const DynamoDBDocumentClient_1 = require("../DynamoDBDocumentClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new QueryCommand_1.QueryCommand(input), ...args);
8
- };
9
- async function* paginateQuery(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.ExclusiveStartKey = token;
15
- input["Limit"] = config.pageSize;
16
- if (config.client instanceof DynamoDBDocumentClient_1.DynamoDBDocumentClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected DynamoDBDocument | DynamoDBDocumentClient");
21
- }
22
- yield page;
23
- token = page.LastEvaluatedKey;
24
- hasNext = !!token;
25
- }
26
- return undefined;
27
- }
28
- exports.paginateQuery = paginateQuery;
1
+ module.exports = require("../index.js");
@@ -1,28 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.paginateScan = void 0;
4
- const ScanCommand_1 = require("../commands/ScanCommand");
5
- const DynamoDBDocumentClient_1 = require("../DynamoDBDocumentClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ScanCommand_1.ScanCommand(input), ...args);
8
- };
9
- async function* paginateScan(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.ExclusiveStartKey = token;
15
- input["Limit"] = config.pageSize;
16
- if (config.client instanceof DynamoDBDocumentClient_1.DynamoDBDocumentClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected DynamoDBDocument | DynamoDBDocumentClient");
21
- }
22
- yield page;
23
- token = page.LastEvaluatedKey;
24
- hasNext = !!token;
25
- }
26
- return undefined;
27
- }
28
- exports.paginateScan = paginateScan;
1
+ module.exports = require("../index.js");
@@ -1,6 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./Interfaces"), exports);
5
- tslib_1.__exportStar(require("./QueryPaginator"), exports);
6
- tslib_1.__exportStar(require("./ScanPaginator"), exports);
1
+ module.exports = require("../index.js");
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@aws-sdk/lib-dynamodb",
3
- "version": "3.494.0",
3
+ "version": "3.496.0",
4
4
  "description": "The document client simplifies working with items in Amazon DynamoDB by abstracting away the notion of attribute values.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
7
7
  "types": "./dist-types/index.d.ts",
8
8
  "scripts": {
9
9
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
10
- "build:cjs": "tsc -p tsconfig.cjs.json",
10
+ "build:cjs": "node ../../scripts/compilation/inline lib-dynamodb",
11
11
  "build:es": "tsc -p tsconfig.es.json",
12
12
  "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
13
13
  "build:types": "tsc -p tsconfig.types.json",
@@ -26,16 +26,16 @@
26
26
  },
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@aws-sdk/util-dynamodb": "3.494.0",
30
- "@smithy/smithy-client": "^2.2.1",
31
- "@smithy/types": "^2.8.0",
29
+ "@aws-sdk/util-dynamodb": "3.496.0",
30
+ "@smithy/smithy-client": "^2.3.1",
31
+ "@smithy/types": "^2.9.1",
32
32
  "tslib": "^2.5.0"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "@aws-sdk/client-dynamodb": "^3.0.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@aws-sdk/client-dynamodb": "3.494.0",
38
+ "@aws-sdk/client-dynamodb": "3.496.0",
39
39
  "@tsconfig/recommended": "1.0.1",
40
40
  "@types/node": "^14.14.31",
41
41
  "concurrently": "7.0.0",