best-dynamo-js
Advanced tools
Comparing version 0.1.0 to 0.1.1
async function* pageCommandGenerator(client, command, initialParams) { | ||
let params = JSON.parse(JSON.stringify(initialParams)) | ||
while (true) { | ||
const pageResult = await client[command](initialParams) | ||
const pageResult = await client[command](params) | ||
yield pageResult.Items | ||
if (pageResult.LastEvaluatedKey) { | ||
initialParams.ExclusiveStartKey = pageResult.LastEvaluatedKey | ||
params = JSON.parse(JSON.stringify(initialParams)) | ||
params.ExclusiveStartKey = pageResult.LastEvaluatedKey | ||
} else { | ||
@@ -8,0 +10,0 @@ break |
{ | ||
"name": "best-dynamo-js", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A collection of middlewares and custom commands that make using DynamoDB with javascript easier", | ||
@@ -28,3 +28,7 @@ "license": "MIT", | ||
"peggy": "^4.0.2" | ||
}, | ||
"devDependencies": { | ||
"@aws-sdk/client-dynamodb": "^3.569.0", | ||
"@aws-sdk/lib-dynamodb": "^3.569.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
59563
1815
0
2